Re: Adding combobox to windows form dynamically



BillE,

I understand what you want and that is not working, however why do you want first to put the comboboxes on the panel and then the panel on the form, instead of first setting the panel to the form and then the comboboxes?

You can forever make your panel visible and not visible in my idea?
(In fact where you use a panel for).

Cor

.



Relevant Pages

  • Re: Move a panel......its possible?
    ... Getting the borders and ... all those things is forever a terrible thing to do. ... > hi cor, i tried your example, but there's a problem: ... It's possible move the panel over form dialog and see ...
    (microsoft.public.dotnet.languages.vb)
  • KeyDown Events
    ... These labels and comboBoxes are defined as arrays and are generated at runtime. ... The problem I am having is that the KeyDown event is captured only once...after that the program doesn't listen to any KeyEvents. ... Is this because I have a panel on the form and the focus is not on the panel? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to clear all TextBox in a Windows Form?
    ... > How about some TextBoxes and ComboBoxes in a GoupBox? ... It will work the same, also with Panel, and any other grouping control. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Problem with ComboBox
    ... panel. ... It has two Comboboxes and Button: ... These two combos have different behavior. ... > I input some text into my comobobox and without Enter or Tab key go to ...
    (microsoft.public.outlook.program_addins)
  • Is there a way to clone a panel
    ... The 1st form dynamically creates controls into a panel, ... fills comboboxes from SQL statements. ... panel to a second form? ...
    (microsoft.public.dotnet.framework.windowsforms)