没有合适的资源?快使用搜索试试~ 我知道了~
首页C#自定义导航栏控件(组件)源代码(pdf)
资源详情
资源评论
资源推荐

C#自定义导航栏控件(组件)
1)自定义导航栏控件效果图


2)自定义导航栏控件代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
namespace CustomizeControl
{
public class NavBarZ : Form
{
//导航区
public Panel _pnlNavBar;
//主菜单
List<Button> _lstMainMenu;
/// <summary>
/// 创建菜单的 DataTable
/// </summary>
private DataTable _dtSource;
public DataTable dtSource
{
get { return _dtSource; }
set { _dtSource = value; }

}
private struct MenuStct
{
int _menuID;
string _menuName;
int _menuParentID;
string _menuIdChain;
string _mapFrmName;
public MenuStct(int menuID, string menuName, int menuParentID, string menuIdChain, string mapFrmName)
{
this._menuID = menuID;
this._menuName = menuName;
this._menuParentID = menuParentID;
this._menuIdChain = menuIdChain;
this._mapFrmName = mapFrmName;
}
//菜单 ID
public int menuID
{
get { return _menuID; }
set { _menuID = value; }
}
//菜单名
public string menuName
{
剩余19页未读,继续阅读















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0