Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Bullets into a textbox (http://www.velocityreviews.com/forums/t683020-bullets-into-a-textbox.html)

tshad 05-07-2009 11:17 PM

Bullets into a textbox
 
I am trying to display 10 bullets in my textbox similar to the way Password
mode does it.

Is there a way to do this?

Thanks,

Tom



tshad 05-08-2009 02:46 AM

Re: Bullets into a textbox
 

"Mark Rae [MVP]" <mark@markNOSPAMrae.net> wrote in message
news:OBycL%232zJHA.6004@TK2MSFTNGP02.phx.gbl...
> "tshad" <toms@pdsa.com> wrote in message
> news:eKh1Jo2zJHA.1432@TK2MSFTNGP02.phx.gbl...
>
>> I am trying to display 10 bullets in my textbox similar to the way
>> Password mode does it.
>>
>> Is there a way to do this?

>
> Set it to Password mode.
>

I don't want to set it to Password mode. I just want to put the bullets in
the field. At the moment, I am using asterisks and would rather use the
bullets that the password mode uses.

Thanks,

Tom

>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net




Alexey Smirnov 05-08-2009 07:10 AM

Re: Bullets into a textbox
 
On May 8, 4:46*am, "tshad" <t...@pdsa.com> wrote:
> "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote in messagenews:OBycL%232zJHA.6004@TK2MSFTNGP02.phx.gb l...> "tshad" <t...@pdsa.com> wrote in message
> >news:eKh1Jo2zJHA.1432@TK2MSFTNGP02.phx.gbl...

>
> >> I am trying to display 10 bullets in my textbox similar to the way
> >> Password mode does it.

>
> >> Is there a way to do this?

>
> > Set it to Password mode.

>
> I don't want to set it to Password mode. *I just want to put the bullets in
> the field. *At the moment, I am using asterisks and would rather use the
> bullets that the password mode uses.
>
> Thanks,
>
> Tom
>
>
>
> > --
> > Mark Rae
> > ASP.NET MVP
> >http://www.markrae.net


TextBox1.Text = String.Empty.PadLeft(10, '\u25cf');

tshad 05-08-2009 07:27 AM

Re: Bullets into a textbox
 

"Alexey Smirnov" <alexey.smirnov@gmail.com> wrote in message
news:229851aa-2af8-4734-8249-62681a53f674@v4g2000vba.googlegroups.com...
On May 8, 4:46 am, "tshad" <t...@pdsa.com> wrote:
> "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote in
> messagenews:OBycL%232zJHA.6004@TK2MSFTNGP02.phx.gb l...> "tshad"
> <t...@pdsa.com> wrote in message
> >news:eKh1Jo2zJHA.1432@TK2MSFTNGP02.phx.gbl...

>
> >> I am trying to display 10 bullets in my textbox similar to the way
> >> Password mode does it.

>
> >> Is there a way to do this?

>
> > Set it to Password mode.

>
> I don't want to set it to Password mode. I just want to put the bullets in
> the field. At the moment, I am using asterisks and would rather use the
> bullets that the password mode uses.
>
> Thanks,
>
> Tom
>
>
>
> > --
> > Mark Rae
> > ASP.NET MVP
> >http://www.markrae.net


> TextBox1.Text = String.Empty.PadLeft(10, '\u25cf');


That works pretty well. Looks almost like a bullet (black circle) but a
little off.

How would it test this? ie:

if (TextBox.Text == "?")
then do something

Thanks,

Tom



Alexey Smirnov 05-08-2009 07:42 AM

Re: Bullets into a textbox
 
On May 8, 9:27*am, "tshad" <t...@pdsa.com> wrote:
> "Alexey Smirnov" <alexey.smir...@gmail.com> wrote in message
>
> news:229851aa-2af8-4734-8249-62681a53f674@v4g2000vba.googlegroups.com...
> On May 8, 4:46 am, "tshad" <t...@pdsa.com> wrote:
>
>
>
> > "Mark Rae [MVP]" <m...@markNOSPAMrae.net> wrote in
> > messagenews:OBycL%232zJHA.6004@TK2MSFTNGP02.phx.gb l...> "tshad"
> > <t...@pdsa.com> wrote in message
> > >news:eKh1Jo2zJHA.1432@TK2MSFTNGP02.phx.gbl...

>
> > >> I am trying to display 10 bullets in my textbox similar to the way
> > >> Password mode does it.

>
> > >> Is there a way to do this?

>
> > > Set it to Password mode.

>
> > I don't want to set it to Password mode. I just want to put the bullets in
> > the field. At the moment, I am using asterisks and would rather use the
> > bullets that the password mode uses.

>
> > Thanks,

>
> > Tom

>
> > > --
> > > Mark Rae
> > > ASP.NET MVP
> > >http://www.markrae.net

> > TextBox1.Text = String.Empty.PadLeft(10, '\u25cf');

>
> That works pretty well. *Looks almost like a bullet (black circle) but a
> little off.
>
> How would it test this? *ie:
>
> if (TextBox.Text == "?")
> * *then do something
>
> Thanks,
>
> Tom


I like it more than '\u2022' (real bullet)

to test use

if (TextBox1.Text == String.Empty.PadLeft(10, '\u25cf'))
then something

tshad 05-11-2009 04:37 PM

Re: Bullets into a textbox
 

"Mark Rae [MVP]" <mark@markNOSPAMrae.net> wrote in message
news:O61QOw7zJHA.6004@TK2MSFTNGP02.phx.gbl...
> "tshad" <toms@pdsa.com> wrote in message
> news:%23ejj1c4zJHA.5528@TK2MSFTNGP03.phx.gbl...
>
>>>> I am trying to display 10 bullets in my textbox similar to the way
>>>> Password mode does it.
>>>>
>>>> Is there a way to do this?
>>>
>>> Set it to Password mode.
>>>

>> I don't want to set it to Password mode. I just want to put the bullets
>> in the field.

>
> What's the difference...?
>
>

The difference is that the client wants the user to see bullets in the field
when displaying, but when typing into the field, he wants to be able to see
actual text being typed in. Then when the page is redisplayed it would show
bullets again. And the behavior is based on permissions.

Tom
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net





All times are GMT. The time now is 10:50 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.