DotNetBar

xiaoxiao2021-03-06  53

1, mouse click event: Menu or Toolbar:

private void dotNetBarManager1_ItemClick (object sender, System.EventArgs e) {BaseItem senderI = sender as BaseItem; if (senderI.Name == "mdpwd") {ModiPWD mdpwdfrm = new ModiPWD (); mdpwdfrm.uname = lname; mdpwdfrm.ShowDialog ( }}

Beginning is very different from the controls in the VS environment, not habits at all, but it is still good, it is still possible.

2, let a menu item fail:

IF (Power! = "admin") {this.dotNetbarManager1.bars ["bar1"]. items ["sysop"]. Subitems ["admin"]. enabled = false;

This place spent a few hours of exploration, and it is not easy.

转载请注明原文地址:https://www.9cbs.com/read-40741.html

New Post(0)