Custom Control at Design Time
C#
2
Posts
2
Posters
0
Views
1
Watching
-
-
Hi!!! i have created a custom text Box inherited from TextBox Class. When I drag 'n' drop it from toolbox to Form. It shoes wait cursor and nothing happens :confused: . But creating at runtime works fine....any hints??? sorry for my bad English.
You may have included some code that causes an infinite loop or the like at design time. Check your code for anything that relies on something that only exists at runtime. You can then do some logic arounbd this checking for whether it is designtime or runtime.
if(!this.DesignMode) { this.DoSomething(); }
Let me know if you need more info.