| | |
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#
Views: 6024 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox class client color control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption enum event excel file files form format forms ftp function gdi+ httpwebrequest image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting richtextbox save saving server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





