By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,339 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,339 IT Pros & Developers. It's quick & easy.

Simple Label and TextBox question

P: n/a
Hi, I just want to make sure I'm not missing something obvious.
VB.Net controls like the CheckBox are implemented with a label
attached to it. This is very handy. But the TextBox control has no
implementation with a built-in attached label. You have to separately
layout your TextBox and Label controls on a form. It's not a huge
deal, but it would be handy if each TextBox control was automatically
paired with its Label control.

Is this just the way it is, or am I missing something?

Thanks,
John

Oct 6 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
It's just the way it is!

Not that the 'label' of the CheckBox control that you are referring to is
actually it's Text property.

The Text property of the TextBox control is used to set and get the actual
text 'inside' the TextBox.

If you really need such functionality then create a composite user control
comprising a Label and TextBox and thn you will be able to implement it
exactly how you want it.

I would suggest, however, that if having to spend a small amount of time
'laying out' your Labels and TextBoxes is your biggest worry then you doing
very well indeed.
"John Heitmuller." <jo*************@jrfcorp.netwrote in message
news:11*********************@r29g2000hsg.googlegro ups.com...
Hi, I just want to make sure I'm not missing something obvious.
VB.Net controls like the CheckBox are implemented with a label
attached to it. This is very handy. But the TextBox control has no
implementation with a built-in attached label. You have to separately
layout your TextBox and Label controls on a form. It's not a huge
deal, but it would be handy if each TextBox control was automatically
paired with its Label control.

Is this just the way it is, or am I missing something?

Thanks,
John
Oct 6 '07 #2

P: n/a
I would suggest, however, that if having to spend a small amount of time
'laying out' your Labels and TextBoxes is your biggest worry then you doing
very well indeed.
No, I just did not want other .Net programmers snickering at my forms
because I was 'doing it the hard way'. 8-)

Oct 6 '07 #3

P: n/a
John,

Realy funny, I am alwasy asking myself why there is a label on that checkbox
(and radiobutton) . I don't want it mostly.

:-)

Cor

Oct 6 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.