Click here to Skip to main content
15,898,588 members
Home / Discussions / C#
   

C#

 
GeneralTelnet Pin
David Stone16-Jan-03 11:44
sitebuilderDavid Stone16-Jan-03 11:44 
GeneralRe: Telnet Pin
Nnamdi Onyeyiri19-Jan-03 2:53
Nnamdi Onyeyiri19-Jan-03 2:53 
AnswerRe: Fullscreen forms? Pin
p daddy16-Jan-03 6:18
p daddy16-Jan-03 6:18 
GeneralRe: Fullscreen forms? Pin
Heath Stewart16-Jan-03 11:30
protectorHeath Stewart16-Jan-03 11:30 
GeneralRe: Fullscreen forms? Pin
p daddy16-Jan-03 22:21
p daddy16-Jan-03 22:21 
GeneralRe: Fullscreen forms? Pin
Zibar16-Jan-03 22:34
sussZibar16-Jan-03 22:34 
AnswerRe: Fullscreen forms? Pin
Uwe Keim18-Jan-03 1:19
sitebuilderUwe Keim18-Jan-03 1:19 
GeneralRelative path to Web Services from a .NET Winform Pin
shanelhatcher16-Jan-03 5:31
shanelhatcher16-Jan-03 5:31 
GeneralRe: Relative path to Web Services from a .NET Winform Pin
Heath Stewart16-Jan-03 11:07
protectorHeath Stewart16-Jan-03 11:07 
GeneralRaised Panels can you create them. Pin
S S Basra16-Jan-03 4:36
S S Basra16-Jan-03 4:36 
GeneralRe: Raised Panels can you create them. Pin
FruitBatInShades16-Jan-03 6:58
FruitBatInShades16-Jan-03 6:58 
GeneralRe: Raised Panels can you create them. Pin
Heath Stewart16-Jan-03 11:09
protectorHeath Stewart16-Jan-03 11:09 
GeneralRe: Raised Panels can you create them. Pin
S S Basra17-Jan-03 1:47
S S Basra17-Jan-03 1:47 
GeneralContext menu not displaying! Pin
FruitBatInShades16-Jan-03 4:21
FruitBatInShades16-Jan-03 4:21 
GeneralRe: Context menu not displaying! Pin
Stephane Rodriguez.16-Jan-03 4:39
Stephane Rodriguez.16-Jan-03 4:39 
I don't know how your PopMenu is initialized and attached but what I know is that .NET context menus are automatically shown on right-clicks, and they have to be preably attached to the control with the .ContextMenu property. You never call Show(), or you expose yourself to such things.

Using Show() directly is a hack. Unsure | :~ The executed code is as follows :
public void Show(Control control, Point pos) {
  object[] local0;

  if (control == null) {
    local0 = new Object[2];
    local0[0] = "control";
    local0[1] = "null";
    throw new ArgumentException(SR.GetString("InvalidArgument", local0));
  }
  if (!(control.IsHandleCreated) || !(control.Visible))
    throw new ArgumentException(SR.GetString("ContextMenuInvalidParent"), "control");
    
  this.sourceControl = control;
  this.OnPopup(EventArgs.Empty);
  pos = control.PointToScreen(pos);
  SafeNativeMethods.TrackPopupMenuEx(this.Handle, 64, pos.X, pos.Y, control.Handle, null);
}


Make sure the associated control .Visible property is set to true. When the code reaches TrackPopupMenuEx, it relies on standard WIN32 menus, and at this point you are sure the context menu displays well.
GeneralRe: Context menu not displaying! Pin
FruitBatInShades16-Jan-03 5:16
FruitBatInShades16-Jan-03 5:16 
GeneralRe: Context menu not displaying! Pin
FruitBatInShades16-Jan-03 7:40
FruitBatInShades16-Jan-03 7:40 
GeneralRe: Context menu not displaying! Pin
Stephane Rodriguez.16-Jan-03 7:56
Stephane Rodriguez.16-Jan-03 7:56 
GeneralConfuscious say Tree with weak roots will collapse in breeze! Pin
FruitBatInShades16-Jan-03 9:13
FruitBatInShades16-Jan-03 9:13 
QuestionFullscreen forms? Pin
Zibar16-Jan-03 0:55
sussZibar16-Jan-03 0:55 
Generalunable to reflect type Pin
p daddy16-Jan-03 0:17
p daddy16-Jan-03 0:17 
GeneralRe: unable to reflect type Pin
FruitBatInShades16-Jan-03 0:55
FruitBatInShades16-Jan-03 0:55 
GeneralRe: unable to reflect type Pin
p daddy16-Jan-03 0:57
p daddy16-Jan-03 0:57 
GeneralRe: unable to reflect type Pin
Anonymous16-Jan-03 6:13
Anonymous16-Jan-03 6:13 
GeneralRe: unable to reflect type Pin
p daddy16-Jan-03 6:16
p daddy16-Jan-03 6:16 

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.