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. URL's

URL's

Scheduled Pinned Locked Moved C#
help
10 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
    Gregory Bryant
    wrote on last edited by
    #1

    I have a Program that displays a List in a textBox such as Items Items Items is there way that I can make the list in the textBox Click able so that it leads you to a Page depending on which item you click with out showing such as. http://Site/items http://Site/items ^_^ thanks for any help.

    H 1 Reply Last reply
    0
    • G Gregory Bryant

      I have a Program that displays a List in a textBox such as Items Items Items is there way that I can make the list in the textBox Click able so that it leads you to a Page depending on which item you click with out showing such as. http://Site/items http://Site/items ^_^ thanks for any help.

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      Does it have to be a TextBox? This would be fairly trivial if you were using a listbox.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      G 1 Reply Last reply
      0
      • H Henry Minute

        Does it have to be a TextBox? This would be fairly trivial if you were using a listbox.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        G Offline
        G Offline
        Gregory Bryant
        wrote on last edited by
        #3

        ListBox would be Fine, still don't know how myself so help?

        Richard Andrew x64R 1 Reply Last reply
        0
        • G Gregory Bryant

          ListBox would be Fine, still don't know how myself so help?

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          Create a handler for the Click event, then check the SelectedItems.Item property to determine which item was clicked.

          G 1 Reply Last reply
          0
          • Richard Andrew x64R Richard Andrew x64

            Create a handler for the Click event, then check the SelectedItems.Item property to determine which item was clicked.

            G Offline
            G Offline
            Gregory Bryant
            wrote on last edited by
            #5

            ok I have all the Code but exactly how to create a Click Handler private void listBox1_Click(object sender, ??? e) { String item = listBox1.SelectedItem.ToString(); System.Diagnostics.Process.Start("http:site" + item); } what exactly should I have there?

            Richard Andrew x64R 1 Reply Last reply
            0
            • G Gregory Bryant

              ok I have all the Code but exactly how to create a Click Handler private void listBox1_Click(object sender, ??? e) { String item = listBox1.SelectedItem.ToString(); System.Diagnostics.Process.Start("http:site" + item); } what exactly should I have there?

              Richard Andrew x64R Offline
              Richard Andrew x64R Offline
              Richard Andrew x64
              wrote on last edited by
              #6

              The easiest way to create the click handler is the following: 1. Highlight the listbox control 2. In the properties window, choose the "events" view ( the little lightning bolt ) 3. Find the click event in the list of events 4. Double-click the click event in the list, and it will create a method stub for you to put your code into

              G 2 Replies Last reply
              0
              • Richard Andrew x64R Richard Andrew x64

                The easiest way to create the click handler is the following: 1. Highlight the listbox control 2. In the properties window, choose the "events" view ( the little lightning bolt ) 3. Find the click event in the list of events 4. Double-click the click event in the list, and it will create a method stub for you to put your code into

                G Offline
                G Offline
                Gregory Bryant
                wrote on last edited by
                #7

                yeah thanks I found that after manually figuring out how to :P ^_^ thanks for all the help.

                1 Reply Last reply
                0
                • Richard Andrew x64R Richard Andrew x64

                  The easiest way to create the click handler is the following: 1. Highlight the listbox control 2. In the properties window, choose the "events" view ( the little lightning bolt ) 3. Find the click event in the list of events 4. Double-click the click event in the list, and it will create a method stub for you to put your code into

                  G Offline
                  G Offline
                  Gregory Bryant
                  wrote on last edited by
                  #8

                  now I have to ask once you set DataSource is there anyway to full release it? Additional information: Items collection cannot be modified when the DataSource property is set. Because the program has a reset feature and this is the error I get when trying to clear the data from the both the listBox and the original list

                  Richard Andrew x64R 1 Reply Last reply
                  0
                  • G Gregory Bryant

                    now I have to ask once you set DataSource is there anyway to full release it? Additional information: Items collection cannot be modified when the DataSource property is set. Because the program has a reset feature and this is the error I get when trying to clear the data from the both the listBox and the original list

                    Richard Andrew x64R Offline
                    Richard Andrew x64R Offline
                    Richard Andrew x64
                    wrote on last edited by
                    #9

                    Hmm. You're trying to delete an item from the listbox and not from the database?

                    G 1 Reply Last reply
                    0
                    • Richard Andrew x64R Richard Andrew x64

                      Hmm. You're trying to delete an item from the listbox and not from the database?

                      G Offline
                      G Offline
                      Gregory Bryant
                      wrote on last edited by
                      #10

                      never mind I used an unbound list ^_^ thanks for your time though.

                      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