Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
AnswerRe: Have you tried creating an auto adjust menu strip before? Pin
BillWoodruff16-Dec-13 4:28
professionalBillWoodruff16-Dec-13 4:28 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
Ravi Bhavnani16-Dec-13 4:39
professionalRavi Bhavnani16-Dec-13 4:39 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
dudz artiaga16-Dec-13 4:43
dudz artiaga16-Dec-13 4:43 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
Dave Kreskowiak16-Dec-13 6:04
mveDave Kreskowiak16-Dec-13 6:04 
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
dudz artiaga16-Dec-13 15:04
dudz artiaga16-Dec-13 15:04 
QuestionRe: Have you tried creating an auto adjust menu strip before? Pin
Ravi Bhavnani16-Dec-13 9:18
professionalRavi Bhavnani16-Dec-13 9:18 
AnswerRe: Have you tried creating an auto adjust menu strip before? Pin
dudz artiaga16-Dec-13 15:06
dudz artiaga16-Dec-13 15:06 
AnswerRe: Have you tried creating an auto adjust menu strip before? Pin
dudz artiaga18-Dec-13 3:19
dudz artiaga18-Dec-13 3:19 
Hey Ravi, I tried your suggestion regarding setting the margin. Hmm, but I did not achieve what I want, it just put padding on the menu strip as a whole. I want to share you what I did. See code below.

private void ResizeMenu()
{
int itemHeight = (int) (Math.Floor((double)(this.Size.Height / (this.menuStrip1.Items.Count + 1))));

foreach (ToolStripMenuItem item in this.menuStrip1.Items)
{
int prevWidth = item.Size.Width;
item.Size = new Size(prevWidth, itemHeight);
}
}

Sorry I can't format nicely my code here. I am calling the method when form resizes.

Thanks for your help!
GeneralRe: Have you tried creating an auto adjust menu strip before? Pin
Ravi Bhavnani18-Dec-13 3:59
professionalRavi Bhavnani18-Dec-13 3:59 
QuestionDownload Files from FTP using Filers Pin
Sandeepdshenoy16-Dec-13 1:53
Sandeepdshenoy16-Dec-13 1:53 
AnswerRe: Download Files from FTP using Filers Pin
Ravi Bhavnani16-Dec-13 2:47
professionalRavi Bhavnani16-Dec-13 2:47 
AnswerRe: Download Files from FTP using Filers Pin
Sandeepdshenoy16-Dec-13 20:19
Sandeepdshenoy16-Dec-13 20:19 
QuestionHow to access remote file directories without sharing. Pin
Arun kumar Gautam16-Dec-13 0:59
Arun kumar Gautam16-Dec-13 0:59 
AnswerRe: How to access remote file directories without sharing. Pin
Chris Quinn16-Dec-13 1:05
Chris Quinn16-Dec-13 1:05 
Questionrectangle screen capture using csharp Pin
Member 1045598615-Dec-13 15:54
professionalMember 1045598615-Dec-13 15:54 
AnswerRe: rectangle screen capture using csharp Pin
Richard MacCutchan15-Dec-13 21:13
mveRichard MacCutchan15-Dec-13 21:13 
AnswerRe: rectangle screen capture using csharp Pin
GuyThiebaut15-Dec-13 22:09
professionalGuyThiebaut15-Dec-13 22:09 
QuestionHow to Get bound of screen without taskbar c# Pin
delphix515-Dec-13 2:47
delphix515-Dec-13 2:47 
AnswerRe: How to Get bound of screen without taskbar c# Pin
BillWoodruff15-Dec-13 3:45
professionalBillWoodruff15-Dec-13 3:45 
GeneralRe: How to Get bound of screen without taskbar c# Pin
delphix515-Dec-13 6:58
delphix515-Dec-13 6:58 
QuestionFraction calculator problem Pin
Member 982953614-Dec-13 18:25
Member 982953614-Dec-13 18:25 
AnswerRe: Fraction calculator problem Pin
OriginalGriff14-Dec-13 21:54
mveOriginalGriff14-Dec-13 21:54 
AnswerRe: Fraction calculator problem Pin
pzfischer14-Dec-13 22:46
pzfischer14-Dec-13 22:46 
QuestionHow To change mouse cursor Pin
delphix514-Dec-13 10:55
delphix514-Dec-13 10:55 
GeneralRe: How To change mouse cursor Pin
Ron Beyer14-Dec-13 12:00
professionalRon Beyer14-Dec-13 12:00 

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.