usercontrol is not working correctly in the application
-
Created usercontrol by taking group box and few controls like textbox, buttons etc. inside the group box. And when I check preview of the usercontrol , it is working correctly. But when I am trying to use it in the application, few controls from group box are flowing out or say the location of few controls in that group box is changed. Please help me if any one knows about this. Thanks in advance
-
Created usercontrol by taking group box and few controls like textbox, buttons etc. inside the group box. And when I check preview of the usercontrol , it is working correctly. But when I am trying to use it in the application, few controls from group box are flowing out or say the location of few controls in that group box is changed. Please help me if any one knows about this. Thanks in advance
Have you set the
Anchor
property for that controls?All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Have you set the
Anchor
property for that controls?All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
ya I have set anchor property for few controls as left,top. One more observation is like if i am using menustrip in my application only then the control's alignment in usercontrol is changing. If I am using it in application without any menustrip then the alignment is correct. I have checked the control's size even , there is a space to expand if i am using it in the application where i am using menustrip. Details: I am calling tabcontrol programmatically in a form containing menustrip. At the same time i am calling usercontrol on the tab page. I have used usercontrol for testing purpose in different applications, in few applications it is working and in few its not. Please tell me if I need to set any property or ny details u want me to check. thank u
modified on Monday, September 8, 2008 3:16 AM
-
ya I have set anchor property for few controls as left,top. One more observation is like if i am using menustrip in my application only then the control's alignment in usercontrol is changing. If I am using it in application without any menustrip then the alignment is correct. I have checked the control's size even , there is a space to expand if i am using it in the application where i am using menustrip. Details: I am calling tabcontrol programmatically in a form containing menustrip. At the same time i am calling usercontrol on the tab page. I have used usercontrol for testing purpose in different applications, in few applications it is working and in few its not. Please tell me if I need to set any property or ny details u want me to check. thank u
modified on Monday, September 8, 2008 3:16 AM
Hey got it. Due to the name of tab control page, alignment of controls in user control was changing. Because, I have selected the font as "verdana" & that too "bold" due to that the alignment was changing. Now it got solved after changing it to normal. It took 2 days to get this point. ahh but solved. bye