User Profile

Collapse

Profile Sidebar

Collapse
Olrik
Olrik
Last Activity: Aug 13 '08, 12:26 AM
Joined: Jul 20 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Olrik
    replied to C# switching between forms calls Form_Load
    in .NET
    I've figured it out.
    Here is the answer for anyone that may have the same problem.

    this is the new code I'm using:


    from Form1:

    private void btnModify_Click (object sender, EventArgs e)
    {
    Form mod = new modifyForm();
    mod.Owner = this;
    mod.Show();
    this.Hide();
    }//end btnModify_Click...
    See more | Go to post

    Leave a comment:


  • Olrik
    started a topic C# switching between forms calls Form_Load
    in .NET

    C# switching between forms calls Form_Load

    I'm having a problem with c# when switching forms. It seems that when i switch from one form to the other they always call Form_load, which I don't want.
    Im using form.show() and form.hide() so I don't understand why they are calling form_load.

    This is the code:

    from form1

    private void btnModify_Click (object sender, EventArgs e)
    {
    Form mod = new modifyForm();...
    See more | Go to post
No activity results to display
Show More
Working...