Click here to Skip to main content
16,006,440 members
Home / Discussions / C#
   

C#

 
AnswerRe: Shared Classes Among Applications In a Single Project Pin
Matt Newman27-Oct-05 5:14
Matt Newman27-Oct-05 5:14 
GeneralRe: Shared Classes Among Applications In a Single Project Pin
budidharma27-Oct-05 6:11
budidharma27-Oct-05 6:11 
GeneralRe: Shared Classes Among Applications In a Single Project Pin
Rob Graham27-Oct-05 6:20
Rob Graham27-Oct-05 6:20 
AnswerRe: Shared Classes Among Applications In a Single Project Pin
Rob Graham27-Oct-05 6:14
Rob Graham27-Oct-05 6:14 
GeneralRe: Shared Classes Among Applications In a Single Project Pin
budidharma27-Oct-05 6:26
budidharma27-Oct-05 6:26 
QuestionAbout ADO.NET2.0 Exception:Capacity must be larger than 0 Pin
Jeason Zhao27-Oct-05 4:20
Jeason Zhao27-Oct-05 4:20 
Questionmanaged DirectX 9 Pin
faviochilo27-Oct-05 2:28
faviochilo27-Oct-05 2:28 
QuestionOut of Memory using DrawImage & ImageAttributes Pin
mandrake_227-Oct-05 1:57
mandrake_227-Oct-05 1:57 
Hy guys.
I'm Alessio, I don't speak english very well, so excuse me in advance.
I'm writing because I'm getting an error when I use the Graphics.DrawImage method with ImageAttributes parameter.

I've created a Form class to customize the TitleBar.
This "base" form is borderless and in the Constructor I store a small "gif" (30-40 Kb) in a bitmap object with the TitleBar I want to put in the form.

In the paint event I call a procedure passing the PaintEventArgs Graphic object and then I call the DrawImage using the bitmap object.
When the form has got the focus, I call "simple" DrawImage method, but when this form loss the focus, I use the ImageAttributes.SetGamma to brighten up the TitleBar (I pass "0.55f" to SetGamma) and then I call DrawImage passing the ImageAttributes object.

When I run my project, it's ok, but if I create a form that inherits from the "base form", and run the project, I've got an "out of memory" error when this form loss the focus.

Can you help me to understand ?

Thanx anyway

Alessio
AnswerRe: Out of Memory using DrawImage & ImageAttributes Pin
mandrake_227-Oct-05 4:01
mandrake_227-Oct-05 4:01 
Questionvalidators and javascript(confirm) Pin
ali bagheri27-Oct-05 1:45
ali bagheri27-Oct-05 1:45 
AnswerRe: validators and javascript(confirm) Pin
enjoycrack27-Oct-05 6:49
enjoycrack27-Oct-05 6:49 
QuestionHow to place multiple bitmaps into one picturebox ? Pin
Rashid.Mahmood27-Oct-05 1:36
Rashid.Mahmood27-Oct-05 1:36 
AnswerRe: How to place multiple bitmaps into one picturebox ? Pin
Gulfraz Khan27-Oct-05 4:27
Gulfraz Khan27-Oct-05 4:27 
QuestionPrevent Reusability Pin
Anindya Chatterjee27-Oct-05 0:29
Anindya Chatterjee27-Oct-05 0:29 
AnswerRe: Prevent Reusability Pin
enjoycrack27-Oct-05 6:46
enjoycrack27-Oct-05 6:46 
AnswerRe: Prevent Reusability Pin
Dan Neely27-Oct-05 7:03
Dan Neely27-Oct-05 7:03 
QuestionHow to use StrongNamePublicKeyBlob class Pin
dreamwinter26-Oct-05 23:23
dreamwinter26-Oct-05 23:23 
AnswerRe: How to use StrongNamePublicKeyBlob class Pin
enjoycrack27-Oct-05 6:41
enjoycrack27-Oct-05 6:41 
QuestionRegular Expression Doesn't work 100% Pin
Brendan Vogt26-Oct-05 22:34
Brendan Vogt26-Oct-05 22:34 
AnswerRe: Regular Expression Doesn't work 100% Pin
leppie26-Oct-05 22:58
leppie26-Oct-05 22:58 
QuestionScheduled Tasks Pin
Mridang Agarwalla26-Oct-05 22:20
Mridang Agarwalla26-Oct-05 22:20 
QuestionCreating a DWORD value in the registry Pin
Mridang Agarwalla26-Oct-05 22:12
Mridang Agarwalla26-Oct-05 22:12 
AnswerRe: Creating a DWORD value in the registry Pin
leppie26-Oct-05 23:00
leppie26-Oct-05 23:00 
Questionpblm in Xml updation Pin
Nadia Stoichov26-Oct-05 22:07
sussNadia Stoichov26-Oct-05 22:07 
QuestionUpdating a Form while coping files Pin
ah-a26-Oct-05 21:50
ah-a26-Oct-05 21:50 

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.