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 / July 2005

Tip: Looking for answers? Try searching our database.

DesignTime bug with usercontrol textbox...workaround?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robert Conde - 21 Jul 2005 20:48 GMT
If you place a textbox on a user control...then put that user control on a
form with a panel, then move the control to the panel, you then can activate
the textbox. In other words it no longer thinks it's in designMode. Anybody
know of this issue or a workaround?

Robert Conde
Robert Conde - 22 Jul 2005 01:04 GMT
I found a workaround, but I don't like it - if someone has a better idea
please tell me. The .NET combo box handles it successfully somehow, but I'm
not sure by what method. Anyhow what I did was the following:

override OnParentChanged()
{
   if(DesignMode)
   {
       Controls.Remove(myTextBox);
       Controls.Add(myTextBox);
   }
}

> If you place a textbox on a user control...then put that user control on a
> form with a panel, then move the control to the panel, you then can
> activate the textbox. In other words it no longer thinks it's in
> designMode. Anybody know of this issue or a workaround?
>
> Robert Conde

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.