Windows Develop Bookmark and Share   
 index > Windows Forms General > Update picturebox
 

Update picturebox

Hi,

I have been asked to update a picturebox (pbox1) based on a label including an itemno (lblItemNo).

How can this be done. The steps should be.

1. Create a variable for Itemno
2.Add a handler for lblitemno and the variable
3.Create an event handler
4. load the picture based from value in step2
5. Show picture on screen as loaded

Hope you can help.
  • Moved byTaylorMichaelLMVPWednesday, September 30, 2009 2:16 PMWinForms related (From:Visual C# General)
  •  
Scorgi  Wednesday, September 30, 2009 11:17 AM
Use Label's Text Changed event and load the picture with labels text value.

Do you need a variable?
Tamer Oz  Wednesday, September 30, 2009 1:11 PM
How is the label getting updated?
Matt Wise  Wednesday, September 30, 2009 12:51 PM
Use Label's Text Changed event and load the picture with labels text value.

Do you need a variable?
Tamer Oz  Wednesday, September 30, 2009 1:11 PM

You can use google to search for other answers

Custom Search

More Threads

• Autofilter in Datagridview
• tabcontrol resizing
• WebBrowser control with modal window
• exception: Failed to convert parameter value from a String to a DateTime.
• Suppresskeypress issue on LinkLabels and Buttons
• Comunication between two forms
• setting FontStyles to a CheckBox
• Default Font Size for Labels
• I have a beginner problem - textCahnged event
• Comparing tables and then adding the differences from winform application