473,322 Members | 1,566 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,322 software developers and data experts.

Link in listbox??

hi everyone
how can i show links in a list view or list box??
or show items in list box that be tender to Click event?
Nov 16 '05 #1
2 3002
I once used a MouseUp event to get the click like effect.

And (i dont know if its going to be useful for u or not but) if you want to
get a highlight effect when mouse hovers above the listbox items you can use
this :

private void listBox1_MouseMove(object sender,
System.Windows.Forms.MouseEventArgs e)
{
int index = listBox1.IndexFromPoint( e.X , e.Y );
if ( index >=0 && listBox1.SelectedIndex!=index )
{
listBox1.SelectedIndex =index;

}
Point p= this.PointToClient( new Point( e.X,e.Y ));
//label1.Text= "x:"+p.X +",y:"+p.Y ; //just a debugging thing
}
Ab.
hope that helps.

"perspolis" <re*****@hotmail.com> wrote in message
news:eA**************@TK2MSFTNGP12.phx.gbl...
hi everyone
how can i show links in a list view or list box??
or show items in list box that be tender to Click event?

Nov 16 '05 #2
You have to subcribe to the Click or DoubleClick event of the ListBox and do
Process.Start(myUrl) if the event is fired.

"perspolis" <re*****@hotmail.com> schrieb im Newsbeitrag
news:eA**************@TK2MSFTNGP12.phx.gbl...
hi everyone
how can i show links in a list view or list box??
or show items in list box that be tender to Click event?

Nov 16 '05 #3

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

Similar topics

4
by: Crystal | last post by:
Ok, I know this sounds weird, but it's really bugging me. I have a few list boxes on my form (basic pick a month, year, state stuff) and you can only choose one value. I need to be able to run a...
17
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
1
by: John Doe | last post by:
I have a PHP page that generates a list box with several options in it. I would like to have a "view" link next to the list box. When the user changes the contents of the list box, I would like...
5
by: Rolan | last post by:
I have tried many iterations of constructing an expanded string link criteria for a list box selection, but have not been successful. The List Box uses a Totals Select Query that has a CustID,...
2
by: Jake | last post by:
Hello, I have a web page that has a listbox. I want to populate the listbox based upon the dataset that is returned from a webservice. The data set returns two columns of data. The first column...
6
by: Dominic Isaia | last post by:
I am trying to simulate a multicolumn listbox. I need a way to link two listboxes together so that if you scroll one listbox the other scrolls with it. Any help will be appreciated. Thanks,...
0
by: member | last post by:
Hi, Good day.i need some help from you guys. I'm using vb.net and sql database to build my file. The purpose of this file is to view news based on deparment. Im using listbox and radiobutton...
1
by: Greta | last post by:
Hi there< I need help with making a listbox that in the drop down (On click) will open a product description page URL link in a new window...I need a working sample that I can cut and paste the...
7
by: ApexData | last post by:
Hello I currently Link the FE/BE using the LinkTables Option and the Linked Table Manager. Any time I need to move the BE to another location, I have to go through this process over again. I...
3
by: vbrookie | last post by:
I've recently created a form link from a listbox with proper link criteria. However, I had to change a form's property to 'tune' the slow reactions from linked tables over the network (the OnLoad...
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...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.