Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
GeneralRe: JIT debugger Error. [modified] Pin
Sunil G18-Jan-10 23:50
Sunil G18-Jan-10 23:50 
GeneralRe: JIT debugger Error. Pin
OriginalGriff19-Jan-10 1:07
mveOriginalGriff19-Jan-10 1:07 
GeneralRe: JIT debugger Error. Pin
Sunil G19-Jan-10 1:11
Sunil G19-Jan-10 1:11 
GeneralRe: JIT debugger Error. Pin
OriginalGriff19-Jan-10 1:16
mveOriginalGriff19-Jan-10 1:16 
GeneralRe: JIT debugger Error. Pin
Luc Pattyn19-Jan-10 1:14
sitebuilderLuc Pattyn19-Jan-10 1:14 
GeneralRe: JIT debugger Error. Pin
OriginalGriff19-Jan-10 1:19
mveOriginalGriff19-Jan-10 1:19 
GeneralRe: JIT debugger Error. Pin
Sunil G19-Jan-10 1:25
Sunil G19-Jan-10 1:25 
QuestionContextMenuStrip dynamic item widths Pin
DarrenShultz18-Jan-10 18:42
DarrenShultz18-Jan-10 18:42 
I am attempting to populate a ContextMenuStrip (or any ToolStripDropDown for that matter) with ToolStripMenuItems that have AutoSize set to False and a specific Height and Width. However, I cannot get the ContextMenuStrip to AutoSize (which is set to True on the ContextMenuStrip). The Height appears to be resized, but the Width cuts off the menu items. I have tried using varying values for Margin, Padding, AutoSize, Width, Height... etc... but to no avail. Any ideas?

private void AddMenuItem (ContextMenuStrip oContextMenuStrip, string sText)
{
  oContextMenuStrip.AutoSize = true;

  ToolStripMenuItem oMenuItem = new ToolStripMenuItem(sText);
  oMenuItem.AutoSize = false;
  oMenuItem.Width = 300;
  oMenuItem.Height = 40;

  oContextMenuStrip.Items.Add(oMenuItem);
}

AnswerRe: ContextMenuStrip dynamic item widths Pin
April Fans19-Jan-10 17:52
April Fans19-Jan-10 17:52 
GeneralRe: ContextMenuStrip dynamic item widths Pin
DarrenShultz19-Jan-10 19:08
DarrenShultz19-Jan-10 19:08 
Questionexport DataGridView to excel 2007 in c# Pin
H.R18-Jan-10 18:21
H.R18-Jan-10 18:21 
AnswerRe: export DataGridView to excel 2007 in c# Pin
dan!sh 18-Jan-10 19:17
professional dan!sh 18-Jan-10 19:17 
QuestionKeep from erasing working code in a project Pin
tonyonlinux18-Jan-10 18:11
tonyonlinux18-Jan-10 18:11 
AnswerMessage Closed Pin
18-Jan-10 18:46
stancrm18-Jan-10 18:46 
GeneralRe: Keep from erasing working code in a project Pin
tonyonlinux18-Jan-10 20:29
tonyonlinux18-Jan-10 20:29 
GeneralRe: Keep from erasing working code in a project Pin
Bekjong18-Jan-10 22:02
Bekjong18-Jan-10 22:02 
AnswerRe: Keep from erasing working code in a project Pin
Ashfield18-Jan-10 21:09
Ashfield18-Jan-10 21:09 
Questionexport .m file from text file in VS2008 Pin
mohamadali&M18-Jan-10 18:10
mohamadali&M18-Jan-10 18:10 
AnswerRe: export .m file from text file in VS2008 Pin
Ashfield18-Jan-10 21:13
Ashfield18-Jan-10 21:13 
QuestionKeyEventArgs - differentiate control chars on numeric keypad [modified] Pin
cdesmarais18-Jan-10 12:21
cdesmarais18-Jan-10 12:21 
AnswerRe: KeyEventArgs - differentiate control chars on numeric keypad Pin
Luc Pattyn18-Jan-10 16:07
sitebuilderLuc Pattyn18-Jan-10 16:07 
Questionmanaged and unmanaged code............ Pin
3bood.ghzawi18-Jan-10 10:12
3bood.ghzawi18-Jan-10 10:12 
AnswerRe: managed and unmanaged code............ Pin
Not Active18-Jan-10 11:42
mentorNot Active18-Jan-10 11:42 
QuestionHow to Select Drawn Objects Without Getting a System.Windows.Forms.Control Pin
GeniusMchlahla18-Jan-10 7:34
GeniusMchlahla18-Jan-10 7:34 
AnswerRe: How to Select Drawn Objects Without Getting a System.Windows.Forms.Control Pin
J. Dunlap18-Jan-10 13:11
J. Dunlap18-Jan-10 13:11 

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.