-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UserControl #382
Comments
Try changing the “AutoSize” of the button to “false”. Maybe it could help. |
It's already AutoSize=false. At design time these button are Size (40, 44) but at runtime they become (29, 30) when in the userControl (which is also inside a UC) and they stay the same when not in a UC. They contains only an icon, no text. I tried to isolate the problem with a lighter test project, and the only difference is that it modifies the Size a little bit bigger instead of smaller (they become 46, 50). As soon as I set EnforceBackcolorOnAllComponents to false, the sizing problem disappear.
Obviously, setting this value to false is not an option, as it is causing some other problems. |
Hi @pmcstjean Cheers. |
Thanks for sharing those options but I'll stick with the less dead of all the MS UI options ;) My humble opinion, of course. |
I found the Work around for the size issues. Simply go to the designer file of YOUR UserControl (.designer.vb file) Inside, Private Sub InitializeComponent() logic, Now you'll be able to use UC with no UI level glitch Hope my solution helps you guys @pmcstjean, @Boiled-Yakult, @valimaties and others as well. |
I didn't say its not working, @InfiSoftApps ... I said that leo marked it as deprecated, it says in first page, in readme file. Regards, |
Are UserControl supported or not ? I read that they were not : #320
But so far, it looks like it's working on my side. The only problem I am experiencing is that the controls I put in my UserControl appears smaller. For example, I have a button with a given size on my main form and the same button in my UserControl too, and that one appears smaller.
Is there something I am missing ?
The text was updated successfully, but these errors were encountered: