473,811 Members | 2,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

4 New Member
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 1020

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

Similar topics

11
12803
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 possible to get one referance of an item on form ?
0
1049
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: System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(Main_Form::typeid)); the intermediate resources file is apparently not needed (I know because I
1
2873
by: James | last post by:
Is it possible that I can have a c# window service run under different display name?
2
3630
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){ document.form.paragraph_1.readOnly=!document.form.paragraph_1.readOnly; } When clicking on a link which calls this function, it will toggle a paragraph's readOnly ability. However I'm hardcoding in paragraph_1 as the name of the textfield. I want to be able to pass the id of the...
11
9568
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 a display name
7
3830
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 database search that I am unable to figure out how to access. (The search is implemented in Php/MySQL.) The user enters search values for: name, address1, city, .... etc., ..... and for each of these they also select whether the search should...
6
18749
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 code was broken. Is there any way to specify a form by name or some other work around for this situation?
9
2704
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 simply submitted via Email, i would like the subject as aboe (enXXXX) where XXXX is a number which increases by 1 each time the form is submitted. I'm guessing it would simply reference an external file and update each time it's submitted, is this...
5
5013
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 Id is sometimes firstname.lastname1.lastname2@ and others just firstname.lastname1@ I would like to generate the display name exactly like the email eg
1
1831
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 archive table, the form display three set of archive info (RDR, LBM, GSM). RDR= consultant personal info LBM= location info GSM= business info
0
9728
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9205
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.