Click here to Skip to main content
15,908,768 members
Home / Discussions / C#
   

C#

 
GeneralRe: MDI - Make only one child(Instance) active Pin
Subrahmanyam K16-May-05 6:20
Subrahmanyam K16-May-05 6:20 
GeneralRe: MDI - Make only one child(Instance) active Pin
Luis Alonso Ramos16-May-05 16:06
Luis Alonso Ramos16-May-05 16:06 
This is what I usually do: (actual code from an app I'm working on right now)
// Search for the Attendance List form among the open child
// forms, and if found, activate it, restoring it if necessary
foreach(Form form in MdiChildren)
{
    if(form is AttendanceForm)
    {
        if(form.WindowState == FormWindowState.Minimized)
            form.WindowState = FormWindowState.Normal;
        form.Activate();
        return;
    }
}

// Form not open, create a new one
AttendanceForm af = new AttendanceForm();
af.MdiParent = this;
af.Visible = true;
I hope it helps.

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralAuthentication with SQL 2000 and C# Pin
Illegal Operation16-May-05 1:16
Illegal Operation16-May-05 1:16 
GeneralRe: Authentication with SQL 2000 and C# Pin
Colin Angus Mackay16-May-05 3:19
Colin Angus Mackay16-May-05 3:19 
QuestionHow to call the storedprocedure in MS Access in C# Pin
luckyeagle15-May-05 16:24
luckyeagle15-May-05 16:24 
AnswerRe: How to call the storedprocedure in MS Access in C# Pin
Colin Angus Mackay16-May-05 1:11
Colin Angus Mackay16-May-05 1:11 
GeneralNewbie Question - Inheirtance - Controls Pin
Wackatronic115-May-05 15:51
Wackatronic115-May-05 15:51 
GeneralRe: Newbie Question - Inheirtance - Controls Pin
Marc Clifton15-May-05 16:04
mvaMarc Clifton15-May-05 16:04 
GeneralCheckedListBox Pin
myNameIsRon15-May-05 14:37
myNameIsRon15-May-05 14:37 
GeneralRe: CheckedListBox Pin
Yulianto.15-May-05 14:52
Yulianto.15-May-05 14:52 
GeneralRe: CheckedListBox Pin
myNameIsRon18-May-05 20:16
myNameIsRon18-May-05 20:16 
GeneralRe: CheckedListBox Pin
Yulianto.18-May-05 20:27
Yulianto.18-May-05 20:27 
GeneralRe: CheckedListBox Pin
myNameIsRon19-May-05 5:36
myNameIsRon19-May-05 5:36 
GeneralRe: CheckedListBox Pin
Yulianto.19-May-05 14:18
Yulianto.19-May-05 14:18 
GeneralStore multiple values Pin
Bahadir Cambel15-May-05 12:21
Bahadir Cambel15-May-05 12:21 
GeneralRe: Store multiple values Pin
Marc Clifton15-May-05 14:13
mvaMarc Clifton15-May-05 14:13 
GeneralRe: Store multiple values Pin
Bahadir Cambel16-May-05 11:39
Bahadir Cambel16-May-05 11:39 
GeneralRe: Store multiple values Pin
Marc Clifton16-May-05 12:20
mvaMarc Clifton16-May-05 12:20 
GeneralRe: Store multiple values Pin
Bahadir Cambel16-May-05 23:59
Bahadir Cambel16-May-05 23:59 
GeneralChange html output with behind page code. Pin
nit11515-May-05 12:03
nit11515-May-05 12:03 
GeneralRe: Change html output with behind page code. Pin
Werdna16-May-05 5:02
Werdna16-May-05 5:02 
GeneralSelection Tool Pin
Moh'd Bahrani15-May-05 10:39
Moh'd Bahrani15-May-05 10:39 
GeneralRe: Selection Tool Pin
Marc Clifton15-May-05 14:08
mvaMarc Clifton15-May-05 14:08 
GeneralRe: Selection Tool Pin
Moh'd Bahrani16-May-05 5:15
Moh'd Bahrani16-May-05 5:15 
QuestionDoes anyone know a C# payroll program? Pin
diabolusgorgon15-May-05 10:11
diabolusgorgon15-May-05 10:11 

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.