Click here to Skip to main content
15,905,566 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bubblesort Algorithm Pin
Simon P Stevens30-Jul-08 21:32
Simon P Stevens30-Jul-08 21:32 
GeneralRe: Bubblesort Algorithm Pin
Vandretta31-Jul-08 0:13
Vandretta31-Jul-08 0:13 
QuestionString manipulation Pin
vinoth.cv130-Jul-08 0:01
vinoth.cv130-Jul-08 0:01 
AnswerRe: String manipulation Pin
Simon P Stevens30-Jul-08 0:19
Simon P Stevens30-Jul-08 0:19 
GeneralRe: String manipulation Pin
leppie30-Jul-08 0:26
leppie30-Jul-08 0:26 
GeneralRe: String manipulation Pin
Simon P Stevens30-Jul-08 0:31
Simon P Stevens30-Jul-08 0:31 
AnswerRe: String manipulation Pin
PIEBALDconsult30-Jul-08 4:26
mvePIEBALDconsult30-Jul-08 4:26 
QuestionCTRL+C and CTRL+V in grid control Pin
eli1502197929-Jul-08 23:51
eli1502197929-Jul-08 23:51 
AnswerRe: CTRL+C and CTRL+V in grid control Pin
paas30-Jul-08 4:25
paas30-Jul-08 4:25 
QuestionGet method name as string Pin
Nicholas Butler29-Jul-08 23:36
sitebuilderNicholas Butler29-Jul-08 23:36 
AnswerRe: Get method name as string Pin
leppie30-Jul-08 0:22
leppie30-Jul-08 0:22 
GeneralRe: Get method name as string Pin
Nicholas Butler30-Jul-08 0:36
sitebuilderNicholas Butler30-Jul-08 0:36 
AnswerRe: Get method name as string Pin
DaveyM6930-Jul-08 1:09
professionalDaveyM6930-Jul-08 1:09 
GeneralRe: Get method name as string Pin
leppie30-Jul-08 2:27
leppie30-Jul-08 2:27 
QuestionControl.Invoke() equivalent with Thread object Pin
ccufi29-Jul-08 23:36
ccufi29-Jul-08 23:36 
AnswerRe: Control.Invoke() equivalent with Thread object Pin
Frank Horn30-Jul-08 0:36
Frank Horn30-Jul-08 0:36 
AnswerRe: Control.Invoke() equivalent with Thread object Pin
Alan N30-Jul-08 4:55
Alan N30-Jul-08 4:55 
QuestionHow to run application from network folder Pin
AndrusM29-Jul-08 23:12
AndrusM29-Jul-08 23:12 
AnswerRe: How to run application from network folder Pin
Simon P Stevens29-Jul-08 23:47
Simon P Stevens29-Jul-08 23:47 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 0:25
AndrusM30-Jul-08 0:25 
If you want your app to automatically just work from a network share you need to design it so it doesn't require full trust

I need that in MDI child form Escape key closes form, Ctrl+F1 cycles and
Ctrl+F10 toggles maximizing. For this I use code below in form base class which requires full trust.
How to implement those features without full trust ?

Andrus.

[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            switch (keyData)
            {
                case Keys.Escape:
                    if (this != FormManager.MainForm)
                    {
                        Close();
                        return true;
                    }
                    break;

                case Keys.Control | Keys.F1:
                    for (int i = 0; i < FormManager.MainForm.MdiChildren.Length; i++)
                    {
                        if (FormManager.MainForm.MdiChildren[i] == this)
                        {

                            if (i < FormManager.MainForm.MdiChildren.Length - 1)
                                FormManager.MainForm.MdiChildren[i + 1].Focus();
                            else
                                FormManager.MainForm.MdiChildren[0].Focus();

                            return true;
                        }
                    }
                    return true;

                case Keys.Control | Keys.F10:
                    if (WindowState == FormWindowState.Maximized)
                        WindowState = FormWindowState.Normal;
                    else
                        WindowState = FormWindowState.Maximized;
                    return true;

            }
            return base.ProcessCmdKey(ref msg, keyData);
        }
    }


Andrus

GeneralRe: How to run application from network folder Pin
Simon P Stevens30-Jul-08 1:16
Simon P Stevens30-Jul-08 1:16 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 1:22
AndrusM30-Jul-08 1:22 
GeneralRe: How to run application from network folder Pin
Simon P Stevens30-Jul-08 1:34
Simon P Stevens30-Jul-08 1:34 
GeneralRe: How to run application from network folder Pin
AndrusM30-Jul-08 7:25
AndrusM30-Jul-08 7:25 
GeneralRe: How to run application from network folder Pin
Simon P Stevens30-Jul-08 21:30
Simon P Stevens30-Jul-08 21:30 

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.