Solved

USING MASKING TEXTBOX

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filename to be appended with DateTimeof Download 3 73
Help Required 3 131
Create .bat File 16 91
MySQL programmer starter 25 62
This article will show, step by step, how to integrate R code into a R Sweave document
This is about my first experience with programming Arduino.
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

738 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