Click here to Skip to main content
15,904,024 members
Home / Discussions / C#
   

C#

 
GeneralRe: Removing rows depending on date [modified] Pin
Stephan Samuel8-Jun-06 10:57
Stephan Samuel8-Jun-06 10:57 
GeneralRe: Removing rows depending on date [modified] Pin
Yustme8-Jun-06 12:24
Yustme8-Jun-06 12:24 
AnswerRe: Removing rows depending on date [modified] Pin
Stephan Samuel8-Jun-06 13:09
Stephan Samuel8-Jun-06 13:09 
GeneralRe: Removing rows depending on date [modified] Pin
Yustme8-Jun-06 22:04
Yustme8-Jun-06 22:04 
QuestionImages don't show in side toolbar Pin
Alaloom8-Jun-06 8:06
Alaloom8-Jun-06 8:06 
AnswerRe: Images don't show in side toolbar Pin
leppie8-Jun-06 20:48
leppie8-Jun-06 20:48 
QuestionPrinting a TabPage from a TabControl Pin
Mate68-Jun-06 8:04
Mate68-Jun-06 8:04 
AnswerRe: Printing a TabPage from a TabControl Pin
Thomas Stockwell8-Jun-06 14:13
professionalThomas Stockwell8-Jun-06 14:13 
You could either write your own paint routine, or you can do the equivelant of a print screen by copying bits of the screen to a bitmap through API.

This is some VB code that I used in one of my other applications:
    Public Function WindowCapture(ByVal form As Form) As Bitmap<br />
        ' Get this form's Graphics object.<br />
        Dim me_gr As Graphics = form.CreateGraphics<br />
<br />
        ' Make a Bitmap to hold the image.<br />
        Dim bm As New Bitmap(form.Width, form.Height, me_gr)<br />
        Dim bm_gr As Graphics = me_gr.FromImage(bm)<br />
        Dim bm_hdc As IntPtr = bm_gr.GetHdc<br />
<br />
        ' Get the form's hDC. We must do this after <br />
        ' creating the new Bitmap, which uses me_gr.<br />
        Dim me_hdc As IntPtr = win32api.GetWindowDC(form.Handle)<br />
<br />
        ' BitBlt the form's image onto the Bitmap.<br />
        win32api.BitBlt(bm_hdc, 0, 0, form.Width, form.Height, _<br />
            me_hdc, 0, 0, win32api.SRCCOPY)<br />
        bm_gr.ReleaseHdc(bm_hdc)<br />
<br />
        ' Return the result.<br />
        Return bm<br />
    End Function<br />

All calls to the win32api class are API calls or constants that can be found in the program APIViewer

Regards,
1tg46

Check out 3D Game Development with Dark Basic Professional [^]programming.
QuestionIs it possible to force the KeyDown Event of a TextBox? Pin
Martin#8-Jun-06 7:50
Martin#8-Jun-06 7:50 
AnswerRe: Is it possible to force the KeyDown Event of a TextBox? Pin
Josh Smith8-Jun-06 8:07
Josh Smith8-Jun-06 8:07 
GeneralRe: Is it possible to force the KeyDown Event of a TextBox? Pin
Martin#8-Jun-06 8:43
Martin#8-Jun-06 8:43 
GeneralRe: Is it possible to force the KeyDown Event of a TextBox? Pin
Josh Smith8-Jun-06 14:23
Josh Smith8-Jun-06 14:23 
GeneralRe: Is it possible to force the KeyDown Event of a TextBox? Pin
Martin#8-Jun-06 20:00
Martin#8-Jun-06 20:00 
GeneralRe: Is it possible to force the KeyDown Event of a TextBox? [modified] Pin
Josh Smith9-Jun-06 1:57
Josh Smith9-Jun-06 1:57 
AnswerRe: Is it possible to force the KeyDown Event of a TextBox? Pin
Martin#9-Jun-06 9:42
Martin#9-Jun-06 9:42 
QuestionHow to install ? Pin
Mohammadreza Heidari8-Jun-06 7:37
Mohammadreza Heidari8-Jun-06 7:37 
AnswerRe: How to install ? Pin
Ed.Poore8-Jun-06 8:13
Ed.Poore8-Jun-06 8:13 
QuestionHow To Setup MSDE With My Setup Project Pin
AhmedElbaz8-Jun-06 6:57
AhmedElbaz8-Jun-06 6:57 
QuestionSkyWave Sample Application Pin
Majid Shahabfar8-Jun-06 6:02
Majid Shahabfar8-Jun-06 6:02 
QuestionConnection Status Changes Pin
ventomito8-Jun-06 6:00
ventomito8-Jun-06 6:00 
AnswerRe: Connection Status Changes Pin
Ravi Bhavnani8-Jun-06 7:00
professionalRavi Bhavnani8-Jun-06 7:00 
GeneralRe: Connection Status Changes Pin
ventomito8-Jun-06 7:18
ventomito8-Jun-06 7:18 
AnswerRe: Connection Status Changes Pin
Ravi Bhavnani8-Jun-06 7:24
professionalRavi Bhavnani8-Jun-06 7:24 
QuestionDataRow inaccessible... Pin
reshsilk8-Jun-06 5:55
reshsilk8-Jun-06 5:55 
AnswerRe: DataRow inaccessible... Pin
Wjousts8-Jun-06 8:03
Wjousts8-Jun-06 8:03 

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.