|
-
May 10th, 2002, 07:28 PM
#1
Multiple Forms in a project
How do I use multiple forms in c#. most importantly how do i get a second form to pop up and return information to the other form?
(btw im trying to recrate an inputbox like thing)
-
May 10th, 2002, 08:30 PM
#2
create a new form class.
yourform formtest = new yourform()
formtest.Show()
or .ShowDialog() for modal
give the form a property you can you can check in the other form for whatever value you need to return.
-
May 10th, 2002, 09:16 PM
#3
OK i created my second form. I now have a main form and an input form. When the input form comes to be shown i want it to not be able to be minimized or for the user to anyway switch back to the main form. I think i want this to be modal(if i use that term correctly) is there a way to do this?
-
May 10th, 2002, 09:51 PM
#4
never mind i figured it out. all ihave to do is this
Code:
Form2 frm2 = new Form2();
frm2.ShowDialog(this);
-
May 11th, 2002, 09:12 PM
#5
good boy.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|