Solved

USING MASKING TEXTBOX

Posted on 2004-10-15
2
233 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

773 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