?
Solved

USING MASKING TEXTBOX

Posted on 2004-10-15
2
Medium Priority
?
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
jacobhoover earned 1000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This is about my first experience with programming Arduino.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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 …
Introduction to Processes
Suggested Courses

741 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