|
-
Sep 15th, 2000, 10:40 PM
#1
Thread Starter
Frenzied Member
Err.. huh?
You want to swap the pipe character '|' with the underscore character'_' in a text box?
Harry.
"From one thing, know ten thousand things."
-
Sep 15th, 2000, 10:41 PM
#2
Frenzied Member
NXSupport - Your one-stop source for computer help
-
Sep 15th, 2000, 10:59 PM
#3
Thread Starter
Frenzied Member
Text1.Text = Replace(Text1.Text, "|", "_")
Harry.
"From one thing, know ten thousand things."
-
Sep 15th, 2000, 11:05 PM
#4
he means he wan'ts to replace the Carrot(blinking I)
with a blinking underscore.... like in DOS
-
Sep 15th, 2000, 11:09 PM
#5
Thread Starter
Frenzied Member
Ohhh I seeeee, the ibeam Sorry, I didn't know what you were on about, I thought you meant the pipe character.
No idea mate
Harry.
"From one thing, know ten thousand things."
-
Sep 16th, 2000, 03:27 AM
#6
Frenzied Member
Try using the WinAPI caret functions to change it. Dan Appleman's book Visual Basic Programmer's Guide to the Win32 API is a great reference for creating your own carets.
-
Sep 16th, 2000, 10:22 AM
#7
Use the CreateCaret() function. Add the following code to a Form with a PictureBox and a TextBox. In the PictureBox, load a picture of how you want the caret to look.
Code:
Private Declare Function CreateCaret Lib "user32" (ByVal hwnd As Long, ByVal hBitmap As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Private Declare Function ShowCaret Lib "user32" (ByVal hwnd As Long) As Long
Private Sub Text1_GotFocus()
CreateCaret Text1.hwnd, Picture1.Picture, 0, 0
ShowCaret Text1.hwnd
End Sub
-
Sep 16th, 2000, 05:23 PM
#8
Frenzied Member
that works perfectly, but it appears on TOP of the text, how do I get it to appear at the bottom of the text
NXSupport - Your one-stop source for computer help
-
Sep 16th, 2000, 11:59 PM
#9
Frenzied Member
Try turning the picture for the caret upside down.
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
|