Click here to Skip to main content
15,891,372 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question on reflection Pin
Dewald15-Jul-10 0:57
Dewald15-Jul-10 0:57 
AnswerRe: Question on reflection [modified] Pin
PIEBALDconsult15-Jul-10 3:25
mvePIEBALDconsult15-Jul-10 3:25 
GeneralRe: Question on reflection Pin
Dewald15-Jul-10 4:19
Dewald15-Jul-10 4:19 
Questionproxy problem Pin
mstfync14-Jul-10 21:02
mstfync14-Jul-10 21:02 
AnswerRe: proxy problem Pin
Pete O'Hanlon14-Jul-10 21:49
mvePete O'Hanlon14-Jul-10 21:49 
QuestionAccessing mdiParent form menu from mdiChild form via code [solved] Pin
AussieLew14-Jul-10 19:36
AussieLew14-Jul-10 19:36 
AnswerRe: Accessing mdiParent form menu from mdiChild form via code Pin
Peace ON14-Jul-10 19:48
Peace ON14-Jul-10 19:48 
GeneralRe: Accessing mdiParent form menu from mdiChild form via code Pin
AussieLew14-Jul-10 22:09
AussieLew14-Jul-10 22:09 
Thanks, the problem with that ( I think ) is that the value of the ToolStripMenuItem could be changed subsequently by another open MdiChild form.

One way that I can get half of what I need is to have a public static variable in a static class ( say my starting code ) which I can access from all of my forms. I can then set the value of this to the value of the ToolStripMenuItem.Checked property in the CheckedChanged event handler for the ToolStripMenuItem.

I can then check ToolStripMenuItem.Checked for a certain condition from any child form.

But.... how can I Set the ToolStripMenuItem.Checked property in code?

It may help if I give a better example of what I want to do.

In MainForm ( the MdiParent form ) I have a confirmDeletesToolStripMenuItem with CheckOnClick set to True.
In any child form, during the delete process, if MainForm confirmDeletesToolStripMenuItem.Checked == True; then they will get a Confirm Deletes Message Box or not if False.

In the Confirm Deletes Message Box I will also have a CheckBox option "Do not show again for this session" that if checked will Set the MainForm confirmDeletesToolStripMenuItem.Checked = False;.

I guess I can also use Application Settings and set this type of thing in an Options form rather than on a Checked ToolStripMenuItem, however I'm sure there will be other reasons Get/Set the value of the Parent form from Child?
AnswerRe: Accessing mdiParent form menu from mdiChild form via code Pin
Peace ON14-Jul-10 22:49
Peace ON14-Jul-10 22:49 
GeneralRe: Accessing mdiParent form menu from mdiChild form via code Pin
Dave Kreskowiak15-Jul-10 2:02
mveDave Kreskowiak15-Jul-10 2:02 
AnswerRe: Accessing mdiParent form menu from mdiChild form via code [modified] Pin
DaveyM6914-Jul-10 23:54
professionalDaveyM6914-Jul-10 23:54 
GeneralRe: Accessing mdiParent form menu from mdiChild form via code Pin
AussieLew15-Jul-10 23:11
AussieLew15-Jul-10 23:11 
GeneralRe: Accessing mdiParent form menu from mdiChild form via code Pin
DaveyM6917-Jul-10 0:35
professionalDaveyM6917-Jul-10 0:35 
GeneralRe: Accessing mdiParent form menu from mdiChild form via code Pin
AussieLew27-Jul-10 13:08
AussieLew27-Jul-10 13:08 
GeneralRe: Accessing mdiParent form menu from mdiChild form via code Pin
DaveyM6930-Jul-10 10:47
professionalDaveyM6930-Jul-10 10:47 
GeneralRe: Accessing mdiParent form menu from mdiChild form via code Pin
AussieLew30-Jul-10 22:51
AussieLew30-Jul-10 22:51 
GeneralRe: Accessing mdiParent form menu from mdiChild form via code Pin
DaveyM6931-Jul-10 0:13
professionalDaveyM6931-Jul-10 0:13 
QuestionList.Sort() Stability? Reliability...? Pin
ely_bob14-Jul-10 14:41
professionalely_bob14-Jul-10 14:41 
AnswerRe: List.Sort() Stability? Reliability...? Pin
Luc Pattyn14-Jul-10 15:17
sitebuilderLuc Pattyn14-Jul-10 15:17 
GeneralRe: List.Sort() Stability? Reliability...? Pin
Ennis Ray Lynch, Jr.15-Jul-10 3:22
Ennis Ray Lynch, Jr.15-Jul-10 3:22 
GeneralRe: List.Sort() Stability? Reliability...? Pin
Richard Blythe15-Jul-10 6:37
Richard Blythe15-Jul-10 6:37 
GeneralRe: List.Sort() Stability? Reliability...? Pin
Richard Blythe15-Jul-10 6:39
Richard Blythe15-Jul-10 6:39 
AnswerRe: List.Sort() Stability? Reliability...? Pin
Luc Pattyn15-Jul-10 7:15
sitebuilderLuc Pattyn15-Jul-10 7:15 
AnswerRe: List.Sort() Stability? Reliability...? Pin
Pete O'Hanlon15-Jul-10 10:37
mvePete O'Hanlon15-Jul-10 10:37 
QuestionHow do I format Column when a Gridview loads? Pin
roman_s14-Jul-10 9:14
roman_s14-Jul-10 9:14 

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.