how to open another window in C# winforms

Started by
2 comments, last by transformation 19 years, 10 months ago
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
Advertisement
Form.
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.
quote:Original post by yaroslavd
Form.


O_o ... well, that''s embarrasing


And thanks kitfox. Your explanation should save me a little time

This topic is closed to new replies.

Advertisement