473,471 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Simple Label and TextBox question

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
3 2151
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Oli | last post by:
Hi Folks, Alright, I have a textbox called "A" and the value in that textbox is "B". When the user presses submit I want A : B to appear on the page. How do I do it? I appreciate that this...
0
by: Tal Sharfi | last post by:
Hi everyone I recently had the need for StringGrid object same as the one that Delphi has. An object that helps show lists of other objects in a simple grid. I searched the news groups and...
4
by: ItNerd | last post by:
Someone PLEASE HELP ME!!!!! All I want to do is a simple postback and grab the value from a textbox on clicking a linkbutton like below, but the value is not writing to the screen. I am...
3
by: John Baker | last post by:
Hi:7 Newby here to ASP, and using the ASP.NET Web Matrix development tool. While that tool looks great for a Newby, I have run into a snag. I have an HTML Text Box which I have named HireInput,...
2
by: iwdu15 | last post by:
hey, i was wondering if 1) anyone could tell me whats wrong with my code, i did a little fixing to the msdn version fo this, or 2) how to make a simple program that will connect and listen for...
2
by: Eniac | last post by:
*argh* ... *pull hairs* I've recently started developing from ASP to ASP.NET The switch was fairly smooth since i had done some VB.net before ... then came...FORMS! :) I find it astounding...
0
by: CharlesA | last post by:
Hi folks, I'm using ASP.net 1.1 with C# I've got this kind of thing going <div class="row"> <label class="col1">Rm Name</label> <asp:textbox id="txtRM" runat="server" cssclass="col2"...
3
by: Phillip Vong | last post by:
I'm new and trying to learn. This is in VB.NET 2. I have a simple page with one Textbox1, one Label1 and one Button1. The on_click Button one goes and get's a simple data from the SQL db with...
7
by: troy_lee | last post by:
I have a sub with this code: Sub ColorLabel() Dim ctlCurrentControl As Control Dim lngYellow As Long lngYellow = RGB(255, 255, 0) Set ctlCurrentControl = Screen.ActiveControl With...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.