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. Visual Basic
  4. LinkLabels and Data Source

LinkLabels and Data Source

Scheduled Pinned Locked Moved Visual Basic
questionmcphelp
8 Posts 2 Posters 1 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.
  • K Offline
    K Offline
    KrisnNala
    wrote on last edited by
    #1

    Hi Folks Please excuse me if this is an incredible ingnorant question. :confused: I've got 2 linklabels, Next and Previous. I'm using these to move through the images saved in my dataset. However, looking up Linklabels in help you should be able to do something like LinkLabel1.Link.LinkData in order to set the Data Source. However I'm not getting this option after Link. All I'm getting is Link.Equals or Link.ReferenceEquals? Can anyone help please? Thanks alot :-D

    Kris MCP

    W 1 Reply Last reply
    0
    • K KrisnNala

      Hi Folks Please excuse me if this is an incredible ingnorant question. :confused: I've got 2 linklabels, Next and Previous. I'm using these to move through the images saved in my dataset. However, looking up Linklabels in help you should be able to do something like LinkLabel1.Link.LinkData in order to set the Data Source. However I'm not getting this option after Link. All I'm getting is Link.Equals or Link.ReferenceEquals? Can anyone help please? Thanks alot :-D

      Kris MCP

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Sounds like you're using the class instead of the instance. The instance has Links collection and every item in that collection has LinkData property. LinkLabel.Link is a type used in Links collection.

      The need to optimize rises from a bad design. My articles[^]

      K 1 Reply Last reply
      0
      • W Wendelius

        Sounds like you're using the class instead of the instance. The instance has Links collection and every item in that collection has LinkData property. LinkLabel.Link is a type used in Links collection.

        The need to optimize rises from a bad design. My articles[^]

        K Offline
        K Offline
        KrisnNala
        wrote on last edited by
        #3

        Hi Mike Sorry for the delay had one of those days! Thanks for replying but I'm now totally confused. :confused: I've read your article and also read up on Instances withing VS 2005. However, there seems to be numerous types, ie, constructor, Property, Method etc. Please can you offer a little more advise. Yes, I am newly qualified hence being lost. Thanks alot Kris :-D

        Kris MCP

        W 1 Reply Last reply
        0
        • K KrisnNala

          Hi Mike Sorry for the delay had one of those days! Thanks for replying but I'm now totally confused. :confused: I've read your article and also read up on Instances withing VS 2005. However, there seems to be numerous types, ie, constructor, Property, Method etc. Please can you offer a little more advise. Yes, I am newly qualified hence being lost. Thanks alot Kris :-D

          Kris MCP

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          No proble, What I meant is that you possibly don't have an instance for the linklabel when you try to write the method call. That's why you would see only static methods. Try for example something like this:

          LinkLabel linkLabel = new LinkLabel()
          linkLabel.Text = "Some text"
          linkLabel.Links(0).LinkData = "Some data"
          linkLabel.Links.Add(0,4, "www.somewhere.xyz")

          Mika P.s. The article link is just part of my signature so it wasn't actually meant to help in your case. Just *advertising*. Glad you read it though :)

          The need to optimize rises from a bad design. My articles[^]

          K 1 Reply Last reply
          0
          • W Wendelius

            No proble, What I meant is that you possibly don't have an instance for the linklabel when you try to write the method call. That's why you would see only static methods. Try for example something like this:

            LinkLabel linkLabel = new LinkLabel()
            linkLabel.Text = "Some text"
            linkLabel.Links(0).LinkData = "Some data"
            linkLabel.Links.Add(0,4, "www.somewhere.xyz")

            Mika P.s. The article link is just part of my signature so it wasn't actually meant to help in your case. Just *advertising*. Glad you read it though :)

            The need to optimize rises from a bad design. My articles[^]

            K Offline
            K Offline
            KrisnNala
            wrote on last edited by
            #5

            Hi Mike Thanks alot for getting back to me. I've managed to work it by moving through the BindingSource once the linklabel's Click event is raised. Whilst we're advertising I'd love some comments on my website, from an expert of cause. Thanks again for your help :-D www.ktechprogramming.co.uk Kris

            Kris MCP

            W 1 Reply Last reply
            0
            • K KrisnNala

              Hi Mike Thanks alot for getting back to me. I've managed to work it by moving through the BindingSource once the linklabel's Click event is raised. Whilst we're advertising I'd love some comments on my website, from an expert of cause. Thanks again for your help :-D www.ktechprogramming.co.uk Kris

              Kris MCP

              W Offline
              W Offline
              Wendelius
              wrote on last edited by
              #6

              No problem, I had a look at your website and it was very nice. I must admit that I really know nothing about horses but I love to ride. The only thing that comes in mind is that if you could have permission from your clients to add their names to your website it could have a positive effect for you and your client (add a little story about each client providing some special info they are proud of). Mika

              The need to optimize rises from a bad design. My articles[^]

              K 1 Reply Last reply
              0
              • W Wendelius

                No problem, I had a look at your website and it was very nice. I must admit that I really know nothing about horses but I love to ride. The only thing that comes in mind is that if you could have permission from your clients to add their names to your website it could have a positive effect for you and your client (add a little story about each client providing some special info they are proud of). Mika

                The need to optimize rises from a bad design. My articles[^]

                K Offline
                K Offline
                KrisnNala
                wrote on last edited by
                #7

                Thanks alot for that! Good idea. Kris :-D

                Kris MCP

                www.ktechprogramming.co.uk

                W 1 Reply Last reply
                0
                • K KrisnNala

                  Thanks alot for that! Good idea. Kris :-D

                  Kris MCP

                  www.ktechprogramming.co.uk

                  W Offline
                  W Offline
                  Wendelius
                  wrote on last edited by
                  #8

                  No problem :), Mika

                  The need to optimize rises from a bad design. 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