Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1185
WinComboEditor not initialising when visible is set to false
posted

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?

Parents
  • 469350
    Suggested Answer
    Offline posted

    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.

Reply Children