Windows Form Navigation Problem...

Hi!!!

I'm using C# to do my application. For example I have 2 Forms, created with buttons. When I run the application, and click the next button, it was supposed to lead me to the other form. I managed to achieve that by basically hiding the first form and showing the next.

Example:

Mainpage mp = new Mainpage();

this.hide();

mp.show();

However, when I click the next button I see the forms changing from my taskbar. I tried changing the for resolution of the form to 1024, 768 to have it become a full screen but still when it loads the other form, I am still able to see my desktop wallpaper. How do I link the forms in such a way it doesn't show me my wallpaper.

[716 byte] By [Chiarigos] at [2007-12-22]
# 1
Sounds like the Mainpage form is looping in its Load or Shown event, thus never getting its Paint event...

nobugz at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2

hmmmm...

but the page I am using is not MainPage, the page which I wrote this codes are in Page1. Page1 was able to link me to Mainpage through the next button however I am still unable to navigate without the effect of having to see my desktop wallpaper. Meaning, when I click the next button from Page1, it closes and I get to see my desktop wallpaer before it reopens to the Mainpage. I want to navigate without that effect.

Chiarigos at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3
Swap the Hide and Show statements.
nobugz at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 4

Hey again!!!

Thanks a lot!! It works now. Really appreciate it. I have been cracking my head for so long and didn't know it was that easy. Haha!

Chiarigos at 2007-8-30 > top of Msdn Tech,Windows Forms,Windows Forms General...