Click here to Skip to main content
15,887,962 members
Home / Discussions / C#
   

C#

 
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 
GeneralConvert string to byte[] Pin
Christian Graus15-Jan-03 16:14
protectorChristian Graus15-Jan-03 16:14 
GeneralRe: Convert string to byte[] Pin
David Stone15-Jan-03 17:48
sitebuilderDavid Stone15-Jan-03 17:48 
GeneralRe: Convert string to byte[] Pin
Eric Gunnerson (msft)16-Jan-03 13:08
Eric Gunnerson (msft)16-Jan-03 13:08 
GeneralRe: Convert string to byte[] Pin
Christian Graus16-Jan-03 13:11
protectorChristian Graus16-Jan-03 13:11 
GeneralRe: Convert string to byte[] Pin
David Stone16-Jan-03 15:40
sitebuilderDavid Stone16-Jan-03 15:40 
GeneralRe: Convert string to byte[] Pin
Christian Graus16-Jan-03 15:51
protectorChristian Graus16-Jan-03 15:51 
GeneralRe: Convert string to byte[] Pin
David Stone16-Jan-03 16:04
sitebuilderDavid Stone16-Jan-03 16:04 

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.