|
Hello friends! I'm developing a custom control inherited from GroupBox class. As a inherited group box, I don't know why, but the visual representation of the control is not showed in design time. Instead I get a gray screen with a message "drag controls here...bla bla..." or something else. Until here it's ok, the problem is I have to add a datagridview inside the control and just dragging it from toolbox didn't solve. Trying to solve that, I instantiate the DGV at the custom control New method and I added the control via Me.Controls.Add. In order to access the DGV inside the control, I added a property returning it. All woked well, except the fact that If I click the Columns property (...) button of the datagridview at properties window, I get a error "object reference not set to an instance of an object". It seems by adding a control via Controls.Add does not actually "create it" at design time. How can I solve that? Thank you Regards, Guilherme. - Moved byeryangMSFTMonday, September 14, 2009 2:57 AM (From:.NET Base Class Library)
-
|