Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

checkbox not working the way I want

$
0
0

HI

I added a checkbox to my form that toggles between the form staying at topmost or not.

Problem is it doesn't deactivate when I uncheck the checkbox?

 private void OnTopbox_CheckedChanged(object sender, EventArgs e)
        {
            if (OnTopbox.Checked)
            {
                this.TopMost = true;
            }


Viewing all articles
Browse latest Browse all 2535

Trending Articles