473,385 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

PictureBox Click event

I have 5 PictureBoxes
I have 5 Labels

I know how to find out which Picture box was clicked using the sender property

When i know picturebox1 was clicked how do i call the corresponding label

label(number).text = "correct label number?"
Nov 18 '10 #1
0 847

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Bsiang Tan | last post by:
Hi all, I have a few PictureBox in my windows form... The PictureBox mouse event likle MouseLeave work fine.. But the problem occured when I minimize my form into System Tray, and then...
1
by: Typpo | last post by:
Hi all, I'm not sure where to start. Using a PictureBox's click event: private void pb_Click(object sender, EventArgs e) { // ??? } ....how would I retrieve the coordinates of the mouse...
2
by: Frederik | last post by:
Hi all, Situation: Windows Forms, DataGrid, CSharp, WinXP Pro, VS 2003 How can I add a click event to an Image? The Imageis in a DataGrid, drawn with the 'DrawImage' mehtod. The Image does...
6
by: Michael Johnson Jr. | last post by:
I am trying to handle a button click event, which updates a web control table with data. The button is dynamically created in the table itself. When I call updateTable() in the Page_Load the new...
5
by: J McD | last post by:
Hi I have a DataGrid with an ImageButton column. When I click on an imagebutton I get a postback but it doesn't run the OnImgBtnClick method. I can actually comment out the line where I add this...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
2
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for...
0
by: Demetri | last post by:
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it...
3
by: Cerebrus99 | last post by:
Hi all, The Click event handler of a button control can be invoked using the Button.PerformClick method. But I have a Picturebox, whose click event handler I want to invoke. RaiseEvent doesn't...
3
by: active | last post by:
I'm in the PictureBox click event and I need to know which button was pressed. I'm sure I once saw a property in Form or SystemInformation or someplace that system wide that enabled one to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.