We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TextAlignment obsolete warnings on CheckBoxAdv

Thread ID:





43079 Apr 13,2006 01:01 PM UTC Apr 17,2006 02:11 PM UTC WinForms 1
Tags: Tools
Christophe Aubry
Asked On April 13, 2006 01:01 PM UTC

Hi I''m using ComboBoxAdv controls. When compiling, I''m getting warnings (in French) : "''Syncfusion.Windows.Forms.Tools.CheckBoxAdv.TextAlignment'' est obsolète" I''ve tried to remove the corresponding line in the InitializeComponent() method, but it always comes back when I''m switching to design mode in VisualStudio. Can you help me to make these annoying warnings disappear ? Thanks

Anupama Roy [Syncfusion]
Replied On April 17, 2006 02:11 PM UTC

Hi Christophe, I assume that you have set the TextContentAlignment property of CheckBoxAdv and due to that TextAlignment property got initialized automatically.If you do not want to set the alignment of the Text,then remove both the lines similar to the below given from your InitializeComponent() method this.checkBoxAdv1.TextAlignment = Syncfusion.Windows.Forms.Tools.TextAlignment.Center; this.checkBoxAdv1.TextContentAlignment = System.Drawing.ContentAlignment.MiddleCenter; For now,if you want to specify the alignment of Text,then set TextContentAlignment in the FormLoad event and this will remove the unwanted warnings. We are able to reproduce the cause and will make the necessary changes immediately. Sorry for any inconvienience caused. Thanks, Anu.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon