all groups > dotnet windows forms designtime > december 2004 >
You're in the dotnet windows forms designtime group:
UserControl public child Control does not change child Name to match UserControl Name in Designer
dotnet windows forms designtime:
I'm having a problem getting the designer to update the name of any public child controls of user control when the user control's name is changed. When I try to build after changing the name I get build errors that the child controls name does not exist. If I then build again the name is synchronized and no errors occur. Could someone please help out with this? I have attached a sample project to help show what I'm doing. Thanks, Gregg Walker begin 666 UserDataGroup.zip M4$L#!!0````(`&Y]EC%.BLJ>QP```#8$```5````57-E<D1A=&%'<F]U<"]! M<' N:6-O[9*Q"L(P$(;_M(%NTD?()#Z&@U"%HJ_207"]P<''RM!1^AP^@(-; MO$LJII%2L+CY)9?+74MRY'Y (8,Q)81;!BS9EV6(5PI8Y.QY;]C6; K:?Z,, M(Y"?( I.AJ1XL=9RQOD)YX*3(2E9YG(:T.C-@$:[F/L_3N-+S/GS_>H7^Z[; M'1M]C6F!P>_KR7:EN 3+<J/?6<[G%_%]HG-1OL%;YQ9CT&R=%[U0^P>K#KZ* MQ]=^&QI7U:$A51O.M6GE4@*ER2D4^OJ!)U!+`P04````" !N?98Q0U6H7;H# M``!Z"0``'0```%5S97)$871A1W)O=7 O07-S96UB;'E);F9O+F-SC59M;]LV M$/[<`OT/AP!%G2!3UWW,A@*MLPS!T""HLPW#T@\4=;*82*3 %SOZ][NC*(G> MXFP&#$OD\;GG[KD[.CBEM[ 9G,>N^(IUB](KHW]\\SH<[ 3M58?%VG2]:M%N MT.Z41$=V;UZ_?\]?^ 4U6M'"M:Z-[03#@"A-\"#HP3GLRG8`Y4 :[:UI6ZS M-]:$;4._"#4MF3T[C7 ./9@:A/=6E<&C*V#="+U%-G:X;,!.M $=> .=J50] M1#2UL(AP1,!()3PYW2O?Y)R*,82_IO<+^)2>[I1O<75R<OKMV>U+=-*JGGT< M-UH;7:MML.*_S+I>Z.&XP:TU59#^)81^L&K;O&!R9T6%G;"/+Z"$U@<[!OWJ M52;O[V@=2YHEEB2S!^*2LDXY[UBX0TEK$VP2ZF*&C)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[LHM\K74:D=]3)GK.S1&4#QW6G#H"YMI MBQ&,M); P\J[JK$GQM&RH)20"*):,5X4U6A!(2V5=A8:<077ZA:RQ_ JGB-F M<:Y01^S62#DP./$]WUR["=*3^2P]X]L;,T4WU44S+-<?7@+7H+2#5',QGE6V M;HJ^M"XDK,>T%K;R<R_<M%0@?I$+JOV65@]%:.RO10$\1+PX<+[G\7[=R:RH M#4:#W&:H^!6;Z=Q5$HJE>B^</I$L`8:39[2T,?5VM"P,KTVNXW*D;0`H<NBI
Is there a reason I haven't received a reply to this post. I'm a registered MSDN Universal Subscriber. It's been slightly more than two business days. :) [quoted text, click to view] "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in message news:uU9sRII6EHA.2016@TK2MSFTNGP15.phx.gbl... > I'm having a problem getting the designer to update the name of any public child controls of user control when the user control's > name is changed. When I try to build after changing the name I get build errors that the child controls name does not exist. If > I then build again the name is synchronized and no errors occur. > > Could someone please help out with this? I have attached a sample project to help show what I'm doing. > > Thanks, > Gregg Walker > >
Do I need to repost this? Place it on another topic? Help please! [quoted text, click to view] "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in message news:OzxitMe7EHA.1300@TK2MSFTNGP14.phx.gbl... > Is there a reason I haven't received a reply to this post. I'm a registered MSDN Universal Subscriber. It's been slightly more > than two business days. :) > > "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in message news:uU9sRII6EHA.2016@TK2MSFTNGP15.phx.gbl... >> I'm having a problem getting the designer to update the name of any public child controls of user control when the user control's >> name is changed. When I try to build after changing the name I get build errors that the child controls name does not exist. If >> I then build again the name is synchronized and no errors occur. >> >> Could someone please help out with this? I have attached a sample project to help show what I'm doing. >> >> Thanks, >> Gregg Walker >> >> > >
Error is caused on the not synchronized change of name of the UserControl which just changes the Group property (GroupBox) of the UserControl, leaving the name of the control added to the Controls collection of the UserControl unchaged. this.yourUserControl.Controls.Add(this.yourUserControl.Group); You can try to override the DesignerSerializationVisibility attribute of the Controls collection of your UserControl if you want to prevent the error since the Group box is already added at the constructor of the usercontrol in its InitializeComponent block. I will try to get a logical way to do it next time I have time. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public new Control.ControlCollection Controls { get { return base.Controls; } } "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in message news:OzxitMe7EHA.1300@TK2MSFTNGP14.phx.gbl... [quoted text, click to view] > Is there a reason I haven't received a reply to this post. I'm a registered MSDN Universal Subscriber. It's been slightly more > than two business days. :) > > "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in message news:uU9sRII6EHA.2016@TK2MSFTNGP15.phx.gbl... > > I'm having a problem getting the designer to update the name of any public child controls of user control when the user control's > > name is changed. When I try to build after changing the name I get build errors that the child controls name does not exist. If > > I then build again the name is synchronized and no errors occur. > > > > Could someone please help out with this? I have attached a sample project to help show what I'm doing. > > > > Thanks, > > Gregg Walker > > > > > >
Hi Joey, I tried adding the new Controls property to the UserControl but that did not work. I still get the build error the first time. Thanks for your reply. Gregg Walker [quoted text, click to view] "joeycalisay" <hcalisay@_spamkiller_codex-systems.com> wrote in message news:Owd%23Y668EHA.3076@TK2MSFTNGP15.phx.gbl... > Error is caused on the not synchronized change of name of the UserControl > which just changes the Group property (GroupBox) of the UserControl, leaving > the name of the control added to the Controls collection of the UserControl > unchaged. > > this.yourUserControl.Controls.Add(this.yourUserControl.Group); > > You can try to override the DesignerSerializationVisibility attribute of the > Controls collection of your UserControl if you want to prevent the error > since the Group box is already added at the constructor of the usercontrol > in its InitializeComponent block. I will try to get a logical way to do it > next time I have time. > > > [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] > > public new Control.ControlCollection Controls > > { > > get > > { > > return base.Controls; > > } > > } > > > > > "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in > message news:OzxitMe7EHA.1300@TK2MSFTNGP14.phx.gbl... >> Is there a reason I haven't received a reply to this post. I'm a > registered MSDN Universal Subscriber. It's been slightly more >> than two business days. :) >> >> "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in > message news:uU9sRII6EHA.2016@TK2MSFTNGP15.phx.gbl... >> > I'm having a problem getting the designer to update the name of any > public child controls of user control when the user control's >> > name is changed. When I try to build after changing the name I get > build errors that the child controls name does not exist. If >> > I then build again the name is synchronized and no errors occur. >> > >> > Could someone please help out with this? I have attached a sample > project to help show what I'm doing. >> > >> > Thanks, >> > Gregg Walker >> > >> > >> >> > > >
Ok. I'll give it a try when I get a chance. Thanks a lot. [quoted text, click to view] "joeycalisay" <hcalisay@_spamkiller_codex-systems.com> wrote in message news:OurU2tr9EHA.2600@TK2MSFTNGP09.phx.gbl... >I tried it too. Try to redesign the form from scratch then add your > usercontrol, the generated code shouldn't have: > > this.yourUserControl.Controls.Add(this.yourUserControl.Group); > > line in the form's InitializeComponent. It should work yet I haven't > thought about the solution if it's the ideal one. > > "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in > message news:e$UkY8N9EHA.1408@TK2MSFTNGP10.phx.gbl... >> Hi Joey, >> >> I tried adding the new Controls property to the UserControl but that did > not work. I still get the build error the first time. >> >> Thanks for your reply. >> Gregg Walker >> >> "joeycalisay" <hcalisay@_spamkiller_codex-systems.com> wrote in message > news:Owd%23Y668EHA.3076@TK2MSFTNGP15.phx.gbl... >> > Error is caused on the not synchronized change of name of the > UserControl >> > which just changes the Group property (GroupBox) of the UserControl, > leaving >> > the name of the control added to the Controls collection of the > UserControl >> > unchaged. >> > >> > this.yourUserControl.Controls.Add(this.yourUserControl.Group); >> > >> > You can try to override the DesignerSerializationVisibility attribute of > the >> > Controls collection of your UserControl if you want to prevent the error >> > since the Group box is already added at the constructor of the > usercontrol >> > in its InitializeComponent block. I will try to get a logical way to do > it >> > next time I have time. >> > >> > >> > > [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] >> > >> > public new Control.ControlCollection Controls >> > >> > { >> > >> > get >> > >> > { >> > >> > return base.Controls; >> > >> > } >> > >> > } >> > >> > >> > >> > >> > "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote > in >> > message news:OzxitMe7EHA.1300@TK2MSFTNGP14.phx.gbl... >> >> Is there a reason I haven't received a reply to this post. I'm a >> > registered MSDN Universal Subscriber. It's been slightly more >> >> than two business days. :) >> >> >> >> "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote > in >> > message news:uU9sRII6EHA.2016@TK2MSFTNGP15.phx.gbl... >> >> > I'm having a problem getting the designer to update the name of any >> > public child controls of user control when the user control's >> >> > name is changed. When I try to build after changing the name I get >> > build errors that the child controls name does not exist. If >> >> > I then build again the name is synchronized and no errors occur. >> >> > >> >> > Could someone please help out with this? I have attached a sample >> > project to help show what I'm doing. >> >> > >> >> > Thanks, >> >> > Gregg Walker >> >> > >> >> > >> >> >> >> >> > >> > >> > >> >> > >
I tried it too. Try to redesign the form from scratch then add your usercontrol, the generated code shouldn't have: this.yourUserControl.Controls.Add(this.yourUserControl.Group); line in the form's InitializeComponent. It should work yet I haven't thought about the solution if it's the ideal one. "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in message news:e$UkY8N9EHA.1408@TK2MSFTNGP10.phx.gbl... [quoted text, click to view] > Hi Joey, > > I tried adding the new Controls property to the UserControl but that did not work. I still get the build error the first time. > > Thanks for your reply. > Gregg Walker > > "joeycalisay" <hcalisay@_spamkiller_codex-systems.com> wrote in message news:Owd%23Y668EHA.3076@TK2MSFTNGP15.phx.gbl... > > Error is caused on the not synchronized change of name of the UserControl > > which just changes the Group property (GroupBox) of the UserControl, leaving > > the name of the control added to the Controls collection of the UserControl > > unchaged. > > > > this.yourUserControl.Controls.Add(this.yourUserControl.Group); > > > > You can try to override the DesignerSerializationVisibility attribute of the > > Controls collection of your UserControl if you want to prevent the error > > since the Group box is already added at the constructor of the usercontrol > > in its InitializeComponent block. I will try to get a logical way to do it > > next time I have time. > > > > > > [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] > > > > public new Control.ControlCollection Controls > > > > { > > > > get > > > > { > > > > return base.Controls; > > > > } > > > > } > > > > > > > > > > "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in > > message news:OzxitMe7EHA.1300@TK2MSFTNGP14.phx.gbl... > >> Is there a reason I haven't received a reply to this post. I'm a > > registered MSDN Universal Subscriber. It's been slightly more > >> than two business days. :) > >> > >> "Gregg Walker" <gregg__INVALID_ACCOUNT__@rrmca.comXNXOXSXPXAXMX> wrote in > > message news:uU9sRII6EHA.2016@TK2MSFTNGP15.phx.gbl... > >> > I'm having a problem getting the designer to update the name of any > > public child controls of user control when the user control's > >> > name is changed. When I try to build after changing the name I get > > build errors that the child controls name does not exist. If > >> > I then build again the name is synchronized and no errors occur. > >> > > >> > Could someone please help out with this? I have attached a sample > > project to help show what I'm doing. > >> > > >> > Thanks, > >> > Gregg Walker > >> > > >> > > >> > >> > > > > > > > >
Don't see what you're looking for? Try a search.
|
|
|