You will have to either
1) Keep a reference to the original form and pass it to the new form when you create it, and before you hid the original.
2) hook into an event from the second form to the original form which causes the original to re-display itself.
The second is better practice as it doesn't require form2 to know anything outside itself - it just throws an "I'm done" event.
Niether is too complex, the second is a few extra lines of code.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
OriginalGriff is Correct, if you want to edit the gridview in ASP.net, you must enable the appropriate properties that will show you the edit,Delete and update per row and if you click on Edit,you do not need to write a code to do that, ASP.NET already will do it for you. The Values will be Presented in a Textbox , and in edit more for you to edit and the Update and Cancel Button will be available options for you.
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
i have two forms
i want after 3 seconds the first form is hiden and the second one is appeared
sorry for that silly question but the first form has user control that playing a movie
i trying to use the usually code to hide the first one
it is not disappeared and the second is appeared
thanks very much
I believe Form1 is your start-up form. When Application.Run(new Form1()) is executed, it sets the Form1's visibility to true. This happens after your call to this.Hide() in Form1's constructor. This is the reason why first form is still visible.
Are you looking to implement a splash-screen? If yes, this is not the correct method. Try the following points
Show the Form1 before the call to Application.Run
Keep a timer on Form1 with interval as 3secs and when timer ticks, unload the form.
Instantiate Form2 and start message loop on that. Application.Run(new Form2()).
I have windows media player contrl. Now i will have 4 buttons when i click one butoon it should play the video , second one should pause , third one should do step forward and fourth one should step backward .
can u please me tell me how to achieve these functionalities.