Skip to content

Commit 6b768e4

Browse files
BillWagnergewarren
andauthored
Apply suggestions from code review
Co-authored-by: Genevieve Warren <[email protected]>
1 parent d329f39 commit 6b768e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/visual-basic/misc/bc30738.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ This error often occurs in Windows Forms applications when you define your own `
2323

2424
Choose one of the following approaches:
2525

26-
### Option 1: Use the Application Framework (Recommended for most Windows Forms apps)
26+
### Option 1: Use the application framework (recommended for most Windows Forms apps)
2727

2828
- Remove your custom `Sub Main` procedure.
2929
- Configure your startup form and initialization code using the application framework:
3030
- Set the **Startup form** in **Project Properties** > **Application** tab.
3131
- Use the `My.MyApplication` events for custom startup logic.
3232

33-
### Option 2: Disable the Application Framework
33+
### 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

@@ -42,7 +42,7 @@ If you need programmatic control over application startup (for example, to selec
4242

4343
- Ensure there is only a single `Sub Main` procedure in your entire project.
4444

45-
## Accessing My.MyApplication.Main
45+
## Access `My.MyApplication.Main`
4646

4747
If you need to access the automatically generated startup code, you can work with the <xref:Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase> object and its events such as <xref:Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Startup>, <xref:Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.StartupNextInstance>, and <xref:Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Shutdown>. The application framework provides these events specifically for customizing application behavior without defining your own `Main` procedure.
4848

0 commit comments

Comments
 (0)