Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem with MDI forms

Problem with MDI forms

Scheduled Pinned Locked Moved C#
helptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ParagGupta
    wrote on last edited by
    #1

    Hello, I have to made some application in which I'm using MDI forms. Like in first form I have two buttons say button1 and button2, from here I've to navigate to a MDI parent form and in it the child window regarding the respective button clicked should open. I'm struck here as i dont know how to perdorm this action. Can someone help me please... And yes Please give code rather than simple suggestion Thx n regards PARAG

    N 1 Reply Last reply
    0
    • P ParagGupta

      Hello, I have to made some application in which I'm using MDI forms. Like in first form I have two buttons say button1 and button2, from here I've to navigate to a MDI parent form and in it the child window regarding the respective button clicked should open. I'm struck here as i dont know how to perdorm this action. Can someone help me please... And yes Please give code rather than simple suggestion Thx n regards PARAG

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      Hello I don't really think I get you!! Do you mean you want to activate a second MDIchild when a button on the First MDIChild is clicked?

      Regards:rose:

      P 1 Reply Last reply
      0
      • N Nader Elshehabi

        Hello I don't really think I get you!! Do you mean you want to activate a second MDIchild when a button on the First MDIChild is clicked?

        Regards:rose:

        P Offline
        P Offline
        ParagGupta
        wrote on last edited by
        #3

        Ok take an example I have an initial form a Login form on this form I have labels and text boxes for loginid and Password, and tqo buttons Login(for existing user) and Signup(if new user) now there is an MDI window FORM now if the Login button is clicked then user must enter his home page form in the MDI window FORM, and if SignUp is clicked then SignUp form must open in the same MDI window FORM.......... That is what i want I hope its clear now

        N 1 Reply Last reply
        0
        • P ParagGupta

          Ok take an example I have an initial form a Login form on this form I have labels and text boxes for loginid and Password, and tqo buttons Login(for existing user) and Signup(if new user) now there is an MDI window FORM now if the Login button is clicked then user must enter his home page form in the MDI window FORM, and if SignUp is clicked then SignUp form must open in the same MDI window FORM.......... That is what i want I hope its clear now

          N Offline
          N Offline
          Nader Elshehabi
          wrote on last edited by
          #4

          Why do you want it MDI?? For all I know it's a simple form with a webbrowser control in a Dock.Fill state. The login in dialog is just another form. In your Form_Load event just write

          MyLoginForm login = new MyLoginForm();
          if(login.ShowDialog() != DialogResult.Cancel)
          {
          if(login.IsSignUo)
          webBrowser1.Navigate(SignUpURL);
          else
          webBrowser.Navigate(HomePage);
          }

          Regards:rose:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups