![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Can anybody tell me how can I select (highlight) text in textbox after 3 seconds..?
I stuck with this: When I finish with barcode scanning, the number is write in textbox. When I click again on button for scanning the previous number is not disappear (in the same textbox), so scanner write after previous number like: 5310048000210 - First Scanning 3360372058861 - Second scanning Result = 53100480002103360372058861 I want after First Scanning to focus textbox with highlight, and then when I push button again the previous text will be disappear in the same textbox and will be come new sanned number. Any idea, or solution ..? |
|
|||
|
I try to use Textbox1.Text="" after 3 seconds, but data in another textboxes automatically disappear when Textbox1.Text="", and I cannot see the customer data after Textbox1.Text=""...
Here (like LOOP) I use Barcode.dll from Erel. Is there a way (with some command) : On Next Form Action (Textbox1.Text="") - or something like that...? Thanks |
|
|||
![]() I create new textbox Out of loop and after timer_tick I fill all other textboxes in form ![]() My Code: Sub Form4_Show Sbarkod.Text = "" Sbarcode.New1("Form4","Sbarkod") 'this is Obj. Barcode.dll TextTrial.Focus 'this is Invisible textbox Timer3.Enabled=true Timer3.Interval=200 'less then 1 second (2 millisecond) End Sub Sub Sbarcode_TextChanged SCavt.Text = "" SNameF.Text = "" SNameL.Text = "" SGender.Text = "" SAddress.Text = "" SCity.Text = "" For i = 0 To Table1.RowCount - 1 'Table1 is table where I load CSV database If Table1.Cell("Barcode",i) = Sbarkod.Text Then SCavt.Text = Table1.Cell("CAVT Number",i) SNameF.Text = Table1.Cell("First Name",i) SNameL.Text = Table1.Cell("Last Name",i) SGender.Text = Table1.Cell("Gender",i) SAddress.Text = Table1.Cell("Address",i) SCity.Text = Table1.Cell("City",i) End If Next End Sub Sub Timer3_Tick Sbarkod.Text = TextTrial.Text 'Here I fill data into Sbarkod textbox TextTrial.Focus TextTrial.Text = "" Timer3.Enabled=false End Sub Sub TextTrial_KeyPress (key) 'after this click Timer3 is enabled and read data from CSV again Timer3.Enabled=true End Sub Thanks |
|
|||
|
Timer Tick rules!
I am using a timer tick to perform a "myTextBox_Click(chr(13))" 100ms after the app receives a navigatingURL from a clicked on hyperlink using agrahams great webbrowser.dll web control. Something similar to... Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TextBox Focus | cdeane | Questions & Help Needed | 6 | 10-16-2008 04:17 PM |
| focus on TextBox desired | mircome | Questions & Help Needed | 2 | 10-01-2008 03:20 PM |
| Formating text in textbox | Dr. Feelgood | Questions & Help Needed | 1 | 03-06-2008 06:21 AM |
| listbox focus select using textbox | Dr. Feelgood | Questions & Help Needed | 2 | 02-15-2008 01:25 AM |
| Blank textbox.text value | Cableguy | Questions & Help Needed | 5 | 06-30-2007 09:58 PM |