Click here to Skip to main content
15,881,856 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Nokia for Windows Phone developers, DVLUP. Pin
Richard MacCutchan26-Sep-13 4:33
mveRichard MacCutchan26-Sep-13 4:33 
AnswerRe: Nokia for Windows Phone developers, DVLUP. Pin
Abhinav S9-Oct-13 3:01
Abhinav S9-Oct-13 3:01 
QuestionWeifenLuo.WinformsUI.Docking.dll Version 2.7.0.0 not toggling Pin
rohit24c23-Sep-13 19:48
rohit24c23-Sep-13 19:48 
AnswerRe: WeifenLuo.WinformsUI.Docking.dll Version 2.7.0.0 not toggling Pin
Richard MacCutchan23-Sep-13 20:56
mveRichard MacCutchan23-Sep-13 20:56 
Generalwindow form application Pin
ANKIT KUMAR SINHA22-Sep-13 23:02
ANKIT KUMAR SINHA22-Sep-13 23:02 
SuggestionRe: window form application Pin
Richard MacCutchan23-Sep-13 0:51
mveRichard MacCutchan23-Sep-13 0:51 
GeneralRe: window form application Pin
Eddy Vluggen23-Sep-13 1:20
professionalEddy Vluggen23-Sep-13 1:20 
NewsRe: window form application Pin
Gil-B6-Oct-13 5:26
professionalGil-B6-Oct-13 5:26 
Try creating a variable in the login form, when any of them logs in assign a value to that variable. Note: the value assigned should be different depending on who logged in. E.g (variable_name = 1..when admin logs in, variable_name = 2..when user logs in ). On the load event of the main form use an if statement to check the value of that variable. Depending on the value of the variable disable the menustrip item using the its name. Example when a normal user logs in
If(variable_name=1)
{
Menustripitem_name.enable=false;
}
Remember to declare the variables for validation as static variables in the login form so as to access it in the mainform.

Hope that works
GeneralRe: window form application Pin
ANKIT KUMAR SINHA8-Oct-13 22:56
ANKIT KUMAR SINHA8-Oct-13 22:56 
GeneralRe: window form application Pin
Simon_Whale9-Oct-13 0:15
Simon_Whale9-Oct-13 0:15 
GeneralRe: window form application Pin
sankarsan parida12-May-14 7:28
professionalsankarsan parida12-May-14 7:28 
AnswerRe: window form application Pin
Member 9986689 (PandaLion98)25-Oct-14 21:27
professionalMember 9986689 (PandaLion98)25-Oct-14 21:27 
QuestionCode VB 2010 - Send SMS via AT command Pin
caopv12-Sep-13 19:05
caopv12-Sep-13 19:05 
AnswerRe: Code VB 2010 - Send SMS via AT command PinPopular
Bernhard Hiller12-Sep-13 22:41
Bernhard Hiller12-Sep-13 22:41 
QuestionHow to avoid color changes when button is disabled Pin
Ksmart129-Sep-13 23:47
Ksmart129-Sep-13 23:47 
AnswerRe: How to avoid color changes when button is disabled Pin
Bernhard Hiller11-Sep-13 3:50
Bernhard Hiller11-Sep-13 3:50 
AnswerRe: How to avoid color changes when button is disabled Pin
Dave Kreskowiak11-Sep-13 5:10
mveDave Kreskowiak11-Sep-13 5:10 
AnswerRe: How to avoid color changes when button is disabled Pin
xstoneheartx25-Dec-14 16:46
xstoneheartx25-Dec-14 16:46 
QuestionGrid View Column Pin
Mahdi_kishislan23-Jul-13 10:41
Mahdi_kishislan23-Jul-13 10:41 
AnswerRe: Grid View Column Pin
Dave Kreskowiak23-Jul-13 11:23
mveDave Kreskowiak23-Jul-13 11:23 
AnswerRe: Grid View Column Pin
John D. Sanders4-Feb-14 9:21
John D. Sanders4-Feb-14 9:21 
GeneralRe: Grid View Column Pin
Dave Kreskowiak4-Feb-14 10:13
mveDave Kreskowiak4-Feb-14 10:13 
GeneralRe: Grid View Column Pin
John D. Sanders4-Feb-14 10:16
John D. Sanders4-Feb-14 10:16 
GeneralDatabinding to TextBox Pin
Wild Thing21-Jul-13 2:02
Wild Thing21-Jul-13 2:02 
GeneralRe: Databinding to TextBox Pin
Eddy Vluggen24-Jul-13 8:07
professionalEddy Vluggen24-Jul-13 8:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.