Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Cursor position 1

Status
Not open for further replies.

Costefran

Technical User
Jan 2, 2008
197
GB
Can anyone help with he following

I have a control on my form with format set to

@@@@@@-@@@@@@@@@@

and an input mask set to

>&&&&&&\-&&&&&&&&&&

My problem is when the user clicks on the control ("Named Others_Cost_Codes") the cursor stays wherever the user clicked but I would like the cursor to go to the start of the line. E.g the left - most position

I have tried

Me.Others_Cost_Codes.SelStart=0

but this doesn't seem to work

Many thanks

 
No Sweat MissingLinq,

I really didn't mean to dis your response in any way. It just didn't work for me. I really appreciate anybody who takes the time to respond to one of these posts. Even more so when, as you say, I "hijacked" another thread.

But, since you bring it up. The original post doesn't specify what kind of control Costefran was using. In his follow up post he says:

"I should have also poited [sic] out that it is a combobox"

Please don't take this negatively. I sincerely appreciate your input. I learned a lot from the thread and encourage you to continue responding to other threads.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top