Hello
I have predefined a WinComboEditor by inheriting it and programatically filling in its values for use as an editor component on a grid
in order for it to work its visible property has to be set to false , but when visilble is set to false the OnCreateControl() and InitailiseComponent() do not run and the control has no values populated.
any ideas?
I've never heard of anything like this happening before. Visible should have no effect on whether or not the control is actually created. I assume you have an instance of your control on the form at design-time?
You could try calling Refresh on the control, or maybe even CreateHandle to force it's creation. But I really don't think you should have to.
I managed to get around it by leaving visible set to true on the form designer and then setting the visible to false in the load event of the form
it was a bit wierd but the work around gets rid of the problem
Hello,
Please let us know if you need any other assistance.