Windows Forms (Not ASP) DataGrid or ListView Hyperlink ???
-
Does anyone know if its possible to hyperlink a ListView column in windows forms, not ASP??? I've found many articles on ASP, however I cannot find anything on Windows forms........ I would like to click on an IP in datacolumn that opens a web page (whois) at arin.net like: http://ws.arin.net/cgi-bin/whois.pl?queryinput=120.210.120.100 I tried this code in the Listview click event handler System.Diagnostics.Process.Start( "http://ws.arin.net/cgi-bin/whois.pl?queryinput= " & ListView1.SelectedItems(0).Text) However, I receive the following error message when compiling in VS.NET C# and 'SelectedItems' is underlined........... 'System.Windows.Forms.ListView.SelectedItems' denotes a 'property' where a 'method' was expected Helpppppppppppppppppppppp
-
Does anyone know if its possible to hyperlink a ListView column in windows forms, not ASP??? I've found many articles on ASP, however I cannot find anything on Windows forms........ I would like to click on an IP in datacolumn that opens a web page (whois) at arin.net like: http://ws.arin.net/cgi-bin/whois.pl?queryinput=120.210.120.100 I tried this code in the Listview click event handler System.Diagnostics.Process.Start( "http://ws.arin.net/cgi-bin/whois.pl?queryinput= " & ListView1.SelectedItems(0).Text) However, I receive the following error message when compiling in VS.NET C# and 'SelectedItems' is underlined........... 'System.Windows.Forms.ListView.SelectedItems' denotes a 'property' where a 'method' was expected Helpppppppppppppppppppppp
kvnsdr wrote: ListView1.SelectedItems(0).Text
ListView1.SelectedItems[0].Text
top secret xacc-ide 0.0.1 -
kvnsdr wrote: ListView1.SelectedItems(0).Text
ListView1.SelectedItems[0].Text
top secret xacc-ide 0.0.1That corrected the error and the hyperlink to the web site 'lookup' works great, thanks........ Q. How do I get an 'Underline' to appear in a listView colum?? As it is, any value in the column will hyperlink accordingly, however a user doesn't have a visual indicator that the values are actual hyperlinks....
-
That corrected the error and the hyperlink to the web site 'lookup' works great, thanks........ Q. How do I get an 'Underline' to appear in a listView colum?? As it is, any value in the column will hyperlink accordingly, however a user doesn't have a visual indicator that the values are actual hyperlinks....
kvnsdr wrote: How do I get an 'Underline' to appear in a listView colum?? I think the hottrack property mite help, or HoverSelect (there is not much consistancy in SWF controls..., just look at MSDN) top secret xacc-ide 0.0.1
-
That corrected the error and the hyperlink to the web site 'lookup' works great, thanks........ Q. How do I get an 'Underline' to appear in a listView colum?? As it is, any value in the column will hyperlink accordingly, however a user doesn't have a visual indicator that the values are actual hyperlinks....
kvnsdr wrote: As it is, any value in the column will hyperlink accordingly, however a user doesn't have a visual indicator that the values are actual hyperlinks.... You can override the
OnPaint
method and use theGraphics
object to draw the line. - Nick Parker
My Blog | My Articles