user88823
user88823

Reputation: 21

How to get the code editor to automatically select a particular control

In VB, on a form's designer, I used to be able to double-click a control (say a button) and it would bring up the code with the middle dropdown box (towards top) automatically selecting the control (button) for me. Now it just stays stuck at 'Formx' unless I manually change it to the control I'm working with (button). I did not see a setting for this issue. It's killing my productivity!

Thank you in advance.

VS/VB 2022 (64-bit, version 17.03)

Upvotes: 2

Views: 210

Answers (1)

MatSnow
MatSnow

Reputation: 7517

This seems to be a bug in VS 2022.
Created a test-project and got the same behavior with VS 2022 (17.0.4) while it worked with VS 2019.

So it would be best to report the problem via Visual Studio Feedback:
Help -> Send Feedback -> Report a Problem...

Edit

Thanks to @djv for the additional tests and thus eliciting further details and also for opening a ticket!

One can now vote here: https://developercommunity.visualstudio.com/t/Missing-functionality-with-Event-Handler/1618211

Upvotes: 1

Related Questions