|
-
May 27th, 2001, 03:38 PM
#1
Thread Starter
Lively Member
-
May 27th, 2001, 03:40 PM
#2
_______
<?>
If the textbox is in your app..
then Text1.setfocus
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
May 27th, 2001, 03:42 PM
#3
Thread Starter
Lively Member
no to change the cursor position within the text box
Private Sub VBForums_Newthread()
If Thread.Question = Hard then
MSGBox "No one can reply..."
Else If Thread.Question=Easy then
Print "It's very easy.."
MsgBox "God helps those who helps themselves."
End If
End sub
-
May 27th, 2001, 03:43 PM
#4
To move the | cursor, use the SelStart property.
Code:
Text1.SelStart = 0 'moves | cursor to first position in text1
-
May 27th, 2001, 03:46 PM
#5
Thread Starter
Lively Member
isn't there any api or any other function.
Private Sub VBForums_Newthread()
If Thread.Question = Hard then
MSGBox "No one can reply..."
Else If Thread.Question=Easy then
Print "It's very easy.."
MsgBox "God helps those who helps themselves."
End If
End sub
-
May 27th, 2001, 04:04 PM
#6
Send the EM_SETSEL message.
-
May 27th, 2001, 04:12 PM
#7
Try the SetCaretPos API function.
Code:
Private Declare Function SetCaretPos Lib "user32" _
(ByVal x As Long, ByVal y As Long) As Long
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|