Вы находитесь на странице: 1из 14

| 

   

|      


   
     
     
     
 
    
   
! " 
     
  
 # 
$ 

 %   %
&   
     R  
    ˜
| 
   

    

    !


 "#$% & % !
 '  &$  ( &%  % (
$( (
&)"*  +!
 ,"-"# !
 ,"- |&$!
   -. -. ( -.$ (
/  (+!
 * * &.(0 -  !
 * % 1" 2* ( * +!
 0   0 0 (+!
 &&  % ($ .$%+!
 , "  -  , " ( %  ( !

     R  


    ë
| 
   

  "

 0 #  - & && " "


' 
( )* " + $  ),+-! .
# #    
  +/        
          
     )
 0 + ( 

     R  


    V
| 
   

 3 

 0 #  - &&  3  --


-# 
# .+!  # .
1 1 1 !1 21  
1 * 1 $ 
3 4 3 !3 2
& 
!"!

     R  


    
| 
   

2   3 '4 

  
 , 2 
 $3
  
 
 $ 2 

     R  


    r
| 
   

 

µ* example event procedure


  "
Private Sub btnBack_Click( _
 ByVal sender As System.Object, _
 +# ^ #  ByVal e As System.EventArgs) _
Handles btnBack.Click
 ++^ +
!"&  µ* Exits this form.
 4   .   Me.Close()
   End Sub

 5.#  )

     R  


    â
| 
   

$% $ .$%

 )%  .% "#


   6 # 7    
2    "  
 $ .$% %-#" .
$.)%   . 
1       .   
(  

     R  


    m
| 
   

$ .$%&"

linkLabel1.Text = "Click here to get more info."


µ* Create new link using Add method of LinkCollection class.
µ* 1st parameter is the start position of hyperlinked text
µ* 2nd parameter is no. of chars to hyperlink
µ* 3rd parameter is URL
linkLabel1.Links.Add(6, 4, "www.microsoft.com")

Private Sub linkLabel1_LinkClicked(sender As Object, _


e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) _
Handles LinkLabel1.LinkClicked

µ* Determine which link was clicked within the LinkLabel.


linkLabel1.Links(linkLabel1.Links.IndexOf(e.Link)).Visited = True

µ* Display the appropriate link based on the value of the LinkData property
µ* of the Link object.
System.Diagnostics.Process.Start(e.Link.LinkData.ToString())

End Sub µ* linkLabel1_LinkClicked

     R  


    U
| 
   

   *"#

 %       " !


 (  (  
  " (  $ " 
1 $ " 1 $ (  
%     3 
%  &   #" 
( 

Private Sub TextBox1_GotFocus(ByVal sender As System.Object, _


ByVal e As System.EventArgs) Handles TextBox1.GotFocus
'* Select all text in the text box
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = TextBox1.Text.Length
End Sub

     R  


    š
| 
   

 &"

-   &"&     -3


 %  -&"-5" %(5"/ ( 
6 6"" " &.-& %    
  &  

' Create an instance of a TextBox control.


Dim textBox1 As New TextBox()
' Set the Multiline property to true.
textBox1.Multiline = True
' Add vertical scroll bars to the TextBox control.
textBox1.ScrollBars = ScrollBars.Vertical
' Allow the RETURN key to be entered in the TextBox control.
textBox1.AcceptsReturn = True
' Allow the TAB key to be entered in the TextBox control.
textBox1.AcceptsTab = True
' Set WordWrap to allow text to wrap to the next line.
textBox1.WordWrap = True
' Set the default text of the control.
textBox1.Text = "Welcome!³
' 5" &0'*
$%#75"88

     R  


    ˜8
| 
   

$'   

 &%   "


 Ä Ä
  
!!(  Ä Ä


 ( Ä Ä
Ä
Ä Ä
 
 !
Ä Ä

 !$
( 
 /  & "
0   
 0- 
0 )#  Ä Ä
  
)%
)& 
     R  
    ˜˜
| 
   

$ |& '

 |&     &


 -
Console.Writeline(lstEmp.Items(2))

 '| " "#-9 7% &% -


& -
0   .     (  0  ë
* ˜ "  
 -   -&- 
Console.Writeline(cboChoice.SelectedItem)
Console.Writeline(cboChoice.Items(cboChoice.SelectedIndex))

     R  


    ˜ë
| 
   

-.   

 -.'" "#
# . 
2  . 
0  6  .   
" 7
 " "#"#%7
 "

If chkMarried.CheckState = CheckState.Checked Then


˜
End If

     R  


    ˜V
| 
   

&  

  " 3


 &3 
29              
      
 | 3 "#
8 ârrVr 
 8    
 â8888  
  %" "#& % &  .
 &   33% &
 '   &"   # &

     R  


    ˜