Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
GeneralRe: plugin based applications in C# projects Pin
Ravi Bhavnani30-Jun-06 9:47
professionalRavi Bhavnani30-Jun-06 9:47 
GeneralRe: plugin based applications in C# projects Pin
sawerr30-Jun-06 9:57
sawerr30-Jun-06 9:57 
GeneralRe: plugin based applications in C# projects Pin
Ravi Bhavnani30-Jun-06 10:13
professionalRavi Bhavnani30-Jun-06 10:13 
GeneralRe: plugin based applications in C# projects Pin
sawerr30-Jun-06 10:22
sawerr30-Jun-06 10:22 
GeneralRe: plugin based applications in C# projects Pin
Ravi Bhavnani30-Jun-06 10:25
professionalRavi Bhavnani30-Jun-06 10:25 
QuestionC# Class question Pin
joshp121730-Jun-06 9:17
joshp121730-Jun-06 9:17 
AnswerRe: C# Class question Pin
Ravi Bhavnani30-Jun-06 9:33
professionalRavi Bhavnani30-Jun-06 9:33 
QuestionImage transparency when resizing [modified] Pin
Palooka30-Jun-06 8:46
Palooka30-Jun-06 8:46 
Hello,

I have got an problem with Painting in C#. When i resize an image, the right side will get more and more transparency.. i dont want that, but i dont know how to fix it.

A part of the code:
<br />
        protected override void OnPaint(PaintEventArgs e)<br />
        {<br />
            base.OnPaint(e);<br />
<br />
            Graphics g = e.Graphics;<br />
<br />
            // Top<br />
            g.DrawImage(Properties.Resources.WindowTopMiddle, 12, 0, this.Width - 22, 40);<br />
            g.DrawImage(Properties.Resources.WindowTopLeft, 0, 0, 12, 40);<br />
            g.DrawImage(Properties.Resources.WindowTopRight, this.Width - 12, 0, 12, 40);<br />
<br />
            // Sides<br />
            g.DrawImage(Properties.Resources.WindowLeft, 0, 40, 8, this.Height - 52);<br />
            g.DrawImage(Properties.Resources.WindowRight, this.Width - 8, 40, 8, this.Height - 52);<br />
<br />
            // Bottom<br />
            g.DrawImage(Properties.Resources.WindowBottomLeft, 0, this.Height - 12, 12, 12);<br />
            g.DrawImage(Properties.Resources.WindowBottomRight, this.Width - 12, this.Height - 12, 12, 12);<br />
            g.DrawImage(Properties.Resources.WindowBottomMiddle, 12, this.Height - 8, this.Width - 22, 8);<br />
        }<br />


You can see, some images have their normal size, and wont get the transparancy..
But the sides, top/bottom middle will.
I dont have changed any default settings, the editor I use is 'Microsoft Visual C# 2005 Express Edition'

Could you please help me?
I look forward to your reply.

- Thomas

-- modified at 15:25 Friday 30th June, 2006
QuestionClose current form and then open new form Pin
Saamir30-Jun-06 8:18
Saamir30-Jun-06 8:18 
AnswerRe: Close current form and then open new form Pin
stancrm30-Jun-06 8:31
stancrm30-Jun-06 8:31 
AnswerRe: Close current form and then open new form Pin
wasife30-Jun-06 20:10
wasife30-Jun-06 20:10 
QuestionRe: Close current form and then open new form Pin
Saamir1-Jul-06 17:24
Saamir1-Jul-06 17:24 
AnswerRe: Close current form and then open new form Pin
Andrew Lygin2-Jul-06 5:44
Andrew Lygin2-Jul-06 5:44 
GeneralRe: Close current form and then open new form Pin
Saamir5-Jul-06 2:46
Saamir5-Jul-06 2:46 
QuestionData Transfer Suggestion Pin
wasife30-Jun-06 7:07
wasife30-Jun-06 7:07 
AnswerRe: Data Transfer Suggestion Pin
Le centriste30-Jun-06 7:18
Le centriste30-Jun-06 7:18 
AnswerRe: Data Transfer Suggestion Pin
Ravi Bhavnani30-Jun-06 7:19
professionalRavi Bhavnani30-Jun-06 7:19 
GeneralRe: Data Transfer Suggestion Pin
wasife30-Jun-06 7:25
wasife30-Jun-06 7:25 
AnswerRe: Data Transfer Suggestion Pin
Ravi Bhavnani30-Jun-06 7:33
professionalRavi Bhavnani30-Jun-06 7:33 
AnswerRe: Data Transfer Suggestion Pin
Jun Du30-Jun-06 7:42
Jun Du30-Jun-06 7:42 
Questionread only array, not read only in property grid Pin
SomeGuyThatIsMe30-Jun-06 6:25
SomeGuyThatIsMe30-Jun-06 6:25 
AnswerRe: read only array, not read only in property grid Pin
Dustin Metzgar30-Jun-06 6:34
Dustin Metzgar30-Jun-06 6:34 
GeneralRe: read only array, not read only in property grid Pin
SomeGuyThatIsMe30-Jun-06 7:41
SomeGuyThatIsMe30-Jun-06 7:41 
GeneralRe: read only array, not read only in property grid Pin
Dustin Metzgar30-Jun-06 8:12
Dustin Metzgar30-Jun-06 8:12 
GeneralRe: read only array, not read only in property grid Pin
SomeGuyThatIsMe30-Jun-06 8:32
SomeGuyThatIsMe30-Jun-06 8:32 

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.