Click here to Skip to main content
15,888,610 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionDataGridView not updating when DataSource updates Pin
mmfranke19-Mar-07 9:56
mmfranke19-Mar-07 9:56 
AnswerRe: DataGridView not updating when DataSource updates Pin
RabidHamster19-Mar-07 14:49
RabidHamster19-Mar-07 14:49 
GeneralRe: DataGridView not updating when DataSource updates Pin
mmfranke20-Mar-07 3:00
mmfranke20-Mar-07 3:00 
GeneralRe: DataGridView not updating when DataSource updates Pin
mmfranke20-Mar-07 3:09
mmfranke20-Mar-07 3:09 
QuestionHow to convert existing C# Windows Application to C# Web Application.. Pin
MPS_DotNet18-Mar-07 21:08
MPS_DotNet18-Mar-07 21:08 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Colin Angus Mackay19-Mar-07 1:19
Colin Angus Mackay19-Mar-07 1:19 
AnswerRe: How to convert existing C# Windows Application to C# Web Application.. Pin
Dave Kreskowiak19-Mar-07 1:43
mveDave Kreskowiak19-Mar-07 1:43 
QuestionUse Reflection to control winforms user permissions? Pin
nzmike18-Mar-07 20:21
nzmike18-Mar-07 20:21 
Hi all,

I'm hoping someone who knows more about Reflection or the internals of the framework than me can help me out on this one.

I'm working on a very large and complex winforms 2.0 in VB.Net 2.0. We will have quite a few different types of users (eg: Data admin, viewer, editor, business rules manager, etc) and I have been tasked with designing and implementing the security model that handles what each user can do. I intend to base it on our own in-house User, User Role and Permissions oracle 9i tables (ie: a pretty standard security model.)

Someone suggested that rather than having a call to some method like SecurityModule.CheckUserPermission() in every method I could Reflection to find out what method was currently invoked (how?!) and then check the user permission against a table (loaded into memory) which would contain the user's role and therefore whether they had a right to use that method. For example the AddNewEmployee() method might only be available to the "DataAdmin" and the "HRAdmin" roles and all others would not be allowed to execute the method - it would just give them an appropriate dialog.

So does anyone have any thoughts on how to do this? If the above idea is workable can someone point me in the right direction to get started? I've hardly ever used Reflection so am not sure how to go about designing this. Otherwise does anybody have any better ideas for a security model than having to place CheckUserPermission() calls all through this very large app?

TIA for any help/info/suggestions.

Mike
AnswerRe: Use Reflection to control winforms user permissions? Pin
Pete O'Hanlon19-Mar-07 0:27
mvePete O'Hanlon19-Mar-07 0:27 
GeneralRe: Use Reflection to control winforms user permissions? Pin
nzmike19-Mar-07 0:48
nzmike19-Mar-07 0:48 
QuestionGet data items from a dataGrid Pin
webHamlet15-Mar-07 19:39
webHamlet15-Mar-07 19:39 
AnswerRe: Get data items from a dataGrid Pin
Smart_Boy22-Mar-07 0:06
Smart_Boy22-Mar-07 0:06 
QuestionMenu coding [modified] Pin
PreppyProgrammer15-Mar-07 14:40
PreppyProgrammer15-Mar-07 14:40 
AnswerRe: Menu coding Pin
giddy_guitarist22-Mar-07 21:42
giddy_guitarist22-Mar-07 21:42 
Questionchange forms caption and border Pin
hamid_m15-Mar-07 0:59
hamid_m15-Mar-07 0:59 
Questiondynamic pictureBox creation Pin
sarah_malik12-Mar-07 6:49
sarah_malik12-Mar-07 6:49 
AnswerRe: dynamic pictureBox creation Pin
JUNEYT12-Mar-07 8:08
JUNEYT12-Mar-07 8:08 
GeneralRe: dynamic pictureBox creation Pin
sarah_malik12-Mar-07 8:14
sarah_malik12-Mar-07 8:14 
GeneralRe: dynamic pictureBox creation Pin
Dave Kreskowiak12-Mar-07 8:47
mveDave Kreskowiak12-Mar-07 8:47 
GeneralRe: dynamic pictureBox creation Pin
sarah_malik12-Mar-07 8:58
sarah_malik12-Mar-07 8:58 
QuestionCustom Form problem... Pin
e-laj10-Mar-07 1:43
e-laj10-Mar-07 1:43 
QuestionBest Freeware Utilities and why you like it Pin
B S O D9-Mar-07 4:53
B S O D9-Mar-07 4:53 
AnswerRe: Best Freeware Utilities and why you like it Pin
led mike9-Mar-07 5:28
led mike9-Mar-07 5:28 
GeneralRe: Best Freeware Utilities and why you like it Pin
Marcus J. Smith9-Mar-07 8:42
professionalMarcus J. Smith9-Mar-07 8:42 
Questionproblem with speakers in the system Pin
Confuseed7-Mar-07 19:19
Confuseed7-Mar-07 19:19 

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.