A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
How to set Checkbox value from code?
B M-A
361
Reputation points
Hello,
I want to set checkbox value from the code (WPF) but without success.
My code is something like this:
public Main(bool GrupMember)
{
InitializeComponent();
bool idGrup = true ;
checkbox.IsChecked = idGrup ;
MessageBox.Show(idGrup.ToString());
}
Developer technologies | Windows Presentation Foundation
Developer technologies | Windows Presentation Foundation
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
1 answer
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
2 deleted comments
Comments have been turned off. Learn more