Click here to Skip to main content
15,867,933 members
Home / Discussions / C#
   

C#

 
GeneralA question about SetForegroundWindow Pin
Member 9401256-May-04 4:15
Member 9401256-May-04 4:15 
GeneralRe: A question about SetForegroundWindow Pin
Stefan Troschuetz6-May-04 8:42
Stefan Troschuetz6-May-04 8:42 
GeneralSending e-mail from Windows Forms Pin
mikker_1236-May-04 4:02
mikker_1236-May-04 4:02 
GeneralRe: Sending e-mail from Windows Forms Pin
Heath Stewart6-May-04 4:18
protectorHeath Stewart6-May-04 4:18 
GeneralRe: Sending e-mail from Windows Forms Pin
mikker_1237-May-04 9:03
mikker_1237-May-04 9:03 
GeneralRe: Sending e-mail from Windows Forms Pin
Heath Stewart7-May-04 9:10
protectorHeath Stewart7-May-04 9:10 
GeneralJPEG TO BITMAP Pin
Member 6910895-May-04 14:43
Member 6910895-May-04 14:43 
GeneralRe: JPEG TO BITMAP Pin
mikker_1236-May-04 3:59
mikker_1236-May-04 3:59 
// pciturePath is path to your JPG picture (this procedure will overwrite it with BMP version)
protected void PlayWithPicABit(string picturePath)
{
System.Drawing.Image image = System.Drawing.Image.FromFile(picturePath);
float x = image.Width;
float y = image.Height;
float desiredSize = Convert.ToInt32(System.Configuration.ConfigurationSettings.AppSettings["width"]);

float percent = (desiredSize/x);
System.Drawing.Image.GetThumbnailImageAbort dummyCallBack = new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback);

System.Drawing.Image littleIMG = image.GetThumbnailImage((int)(x*percent), (int)(y*percent), dummyCallBack, IntPtr.Zero);

image.Dispose();

littleIMG.Save(picturePath, System.Drawing.Imaging.ImageFormat.Bmp);
littleIMG.Dispose();
}

//this function is reqd for thumbnail creation
public bool ThumbnailCallback()
{
return false;
}
GeneralRe: JPEG TO BITMAP Pin
Member 6910896-May-04 16:35
Member 6910896-May-04 16:35 
GeneralRe: JPEG TO BITMAP Pin
mikker_1237-May-04 9:16
mikker_1237-May-04 9:16 
Generalmouse related problem Pin
Zaffar Kamran5-May-04 13:52
Zaffar Kamran5-May-04 13:52 
GeneralRe: mouse related problem Pin
Heath Stewart5-May-04 14:12
protectorHeath Stewart5-May-04 14:12 
GeneralRe: mouse related problem Pin
Member 6910895-May-04 15:05
Member 6910895-May-04 15:05 
QuestionDatagrid Currency Column?? Pin
DougW485-May-04 12:55
DougW485-May-04 12:55 
AnswerRe: Datagrid Currency Column?? Pin
Heath Stewart5-May-04 14:10
protectorHeath Stewart5-May-04 14:10 
GeneralRe: Datagrid Currency Column?? Pin
DougW485-May-04 14:43
DougW485-May-04 14:43 
GeneralNewline in Label Text Pin
Okeno Palmer5-May-04 12:18
Okeno Palmer5-May-04 12:18 
GeneralRe: Newline in Label Text Pin
Heath Stewart5-May-04 14:07
protectorHeath Stewart5-May-04 14:07 
GeneralRe: Newline in Label Text Pin
Okeno Palmer5-May-04 14:51
Okeno Palmer5-May-04 14:51 
GeneralMore of column headers filters in custom lisview Pin
machocr5-May-04 10:58
machocr5-May-04 10:58 
GeneralRe: More of column headers filters in custom lisview Pin
Heath Stewart5-May-04 14:02
protectorHeath Stewart5-May-04 14:02 
Generalfish eye images converter Pin
doph5-May-04 8:34
doph5-May-04 8:34 
GeneralStrange TypeLoadException Pin
Broken God5-May-04 5:59
Broken God5-May-04 5:59 
GeneralRe: Strange TypeLoadException Pin
leppie5-May-04 6:52
leppie5-May-04 6:52 
GeneralRe: Strange TypeLoadException Pin
Anonymous5-May-04 7:47
Anonymous5-May-04 7:47 

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.