 |
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category.
** PLEASE BE SPECIFIC WITH YOUR QUESTION **
When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

February 22nd, 2005, 01:32 PM
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Convert Label to TextBox
How to convert a textbox to label or vice versa ?
|

February 24th, 2005, 01:38 AM
|
Friend of Wrox
|
|
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Can you explain what exactly you want to achieve by doing this?
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com
|

February 24th, 2005, 12:02 PM
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
|
|
nothing special i want to achieve by doing this.
i was asked this question in an interview.
so if anybody knows this, plz tell me
thnx
Ashu
|

February 25th, 2005, 06:57 AM
|
Friend of Wrox
|
|
Join Date: Sep 2004
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
if u set a textbox as readonly then its more like a label
|

February 25th, 2005, 10:20 PM
|
Registered User
|
|
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
 i think that isn't a answer.
Anyone knows about that. Tell me, please :)
Mial Pham
|

March 1st, 2005, 08:21 AM
|
Friend of Wrox
|
|
Join Date: Sep 2004
Posts: 140
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes but how can u change i compleetly to a label as Label is derived from System.Windows.Form.Label And U Cannot Change it.... so in this senario i felt that this is the only answer
|

March 6th, 2005, 11:09 PM
|
Registered User
|
|
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
:( I don't know have answer for that question????
But if u answer this then can u to convert label to textbox???
Mial Pham
|

March 8th, 2005, 01:13 PM
|
Friend of Wrox
|
|
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I think basically you need to change the following properties
BorderStyle = None
ForeColor = Menu
ReadOnly = true
The first 2 gives the look of label and 3rd gives the exact working of label box.
It is not how much we do,
but how much love we put in the doing.
-Mother Theresa
|

March 17th, 2005, 09:39 AM
|
Authorized User
|
|
Join Date: Mar 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
You can not convert.
Because both of these are objects have some data, methods and properties which are different with respect to each other.
Bye
hope it help...
|

March 17th, 2005, 11:15 AM
|
Friend of Wrox
|
|
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Actually i was asked this question in an interview.
So thr must an answer to it
Thnx
|
|
 |