I have created a dialog as a winform and am calling that winform like this:
Dim dlgEditChangeOrder As New dgEditChangeOrder
Dim dlgResult As DialogResult
dlgResult = dlgEditChangeOrder.ShowDialog
...pretty simple. I want to be able to set the visiblility of a control on the win form when the win form is called. I would like to do this as a constructor so I could write the following....
Dim dlgEditChangeOrder As New dgEditChangeOrder(visibleIsTrue)
Can someone give me the contructor code to make this happen? The reason I am concerned is I dunno if its legal to do this inside a winform since the winform is loaded bby the precreated IntializeComponent() function