Hi -
Is any one having issues with Style Sheet. When designing Windows form having labels and text boxes from Visual Studio, I left space between label and text box. The TextAlign property has been set to Right. When I open it from app having infragistics style sheet, the controls are all messed up and the label is being hided under text box partially?
I also looked into the style sheet that we configured. All it does it setting a Fore Color and it is not changing anything other than that.
Any thoughts?
Thank you,
Swetha.
Hm, that's odd. It makes sense that setting the font to bold would change the size of the controls, since bold is larger than plain text.
But by that rationale, changing the font to bold at design-time should cause the controls to become larger at design-time so you could arrange them the same way.
Perhaps you could try duplicating this problem in a small sample project. It should be pretty straightforward to put some labels and textboxes on a form in a new project and then load your isl file. If that works, post the sample and your isl file here and I will be happy to check it out.
Thanks Mike.
After looking through the isl, looks like the style sheet is making the label text font bold.
If I set the label text font to bold in VS and ran the app using the style sheet, everything looks fine. I dont understand. How come the app is behaving when setting the same property run time and design time.
Hi Swetha,
My guess is that your Style Library file is also changing the Font and then controls on your form are autosizing based on the new font size.
That's the main reason that a style library would ever change the size of a control. Images are another reasons, but I expect it's a lot easier not to notice that your isl file is setting a font them to miss an image. :)