vb.net - Text box cursor manipulation -


I was fortunate to find a solution to my problem, so I have come up with a new one.

My program is multi-tab calculator, and for the user input I am making a goal for full keyboard navigation. I have my boxes in a grid, and the keypointe for every box is all that allows the user to navigate between the boxes to hide the arrow keys, using the arrow.

I have a problem in finding out, if I input something in the box and make a mistake (during the runtime), then I have to either equalize the number of X and type it again Or change the cursor to a single character in the situation I'm looking at the need to use the left and right arrows to navigate the cursor position in the text box, but want to keep some navigation functions I

So I have some questions based on this. / P>

Is there any way to detect the position of the cursor in a text control? If so, then the cursor position is called numeric? That is, at the beginning of the position = 0 box, position between first and second characters = 1 and further.

I am trying to write a sub which will count the characters in a string, decide whether the cursor is to the left or to the left of the left string and then allow the appropriate step in the next box when it Ho.

  Private sub counters () 'I do not know about the syntax yet, I am currently researching this, so please' me, I try to fulfill my concept I am doing Integer txtBoxCount as dim txtBoxCount = txtBox1.Text.count '??? TxtBoxPos txtBox1.cursor.position.get '??? as integer In the end, sub-sub-sub-sub-sub-on () counters () if E. KData = keys Then E. Like I'm typing in appressknpress = true, I realize that I might need to change it, but for now it is suppressing the beep if txtBoxPos & gt; 0 Then move 'cursor to the box' ??? Otherwise if txtBoxPos = 0 then the next box is liquid.focus () end if the end ends if sub  

anyhow, I am researching it, and finding my own answer Will work for Just hope that there may be any such thing as possible, if any light is possible, and if I am on the right track, can anybody put light?

Be humble, I teach myself only for a few weeks.

I'm not sure how I got control over the form, but in the text box There is a property that tells you where the carat is, and it is called.

Despite the name, it also works even when any text is not really selected

Oh, and you set the length of the string There is no need to write a method: Just use the property since you are new, so remember that the string null (or nothing VB is in colloquial) So, you have to check whether the length is before use. Generally, text will not be property null , but you want to keep this in mind.


Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -