PC Review


Reply
Thread Tools Rate Thread

Borderstyle for Label and LinkLabel

 
 
Alain Dekker
Guest
Posts: n/a
 
      11th Mar 2011
Am I missing something, but do these controls have a "Borderstyle" proeprty
so I can draw a box around them? If not, is this possible for these
controls?

Thanks,
Alain


 
Reply With Quote
 
 
 
 
Alain Dekker
Guest
Posts: n/a
 
      11th Mar 2011
Yes, you're right. Should have been more specific. I'm new to C# and .NET.
Am still mainly a Delphi and VC++ man.

I'm guessing Forms? The control is derived from
System.Windows.Forms.Linklabel. There isn't a BorderStyle property. I've
even tried putting the label on top of a panel (derived from
System.Windows.Forms.Panel) and couldn't find a Borderstyle there either.

Whats WPF? I'm developing for a Windows CE 5.0 device running the Compact
Framework .NET v2.0.

Regards,
Alain


"Peter Duniho" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On 3/10/11 4:31 PM, Alain Dekker wrote:
>> Am I missing something, but do these controls have a "Borderstyle"
>> proeprty
>> so I can draw a box around them? If not, is this possible for these
>> controls?

>
> Are you talking about Forms or WPF? I'm guessing WPF, but you really
> ought to be specific.
>
> If WPF, then look at the BorderBrush and BorderThickness properties. You
> should be able to use styles to apply pre-defined values to those, as with
> other display elements.
>
> Pete



 
Reply With Quote
 
Alain Dekker
Guest
Posts: n/a
 
      11th Mar 2011
Ok, thanks for the reply.

"Peter Duniho" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On 3/11/11 3:25 AM, Alain Dekker wrote:
>> Yes, you're right. Should have been more specific. I'm new to C# and
>> .NET.
>> Am still mainly a Delphi and VC++ man.
>>
>> I'm guessing Forms? The control is derived from
>> System.Windows.Forms.Linklabel.

>
> Yes, that would be Forms.
>
>> There isn't a BorderStyle property. I've
>> even tried putting the label on top of a panel (derived from
>> System.Windows.Forms.Panel) and couldn't find a Borderstyle there either.

>
> It's there on the desktop version of .NET. I'm not familiar with CF, but
> I would guess that this is one of the class members that is not supported
> on CF.
>
>> Whats WPF? I'm developing for a Windows CE 5.0 device running the Compact
>> Framework .NET v2.0.

>
> You can safely ignore WPF then. I don't think it's available on any of
> the mobile platforms; the closest you can come is Silverlight, on Windows
> 7 Mobile, I think.
>
> Pete



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make label and linklabel controls to accept multilined text at design time? M Shafaat Microsoft C# .NET 4 28th Feb 2005 11:16 PM
Borderstyle for Label? Neil Kiser Microsoft Dot NET Compact Framework 1 18th Sep 2004 01:09 PM
Re: label BorderStyle property unavailable in VB.net??? Herfried K. Wagner [MVP] Microsoft VB .NET 1 13th Aug 2004 08:47 AM
Re: label BorderStyle property unavailable in VB.net??? Jeff Johnson [MVP: VB] Microsoft VB .NET 0 12th Aug 2004 04:34 PM
Re: label BorderStyle property unavailable in VB.net??? Cor Ligthert Microsoft VB .NET 0 12th Aug 2004 04:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:15 PM.