Solved

Check box (ASCI)

Posted on 2014-02-19
9
290 Views
Last Modified: 2014-02-22
I have a textbox and i want to fill it with a check. How?

for example

txtBox.text = however i get the checkbox
0
Comment
Question by:vbnetcoder
  • 4
  • 3
  • 2
9 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39871621
Use a checkbox and not a textbox.
0
 

Author Comment

by:vbnetcoder
ID: 39871633
Long story but i need a textbox....
0
 
LVL 40

Expert Comment

by:Kyle Abrahams
ID: 39871650
you could do

"[  ]"  as empty  and "[ X ] " as checked
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 58

Expert Comment

by:Gary
ID: 39871654
Then use the ASCII for a tick e.g.

<input type="text" value="&#10003;">
0
 

Author Comment

by:vbnetcoder
ID: 39871658
so

txtbox1.text = <input type="text" value="&#10003;">
0
 
LVL 58

Expert Comment

by:Gary
ID: 39871676
txtbox1.text = "&#10003;"

If you want a slightly bolder version then

txtbox1.text = "&#10004;"
0
 

Author Comment

by:vbnetcoder
ID: 39873521
Would't
txtbox1.text = "&#10004;"

ust set the value in the textbox to "&#10004;"  

?
0
 
LVL 40

Accepted Solution

by:
Kyle Abrahams earned 500 total points
ID: 39873632
txtbox1.text = ChrW(&H2713)
0
 

Author Closing Comment

by:vbnetcoder
ID: 39879348
ty
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question