1.What is the comand to hid a window then starting a new one? Like Onload or something, but I can't find any examples how to use it!
2.For some reason in Visual Studio C# I can't change the mouse cursor from WaitCursor to Defualt. It keeps changing back to the Wait! Any sujestions?
Hi Ajm113
i hope that i well understood your question and here is my answer, if you are using window forms in asp.net 2-0
1. Try this code on Load function
{
Form1 obj = new Form1();
MessageBox.Show("Would You like to dispose Form1?", "Conformation", MessageBoxButtons.OK, MessageBoxIcon.Question);
Form1.ActiveForm.Visible = false;
obj.Dispose();
obj.DestroyHandle();
Form2 obj1 = new Form2();
obj1.Visible = true;
obj1.UseWaitCursor = false;
obj1.Show();
}
2. and to hide the waitCursor
obj1.UseWaitCursor = false; // this code is also used in the first one after //Form2 obj1 = new Form2();
//obj1.Visible = true; code
I hope your problem might be solved