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 3 2177
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.netwr ote in message
news:11******** *************@r 29g2000hsg.goog legroups.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
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-)
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 is very basic stuff, but I got to start somewhere!
Cheers (TIA)
|
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 found none, so, I wrote
one and decided to share it with you.
It's a very simple one with few functions. I derived a DataGrid and
added to it a DataTable to hold the data. The object itself is
handling the synchronization between them, because...
|
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 frustrated with this seemingly simple task. I have
enabledviewstate=true on the @Page directive, and I tried using onclick
on the linkbutton, nothing. I know the event is firing because I can
set the value to a hardcoded string and get it to show. In...
|
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, and a table (Access Table in fact) that has on it a field called HIREID.
I wish to select records where the two match! It sounds simple, but I am having trouble
setting up the text box name so that it is recognized in the query.
Can someone...
|
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 connections async. if the user
pushes the selected buttons.
i just want a program that connects to another computer on the port and IP
address selected and if the other computer is listening, then connect to it
but this code doesnt work :
Imports...
| |
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 at how difficult it has become to control a form,
something that was so dead easy in ASP.
|
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" ReadOnly="True"
EnableViewState="False"></asp:textbox>
<label class="col3">Rm Phone</label>
<asp:textbox id="txtRmPhone" runat="server" cssclass="col4" ReadOnly="True"
|
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 the parameter from Textbox1.
What do I add to this code below to say that Label1 equals the result of my
Select statement? CroftUser being the result.
Thanks!
Newbie
-------------------------------
Protected Sub Button1_Click(ByVal sender As...
|
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 ctlCurrentControl.???
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |