Click here to Skip to main content
15,917,564 members
Home / Discussions / C#
   

C#

 
GeneralRe: dll used in C# application in VS2005 works correctly, but didn't work in VS2012. Pin
sreehari_mysore15-May-14 5:56
sreehari_mysore15-May-14 5:56 
AnswerRe: dll used in C# application in VS2005 works correctly, but didn't work in VS2012. Pin
Bernhard Hiller15-May-14 21:43
Bernhard Hiller15-May-14 21:43 
QuestionCreating Multilingual app in C#.net Pin
diwesh14-May-14 15:06
diwesh14-May-14 15:06 
AnswerRe: Creating Multilingual app in C#.net Pin
Bernhard Hiller14-May-14 21:26
Bernhard Hiller14-May-14 21:26 
AnswerRe: Creating Multilingual app in C#.net Pin
diwesh14-May-14 21:31
diwesh14-May-14 21:31 
QuestionWeird Issue With Web Service Pin
SledgeHammer0114-May-14 7:36
SledgeHammer0114-May-14 7:36 
AnswerRe: Weird Issue With Web Service Pin
Kornfeld Eliyahu Peter14-May-14 10:11
professionalKornfeld Eliyahu Peter14-May-14 10:11 
GeneralRe: Weird Issue With Web Service Pin
SledgeHammer0114-May-14 11:08
SledgeHammer0114-May-14 11:08 
Hi,

Just a normal Bitmap:

Bitmap bmp = new Bitmap(cx, cy + 465);

// draw the labels, etc.

using (Graphics gr = Graphics.FromImage(bmp))
{
    // clear the background

    gr.FillRectangle(new SolidBrush(System.Drawing.Color.White), 0, 0, cx, cy + 465);

    // create a rectangle for the image

    Rectangle rect = new Rectangle((cx - img.Width) / 2, 465 + ((cy - img.Height) / 2), img.Width, img.Height);

    // draw the image

    //gr.DrawImageUnscaledAndClipped(img, rect);
    gr.DrawImage(img, rect.Left, rect.Top);

    // draw the header

    gr.DrawImage(Properties.Resources.Header, 0, 0, cx, 465);


The second DrawImage call works fine, but thats a smaller image.
AnswerRe: Weird Issue With Web Service Pin
Kornfeld Eliyahu Peter14-May-14 19:14
professionalKornfeld Eliyahu Peter14-May-14 19:14 
GeneralRe: Weird Issue With Web Service Pin
SledgeHammer0114-May-14 19:25
SledgeHammer0114-May-14 19:25 
AnswerRe: Weird Issue With Web Service Pin
Kornfeld Eliyahu Peter14-May-14 19:37
professionalKornfeld Eliyahu Peter14-May-14 19:37 
AnswerRe: Weird Issue With Web Service Pin
Bernhard Hiller14-May-14 21:36
Bernhard Hiller14-May-14 21:36 
GeneralRe: Weird Issue With Web Service Pin
SledgeHammer0115-May-14 7:12
SledgeHammer0115-May-14 7:12 
GeneralRe: Weird Issue With Web Service Pin
Eddy Vluggen15-May-14 8:20
professionalEddy Vluggen15-May-14 8:20 
GeneralRe: Weird Issue With Web Service Pin
Bernhard Hiller15-May-14 20:54
Bernhard Hiller15-May-14 20:54 
Questionupdate command SQL CE in C# Pin
Lubomír Baloga14-May-14 3:11
Lubomír Baloga14-May-14 3:11 
AnswerRe: update command SQL CE in C# Pin
Eddy Vluggen14-May-14 3:14
professionalEddy Vluggen14-May-14 3:14 
QuestionLoading 3D model from file Pin
MrDooDoo13-May-14 10:32
MrDooDoo13-May-14 10:32 
AnswerRe: Loading 3D model from file Pin
Pete O'Hanlon14-May-14 1:45
mvePete O'Hanlon14-May-14 1:45 
AnswerRe: Loading 3D model from file Pin
Terry Tyson15-May-14 4:18
Terry Tyson15-May-14 4:18 
GeneralRe: Loading 3D model from file Pin
MrDooDoo16-May-14 7:10
MrDooDoo16-May-14 7:10 
QuestionHow to show a message in pole display /customer display Pin
Saroth Nakshabi13-May-14 9:39
Saroth Nakshabi13-May-14 9:39 
AnswerRe: How to show a message in pole display /customer display Pin
Mycroft Holmes13-May-14 13:00
professionalMycroft Holmes13-May-14 13:00 
AnswerRe: How to show a message in pole display /customer display Pin
Simon_Whale13-May-14 21:49
Simon_Whale13-May-14 21:49 
QuestionInstalling a windows service with a msi installer in a correct way and making the servie configurable Pin
Jeffrey Jefferson13-May-14 7:00
Jeffrey Jefferson13-May-14 7: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.