1 year ago
#298791
Famela Marie
Status bar show for c# windows form
I have one status bar. This status bar has capslock, scroll, numlock, insert/overwrite. Basically, if the user use capslock, the capslock status will be enabled, same case in the scroll, numlock. Insert will be enabled when user insert text within text and the insert status will be changed to overwrite if the user choose to overwrite. Once all of these are not being use, it'll be disabled. User will type text inside a richbox. Please help. So far I've only tried on capslock with this code but it's not working. Please help,I don't have any idea on this.
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.CapsLock)
{
caps.Enabled = true;
}
else if (e.KeyCode == Keys.NumLock)
{
num.Enabled = true;
}
}
c#
winforms
c#-3.0
statusbar
0 Answers
Your Answer