Skip to content

Commit 78d2d11

Browse files
authored
Update text to reflect sample changes (#3406)
* Update text to reflect sample changes * one more occurrence of the sample
1 parent 879c790 commit 78d2d11

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

xml/Microsoft.VisualBasic.Devices/Keyboard.xml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -473,17 +473,16 @@
473473
|Web Control Library|No|
474474
|Windows Service|**Yes**|
475475
|Web Site|No|
476-
477-
478-
476+
479477
## 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.
481480
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.
483484
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).
487486
488487
]]></format>
489488
</remarks>
@@ -579,17 +578,16 @@
579578
|Web Control Library|No|
580579
|Windows Service|**Yes**|
581580
|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.
582585
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.
591589
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).
593591
594592
]]></format>
595593
</remarks>

0 commit comments

Comments
 (0)