Hi jyakomorossi,
I checked your sample code and also included the directives you are using.
Two corrections I have made and Its working perfectly fine.
1. Make sure you write syntax of Namespaces and Directives correctly as below.
Option Explicit Off
Option Strict On
Imports System
Imports System.Configuration
Imports System.Data
Imports System.Data.SqlClient
Imports System.Windows.Forms
2. I changed the access modifier to Protected.
Why are you using Private? It needs to be acessible for event handling. So either you use Public or Protected.
Hope this will help you.