Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Windows Forms (Not ASP) DataGrid or ListView Hyperlink ???

Windows Forms (Not ASP) DataGrid or ListView Hyperlink ???

Scheduled Pinned Locked Moved C#
csharpvisual-studiowinformshelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gman44
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • G gman44

      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

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      kvnsdr wrote: ListView1.SelectedItems(0).Text ListView1.SelectedItems[0].Text top secret xacc-ide 0.0.1

      G 1 Reply Last reply
      0
      • L leppie

        kvnsdr wrote: ListView1.SelectedItems(0).Text ListView1.SelectedItems[0].Text top secret xacc-ide 0.0.1

        G Offline
        G Offline
        gman44
        wrote on last edited by
        #3

        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....

        L N 2 Replies Last reply
        0
        • G gman44

          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....

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • G gman44

            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....

            N Offline
            N Offline
            Nick Parker
            wrote on last edited by
            #5

            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 the Graphics object to draw the line. - Nick Parker
            My Blog | My Articles

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups