Posted 26 April 2022, 3:25 pm EST
Hi,
Is there any property for watermark for C1Input controls (textbox, combobox…) ?
I’ve seen this is possible in WPF controls but I didn’t find anything for winforms…
Thanks
Forums Home / ComponentOne / WinForms Edition
Posted by: fsegui on 26 April 2022, 3:25 pm EST
Posted 26 April 2022, 3:25 pm EST
Hi,
Is there any property for watermark for C1Input controls (textbox, combobox…) ?
I’ve seen this is possible in WPF controls but I didn’t find anything for winforms…
Thanks
Posted 27 April 2022, 5:18 am EST
Hi Florent,
Currently, there is no option to set the Placeholder (Watermark) Text for the C1 Input controls (.NET 4.5.2). In .NET6 C1 controls, you can use the Placeholder property to achieve your requirement.
For .NET4.5.2 C1 controls, we have sent an enhancement request for the same to the development team and will let you know as soon as we have an update. In the meantime, as a workaround, you can implement the Placeholder functionality by inheriting the C1TextBox class and manually drawing the Placeholder text. Kindly refer to the attached sample showing the same.
[Internal Tracking ID: C1WIN-27279]
Best Regards,
Kartik
Posted 27 April 2022, 5:59 am EST
Hi,
It’s ok if it’s available in .NET6.
I plan to migrate my project soon.
Thanks
Best regards
Posted 3 January 2023, 6:02 am EST
Hi Florent,
We are glad to let you know that the “Placeholder” property has been added to the .NET 4.5.2/4.8 C1 Input controls. You can update to the latest 2022v3 (584) release using the ComponentOne Control Panel.
(https://www.grapecity.com/componentone/download)
Kind Regards,
Kartik
Posted 3 January 2023, 10:29 am EST
Good news!
Thanks for the feedback