Results 1 to 5 of 5

Thread: open other form in th same?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2006
    Posts
    18

    open other form in th same?

    how can do to open other form in the sam that i worked before, like in HTML "Self" not "Blank" like usully opens new forms in C#?
    Some one knows the code?Please help!

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: open other form in th same?

    With Web pages you're displaying new content within the same window. The equivalent in C# would be to display new values in the controls of an existing form, or perhaps replace the existing controls with new one's. What you're asking for doesn't really make a lot of sense. Please explain why you want to do this. Are you trying to create a wizard or something like that?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2006
    Posts
    18

    Re: open other form in th same?

    So i'm trying to do an aplication, and i don't like when i call other form i like that form to open in the same not to heave duplicated form. I know that for exmp form1 to hide it but is not prefered, so do you heave idea for this problem, or it isn't clearly explaint?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: open other form in th same?

    If you want everything in the one form then you have to use only one form. You can create all your functionality in UserControls and then add and remove instances of those to your single form if you want. If there are not too many groups then you could also just use multiple Panels on the one form, which you can change the Visible property of or change the z-order. It may also be appropriate to create an MDI parent form and then open multiple child forms within that.
    Last edited by jmcilhinney; Dec 9th, 2006 at 07:52 PM. Reason: Added a very important "not"
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Nov 2006
    Posts
    18

    Re: open other form in th same?

    Thanks a lot, i'll try to do!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width