Click here to Skip to main content
15,890,947 members
Home / Discussions / C#
   

C#

 
Questionc# generate a ctrl from an xml or from a DB Pin
bysystems29-Aug-11 12:45
bysystems29-Aug-11 12:45 
AnswerRe: c# generate a ctrl from an xml or from a DB Pin
PIEBALDconsult29-Aug-11 15:05
mvePIEBALDconsult29-Aug-11 15:05 
GeneralRe: c# generate a ctrl from an xml or from a DB Pin
bysystems29-Aug-11 15:20
bysystems29-Aug-11 15:20 
GeneralRe: c# generate a ctrl from an xml or from a DB Pin
David C# Hobbyist.29-Aug-11 15:41
professionalDavid C# Hobbyist.29-Aug-11 15:41 
GeneralRe: c# generate a ctrl from an xml or from a DB Pin
PIEBALDconsult29-Aug-11 18:04
mvePIEBALDconsult29-Aug-11 18:04 
AnswerRe: c# generate a ctrl from an xml or from a DB [modified] Pin
BillWoodruff29-Aug-11 18:20
professionalBillWoodruff29-Aug-11 18:20 
AnswerRe: c# generate a ctrl from an xml or from a DB Pin
jschell30-Aug-11 8:35
jschell30-Aug-11 8:35 
QuestionC#.net stop program early Pin
dcof29-Aug-11 11:57
dcof29-Aug-11 11:57 
I have a C#.net 2008 desktop application that I would like to stop before the first desktop screen shows up. I want to stop this application from executing immediately if the user has not been granted access to the application after looking up what access they have been granted by the active directory.

I want to stop the application before the following statement is executed: Application.Run(new Mainform());

i would like to stop the application from running in program.cs.

The only options that are close to what I want to do are:

Application.ExitThread(); or Application.Exit();

However these statements run after the Application.Run(new Mainform()); statement is executed.

Thus my questions are:

1. Is there way to not display the first desktop screen? If so, what would be code be?

2. If that is not possible, what are my other options? Do I just display the desktop tabs and let the user select the tabs they want to work with? if the user does not have access to that tab, do i display a message saying 'no access' and redisplay the screen like it was before the user clicked on the tab? if so, can you show me some example code?

3. If my options do not work, what do you suggest and can you point me to a reference of some code I can use?
AnswerRe: C#.net stop program early Pin
Luc Pattyn29-Aug-11 12:06
sitebuilderLuc Pattyn29-Aug-11 12:06 
AnswerRe: C#.net stop program early Pin
PIEBALDconsult29-Aug-11 14:58
mvePIEBALDconsult29-Aug-11 14:58 
AnswerRe: C#.net stop program early Pin
Dylan Morley30-Aug-11 1:47
Dylan Morley30-Aug-11 1:47 
GeneralRe: C#.net stop program early Pin
dcof30-Aug-11 3:53
dcof30-Aug-11 3:53 
GeneralRe: C#.net stop program early [modified] Pin
Dylan Morley30-Aug-11 3:59
Dylan Morley30-Aug-11 3:59 
QuestionC#.net active directory options Pin
dcof29-Aug-11 7:33
dcof29-Aug-11 7:33 
AnswerRe: C#.net active directory options Pin
Richard Andrew x6429-Aug-11 11:22
professionalRichard Andrew x6429-Aug-11 11:22 
GeneralRe: C#.net active directory options Pin
dcof29-Aug-11 16:57
dcof29-Aug-11 16:57 
GeneralRe: C#.net active directory options Pin
Richard Andrew x6429-Aug-11 17:00
professionalRichard Andrew x6429-Aug-11 17:00 
QuestionC# low level mouse hook and form events Pin
Ak47AL29-Aug-11 6:21
Ak47AL29-Aug-11 6:21 
AnswerRe: C# low level mouse hook and form events Pin
BillWoodruff29-Aug-11 18:13
professionalBillWoodruff29-Aug-11 18:13 
GeneralRe: C# low level mouse hook and form events Pin
Ak47AL31-Aug-11 5:47
Ak47AL31-Aug-11 5:47 
GeneralRe: C# low level mouse hook and form events Pin
BillWoodruff31-Aug-11 19:11
professionalBillWoodruff31-Aug-11 19:11 
QuestionRegistry Permissions Pin
Zach.Saunders29-Aug-11 4:50
Zach.Saunders29-Aug-11 4:50 
AnswerRe: Registry Permissions Pin
#realJSOP29-Aug-11 5:28
mve#realJSOP29-Aug-11 5:28 
GeneralRe: Registry Permissions [modified] Pin
Zach.Saunders29-Aug-11 6:18
Zach.Saunders29-Aug-11 6:18 
GeneralRe: Registry Permissions Pin
Anthony Mushrow29-Aug-11 7:36
professionalAnthony Mushrow29-Aug-11 7:36 

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.