Winforms doubleclick on buttons does not open method
Posted: Wed May 31, 2023 9:24 pm
With X# 2.16: I open the designer showing a Winforms form. The methods behind the buttons are in a program with the same name as the [Design].
1 In one program, when I double click on whatever button with an existing method, the code program is selected and the cursor is always at the top of the program. If the cursor was already anywhere else in that program, it remains there.
2 When I add a new button (say 'test') and double click, it creates the method and also selects this method when double clicked later:
(Also note that the bad formatting of the inserted method with way to many tabs is still unchanged)
3 In other programs it may work. That means that sometimes, the correct method is selected (the cursor goes to the first line after the method name), but not always; it then behaves as written in 1.
4 There is no difference between these programs in terms of naming convention or design, or between the way the buttons & methods behind it are defined in the programs where some double clicks work and some aren't.
I would say it works or doesn't work a bit at random. Would be great if this can be solved.
Dick
1 In one program, when I double click on whatever button with an existing method, the code program is selected and the cursor is always at the top of the program. If the cursor was already anywhere else in that program, it remains there.
2 When I add a new button (say 'test') and double click, it creates the method and also selects this method when double clicked later:
Code: Select all
Private Method test_Click(sender As System.Object, e As System.EventArgs) As Void Strict
Return
End Method
3 In other programs it may work. That means that sometimes, the correct method is selected (the cursor goes to the first line after the method name), but not always; it then behaves as written in 1.
4 There is no difference between these programs in terms of naming convention or design, or between the way the buttons & methods behind it are defined in the programs where some double clicks work and some aren't.
I would say it works or doesn't work a bit at random. Would be great if this can be solved.
Dick