Solved

USING MASKING TEXTBOX

Posted on 2004-10-15
2
239 Views
Last Modified: 2010-04-17
I use sometimes the 'simple' TEXTbox for input due to the need for control
the sofar total input chararter by character.
sample

Private Sub txtnewUser_Change()
trim (txtnewUser.Text)
txtnewUser.Text = UCase(txtnewUser.Text) '  force uppercase
if  txtnewUser.Text ="JACK" then
....  ' do somthing
end if

if instr(txtnewUser.Text) ="!" then
'print not allowed
end  if

End Sub

Entry has to be sometimes left or rigth aligned.
Now here's my problem,
   Continuing typing in box always start e.g. at left if left alligned,
   I want to continue at cursorlocation after last character, because
   now after every character it starts at left position shifting other
  characters to right,  only way is to place cursor every time at right
 

0
Comment
Question by:BIAPRO
2 Comments
 
LVL 7

Accepted Solution

by:
jacobhoover earned 250 total points
ID: 12323232
I'm confused about your alignment issue, and I am assuming you are using VB6 but you could try:
txtnewUser.SelLength = 0
txtnewUser.SelStart = Len(txtnewUser.Text)

To put the cursor at the end of the input.


If this is not the fianl result you are looking for please rephrase your question.
0
 

Author Comment

by:BIAPRO
ID: 12323387
works, thanks
Jack
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

821 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