Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
GeneralMath Pin
eggie511-Aug-03 16:40
eggie511-Aug-03 16:40 
GeneralRe: Math Pin
apferreira11-Aug-03 17:13
apferreira11-Aug-03 17:13 
GeneralRe: Math Pin
eggie511-Aug-03 18:11
eggie511-Aug-03 18:11 
GeneralRe: Math Pin
eggie511-Aug-03 18:25
eggie511-Aug-03 18:25 
GeneralRe: Math Pin
Philip Fitzsimons12-Aug-03 3:19
Philip Fitzsimons12-Aug-03 3:19 
GeneralForm Selection application Pin
azusakt11-Aug-03 15:30
azusakt11-Aug-03 15:30 
GeneralRe: Form Selection application Pin
Ista13-Aug-03 13:31
Ista13-Aug-03 13:31 
QuestionHow to get bimap of a form Pin
sumeat11-Aug-03 14:02
sumeat11-Aug-03 14:02 
I want to display the bitmap of an active form, in a MDI app, in a picture box. The picture box control is on the MDI form, whenever user changes the current active form, the picture box control should show the picture of the active form. I want to know how do I get the picture of the active form.

One method I can think of is:

1. Get the Graphics object of the active form
2. Get the HDC from the graphics object
3. Create a blank bitmap of the same size as the size of the form.
3. Use Win32 function BitBlt and copy the pixel data from the form's hdc to the bitmap's hdc. Save the bitmap to a file and show the file in the picture box.

Is there any other (simpler) way to do this?

Thanks


suhas
AnswerRe: How to get bimap of a form Pin
jtmtv1811-Aug-03 14:21
jtmtv1811-Aug-03 14:21 
GeneralRe: How to get bimap of a form Pin
sumeat11-Aug-03 14:22
sumeat11-Aug-03 14:22 
GeneralHiring .Net Developers Pin
Troy Marchand11-Aug-03 12:30
sitebuilderTroy Marchand11-Aug-03 12:30 
GeneralList View in C# - 2 Quick Questions. Pin
IrishSonic11-Aug-03 11:41
IrishSonic11-Aug-03 11:41 
GeneralRe: List View in C# - 2 Quick Questions. Pin
J. Dunlap11-Aug-03 11:44
J. Dunlap11-Aug-03 11:44 
GeneralClone form content Pin
Radoslav Bielik11-Aug-03 8:51
Radoslav Bielik11-Aug-03 8:51 
GeneralRe: Clone form content Pin
Radoslav Bielik11-Aug-03 10:46
Radoslav Bielik11-Aug-03 10:46 
GeneralRe: Clone form content Pin
mesiasrojo12-Aug-11 0:46
mesiasrojo12-Aug-11 0:46 
GeneralUpdating references Pin
berndg11-Aug-03 6:36
berndg11-Aug-03 6:36 
GeneralRe: Updating references Pin
Furty11-Aug-03 18:32
Furty11-Aug-03 18:32 
GeneralRe: Updating references Pin
berndg11-Aug-03 22:26
berndg11-Aug-03 22:26 
Generaldisable network Pin
Ahmed Mazrou311-Aug-03 6:32
Ahmed Mazrou311-Aug-03 6:32 
Generalcast to unknown type in reflection Pin
Ista11-Aug-03 6:30
Ista11-Aug-03 6:30 
GeneralRe: cast to unknown type in reflection Pin
Furty11-Aug-03 19:07
Furty11-Aug-03 19:07 
QuestionDoes anyone know how to solve this Tree View issue??? Pin
trabiman11-Aug-03 4:30
trabiman11-Aug-03 4:30 
AnswerRe: Does anyone know how to solve this Tree View issue??? Pin
Heath Stewart11-Aug-03 4:53
protectorHeath Stewart11-Aug-03 4:53 
GeneralDirectX SDK question Pin
Radoslav Bielik11-Aug-03 3:09
Radoslav Bielik11-Aug-03 3:09 

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.