| | |
Code run when form shown ?
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
Actually what you should do is add an event handler to either the Load event or the VisibleChanged event. It all depends on if you want the code to execute everytime the form is shown, or only the first time the form is shown.
Obviously, use Load if you only want the code to execute the first time. Use VisibleChanged if you want the code to execute everytime the form is shown.
Obviously, use Load if you only want the code to execute the first time. Use VisibleChanged if you want the code to execute everytime the form is shown.
![]() |
Similar Threads
- Calling C# function through Javascript in ASP.NET (ASP.NET)
- Sql Injuction (Viruses, Spyware and other Nasties)
- Whats the code for a reset button.. (Visual Basic 4 / 5 / 6)
- What is server and client side code? (ASP.NET)
- VB6 application form freezes (Visual Basic 4 / 5 / 6)
- Help...Modal a form (Visual Basic 4 / 5 / 6)
Other Threads in the C# Forum
- Previous Thread: how to get the folder list of client side?
- Next Thread: Creating a GUI using C#
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox client color combobox control conversion cryptographyc#winformsencryption csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms function gdi+ httpwebrequest image index input install java keypress label list listbox listener mandelbrot math mouseclick mysql networking operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validate validation view visualstudio webbrowser windows winforms wpf xml





