With LUV and Regards Sanjay Kumar Dixit" id="ctl00_m_m_i_ctl00_gr_ctl11_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3996497" / My Dear Veena Ji, I have tried as you suggested. But Whenever I click directly to Backup Time (Min) Text Box through Mouse it is throwing Error. Of course, as to the actual reason why you are getting an error seems a little bizarre but I'm sure one of my esteemed colleagues will have an answer. With LUV and Regards Sanjay Kumar Dixit In Which Event you are getting error...? Regards Veena" id="ctl00_m_m_i_ctl00_gr_ctl13_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3997970" / I am sending Link to down load that project. By pressing Enter Key and Tab Key it is working fine. But Whenever I click directly to Backup Time (Min) Text Box through Mouse it is throwing Error. txt100ENGFNTSZ You could also simply set this value in the properties of the form at design time if you want and remove the offending line of code. Initialize Component() 'Add any initialization after the Initialize Component() call End Sub 'Form overrides dispose to clean up the component list.

So, Instead of writing the code in Got Focus event, write the Code in " Enter" Event.....

Right End Sub Regards Veena Changing the Style of textbox (like Align/Colors) Forces VB. Left End Sub Private Sub Text Box1_Got Focus(By Val sender As Object, By Val e As System.

Select All() End Sub Private Sub Text Box1_Lost Focus(By Val sender As Object, By Val e As System. Of course, as to the actual reason why you are getting an error seems a little bizarre but I'm sure one of my esteemed colleagues will have an answer. But without this how to solve this problem if you have time please tell me.

if I click on few text boxes through mouse it gives an error. txt100ENGFNTSZ You could also simply set this value in the properties of the form at design time if you want and remove the offending line of code.

Regards Veena" id="ctl00_m_m_i_ctl00_gr_ctl23_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="4002133" / Hi, OK, Checked.... Visible = False In Design Time Set txt New's Align =Left and txt100BAKUPDUR's Align Right Keep only these event procedures : Private Sub txt100BAKUPDUR_Got Focus(By Val sender As Object, By Val e As System.

Top Tab Index of both are : 14 and it works perfect... Add One More Text Box To the Form say txt New Make txt New. Button 'Required by the Windows Form Designer Private components As System. Container 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. Private Sub Initialize Component() State = New System. For the need of validation process we made two events (Item Validating, Item Validated) that are firing when the Validating and Validated events occur in the editors. Every thing is fine while working through keyboard. if I click on few text boxes through mouse it gives an error. In your case, the line that seems to stop your code, is highlighted as The same applies to some of the other controls e.g. Visible = False End Sub Private Sub txt New_Got Focus(By Val sender As Object, By Val e As System. Right End Sub Regards Veena > I*t is better if you work on VALIDATE EVENT instead of lost focus because > mostly it create problem in * >" id="ctl00_m_m_i_ctl00_gr_ctl09_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3976136" / I have tried as you suggested. Every thing is fine while working through keyboard. HTH Martin" id="ctl00_m_m_i_ctl00_gr_ctl17_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="4000528" / Hi Sanju, One of the main advantages of using an IDE, is having the ability to interactively interrogate the various objects (forms, control values, variables) of your application. Select All() End Sub Private Sub txt New_Lost Focus(By Val sender As Object, By Val e As System. Rad Data Entry provides three different ways to show to the users that some editors do not match to validation criteria – Validation label, Error provider and Validation Panel.