Where can I define Variables that all forms can use ?
I have some variables for authorisations that must be consulted by all forms
Where do I have to put these declaration and what is the correct syntax
for the moment I define it like that :
Public Class Form_Main
Inherits System.Windows.Forms.Form
Public Shared Key_Num_Dossier As Integer
Public Shared Key_Utilisateur As Integer
But I need to call it from other form like : Form_Main.Key_Num_Dossier
Can I define it outside a form ? and where (other vb.file?) ?
Thanks :rolleyes: