Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Control application with hidden form, trouble with popup forms

$
0
0

I have a control application with a main form used for testing that I plan on hiding during normal runtime. This app will control a number of things and basically host a screen saver. For a number of reasons I cannot use the built-in screen saver functionality. (wish I could, had that all working)

My issue is that when I create the blank forms to hide the monitors (supporting multiple screens), the forms get created and I can see them for a bit, then it seems the timer on my main form causes something to happen that causes these other forms to exit. I don't want modal functionality, but I do need these forms to stay "on top" until the controller decides to close them.

I tried marking them as TopMost but that didn't seem to have any effect. When the timer pops, I still loose these forms.

Right now, I am just using the following code to create/display them.

ScreenSaverss =newScreenSaver(screen.Bounds);

ss.Show();

I am wondering if I should use the Show(IWin32Window) with some other value, but then I wondering what value to put in here? DesktopWindow?

Any help would be appreciated. Thanks.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>