Jump to content
  • Advertisement
Sign in to follow this  
Andy474

[C#, WinForms] Window Z-Ordering

This topic is 3222 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

Hi guys, hopefully a QQ. I have a windows form project, that i have been working on for some time. It consists of a main UI (a winForm) and UI Elements(Buttons Etc.) On some of these Buttons it opens a new Windows form. Used for creating new elements and adding them to a Dictionary<,> etc. However, when a new WindowsForm is opened I cannot click on the parent window. This is a problem I need to overcome. E.g. On my Main Windows Form I have a XNA Graphics Display. This draws a 2D Tile map using int[,] and I have some input function which allow me to know which tile I am currently hovering over. I use another Windows Form to create an Action Element this requires a Position on the tile map and I would like the to be able to click on the map and automatically retreive this position. So i want to know. While i have a Child Window open how do i click on the parent Window? (sorry if this is a little hard to read, I had 5m internet time to write and post this)

Share this post


Link to post
Share on other sites
Advertisement
Don't use form.ShowDialog(). This makes a modal dialog. Instead use form.ShowWindow() (or maybe it's just form.Show(), i forget) instead.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!