27.06.2014 Views

INFORMATICA MEDICA

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Esempio (6)<br />

<br />

Public btn as button<br />

Public Sub Scrivi (scr as Object, e as EventArgs)_<br />

Handles btn.Click<br />

End Sub<br />

lbl.Text = txt.Text<br />

Se si vuole un’interfaccia del tutto scollegata dal codice, si deve<br />

dichiarare il bottone nell’interfaccia senza dichiarare nell’interfaccia<br />

quale procedura gestirà il suo evento click. Il bottone viene quindi<br />

dichiarato come pubblico nel file del code-behind (parte nascosta) e la<br />

procedura deve esplicitamente di gestire (Handles) il click del bottone<br />

stesso.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!