PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework multiline checkbox

Reply

multiline checkbox

 
Thread Tools Rate Thread
Old 03-10-2005, 11:39 PM   #1
Mike
Guest
 
Posts: n/a
Default multiline checkbox


Is there any way to get checkbox in .NET CF which has more than one
line of text?

I've tried inserting "\r\n" where I want the new line to start, which
shows up fine in the Designer, but the second line is blank when the
code runs on the emulator or the device.

Thanks,
Mike

  Reply With Quote
Old 04-10-2005, 02:21 AM   #2
Darren Shaffer
Guest
 
Posts: n/a
Default Re: multiline checkbox

sadly, no. you can create a custom control to exhibit this behavior
or, just position a label below the text of the checkbox (or radiobutton)
and set the text of both at runtime.

--
Darren Shaffer
..NET Compact Framework MVP
Principal Architect
Connected Innovation
www.connectedinnovation.com


"Mike" <seattlevine@yahoo.com> wrote in message
news:1128379155.440053.313220@g49g2000cwa.googlegroups.com...
> Is there any way to get checkbox in .NET CF which has more than one
> line of text?
>
> I've tried inserting "\r\n" where I want the new line to start, which
> shows up fine in the Designer, but the second line is blank when the
> code runs on the emulator or the device.
>
> Thanks,
> Mike
>



  Reply With Quote
Old 04-10-2005, 02:50 PM   #3
=?Utf-8?B?QWxleCBZYWtobmluIFtNVlBd?=
Guest
 
Posts: n/a
Default RE: multiline checkbox

SDF includes the CheckBoxEx control that will wrap the long text.

http://www.opennetcf.org/sdf

--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org


"Mike" wrote:

> Is there any way to get checkbox in .NET CF which has more than one
> line of text?
>
> I've tried inserting "\r\n" where I want the new line to start, which
> shows up fine in the Designer, but the second line is blank when the
> code runs on the emulator or the device.
>
> Thanks,
> Mike
>
>

  Reply With Quote
Old 05-10-2005, 08:12 PM   #4
Mike
Guest
 
Posts: n/a
Default Re: multiline checkbox

The label below the text box works OK, but when the checkbox is the
selected control, only the top line is highlighted. Instead, I'm going
to use a checkbox with no text, and place a multiline label next to it.
In this case, only the checkbox itself is highlighted, but that looks
better to me.

Thanks for the lead.

-Mike

  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off