MaxRaceSoftware
Programmer
i'm creating a very simple Form that has 1 TextBox that the user inputs info , then the program calculates data and displays it in Label1.Caption ...but everytime after the user Inputs into TextBox and presses ENTER key , the
TextBox text is not HighLighted/Selected ...you just can't enter data into the TextBox without it being added to end of the previous data .
just discovered a VB6 TextBox SelLength problem that seems common in all versions, even Visual Basic for Dos 1.0
when only using just 1 TextBox and 1 Label on a Form
i can't make the TextBox have selected text with
Text1.SelStart = 0
Text1.SelLength = Len(Text1)
--------------------------------
the only way i can make this work is to add another
TextBox --> Text2.Text , and hide it on the Form by making both the Back and Fore Colors the same as the Form
and without a BorderStyle
then while the User is inputting text into Text1 , then presses ENTER key ..i send FOCUS to Text2 , which then immediatetly sends FOCUS back to Text1, which then HIGHLIGHTS or SELECTS the Entire Text like its supposed to
Question= How can i achieve this effect without having to use a hidden Text2 Control ??????
Thanks
MaxRace Software - Larry Meaux
ET_Analyst for DragRacers
Support Israel - Genesis 12:3
TextBox text is not HighLighted/Selected ...you just can't enter data into the TextBox without it being added to end of the previous data .
just discovered a VB6 TextBox SelLength problem that seems common in all versions, even Visual Basic for Dos 1.0
when only using just 1 TextBox and 1 Label on a Form
i can't make the TextBox have selected text with
Text1.SelStart = 0
Text1.SelLength = Len(Text1)
--------------------------------
the only way i can make this work is to add another
TextBox --> Text2.Text , and hide it on the Form by making both the Back and Fore Colors the same as the Form
and without a BorderStyle
then while the User is inputting text into Text1 , then presses ENTER key ..i send FOCUS to Text2 , which then immediatetly sends FOCUS back to Text1, which then HIGHLIGHTS or SELECTS the Entire Text like its supposed to
Question= How can i achieve this effect without having to use a hidden Text2 Control ??????
Thanks
MaxRace Software - Larry Meaux
ET_Analyst for DragRacers
Support Israel - Genesis 12:3