Professional Documents
Culture Documents
:
: , 19.01.2015.
:
: 19/2012
1. WINDOWS ...............................................................................2
1.1.
1.2.
1.3.
1.4.
1.5.
1.6.
1.7.
1.8.
1.9.
1.10.
.....................2
. .......2
...............................................................3
....................................................................3
........................................................................3
?
.......4
?................................................................4
LABEL TEXTBOX ..................................5
?............................................................6
?..................6
2. .......................................................................7
2.1.
2.2.
2.3.
2.4.
2.5.
2.6.
2.7.
2.8.
2.9.
2.10.
................................................................................7
-.................................................7
...................................................8
?.............................................................8
?........................................................8
?..............................................................................9
...................................................9
?....................................9
..............................................10
.......................................10
1. Windows
1.1.
Windows .
Visual Studio. Net a File, New Project,
1.
1.2. .
.
Properties Background Image
( 4)
Properties
Back Color .( 3)
1.3.
Project
Add Windows Form .
(Windows Form) Add
.
1.4.
new.
// Kreirana je nova forma VisaTehnicka
VisaTehnicka novaForma;
novaForma = new VisaTehnicka();
1.5.
Project Properties :
6 :
7:
:
Main .
Main :
Application.Run(new VisokaTehnicka()), VisokaTehnicka .
8:
1.6. ?
.
Properties
:
9 :
:
Manual- Location ;
CenterScreen- ;
WindowsDefaultLocation- Windows ;
WindowsDefaultBounds- Windows
;
CenterParent-
1.7. ?
:
Load -
Activated/Deactivate- -
VisibleChanged-
Closing-
Closed-
10 : Label
11 : Label
Textbox ( ).
2.
, :
12 :
3. Label Name
lbl txt, Text
, :
13 :
1.9. ?
1. 1 2.
2. Windows Forms.
3. Toolbox .
14 :
1.10. ?
Label Name
lbl txt.
6
2.
2.1. .
Visual Studio NET- MainMenu .
MainMenu Windows Forms . MenuStrip
, Toolbox-a
:
1: MainStrip
2.2. -.
MenuStrip
Type Here File, Enter
2: File
Studenti.
2.3. .
File / Properties / ShortcutKeys
: Ctrl, Alt, Shift
.
3:
2.4. ?
Name- ;
Checked- ;
Enabled- ;
ShortcutKeys- ;
ShowShortcutKeys-
2.5. ?
,
,
Insert>extbox, :
3:
2.6. ?
ContextMenuStrip
:
5:
2.7. .
.
, ,
:
6:
2.8. ?
2.9. .
File ,
:
7:
2.10. .
:
menuStrip1.Visible = false;
:
menuStrip1.Enabled = true;
:
fileStavkaMenija.MergeMenu(KonteksniMeni);
:
fileStavkaMenija.MenuItems.Add(Stavka);
10
1. ?
:
.
, Ok,
.
,
,
.
2. ?
3.
.
.
foreach (System.Windows.Forms.Control NovaControl in this.Co
ntrols)
{
// Proverava da li je kontrola Label
if (NovaControl is System.Windows.Forms.Label)
}
3. ?
MessageBox.Show .
:
MessageBox.Show("Uneli ste podatke koji nisu valjani");
ErrorProvider .
11
5.
?
ErrorProvider .
ErrorProvider SetError,
:
ErrorProvider1.SetError(ImeStudenta,
prazno)
"Ime
ne
moze
biti
6.
ErrorProvider .
private void txtIme_Validating(object sender, CancelEventArgs e)
{
if (txtIme.Text == "")
// Podesiti gresku
errorProvider1.SetError(txtIme,
"Ime ne sme biti prazno!");
else
// Obrisati gresku u slucaju valjanog ulaza
errorProvider1.SetError(txtIme, "");
}
7. Validating
.
8.
?
1
text box
, : Readnly, PasswordChar, Multiline
MaxLength.
ReadOnly, True
.
12
PasswordChar *,
* .
MaxLength .
Multiline .
: KeyDown, KeyPress, KeyUp.
13