Click here to Skip to main content
16,004,927 members
Home / Discussions / C#
   

C#

 
QuestionRTP Pin
mehrdadc4826-Jul-06 20:25
mehrdadc4826-Jul-06 20:25 
AnswerRe: WinRTP Pin
Divyang Mithaiwala26-Jul-06 22:41
Divyang Mithaiwala26-Jul-06 22:41 
AnswerRe: RTP [modified] Pin
Ed.Poore26-Jul-06 23:57
Ed.Poore26-Jul-06 23:57 
QuestionHow to do shell icon overlay using C# Pin
chovdry26-Jul-06 19:31
chovdry26-Jul-06 19:31 
Questionpreventing settings from being tampered Pin
Mridang Agarwalla26-Jul-06 17:41
Mridang Agarwalla26-Jul-06 17:41 
AnswerRe: preventing settings from being tampered Pin
stancrm26-Jul-06 20:22
stancrm26-Jul-06 20:22 
QuestionMdiParent problem [modified] Pin
Kasic Slobodan26-Jul-06 16:28
Kasic Slobodan26-Jul-06 16:28 
AnswerRe: MdiParent problem Pin
Andrew Lygin26-Jul-06 18:21
Andrew Lygin26-Jul-06 18:21 
Hi,
ActiveForm is a static property of the Form class that returns currently activated form for the application but not the acitve frmMain instance. So in some cases you try to bind child form to the non-MDI-parent form.
To have access to your frmMain form from all your classes you can add static property to it (as in the Singleton pattern):
class frmMain
{
    private static frmMain current;
    public static frmMain Current
    {
        get
        {
            return current;
        }
    }
    public frmMain()
    {
        // constructor logic here
        current = this;
    }
}

Then you can use this property to construct your MDI-child forms:
childForm.MDIParent = frmMain.Current;

GeneralRe: MdiParent problem Pin
Kasic Slobodan26-Jul-06 22:11
Kasic Slobodan26-Jul-06 22:11 
Questionhow it could be? Pin
Maksymus00726-Jul-06 13:01
Maksymus00726-Jul-06 13:01 
AnswerRe: how it could be? Pin
bk_bhupendra_fag092-Nov-09 20:56
bk_bhupendra_fag092-Nov-09 20:56 
QuestionPlz help me in my problem Pin
dirvi26-Jul-06 12:08
dirvi26-Jul-06 12:08 
AnswerRe: Plz help me in my problem Pin
Paul Conrad26-Jul-06 12:11
professionalPaul Conrad26-Jul-06 12:11 
AnswerRe: Plz help me in my problem Pin
Ed.Poore26-Jul-06 12:32
Ed.Poore26-Jul-06 12:32 
QuestionSetup and Deplyment package VS2003 Pin
Ista26-Jul-06 11:17
Ista26-Jul-06 11:17 
QuestionCounting Different Strings Pin
clint198226-Jul-06 11:12
clint198226-Jul-06 11:12 
AnswerLoop Pin
Ennis Ray Lynch, Jr.26-Jul-06 11:25
Ennis Ray Lynch, Jr.26-Jul-06 11:25 
GeneralRe: Loop Pin
clint198226-Jul-06 11:42
clint198226-Jul-06 11:42 
GeneralRe: Loop Pin
Ennis Ray Lynch, Jr.26-Jul-06 11:55
Ennis Ray Lynch, Jr.26-Jul-06 11:55 
GeneralRe: Loop Pin
clint198226-Jul-06 21:30
clint198226-Jul-06 21:30 
GeneralRe: Loop Pin
Ennis Ray Lynch, Jr.27-Jul-06 3:39
Ennis Ray Lynch, Jr.27-Jul-06 3:39 
GeneralHow about this??? Pin
Ennis Ray Lynch, Jr.27-Jul-06 4:26
Ennis Ray Lynch, Jr.27-Jul-06 4:26 
QuestionMulti-Threading a COM DLL in .NET Pin
P Sernz26-Jul-06 11:09
P Sernz26-Jul-06 11:09 
QuestionSmalltalk’s object-based hierarchy does not work so well".Also c#?? Pin
sawerr26-Jul-06 10:54
sawerr26-Jul-06 10:54 
AnswerRe: Smalltalk’s object-based hierarchy does not work so well".Also c#?? Pin
LongRange.Shooter28-Jul-06 9:13
LongRange.Shooter28-Jul-06 9:13 

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.