Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / June 2004

Tip: Looking for answers? Try searching our database.

Assign Label to Textbox?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roland M?ller - 01 Jun 2004 07:35 GMT
Hello,

can i assign a label to a textbox?
I can do this for example in access on moving a label on a textbox.

I try this now in visual studio.net (c#) but it is not possible and there
also isn't any property.

If it is possible then it is easy so who knows it could help me a bit...

Roland
Colin Stutley - 02 Jun 2004 02:31 GMT
And while you are there ... Mask, default width (drop a typed item on a page
and have the fill-in auto adjust the width), tooltip, basic validation
(Min/Max/required).
All basic stuff - or at least you may have thought :(.

The closest I have come is an extender provider. At design time it draws the
text on the display area, at runtime it adds a 'text' item to the parent of
the textbox [or combo/radio etc]. I have hooked the default label up to the
'caption' property of the dataset [when the textbox/etc has databinding] and
custom xsd attributes for mask etc. As a starting point take a look at,
http://www.fawcette.com/vsm/2002_11/magazine/columns/desktopdeveloper/default.aspx
Although this does not include the label you are after the basic concept can
be extended.

I am used too building the UI elements from a schema [pick a field and drop
it onto a form]- so I have adopted the xsd for this manner. But this then
leads to a custom MSDataSetGenerator to accommodate the custom xsd
attributes ... and on it goes.
I keep thinking there must be a better way though - something already build
into VStudio.

Anyone care to comment.

- Colin

The
> Hello,
>
[quoted text clipped - 7 lines]
>
> Roland

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.