|
-
Dec 28th, 2001, 05:10 AM
#1
Thread Starter
Junior Member
Draw ARC ( )
hello
how i can draw the arc like the char "( ) "
that the left arc move to lfet when in write in bettwen them
and when i press ENTER then the lengh of arc have to incerse
to write someing else in bettwen the arc
with thanks
-
Dec 28th, 2001, 10:45 AM
#2
Thread Starter
Junior Member
is it easy to do these ??
can any one give me hint or the code of thats
-
Dec 28th, 2001, 11:30 AM
#3
Oh. I think I get what you want.
You want to have text that is entered make the parenthesis character move. Let's try using a textbox.
Make a Textbox with right justification
Code:
Text1.Alignment=vbRightJustify
Text1.Text= "( )" '- 3 characters to start with start with:
' [open paren] space [close paren]
Text1.SelStart = 2 ' makes the space the selected starting point
Text1.SelLength = 1 ' one character only
With each KeyPress event for the TextBox
You have to update the text, reset the Text1.SelStart, Text1.SelLength properties.
This is only a start - I don't have VB on this machine, I can't really do much more without experimenting. There are lots of people who post here that can take this a little further.
There are problems. The user could backspace (delete) a parenthesis character, could cut from the box, or paste into the box, for instance. You have to handle all of these issues.
-
Dec 28th, 2001, 02:14 PM
#4
Thread Starter
Junior Member
Thanks for replay
what you are saying that good and its work
but i dont want these
what i want to do these in picture box
becuse the "()" when i wright bettwen or inside that ( ) and i press Enter i want the arc Lengh to be increse and able me to right a multi line in between the brackt
with thanks
-
Dec 28th, 2001, 02:40 PM
#5
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
|