Form.ShowDialog Problem

Hello

I have 2 forms.

When I use "Form.ShowDialog" to run Form2 and use Me.Close to close Form2.

Then when I want to run Form2 again by "Form.ShowDialog", Form2 controls didn't return to default (design time) like "Textbox, RadioButton".

Why



Answer this question

Form.ShowDialog Problem

  • ArekP

    Hi onh,
    If you defined Form2 as a variable use this method (Before reshow Form2 as a dialog) :
    Form2Variable = New Form2


  • Ghalib Ghuneim

    Moayad Mardini wrote:
    Hi onh,
    If you defined Form2 as a variable use this method (Before reshow Form2 as a dialog) :
    Form2Variable = New Form2

    Thanks very much Moayad.


  • Form.ShowDialog Problem