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 / WinForm General / April 2006

Tip: Looking for answers? Try searching our database.

Automatic Text property at design time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dario C - 26 Apr 2006 19:37 GMT
Hi,

when we place a label or textbox or other controls from the toolbox on the
form at design time, the Text property of the control automatically contains
the name of the class and an incrementing number after it (label1, textbox3,
etc).
I have a UserControl and I want to modify this string that appears
automatically. Is this possible ?

Thanks,
Dario.
Claes Bergefall - 27 Apr 2006 15:37 GMT
Check out the ControlDesigner.OnSetComponentDefaults method
Here's an example:

http://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms.co
ntrols/msg/d5db87ae95d1c6e9?hl=en
&

  /claes

> Hi,
>
[quoted text clipped - 7 lines]
> Thanks,
> Dario.
Dario C - 29 Apr 2006 14:50 GMT
Thanks Claes,

that was what I was looking for.

Dario.

> Check out the ControlDesigner.OnSetComponentDefaults method
> Here's an example:
[quoted text clipped - 14 lines]
>> Thanks,
>> Dario.

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.