• λ我爱Aspx >> Asp.Net >> 在系统菜单中添加自定义菜单项
  • 在系统菜单中添加自定义菜单项

  • :未知  Դ:internet  :2007-5-20 16:44:31  ؼ:
  • 我的话entry point 是啥来着..忘了..入口点?不晓得了哈.反正有错就是了..

    Adding the items to the menu

    Adding items to the menu is now pretty simple. To add a separator, you simply pass the arguments 0xA00, 0 and null (Nothing in Visual Basic) into the AppendMenu function. To create a menu item, you pass in 0, the ID to assign to the new the menu item (e.g., 100) and a string containing the text to display for the menu item. For example:

    添加项目到菜单中是很容易的.要添加一个分隔符,你简单的传递参数 0xA00,0和null(在VB中是Nothing)到AppendMenu函数.要建立一个菜单项,你传递 0,分配给新菜单项的ID,和一个包含菜单项上显示的文本的字符串...例如:

    [C# .NET]

    // Get handle to system menu

    int systemMenu = GetSystemMenu(this.Handle.ToInt32(), 0);

    // Create a separator

    AppendMenu(systemMenu, 0xA00, 0, null);

    // Add the about menu item

    AppendMenu(systemMenu, 0, 100, "&About...");

    [Visual Basic .NET]

    ' Get handle to system menu

    Ҷƪл˵?
  • һƪ使用ASP.NET中调用WebService时不能以Name为数据库中的字段
    һƪ利用SOAP(Webservice)上传文件