Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Selectable non-edittable text?

 
 
Old 01-10-2006   #1 (permalink)
RyanLeeSchneider


 
 

Selectable non-edittable text?


What control should I use to contain selectaable, copyable but read only text?

Basically I have a couple lines of databound text that I want the user to
be able to select and copy, but not edit, e.g.:

Username: Ryan
Member Of: Developers

I've tried <TextFlow> with <Section> and <TextBlock>, and can display it
properly but can't find a way to make the text selectable.

Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt if at
all possible.

My System SpecsSystem Spec
Old 01-10-2006   #2 (permalink)
Drew Marsh


 
 

Re: Selectable non-edittable text?

RyanLeeSchneider wrote:

> What control should I use to contain selectaable, copyable but read
> only text?
>
> Basically I have a couple lines of databound text that I want the
> user to be able to select and copy, but not edit, e.g.:
>
> Username: Ryan
> Member Of: Developers
> I've tried <TextFlow> with <Section> and <TextBlock>, and can display
> it properly but can't find a way to make the text selectable.
>
> Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
> if at all possible.


Did you try a TextBox with IsReadOnly="true"?

HTH,
Drew

___________________________________
Drew Marsh
Chief Software Architect
Mimeo.com, Inc. - http://www.mimeo.com
Weblog - http://blog.hackedbrain.com/


My System SpecsSystem Spec
Old 01-10-2006   #3 (permalink)
RyanLeeSchneider


 
 

Re: Selectable non-edittable text?


Sorry, I meant <TextBox> not <TextEdit>. Like I said, it can't render rich
text so it a far less than deal choice.

"Drew Marsh" wrote:

> RyanLeeSchneider wrote:
>
> > What control should I use to contain selectaable, copyable but read
> > only text?
> >
> > Basically I have a couple lines of databound text that I want the
> > user to be able to select and copy, but not edit, e.g.:
> >
> > Username: Ryan
> > Member Of: Developers
> > I've tried <TextFlow> with <Section> and <TextBlock>, and can display
> > it properly but can't find a way to make the text selectable.
> >
> > Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
> > if at all possible.

>
> Did you try a TextBox with IsReadOnly="true"?
>
> HTH,
> Drew
>
> ___________________________________
> Drew Marsh
> Chief Software Architect
> Mimeo.com, Inc. - http://www.mimeo.com
> Weblog - http://blog.hackedbrain.com/
>
>
>

My System SpecsSystem Spec
Old 01-11-2006   #4 (permalink)
Dennis Cheng [MSFT]


 
 

Re: Selectable non-edittable text?

Have you tried RichTextBox?


"RyanLeeSchneider" <RyanLeeSchneider@discussions.microsoft.com> wrote in
message news:65880132-C37B-4B41-9683-80A92AAB4561@microsoft.com...
>
> Sorry, I meant <TextBox> not <TextEdit>. Like I said, it can't render
> rich
> text so it a far less than deal choice.
>
> "Drew Marsh" wrote:
>
>> RyanLeeSchneider wrote:
>>
>> > What control should I use to contain selectaable, copyable but read
>> > only text?
>> >
>> > Basically I have a couple lines of databound text that I want the
>> > user to be able to select and copy, but not edit, e.g.:
>> >
>> > Username: Ryan
>> > Member Of: Developers
>> > I've tried <TextFlow> with <Section> and <TextBlock>, and can display
>> > it properly but can't find a way to make the text selectable.
>> >
>> > Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
>> > if at all possible.

>>
>> Did you try a TextBox with IsReadOnly="true"?
>>
>> HTH,
>> Drew
>>
>> ___________________________________
>> Drew Marsh
>> Chief Software Architect
>> Mimeo.com, Inc. - http://www.mimeo.com
>> Weblog - http://blog.hackedbrain.com/
>>
>>
>>



My System SpecsSystem Spec
Old 01-11-2006   #5 (permalink)
RyanLeeSchneider


 
 

Re: Selectable non-edittable text?


No, but that's exactly what I was looking for, can't believe I missed that.

Thanks,

Ryan

"Dennis Cheng [MSFT]" wrote:

> Have you tried RichTextBox?
>
>
> "RyanLeeSchneider" <RyanLeeSchneider@discussions.microsoft.com> wrote in
> message news:65880132-C37B-4B41-9683-80A92AAB4561@microsoft.com...
> >
> > Sorry, I meant <TextBox> not <TextEdit>. Like I said, it can't render
> > rich
> > text so it a far less than deal choice.
> >
> > "Drew Marsh" wrote:
> >
> >> RyanLeeSchneider wrote:
> >>
> >> > What control should I use to contain selectaable, copyable but read
> >> > only text?
> >> >
> >> > Basically I have a couple lines of databound text that I want the
> >> > user to be able to select and copy, but not edit, e.g.:
> >> >
> >> > Username: Ryan
> >> > Member Of: Developers
> >> > I've tried <TextFlow> with <Section> and <TextBlock>, and can display
> >> > it properly but can't find a way to make the text selectable.
> >> >
> >> > Do I have to use a read-only <TextEdit>? I'd like to use Rich tesxt
> >> > if at all possible.
> >>
> >> Did you try a TextBox with IsReadOnly="true"?
> >>
> >> HTH,
> >> Drew
> >>
> >> ___________________________________
> >> Drew Marsh
> >> Chief Software Architect
> >> Mimeo.com, Inc. - http://www.mimeo.com
> >> Weblog - http://blog.hackedbrain.com/
> >>
> >>
> >>

>
>
>

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Read selectable text in any vista Window .NET General
Creative Live Cam Optia AF microphone not selectable with WLM2009 Live Messenger
missing the language in the selectable list Vista General
selectable language is missing in the list Vista General
Dreamscene not selectable anymore Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46