Panel control in a DLL
-
I'm trying to create a custom control in a dll. The class is inherited from the System.Windows.Forms.Panel class. On this new class i place a couple of labels and another panel, but when i add this control on a windows form, i only see the outline of the control but nothing on it. I tried the same thing with the System.Windows.Forms.Usercontrol class and that worked fine, but the moment i inherit from the panel class the trouble starts. Can anyone tell me what i'm doing wrong? Thanks, Reinier.
-
I'm trying to create a custom control in a dll. The class is inherited from the System.Windows.Forms.Panel class. On this new class i place a couple of labels and another panel, but when i add this control on a windows form, i only see the outline of the control but nothing on it. I tried the same thing with the System.Windows.Forms.Usercontrol class and that worked fine, but the moment i inherit from the panel class the trouble starts. Can anyone tell me what i'm doing wrong? Thanks, Reinier.
You may want to check the Z-Order of your controls If your panel is in front of all the other controls, you will not see them. Jon G www.Gizmocoder.com
-
You may want to check the Z-Order of your controls If your panel is in front of all the other controls, you will not see them. Jon G www.Gizmocoder.com
Thanks for the reply. I tried setting the z-order, but still nothing happens. Do you have some other advise? Thanks.