Auto-generation of control events is not placing code correctly.... #37339
Labels
Area-IDE
Concept-Continuous Improvement
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
Need Design Review
The end user experience design needs to be reviewed and approved.
Projects
Milestone
Visual Studio 2019, editing Visual Basic.Net code.
While working on a windows form with a single button control on the form. double-Clicking the button in design mode causes the "Click" event code to be autogenerated, presumably placed at the end of the form's Class (just before the "End Class" statement.
This usually works. However, if your class contains a #Region/#EndRegion at the end of the Class, AND that #Region contains a sub method, the auto-generated event code Opens the last region and inserts the event code between the EndSub and #End Regiion statements. The auto-generated code SHOULD be inserted just before the End Class statement by default, and not open any existing #Regions.
Please see my attachments for example code.
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/589218/auto-generation-of-control-events-is-not-placing-c.html
VSTS ticketId: 902148
These are the original issue comments:
Visual Studio Feedback System on 5/30/2019, 07:27 PM (48 days ago):
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
These are the original issue solutions:
(no solutions)
The text was updated successfully, but these errors were encountered: