Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sun, 20 Jul 2008 21:22:22 -0600,    group: microsoft.public.dotnet.framework.windowsforms.controls        back       


LinkLabel - a couple of questions   
Hi;

A couple of questions on the LinkLabel control

1) If I don't set the height, it starts off as 13 but after I set the
text & link areas, sometimes (not always) it changes to 18. Why?

2) Is there a way to set the click event and/or link behavior for each
area?

thanks - dave

david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
date: Sun, 20 Jul 2008 21:22:22 -0600   author:   David Thielen am

RE: LinkLabel - a couple of questions   
Hi Dave,

Question 1:

When we set the LinkArea property of a LinkLabel control, a part of the 
text of the LinkLabel control is treated as a link. LinkLabel re-calculates 
the area that needs to contain all text within it if the AutoSize property 
of the LinkLabel is set to true. 

The calculated areas may be different in the cases that the LinkArea 
property is set and that the LinkArea property is not set. And this 
behavior is by design.

Question 2:

You can add multiple links to a LinkLabel control by calling the Add method 
on the LinkLabel.Links property. 

Each hyperlink displayed in the LinkLabel control is an instance of the 
LinkLabel.Link class. The LinkLabel.Link class defines display information, 
state, and location of the hyperlink. In addition, the LinkData property of 
the LinkLabel.Link class enables you to associate information, such as a 
URL to display, with the hyperlink. 

When a user clicks a hyperlink within the control, the LinkClicked event is 
raised, and the LinkLabel.Link object representing the hyperlink that was 
clicked is passed as part of the LinkLabelLinkClickedEventArgs object that 
is passed as a parameter to the event handler.

As for link behavior, it's only available on the LinkLabel. That's to say, 
we cannot set a link behavior for each link within a LinkLabel.

For more information on the LinkLabel class, see the following MSDN 
document:
http://msdn.microsoft.com/en-us/library/system.windows.forms.linklabel.aspx

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to 
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Mon, 21 Jul 2008 08:57:03 GMT   author:   (Linda Liu[MSFT])

Re: LinkLabel - a couple of questions   
Hi;

Is there any way to determine the maximum height a LinkLabel may size
itself to? I need to programatically lay out controls based on this.

thanks - dave


On Mon, 21 Jul 2008 08:57:03 GMT, v-lliu@online.microsoft.com (Linda
Liu[MSFT]) wrote:

>Hi Dave,
>
>Question 1:
>
>When we set the LinkArea property of a LinkLabel control, a part of the 
>text of the LinkLabel control is treated as a link. LinkLabel re-calculates 
>the area that needs to contain all text within it if the AutoSize property 
>of the LinkLabel is set to true. 


david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
date: Mon, 21 Jul 2008 14:45:53 -0600   author:   David Thielen am

Re: LinkLabel - a couple of questions   
Hi Dave,

Thank you for your response!

I am afraid there's no way to determine the maximum height a LinkLabel may 
resize itself to. But you can get the height of a LinkLabel through its 
Height property.

If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
date: Tue, 22 Jul 2008 01:25:51 GMT   author:   (Linda Liu[MSFT])

Re: LinkLabel - a couple of questions   
Hi Dave,

I'm reviewing this post in the newsgroup and would like to know the status 
of this issue.

If you have any question, please feel free to let me know.

Thank you for using our MSDN Managed Newsgroup Support Service!

Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
date: Fri, 25 Jul 2008 01:40:10 GMT   author:   (Linda Liu[MSFT])

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us