In the future, type "Sub", then press the Space key and then the Tab key (you'll be prompted to press the Tab key by the IDE) and you will get a list of classes exposing Events. Choose the class you want (in this case, it would have been Form) and you'll see the Events exposed. Then you just have to fill in the event name prefix.
In the future, type "Sub", then press the Space key and then the Tab key (you'll be prompted to press the Tab key by the IDE) and you will get a list of classes exposing Events. Choose the class you want (in this case, it would have been Form) and you'll see the Events exposed. Then you just have to fill in the event name prefix.
but it is interesting, that the MouseClicked-Event will not be exposed in that way...from the internal designer, right mouseklick->generate it will be exposed...is this a bug?
That's correct. The _MouseClicked() event doesn't belong to the Form, it belongs to the Form's RootPane member, of type AnchorPane. You'd want to type "Sub", then Space, then Tab and then select "AnchorPane" from the auto-complete menu. There, you'll see the _MouseClicked() event exposed.
This is indeed a bit confusing. As @Roycefer wrote the MouseClicked event belongs to the root pane. The root pane event name is the same as the form's event name.