.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> Others >> Post New QuestionBookmark and Share Subscribe to Forum

How to Validate Command Button Click Event in Vb 6.0

Posted By: Sushil     Posted Date: April 17, 2010    Points:2   Category :Others
Hello Sir I want to validate at a once Click on Vb Command Button ,when User First Time Clicks on Print Button then it will print that report and after that when user click second time on that button it shows msg u can Print Report user has already get this Print ,How i can Validate in Vb 6.0 with MS Access 2003.

Author: Sagar Pardeshi             
Posted Date: April 17, 2010     Points: 5   

Option Explicit

Private Sub Command1_Click()
MsgBox "Here"
End Sub

Private Sub Textbox1_GotFocus()
Command1.Default = TextBox1Valid
End Sub
Private Sub Textbox1_Change()
Command1.Default = TextBox1Valid
End Sub

Private Sub TextBox1_Validate(Cancel As Boolean)
If Not TextBox1Valid Then
Cancel = True
MsgBox ("Please enter at least 3 characters.")
End If
End Sub

Private Function TextBox1Valid() As Boolean
TextBox1Valid = Len(Textbox1.Text) >= 3
End Function

Author: Sushil             
Posted Date: April 17, 2010     Points: 5   

I want to Print Report(Original Leaving Certificate )at Once only,when User Clicks Second Time on Print Button then User will Get Message Already Printed Leaving Certificate get Duplicate Leaving Certificate.
How I can do it.that i want to store Button Clicks Events if evenr =1 then print Orignal Report else Dulicate report.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend