Click to See Complete Forum and Search --> : open other form in th same?
engjulli
Dec 7th, 2006, 07:47 AM
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!
jmcilhinney
Dec 7th, 2006, 03:40 PM
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?
engjulli
Dec 8th, 2006, 07:11 AM
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?
jmcilhinney
Dec 8th, 2006, 05:14 PM
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.
engjulli
Dec 9th, 2006, 03:06 PM
Thanks a lot, i'll try to do!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.