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
Printable View
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
is it easy to do these ??
can any one give me hint or the code of thats
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
With each KeyPress event for the TextBoxCode: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
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.
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
:( :(
Here's a thought.
You can use a image control and put the arc in it. Then, you could move it or resize it to your will.
Is that what you want?
<NOTE: Excuse my habit of not posting long code until I am sure it is what the thread starter wanted>