LinkLabels and Data Source
-
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
-
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
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[^]
-
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[^]
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
-
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
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[^]
-
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[^]
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
-
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
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[^]
-
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[^]
-