I made a program that is dialog based program. I have a listbox that I want to doubleclick on something in the listbox and have it show up in an edit control. Know I know that I need to go into classwizard and choose the listboxes Object ID and choose BN_dblclicked message so that when I dblclick on something in the listbox it will actually do something. When I choose the Classname that I want this to work in, thte object ID for my listbox does not show up in the CDlg but only in the CApp, I want to choose it for CDlg. Now if I need to choose the one for CApp how do I make it so that when I dblclick on the listbox in the dialog it will actually show something in the edit box on the same dialog? I tried it and when I compiled it the member variables for the listbox and the edit control are not valid variables in the CApp but they are in the CDlg.