Click here to Skip to main content
15,395,065 members
Home / Discussions / C#
   

C#

 
GeneralRe: drag/drop to Windows Explorer Pin
Heath Stewart29-Dec-03 8:55
protectorHeath Stewart29-Dec-03 8:55 
GeneralMulti Page / Frame TIFF File Pin
ttnetworks29-Dec-03 4:16
Memberttnetworks29-Dec-03 4:16 
GeneralRe: Multi Page / Frame TIFF File Pin
Heath Stewart29-Dec-03 5:38
protectorHeath Stewart29-Dec-03 5:38 
GeneralEnable / Disable Cloned Context Menu Items Pin
Daniel Negron29-Dec-03 4:09
MemberDaniel Negron29-Dec-03 4:09 
GeneralRe: Enable / Disable Cloned Context Menu Items Pin
Heath Stewart29-Dec-03 5:45
protectorHeath Stewart29-Dec-03 5:45 
GeneralRe: Enable / Disable Cloned Context Menu Items Pin
Daniel Negron29-Dec-03 9:00
MemberDaniel Negron29-Dec-03 9:00 
GeneralRe: Enable / Disable Cloned Context Menu Items Pin
Heath Stewart29-Dec-03 9:37
protectorHeath Stewart29-Dec-03 9:37 
GeneralRe: Enable / Disable Cloned Context Menu Items Pin
Anonymous29-Dec-03 10:51
MemberAnonymous29-Dec-03 10:51 
Unbelievably, as easy as this may be, for myself it is still not working.
private void InitializeComponent()
{
... excess code removed
//
// contextMenu1
//
MenuItem mnShowClone = this.mnShow.CloneMenu();
MenuItem mnHideClone = this.mnHide.CloneMenu();
// MenuItem mnShowClone = this.mnShow.CloneMenu();
// MenuItem mnHideClone = this.mnHide.CloneMenu();

this.contextMenu1.MenuItems.Add(mnShowClone);
this.contextMenu1.MenuItems.Add(mnHideClone);
this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
}


public void contextMenu1_Popup(object sender, System.EventArgs e)
{
// mnShow.Visible = true;
// mnHide.Visible = false;
mnShowClone.Enabled = this.WindowState == FormWindowState.Minimized;
mnHideClone.Enabled = !mnShowClone.Enabled;
// if (this.WindowState == FormWindowState.Minimized)
// {
// this.ConmnShow.Enabled = true;
// this.mnHide.Enabled = false;
//
// }
// else
// {
// ;
// this.mnShow.Enabled = false;
// this.mnHide.Enabled = true;
// }
}

The lower portion of the last bit of code was what was working when I did not include a MainMenu.

Thanks for you help

**DAN**

GeneralRe: Enable / Disable Cloned Context Menu Items Pin
Daniel Negron29-Dec-03 10:53
MemberDaniel Negron29-Dec-03 10:53 
GeneralRe: Enable / Disable Cloned Context Menu Items Pin
Daniel Negron30-Dec-03 4:04
MemberDaniel Negron30-Dec-03 4:04 
GeneralClearing the Console Pin
extremeg29-Dec-03 3:54
Memberextremeg29-Dec-03 3:54 
GeneralRe: Clearing the Console Pin
Heath Stewart29-Dec-03 5:30
protectorHeath Stewart29-Dec-03 5:30 
GeneralRe: Clearing the Console Pin
Hauptman(n)29-Dec-03 8:51
MemberHauptman(n)29-Dec-03 8:51 
GeneralRe: Clearing the Console Pin
Heath Stewart29-Dec-03 9:35
protectorHeath Stewart29-Dec-03 9:35 
GeneralMenuItem.BarBreak -- who was the idiot.... Pin
Marc Clifton29-Dec-03 3:28
mvaMarc Clifton29-Dec-03 3:28 
GeneralRe: MenuItem.BarBreak -- who was the idiot.... Pin
leppie29-Dec-03 6:42
Memberleppie29-Dec-03 6:42 
GeneralRe: MenuItem.BarBreak -- who was the idiot.... Pin
Marc Clifton29-Dec-03 13:09
mvaMarc Clifton29-Dec-03 13:09 
GeneralRe: MenuItem.BarBreak -- who was the idiot.... Pin
leppie30-Dec-03 6:10
Memberleppie30-Dec-03 6:10 
GeneralRe: MenuItem.BarBreak -- who was the idiot.... Pin
Roger Alsing29-Dec-03 9:18
MemberRoger Alsing29-Dec-03 9:18 
GeneralRe: MenuItem.BarBreak -- who was the idiot.... Pin
Marc Clifton29-Dec-03 13:08
mvaMarc Clifton29-Dec-03 13:08 
Generalmaking c# programs run everywhere Pin
Leon Radley29-Dec-03 1:36
MemberLeon Radley29-Dec-03 1:36 
GeneralRe: making c# programs run everywhere Pin
Jon Newman29-Dec-03 2:28
MemberJon Newman29-Dec-03 2:28 
GeneralRe: making c# programs run everywhere Pin
Heath Stewart29-Dec-03 5:22
protectorHeath Stewart29-Dec-03 5:22 
GeneralLaunching Other Applications Pin
Melanius28-Dec-03 22:37
MemberMelanius28-Dec-03 22:37 
GeneralRe: Launching Other Applications Pin
Jon Newman29-Dec-03 2:30
MemberJon Newman29-Dec-03 2:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.