Click here to Skip to main content
15,885,985 members
Home / Discussions / Windows Forms
   

Windows Forms

 
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 
GeneralRe: Databinding to TextBox Pin
Wild Thing25-Jul-13 5:23
Wild Thing25-Jul-13 5:23 
GeneralRe: Databinding to TextBox Pin
BillWoodruff27-Aug-13 18:13
professionalBillWoodruff27-Aug-13 18:13 
QuestionLogging for Windows Form application Pin
lol240317-Jul-13 3:25
lol240317-Jul-13 3:25 
AnswerRe: Logging for Windows Form application PinPopular
NotPolitcallyCorrect17-Jul-13 4:09
NotPolitcallyCorrect17-Jul-13 4:09 
QuestionWinforms - automated retrieve static image Pin
fincity11-Jul-13 7:51
fincity11-Jul-13 7:51 

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.