|
473 | 473 | |Web Control Library|No|
|
474 | 474 | |Windows Service|**Yes**|
|
475 | 475 | |Web Site|No|
|
476 |
| - |
477 |
| - |
478 |
| - |
| 476 | +
|
479 | 477 | ## Examples
|
480 |
| - This example uses the `My.Computer.Keyboard.SendKeys` method to send keystrokes to an external application, the Calculator application, started by the `Shell` function. |
| 478 | +
|
| 479 | +This example uses the `My.Computer.Keyboard.SendKeys` method to send keystrokes to an external application, the Notepad application, started by the <xref:Microsoft.VisualBasic.Interaction.Shell%2A> method. |
481 | 480 |
|
482 |
| - [!code-vb[VbVbalrMyComputer#25](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyComputer/VB/Class2.vb#25)] |
| 481 | +[!code-vb[VbVbalrMyComputer#25](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyComputer/VB/Class2.vb#25)] |
| 482 | +
|
| 483 | +An <xref:System.ArgumentException> exception is raised if an application with the requested process identifier cannot be found. |
483 | 484 |
|
484 |
| - A <xref:System.ArgumentException> exception is raised if an application with the requested process identifier cannot be found. |
485 |
| - |
486 |
| - The call to the `Shell` function requires full trust (<xref:System.Security.SecurityException> class). |
| 485 | +The call to the <xref:Microsoft.VisualBasic.Interaction.Shell%2A> method requires full trust (<xref:System.Security.SecurityException> class). |
487 | 486 |
|
488 | 487 | ]]></format>
|
489 | 488 | </remarks>
|
|
579 | 578 | |Web Control Library|No|
|
580 | 579 | |Windows Service|**Yes**|
|
581 | 580 | |Web Site|No|
|
| 581 | +
|
| 582 | +## Examples |
| 583 | +
|
| 584 | +This example uses the `My.Computer.Keyboard.SendKeys` method to send keystrokes to an external application, the Notepad application, started by the <xref:Microsoft.VisualBasic.Interaction.Shell%2A> method. |
582 | 585 |
|
583 |
| - |
584 |
| - |
585 |
| -## Examples |
586 |
| - This example uses the `My.Computer.Keyboard.SendKeys` method to send keystrokes to an external application, the Calculator application, started by the `Shell` function. |
587 |
| - |
588 |
| - [!code-vb[VbVbalrMyComputer#25](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyComputer/VB/Class2.vb#25)] |
589 |
| - |
590 |
| - A <xref:System.ArgumentException> exception is raised if an application with the requested process identifier cannot be found. |
| 586 | +[!code-vb[VbVbalrMyComputer#25](~/samples/snippets/visualbasic/VS_Snippets_VBCSharp/VbVbalrMyComputer/VB/Class2.vb#25)] |
| 587 | +
|
| 588 | +An <xref:System.ArgumentException> exception is raised if an application with the requested process identifier cannot be found. |
591 | 589 |
|
592 |
| - The call to the `Shell` function requires full trust (<xref:System.Security.SecurityException> class). |
| 590 | +The call to the <xref:Microsoft.VisualBasic.Interaction.Shell%2A> method requires full trust (<xref:System.Security.SecurityException> class). |
593 | 591 |
|
594 | 592 | ]]></format>
|
595 | 593 | </remarks>
|
|
0 commit comments