473,659 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A question about the Click event for ListBox

Hello!

If you drag a ListBox into a windowform and then right click on this ListBox
and then chose property.
When you have the properties up click on the flash symbol for seeing all the
events for this ListBox.

The property page where you can see all the events I call property event
page.

Now to my question why isn't there any item for the Click event to select in
the property event page.
Because the ListBox has this type of event.
If the instance of the class ListBox is called listBox1 and you write
listBox. note I have a dot(.) after the object listBox1 you will see that
there exist an event called Click.

Can somebody explain this for me?

//Tony
May 5 '06 #1
1 1881
Hi Tony,

I am using VS 2005 IDE. When I click on the properties, i am getting
the Click event in the event list.
Reshma
"tony" <jo************ *****@telia.com > wrote in message
news:ek******** ******@TK2MSFTN GP04.phx.gbl...
Hello!

If you drag a ListBox into a windowform and then right click on this
ListBox
and then chose property.
When you have the properties up click on the flash symbol for seeing all
the
events for this ListBox.

The property page where you can see all the events I call property event
page.

Now to my question why isn't there any item for the Click event to select
in
the property event page.
Because the ListBox has this type of event.
If the instance of the class ListBox is called listBox1 and you write
listBox. note I have a dot(.) after the object listBox1 you will see that
there exist an event called Click.

Can somebody explain this for me?

//Tony

May 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5268
by: Bernardo | last post by:
Hi, Hi have a Listbox whith some values but I want to select the first line and execute the routine on_click. I selected allready the list value, but how can Y force the click event? Thanks for your help Bernardo
6
30003
by: Dan Bass | last post by:
If you look at explorer, right clicking on a file, first selects the file, then throws up the context menu relating to that selection. With a Windows ListBox control and a simple context menu, the default behaviour seems to display the context menu on the listbox, but there is no selection. Now I know that explorer's using a listview, and that the context menu acts differently if you click on open space (no selection), but can I...
2
3386
by: Al Murphy | last post by:
Hi, I've written a very basic windows application with a pushbutton and a listbox. When the user clicks on the button it should display a message in the listbox. Sounds simple right? Well mine isn't working. No message appears. Can anyone help please? I'm at my wits end... ***** BEGIN CODE:
6
6175
by: Steve | last post by:
Hi, I open up a webform (vb.net) and populate a listbox control on the Page load event. If I click on (select) and item from the listbox I want to write the value of the selected item to a label control. Nothing happens. But when I click a button (which contains same code to write to label) I get the value of the selected item in the Label.
3
3203
by: Rosanne | last post by:
Is there a way to clear the SelectedIndex of a listbox when the browser's back button is clicked? I have a page that contains a server side list box with AutoPostBack = True. When the user clicks an item in the listbox, they are redirected to an information page based on their selection. On this information page, if the user clicks the browser's back button they are taken back to the first page with the item in the listbox still...
2
1678
by: Niels Jensen | last post by:
Is there a way to select an item ina listbox with the right click event? basically I want a user to be able to rightclick an item which will select the item and then bring up the context menu which has a delete option in it. As it stands if I select an item and then rightclick a seperate item selecting delete will remove the selected item instead of the one that was right clicked Cheers Niels
2
2938
by: Sidney | last post by:
I tried to databind the listbox in vb.net with dataset I wrote some code in the listbox selectedindexchanged event, however, whenever the programme goes to the selectedindexchanged, it hanged and I need to closed the whole system it appear this problem also when i click a check box which the the CheckedChanged event in the check box need refreshing the dataset with another SQL code Thanks a lot~
3
5131
by: Randy Harris | last post by:
With a multiple column listbox, I'd like to be able to change the sort by allowing the user to click on a column. Is there a practical way detect in which column the user clicked? I know this could be done with a datasheet subform, but I was hoping to be able to use the listbox. Any suggestions? --
5
23879
by: buddydasari | last post by:
Hi all I wrote a listbox onclick event.On a click i want to get the selected row details but the listbox.selected(i) always returns false ,it returns true only in double click event.Are they any other events on which i could do this.I want to populate a textbox based on the row selected from the listbox.Its working as i want when i add the code in a double click event but it doesn't make much sense doing it on a double click event. ...
0
8428
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
8339
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8751
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
8535
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
7360
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...
0
5650
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();...
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.