Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21090

[RESOLVED] Change Windowstate During Runtime

$
0
0
I just recently started developing an NES emulator in vb6, which works great so far, and uses software rendering (Stretchblt) as well as hardware rendering (DirectX). I also made it to where you can go back and forth between fullscreen mode and windowed mode in both hardware and software rendering perfectly....or almost perfect. Just one problem. Im getting an error. Heres the scenario to even produce the error:

When a user puts it on hardware mode, he can stretch the screen however he wants, even maximize the screen if he wants to. When the form is maximized and he goes to fullscreen, it works and does what it suppose to do. It changes the screen resolution and wow! Your playing Mario fullscreen! However when you press escape to go back to windowed mode, you get the error "A form can't be moved or sized while minimized or maximized." If the form wasn't maximized to begin with by the user, it would work ok. This poses a problem and I really need a way to put the form back on normal mode during run time. I believe this is a read only property. Any ideas? :ehh:

Viewing all articles
Browse latest Browse all 21090

Trending Articles



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