Click here to Skip to main content
15,917,702 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .NET Framework 3.0 var data type - Aspect Oriented Pin
#realJSOP31-Oct-07 12:21
professional#realJSOP31-Oct-07 12:21 
GeneralRe: .NET Framework 3.0 var data type - Aspect Oriented Pin
Scott Dorman31-Oct-07 17:14
professionalScott Dorman31-Oct-07 17:14 
GeneralRe: .NET Framework 3.0 var data type - Aspect Oriented Pin
Brady Kelly31-Oct-07 22:25
Brady Kelly31-Oct-07 22:25 
QuestionNET 1.1 troubles after different Windows Updates Pin
Koltz30-Oct-07 9:27
Koltz30-Oct-07 9:27 
AnswerRe: NET 1.1 troubles after different Windows Updates Pin
Mike Dimmick31-Oct-07 5:25
Mike Dimmick31-Oct-07 5:25 
GeneralRe: NET 1.1 troubles after different Windows Updates Pin
Koltz31-Oct-07 7:11
Koltz31-Oct-07 7:11 
JokeRe: NET 1.1 troubles after different Windows Updates Pin
Vasudevan Deepak Kumar1-Nov-07 7:33
Vasudevan Deepak Kumar1-Nov-07 7:33 
QuestionInheriting Windows Forms -- child form problem [modified] Pin
Xpnctoc30-Oct-07 8:04
Xpnctoc30-Oct-07 8:04 
Using VS2005 SP1 on a WinXP Pro machine, using C++/CLI. The behavior described below does NOT happen when I replicate my steps using C#...

I'm trying to create a parent form class "FParent" so that I don't have to keep recreating controls common to each of the child forms. The child controls need to be contained in a Panel control, which I would also prefer to set in the parent form so that I don't have to keep re-creating the container panel.

When I create the child form "FChild", I go into the code view and change the class declaration from "public ref class FChild : public System::Windows::Forms::Form" to "public ref class FChild : public FParent".

At first, I could not drag a control into the parent panel area. However, if I go into the parent code and make "panel1" PROTECTED instead of PRIVATE, now it lets me drag a control.

So then I tried to drag a button onto the panel, and in FChild code I could see the line: "panel1->Controls->Add(button1)". This is exactly what I want. HOWEVER, when I close the designers, rebuild the project, and reopen the designers, the child button no longer renders properly. Instead of rendering as a child of the panel, the control is relative to the FChild client. In other words, if I had dropped a button at Point (3, 3) into the panel which was located at Point(20, 20), the button gets rendered at client point (3, 3) instead of the desired Point(23, 23). To make things worse, if the parent panel overlaps the child control, the parent panel is rendered over the top of the child control.

Does anyone know how to get around this and make the control render as a child of the parent panel, or do I need to compromise and make the container panel a member of FChild instead of FParent?

Thanks for your help.


NewsWPF Composite Client Announced; Acropolis Update Pin
brucedkyle30-Oct-07 7:20
brucedkyle30-Oct-07 7:20 
QuestionConsole help [modified] Pin
tim63730-Oct-07 6:36
tim63730-Oct-07 6:36 
AnswerRe: Console help Pin
Mike Dimmick30-Oct-07 6:51
Mike Dimmick30-Oct-07 6:51 
GeneralRe: Console help Pin
tim63731-Oct-07 5:04
tim63731-Oct-07 5:04 
AnswerRe: Console help Pin
Pete O'Hanlon30-Oct-07 23:19
mvePete O'Hanlon30-Oct-07 23:19 
GeneralRe: Console help Pin
tim63731-Oct-07 5:03
tim63731-Oct-07 5:03 
QuestionDatabase user ID/password Pin
#realJSOP30-Oct-07 3:51
professional#realJSOP30-Oct-07 3:51 
AnswerRe: Database user ID/password Pin
Ed.Poore30-Oct-07 4:20
Ed.Poore30-Oct-07 4:20 
AnswerRe: Database user ID/password Pin
Pete O'Hanlon30-Oct-07 4:49
mvePete O'Hanlon30-Oct-07 4:49 
QuestionSelectSingleNode Not Getting Node Pin
#realJSOP29-Oct-07 12:04
professional#realJSOP29-Oct-07 12:04 
AnswerRe: SelectSingleNode Not Getting Node Pin
Ed.Poore29-Oct-07 13:33
Ed.Poore29-Oct-07 13:33 
GeneralRe: SelectSingleNode Not Getting Node Pin
#realJSOP29-Oct-07 23:22
professional#realJSOP29-Oct-07 23:22 
AnswerRe: SelectSingleNode Not Getting Node Pin
Ed.Poore29-Oct-07 13:42
Ed.Poore29-Oct-07 13:42 
GeneralRe: SelectSingleNode Not Getting Node Pin
#realJSOP29-Oct-07 23:20
professional#realJSOP29-Oct-07 23:20 
GeneralRe: SelectSingleNode Not Getting Node Pin
Ed.Poore30-Oct-07 0:22
Ed.Poore30-Oct-07 0:22 
GeneralRe: SelectSingleNode Not Getting Node Pin
#realJSOP30-Oct-07 2:42
professional#realJSOP30-Oct-07 2:42 
GeneralRe: SelectSingleNode Not Getting Node Pin
Ed.Poore30-Oct-07 3:06
Ed.Poore30-Oct-07 3:06 

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.