473,320 Members | 2,071 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,320 software developers and data experts.

How to code the label in form to display the name of each picturebox?

To All,

I have already coded a quantity form to show when a picture is clicked on. I have also created a dataset called 'Menudataset1' to retrieve information from my 'Menu' table and 'Dish Name' column.

I am now trying to code the 'label1' of the quantity form to change to the name of each picturebox when it is clicked on. I have already named each picturebox by their dish name.

Code so far:

Expand|Select|Wrap|Line Numbers
  1. Private Sub quantity_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  2.         OleDbDataAdapter1.Fill(Menudataset1)
  3.         dishname.DataBindings.Add("Text", Menudataset1, "Menu.Dish Name")
  4.     End Sub
  5.  
Thanks for your help.
Feb 11 '11 #1
0 1006

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

Similar topics

11
by: Ahmet AKGUN | last post by:
Hi; is it possible to open one form in .net platform that we have its name in string ? I have string sFormName = "frmCustomer"; and I must automatically open Customer form. or is it...
0
by: Greg | last post by:
The intermediate resources file has name: <Root Namespace>.<form .resx file name>.resources (e.g. App1.Form1.resources) By the time this standard form code executes: ...
1
by: James | last post by:
Is it possible that I can have a c# window service run under different display name?
2
by: MidnightSun | last post by:
I'm having trouble trying to access textfield through javascript by using a string of it name to reference the object. For example function toggle(num){ ...
11
by: mike_solomon | last post by:
Hi I have a link on a website that if you click opens up outlook <button onClick="location.href='mailto:a@b.com?subject=test subject'" > Select</button> Works fine But I want to include...
7
by: Chuck Anderson | last post by:
I'm pretty much a JavaScript novice. I'm good at learning by example and changing those examples to suit my needs. That said .... ..... I have some select fields in a form I created for a...
6
by: Eric | last post by:
Hello, I have code similar to: if (beforeToday(document.forms.sStartDate.value)) that was broken when an include file had a form added to it. Since my form was no longer the 0th form, my...
9
by: plumba | last post by:
Hi again... Does anyone out there know if there is a way of making a form subject unique each time it's sent?? <form method="post" action="mailto:email@work.com?subject=EnXXXX" The form is...
5
by: Yas | last post by:
Hello, I have the following table with 4 columns.... firstname, lastname1, lastname2, EMAIL Table has user names and email, I would like to generate a 5th column called DisplayName. The email...
1
by: ewart strain | last post by:
Hello all, I have a form thats tied to my access database and all seems to work well except for one small thing. Info on the code: whenever a consultant contract ends they get moved to an...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.