0

hi,
in the database i have a value as True, when it is true i need to write a code for the check box to be ticked when the form is loading i ma using VS 2008 standard C# language?
does anyone know the solution for this?????

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by farooqaaa
1

Put this in the Form_Load event:

bool value = Bool.Parse([B]put that value here[/B]);

if(value)
{
    checkBox1.Checked = true;
}

Thanks

Edited by farooqaaa: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.