Click here to Skip to main content
15,926,507 members
Home / Discussions / C#
   

C#

 
QuestionConverting MP3 to WAV Pin
Hengy3-Jul-06 4:45
Hengy3-Jul-06 4:45 
AnswerRe: Converting MP3 to WAV Pin
Judah Gabriel Himango3-Jul-06 5:30
sponsorJudah Gabriel Himango3-Jul-06 5:30 
QuestionEncription Pin
Nafiseh Salmani3-Jul-06 4:25
Nafiseh Salmani3-Jul-06 4:25 
AnswerRe: Encription Pin
Dave Kreskowiak3-Jul-06 5:22
mveDave Kreskowiak3-Jul-06 5:22 
QuestionRe: Encription Pin
Nafiseh Salmani3-Jul-06 20:01
Nafiseh Salmani3-Jul-06 20:01 
Questiondesigning 'piano roll' control [modified] Pin
davidgale3-Jul-06 4:21
davidgale3-Jul-06 4:21 
AnswerRe: designing 'piano roll' control Pin
Josh Smith3-Jul-06 4:43
Josh Smith3-Jul-06 4:43 
QuestionChanging Fontsizes in Controls Pin
MCSD-Gandalf3-Jul-06 2:33
MCSD-Gandalf3-Jul-06 2:33 
It is always the simple things that get ya'. Is it me or does MS INSIST on making the easy things hard to do? All I need to do is increase the fontsize of a control. Seems I should be able to just add to the current fontsize, but of course I am not allowed to do that. Oh by the way I can't use the Font Dialog.

Here is what I've come up with. Anyone have any better ideas?

private void button3_Click(object sender, System.EventArgs e)
{
System.Drawing.Font currentFont= listBox1.Font;
FontStyle fs= currentFont.Style;
switch (currentFont.Size.ToString())
{
case "8":
listBox1.Font = new Font(currentFont.FontFamily, 10, fs);
break;
case "10":
listBox1.Font = new Font(currentFont.FontFamily, 12, fs);
break;
case "12":
listBox1.Font = new Font(currentFont.FontFamily, 15, fs);
break;
case "15":
listBox1.Font = new Font(currentFont.FontFamily, 8, fs);
break;
}

}

Thanks in advance.

WhiteWizard(aka Gandalf)
AnswerRe: Changing Fontsizes in Controls Pin
stancrm3-Jul-06 3:28
stancrm3-Jul-06 3:28 
GeneralRe: Changing Fontsizes in Controls Pin
MCSD-Gandalf5-Jul-06 0:52
MCSD-Gandalf5-Jul-06 0:52 
QuestionUsing drag and drop in c# Pin
Phanindra Kumar3-Jul-06 2:00
Phanindra Kumar3-Jul-06 2:00 
AnswerRe: Using drag and drop in c# [modified] Pin
jjansen3-Jul-06 2:06
jjansen3-Jul-06 2:06 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar3-Jul-06 19:16
Phanindra Kumar3-Jul-06 19:16 
GeneralRe: Using drag and drop in c# Pin
jjansen3-Jul-06 19:53
jjansen3-Jul-06 19:53 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar3-Jul-06 20:33
Phanindra Kumar3-Jul-06 20:33 
GeneralRe: Using drag and drop in c# Pin
jjansen3-Jul-06 21:04
jjansen3-Jul-06 21:04 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar3-Jul-06 22:12
Phanindra Kumar3-Jul-06 22:12 
AnswerRe: Using drag and drop in c# Pin
jjansen3-Jul-06 22:39
jjansen3-Jul-06 22:39 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar3-Jul-06 23:02
Phanindra Kumar3-Jul-06 23:02 
GeneralRe: Using drag and drop in c# Pin
jjansen4-Jul-06 1:17
jjansen4-Jul-06 1:17 
GeneralRe: Using drag and drop in c# Pin
Phanindra Kumar4-Jul-06 1:35
Phanindra Kumar4-Jul-06 1:35 
QuestionConverting Datagrid to Excel sheet in C# Pin
aaraaayen3-Jul-06 1:44
aaraaayen3-Jul-06 1:44 
AnswerRe: Converting Datagrid to Excel sheet in C# Pin
MCSD-Gandalf3-Jul-06 2:41
MCSD-Gandalf3-Jul-06 2:41 
QuestionGridview to Excel Sheet Pin
aaraaayen3-Jul-06 1:03
aaraaayen3-Jul-06 1:03 
AnswerRe: Gridview to Excel Sheet Pin
psamy3-Jul-06 1:29
psamy3-Jul-06 1:29 

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.