C# Winform controls not drawing
-
I am working on a heavily used winform C# application. I have a user control, that has 3 textboxes and it can contain another user control. user can add n number of main user control on the form. due to this, if the user adds more than 20 controls, after the 20th control, the UI doesnt show anything. It is not giving any exception, its simply not drawing the controls? My application is not exceeding GDI objects Also the textbox is using WPF textbox. All suggestions welcome. Thanks.
-
I am working on a heavily used winform C# application. I have a user control, that has 3 textboxes and it can contain another user control. user can add n number of main user control on the form. due to this, if the user adds more than 20 controls, after the 20th control, the UI doesnt show anything. It is not giving any exception, its simply not drawing the controls? My application is not exceeding GDI objects Also the textbox is using WPF textbox. All suggestions welcome. Thanks.
Member 7834460 wrote:
after the 20th control, the UI doesnt show anything.
Does that mean that "20 items" is the maximum that "fit" on your form? It might be creating the rest of them on the non-visible area. Does it have a
ScrollViewer
where you put the children in? Any scrollbars set?Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]