Click here to Skip to main content
16,007,163 members
Home / Discussions / C#
   

C#

 
GeneralRe: Microsoft.ApplicationBlocks.ExceptionManagement Pin
Charlie Williams6-Jun-04 8:31
Charlie Williams6-Jun-04 8:31 
QuestionHow can i get the index of a doubleclicked item in the listbox? Pin
yipan6-Jun-04 5:24
yipan6-Jun-04 5:24 
AnswerRe: How can i get the index of a doubleclicked item in the listbox? Pin
Stefan Troschuetz6-Jun-04 6:32
Stefan Troschuetz6-Jun-04 6:32 
GeneralTextbox/Comobox in MenuItem Pin
DennisMetz6-Jun-04 5:18
DennisMetz6-Jun-04 5:18 
Generalsaving a graphic context Pin
cristina_tudor5-Jun-04 22:18
cristina_tudor5-Jun-04 22:18 
GeneralRe: saving a graphic context Pin
leppie5-Jun-04 23:52
leppie5-Jun-04 23:52 
GeneralRe: saving a graphic context Pin
cristina_tudor6-Jun-04 0:17
cristina_tudor6-Jun-04 0:17 
GeneralRe: saving a graphic context Pin
Heath Stewart6-Jun-04 13:33
protectorHeath Stewart6-Jun-04 13:33 
Instead of painting everything in your OnPaint override for your Panel, move your drawing code to a method that takes a Graphics parameter. From the OnPaint override, pass the PaintEventArgs.Graphics property to that method. To save it to a file, create a new Bitmap and get a Graphics object from that (like Graphics.FromImage, for example). Then pass that Graphics object to your method. When the method returns, dispose your Graphics object, save the Bitmap, and dispose the Bitmap. For the OnPaint override, don't dispose anything since it will take care of it for you.

 

Microsoft MVP, Visual C#
My Articles
GeneralDifference between Directory and DirectoryInfo Pin
?!?5-Jun-04 19:37
?!?5-Jun-04 19:37 
GeneralRe: Difference between Directory and DirectoryInfo Pin
Stefan Troschuetz5-Jun-04 20:57
Stefan Troschuetz5-Jun-04 20:57 
GeneralIe engine Pin
RomanD5-Jun-04 12:54
RomanD5-Jun-04 12:54 
GeneralRe: Ie engine Pin
Heath Stewart5-Jun-04 18:13
protectorHeath Stewart5-Jun-04 18:13 
GeneralRe: Ie engine Pin
RomanD6-Jun-04 5:15
RomanD6-Jun-04 5:15 
Generalruning a console app in the background Pin
Anonymous5-Jun-04 10:04
Anonymous5-Jun-04 10:04 
GeneralRe: runing a console app in the background Pin
leppie5-Jun-04 10:46
leppie5-Jun-04 10:46 
GeneralRe: runing a console app in the background Pin
Anonymous5-Jun-04 11:10
Anonymous5-Jun-04 11:10 
GeneralRe: runing a console app in the background Pin
Colin Angus Mackay5-Jun-04 12:27
Colin Angus Mackay5-Jun-04 12:27 
GeneralRe: runing a console app in the background Pin
Roman Rodov6-Jun-04 16:45
Roman Rodov6-Jun-04 16:45 
GeneralWorking with IRC Pin
Marlun5-Jun-04 3:40
Marlun5-Jun-04 3:40 
GeneralRe: Working with IRC Pin
Heath Stewart5-Jun-04 8:24
protectorHeath Stewart5-Jun-04 8:24 
GeneralRe: Working with IRC Pin
CWIZO5-Jun-04 9:14
CWIZO5-Jun-04 9:14 
GeneralRe: Working with IRC Pin
eggie56-Jun-04 11:11
eggie56-Jun-04 11:11 
QuestionHow can I detect silence Pin
GuruVN5-Jun-04 3:11
GuruVN5-Jun-04 3:11 
AnswerRe: How can I detect silence Pin
Heath Stewart5-Jun-04 8:27
protectorHeath Stewart5-Jun-04 8:27 
GeneralRe: How can I detect silence Pin
GuruVN5-Jun-04 15:22
GuruVN5-Jun-04 15:22 

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.