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

C#

 
AnswerRe: clickonce setup - publish Pin
AhsanS18-Aug-08 20:56
AhsanS18-Aug-08 20:56 
QuestionHelp!!!! Pin
Grim Re@p3r18-Aug-08 20:30
Grim Re@p3r18-Aug-08 20:30 
AnswerRe: Help!!!! Unclear post Pin
Muhammad Gouda18-Aug-08 21:18
Muhammad Gouda18-Aug-08 21:18 
QuestionMDI children instances, how to code Pin
ianhunt0118-Aug-08 20:12
ianhunt0118-Aug-08 20:12 
AnswerRe: MDI children instances, how to code Pin
AhsanS18-Aug-08 20:33
AhsanS18-Aug-08 20:33 
AnswerRe: MDI children instances, how to code Pin
DaveyM6918-Aug-08 22:52
professionalDaveyM6918-Aug-08 22:52 
AnswerRe: MDI children instances, how to code Pin
ianhunt0119-Aug-08 8:56
ianhunt0119-Aug-08 8:56 
GeneralRe: MDI children instances, how to code Pin
DaveyM6919-Aug-08 11:10
professionalDaveyM6919-Aug-08 11:10 
Not really - MDI is much the same as any other winforms app.

The only suggetions I would give are:

1. Get very familiar with events and delegates as inevitably you'll find the need to get your child forms communicating with their parent and siblings.
2. All your child forms are actually hosted in a container which is an instance of the MdiClient class. You may find sometimes it's useful to have access to that control. Creating this readonly property and member variable in your MdiParent will make this much easier.
private MdiClient m_MdiClient;
public MdiClient MdiClient
{
    get
    {
        if (m_MdiClient != null)
            return m_MdiClient;
        foreach (Control control in Controls)
        {
            if (control is MdiClient)
            {
                m_MdiClient = (MdiClient)control;
                return m_MdiClient;
            }
        }
        throw new Exception("MdiClient control could not be found");
    }
}

You then have access to all the containers properties, methods and events!

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)

QuestionHow to bind hardcoded DataGridView with DataTable Pin
Piyush Vaishnav18-Aug-08 19:24
Piyush Vaishnav18-Aug-08 19:24 
AnswerRe: How to bind hardcoded DataGridView with DataTable Pin
AhsanS18-Aug-08 19:33
AhsanS18-Aug-08 19:33 
Questionsource code of scannig image from web cam in vb.net or in c# Pin
shp_ptn18-Aug-08 19:02
shp_ptn18-Aug-08 19:02 
AnswerRe: source code of scannig image from web cam in vb.net or in c# Pin
AhsanS18-Aug-08 19:24
AhsanS18-Aug-08 19:24 
QuestionLinq Noob, stuck on type inference... Pin
callingshotgun18-Aug-08 18:54
callingshotgun18-Aug-08 18:54 
AnswerRe: Linq Noob, stuck on type inference... Pin
leppie18-Aug-08 22:14
leppie18-Aug-08 22:14 
GeneralRe: Linq Noob, stuck on type inference... Pin
callingshotgun19-Aug-08 5:06
callingshotgun19-Aug-08 5:06 
GeneralRe: Linq Noob, stuck on type inference... Pin
leppie19-Aug-08 5:47
leppie19-Aug-08 5:47 
GeneralRe: Linq Noob, stuck on type inference... Pin
callingshotgun19-Aug-08 6:06
callingshotgun19-Aug-08 6:06 
QuestionPInvoke Heartburn Pin
ahfong18-Aug-08 14:33
ahfong18-Aug-08 14:33 
AnswerRe: PInvoke Heartburn Pin
leppie18-Aug-08 22:08
leppie18-Aug-08 22:08 
QuestionShould GenericQueue.Enqueue work while a different thread has LOCK(GenericQueue) ? Pin
JoeRip18-Aug-08 11:46
JoeRip18-Aug-08 11:46 
AnswerRe: Should GenericQueue.Enqueue work while a different thread has LOCK(GenericQueue) ? Pin
Colin Angus Mackay18-Aug-08 12:41
Colin Angus Mackay18-Aug-08 12:41 
GeneralRe: Should GenericQueue.Enqueue work while a different thread has LOCK(GenericQueue) ? Pin
JoeRip18-Aug-08 14:19
JoeRip18-Aug-08 14:19 
GeneralRe: Should GenericQueue.Enqueue work while a different thread has LOCK(GenericQueue) ? Pin
Colin Angus Mackay18-Aug-08 21:06
Colin Angus Mackay18-Aug-08 21:06 
GeneralRe: Should GenericQueue.Enqueue work while a different thread has LOCK(GenericQueue) ? Pin
JoeRip18-Aug-08 21:12
JoeRip18-Aug-08 21:12 
AnswerRe: Should GenericQueue.Enqueue work while a different thread has LOCK(GenericQueue) ? Pin
Guffa18-Aug-08 22:00
Guffa18-Aug-08 22:00 

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.