It is best to double-click the button of the layout designer to automatically add the code that defines the variables.
Private Button2 As Button
Double-click the tab title of the code page to automatically switch to the layout designer, extract the name "Layout", or create a layout file with the same name as the Activity by default.
ctrl+double-click to implement a function similar to VB6's double-click code writing event. Automatically add code: Sub Button1_Click, the cursor is positioned here.