2010-04-21 31 views
1

我嘗試通過ClearCanvas開源源代碼編寫PACS應用程序。但是我只能通過DestopForm的所有內容_mainmenu的可見性變成虛假的舞臺。如何將ClearCanvas DesktopForm應用程序菜單的可見性更改爲false

// _mainMenu 

this._mainMenu.BackColor = System.Drawing.SystemColors.ActiveCaption; 
this._mainMenu.Dock = System.Windows.Forms.DockStyle.None; 
this._mainMenu.ImageScalingSize = new System.Drawing.Size(24, 24); 
this._mainMenu.Location = new System.Drawing.Point(0, 0); 
this._mainMenu.Name = "_mainMenu"; 
this._mainMenu.Size = new System.Drawing.Size(792, 24); 
this._mainMenu.TabIndex = 4; 
this._mainMenu.Text = "menuStrip1"; 
this._mainMenu.Visible = false; 

alt text http://i40.tinypic.com/14snuom.png

我可以做各種形式的活動。但能見度讓我感覺太過了。我該怎麼做?

回答

0

轉到DesktopForm.cs 和註釋掉

/// <summary> 
/// Gets or sets the menu model. 
/// </summary> 
public ActionModelNode MenuModel 
{ 
    get { return _menuModel; } 
    set 
    { 
    // _menuModel = value; 
    // BuildToolStrip(ToolStripBuilder.ToolStripKind.Menu, _mainMenu, _menuModel); 
    } 
} 
相關問題