Skip to content

Commit d60f684

Browse files
authored
Apply suggestions from code review
1 parent 09285fc commit d60f684

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/visual-basic/misc/bc30738.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,26 @@ ms.assetid: c3212d87-6af3-4120-9e06-4d85fa910de2
1717

1818
## Cause
1919

20-
This error commonly occurs in Windows Forms applications when you attempt to define your own `Sub Main` procedure while the Visual Basic Application Framework is enabled. The application framework automatically generates a `Main` procedure, creating a conflict when you add another one.
20+
This error often occurs in Windows Forms applications when you define your own `Sub Main` procedure while the Visual Basic Application Framework is enabled. The application framework automatically generates a `Main` procedure, creating a conflict when you add another one.
2121

2222
## To correct this error
2323

2424
Choose one of the following approaches:
2525

2626
### Option 1: Use the Application Framework (Recommended for most Windows Forms apps)
2727

28-
1. Remove your custom `Sub Main` procedure.
29-
1. Configure your startup form and initialization code using the application framework:
30-
- Set the **Startup form** in **Project Properties** > **Application** tab.
31-
- Use the `My.MyApplication` events for custom startup logic.
28+
- Remove your custom `Sub Main` procedure.
29+
- Configure your startup form and initialization code using the application framework:
30+
- Set the **Startup form** in **Project Properties** > **Application** tab.
31+
- Use the `My.MyApplication` events for custom startup logic.
3232

3333
### Option 2: Disable the Application Framework
3434

3535
If you need programmatic control over application startup (for example, to select which form to display based on command-line arguments):
3636

37-
1. In **Project Properties** > **Application** tab, uncheck **Enable application framework**.
38-
1. Set **Startup object** to your module or class containing `Sub Main`.
39-
1. Implement your own `Sub Main` procedure to control application startup.
37+
- In **Project Properties** > **Application** tab, uncheck **Enable application framework**.
38+
- Set **Startup object** to your module or class containing `Sub Main`.
39+
- Implement your own `Sub Main` procedure to control application startup.
4040

4141
### Option 3: Remove duplicate Main procedures
4242

0 commit comments

Comments
 (0)