Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Updating PictureBox every one minute in multiple forms
 

Updating PictureBox every one minute in multiple forms

I am new to dotnet.
I have Baseform (Windows form) with some controls &PictureBox are top right corner which is used to display the status of network.

I have an application with one login screen and three other funcationality screens which is inherited from Baseform. On login in , user can go to any of the functionality screen by selecting the options. in all three screensPicture boxneeds to beupdated withgreen or red image based on the network status every minute on some logic.Can you please help me on how to do update control using singleton class and using worker thread.

Note: Dotnet version VS2003 (Client specification)

veerabramhendra  Monday, September 21, 2009 5:34 PM
Hello,

>in all three screens Picture box needs to be updated with green or red image based on the network status every minute on some logic.

If you want to regularly update some information of the form, you can use Timer control.
http://msdn.microsoft.com/en-us/library/system.windows.forms.timer.aspx

Do you really need to make three forms update at the same time? It will be better to let these three forms update their UI separately.

Sincerely,
Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!
Kira Qian  Wednesday, September 23, 2009 7:40 AM
Hello,

>in all three screens Picture box needs to be updated with green or red image based on the network status every minute on some logic.

If you want to regularly update some information of the form, you can use Timer control.
http://msdn.microsoft.com/en-us/library/system.windows.forms.timer.aspx

Do you really need to make three forms update at the same time? It will be better to let these three forms update their UI separately.

Sincerely,
Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework!
Kira Qian  Wednesday, September 23, 2009 7:40 AM

You can use google to search for other answers

Custom Search

More Threads

• cannot find table 0
• How to get the current Item "Data Error" in bindingSource?
• How to Drag&Drop datagrid row between two MDI child forms
• Having Trouble Updating a Access Database From a DataGridView Using TableAdaptor.(C#)
• How to set Value of a DataGridViewComboBoxCell
• Master with multiple detail records displayed in form view
• disappear a contol from group box using click event
• RELATED TABLES QUESTION
• Quick DatagridView Question
• Masked DataGridViewEditControl