mario.deghetto

Visual Basic & .NET
posts - 319, comments - 204, trackbacks - 0

[VB.NET] Kiosk mode

Talvolta è necessario proteggere la nostra applicazione da qualche utente che la vorrebbe chiudere o spostare il focus ad un’altra applicazione. Questo è il caso, per esempio, dei “chioschi” che talvolta sono presenti in qualche evento pubblico come fiere, congressi e così via.

Un modo semplice per ottenere questo risultato è utilizzare questo codice:

With Me
.MaximizeBox = False
.MinimizeBox = False
.TopMost = True
.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
.WindowState = System.Windows.Forms.FormWindowState.Maximized
End With

 

L’effetto è molto simile all’azione del tasto F11 di Internet Explorer (schermo intero).

Print | posted on sabato 12 giugno 2010 18.43 |

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 2 and 6 and type the answer here:

Powered by: