469,926 Members | 2,307 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

User control - remove control at runtime

Visual Studio2002 Framework 1.0

I have userControl which contain some controls
If user remove at runtime remove control from the userControl
especially ComboBox, it is not possible to close the form !
Form does not react on clicking on the right upper corner.
Is there some solution for this to avoid this behavior.

I tryed to remove focus from the control before removing but it helps
only is some cases.

Thanks for help
--
Tomas Oplt

Tel: 603 171893
Mail: to********@seznam.cz
Nov 20 '05 #1
1 1695
* "Tomas Oplt" <kk*****@volny.cz> scripsit:
Visual Studio2002 Framework 1.0

I have userControl which contain some controls
If user remove at runtime remove control from the userControl
especially ComboBox, it is not possible to close the form !
Form does not react on clicking on the right upper corner.
Is there some solution for this to avoid this behavior.


Maybe the famous "form close bug"?

C# code to repro the close bug:

<http://www.jelovic.com/binaries/WindowsFormsCloseBugDemo.zip>

Some information on the bug:

<http://makeashorterlink.com/?T2FC26194>

Fixed in .NET 1.1.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jeff Schaefer | last post: by
2 posts views Thread by Ben Amada | last post: by
11 posts views Thread by Rimpinths | last post: by
7 posts views Thread by Aussie Rules | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.