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
205
Controls vs Infragistics Controls
posted

Hi,

How do I programmatically add an infragistics control to a windows form control collection? They are of different types (one is windows, one is infragistics) so it won't compile??

eg Form1.Controls.Add(UltraStatusBar);

 Thanks 

 

Parents
  • 1158
    Offline posted

    Hi,

    yes without any problem. Any Form it is described ONLY with code!
    If you use the Designer, it write the code for you. (look the file like Form1.Designer.cs).

    Your example corrected will be:
    UltraStatusBar usb = new UltraStatusBar()
    this.Controls.Add(usb);

    Obviously you need to know what are you doing.

    Note that I wrote a lot of complex application without using the designer mode, I only write code.
    IMO it's much more faster developping without the designer and this permit you a real control about your application and also you can "design" the UI programmatically when the app is running.

    Without offending anyone I think that the use of Designer, except in some cases, is for kiddies ;)

     

Reply Children
No Data