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

Windows Forms

 
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 
AnswerRe: Use Reflection to control winforms user permissions? Pin
Pete O'Hanlon19-Mar-07 0:27
mvePete O'Hanlon19-Mar-07 0:27 
To get the method you are in, you can use the System.Diagnostics.StackFrame class. You would use new StackFrame().GetMethod().Name. Note however, that it is going to be expensive to use reflection to retrieve permissions for users using Reflection based on the called method, and you are relying on developers remembering to put the necessary "plumbing" code into each method. (Either that, or you are going to be injecting code into every method - and that is a whole different can of worms).

I've done similar to this in the past, and used Extender Providers to control what is available to a user. Shameless plug here - this article http://www.codeproject.com/useritems/AutoEnableUI.asp[^] shows the basics of how to do this. Extending it to use your role model should be fairly trivial.

Deja View - the feeling that you've seen this post before.

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 
AnswerRe: problem with speakers in the system Pin
kubben8-Mar-07 3:37
kubben8-Mar-07 3:37 

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.