Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

transformation

how to open another window in C# winforms

This topic is 5223 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What object do I have to look into to make functionality in a button that when click, opens up a small other window in which I can edit a few things and have other controls on it like check boxes, combo boxes or whatever? Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
Create a class that inherits from windows.forms, instantiate a instance of it and then call either .Show() or .ShowDialog() depending on the whether or not you want the window to have exclusive control over the message pump.

Set an event that waits for it to be close somehow and then retrieve the values of the member variables.

Well, that''s how I would do it anyways.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!