• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

VB.net: Calling a btnClick

Good Afternoon

Experts:

I am in need of help with my VB.net progrm.  I have a login screen that uses an xml file to load connection information to the screen.  If all 4 textboxes have data in them when the Login Form is loading, I need to have the Login button automatically be executed after displaying the Login screeen for a few seconds.

I cannot figure out how to do this.  

btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click

With that being my LoginClick, what do I have to put for sender and e to auto run the Login_Click automatically.

Thanks,
jimb099999
0
Jimbo99999
Asked:
Jimbo99999
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Use:

    btnLogin.PerformClick()
0
 
Jimbo99999Author Commented:
Idle_Mind:

You have to be kidding me...I had no idea that was available.  Works just as I needed it to.

Appreciate the help,
jimbo99999
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Hehe...you can't expect to know EVERYTHING in the .Net framework...it's just too darned big!

I'm still learning new stuff all the time...  =)
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now