'?'?? ?????'
'?+' ?????'???'??? ??'??? ?????? Visual Basic. NET,
??+:????:
- ????''? ? '???? ?+??'
PictureBox, ??%? ?+'?'? ?????;
- ????''? ? '???? ?+??'
"?????" (CommandButton),
??'??'? +??' ????'? ??? ? ??'???
??????;
- ???'? ? ??? ?+??' "???" ???????
Dim MyPen
As New Pen(Color.Black);
- ?'? ? ??? ?+'?'? ?????? ???????
Dim g
As Graphics =
PictureBox1.CreateGraphics (???'? ?'? MyPen
g ???? ??'? ??? ??, ? +'?? ??'??
?????'???'? ???? ?????' ???);
- -?'? '?'%?? ?? (? ???'?:) ???????
'? MyPen.Width = 6
- -?'? ?' ?? ??????? '? MyPen.Color = Color.Red
- ????'???'? ?????' ?'? ??????
??'??: ???'??? (???'?
??????)
'? g.DrawLine(MyPen, 0, 0, 300, 200)
?? ??????' ????'??', ?? ? ?????:
?? ???? - ???'?.
?? ??????'??? ?+'?' ????'?'?? ?????
?+??' PictureBox.
?' '?'%?? ?? ? ????? ?????? ????
???'?.
?'?????' (????'??') ???
? ?? ??: ???????: ? ????'?? '?'??? ?
?'?'???, ???? ??????? ???? ?+?''? ?
'??'??'? ?'????. ' Visual Basic .NET ????
?'??'??'? ??? ?? ?'????.
''? ?????? '??'??': ?'??? (????'?)
???'???'?? ?? '??????' (&) ' '?'??' (+).
?+?'' ????, '? ?????? '??'??' ?'??? ? ????%?? ???
????'?, Visual Basic. NET ? ??'?'?' ???
?? ???+''.
???? ????'?? ?'?' ?'??? (??'?'?
????'?? ? ??) - Len(?'??????
?'?).
???? ?'?'?? ?'??? ????'??? (?'??) -
Mid(?:???? ?'??????
?'?; ???? ????', ? ??'????? ??? ?'?
?'?'?; ??'?'?? ?'??': ????'??). ?'
'?'??? ???'? ? ???+?: ?', ?' ?'?'?'??
????'??? ? ??????? ???? ????' ?? ???
?:????? ?'??????? ?'?'.
???'? ? Visual Basic
2005:
???'??? ?+?' '-
9. '?'?. ??? ? ??'???? ??'. ('?'??
??'?'???)
???'??? ?+?' '-
10.
'?'?? ???'?'. ('?'??
??'?'???)
???'??? ?+?' '- 11.
????'??' '???. ('?'??
??'?'???)
???'? ? Visual Basic
2008:
???'??? ?+?' '-
9. '?'?. ??? ? ??'???? ??'. ('?'??
??'?'???)
???'??? ?+?' '- 10.
'?'?? ???'?'. ('?'?? ??'?'???)
???'??? ?+?' '- 11. ????'??' '???. ('?'?? ??'?'???)
-??.
???'? ????' "??'??",
????%? ? ??'???? ??' ?+??,
???'?'??? ??'??: ???'???.
?? ??:??'? ? ???? ?+?? ???. ''?''? ?:?
??? ????' ??????''? ? ???????.