Thanks again! It works now!
Also for others: I had the handler of the Load event hard coded (design time):
Private Sub Main_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Adding the handler in runtime solved the problem:
Public Sub New()
InitializeComponent()
AddHandler Me.Load, AddressOf Main_Load
End Sub
Private Sub Main_Load(sender As Object, e As EventArgs)
.....
Regards,
Matthijs