I'm beginning an app in VB with the IDE of Visual Studio 2019 in Window 11 and I get an error message that never had appeared to me. It is in Form1.
When I execute , I get the link woth the BD but also I get the following error message:
"The clause Handles requires a variable withEvents definite of the container type o in one of its base types."
Wwhat can I do? Thank you.
VB.NET:
Imports System.Data.OleDb
Public Class Form1
Private conexion As New OleDbConnection("Provider=Microsoft,ACE.OleDb.12.0.; Data Source=C:\users\PC GAMING\Documents\inversiones.accdb")
Private Sub BtnConectar_Click(sender As Object, e As EventArgs) Handles BtnConectar.Click
"The clause Handles requires a variable withEvents definite of the container type o in one of its base types."
Wwhat can I do? Thank you.