Skip to main content
GameDev.net gamedev.net
🔒 Locked

Quick Windows form question

Started by Makkedah Mar 24, 2006 at 8:58 PM 1 replies 350+ views
Original Post
Makkedah
Makkedah
Basically, I'm going to have one form show another form, and I will need the second form to return the selected index of its list box to the first form. Is there a way to do this? And if so, how?
"Duty is as heavy as a mountain, death is as light as a feather"-Al'' Lan Mandragoran
smitty1276
smitty1276
Use a modal dialog box. Windows.Form has a ShowDialog() method.

Read up on it, it should do what you want.
Makkedah
Makkedah
Awesome, thank you! Works wonderfully.
"Duty is as heavy as a mountain, death is as light as a feather"-Al'' Lan Mandragoran

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.