Click here to Skip to main content
15,891,633 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: textboxes Pin
Dave Kreskowiak1-Feb-05 3:54
mveDave Kreskowiak1-Feb-05 3:54 
GeneralRe: textboxes Pin
fo0lish1-Feb-05 12:40
fo0lish1-Feb-05 12:40 
GeneralRe: textboxes Pin
Dave Kreskowiak1-Feb-05 17:28
mveDave Kreskowiak1-Feb-05 17:28 
QuestionHow to capture screen in VB.net? Pin
rushing31-Jan-05 21:01
rushing31-Jan-05 21:01 
AnswerRe: How to capture screen in VB.net? Pin
Dave Kreskowiak1-Feb-05 3:52
mveDave Kreskowiak1-Feb-05 3:52 
GeneralRe: How to capture screen in VB.net? Pin
rushing1-Feb-05 14:46
rushing1-Feb-05 14:46 
GeneralThe whole source code . Pin
rushing1-Feb-05 14:51
rushing1-Feb-05 14:51 
GeneralRe: The whole source code . Pin
Dave Kreskowiak1-Feb-05 17:59
mveDave Kreskowiak1-Feb-05 17:59 
First, I didn't appreciate the "1" vote. All I asked you was why you were using StretchBlt and to see the RELEVANT parts of your code and I told you which parts those were.

Second, BitBlt is no different than StrechBlt. Actually, it's a bit simpler to use since there aren't as many parameters.

Third, the SDK documenation on both StretchBlt and BitBlt describe their parameters as HDC, which is just a 32-bit value that should be passed as an IntPtr, and int's, which in VB.NET are Integer types, not Long types.

The corrected Declare statement should look like this:
Private Declare Auto Function StretchBlt Lib "gdi32" ( _
        hDC As IntPtr, x As Integer, y As Integer, _
        nWidth As Integer, nHeight As Integer, _
        hSrcDC As IntPtr, xSrc As Integer, ySrc As Integer, _
        nSrcWidth As Integer, nSrcHeight As Integer, dwRop As Integer) _
        As Integer

BTW: Parameters are passed ByVal by default. You don't need to specify it on every parameter.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralSynchronize two databases Pin
Aman Ullah Principal Software Engineer31-Jan-05 21:00
Aman Ullah Principal Software Engineer31-Jan-05 21:00 
GeneralRe: Synchronize two databases Pin
Dave Kreskowiak1-Feb-05 3:43
mveDave Kreskowiak1-Feb-05 3:43 
GeneralSynchronize two database Pin
Aman Ullah Principal Software Engineer31-Jan-05 20:58
Aman Ullah Principal Software Engineer31-Jan-05 20:58 
GeneralPrinting in VB.net (Please Please help me) Pin
Aman Ullah Principal Software Engineer31-Jan-05 18:31
Aman Ullah Principal Software Engineer31-Jan-05 18:31 
GeneralRe: Printing in VB.net (Please Please help me) Pin
Dave Kreskowiak1-Feb-05 3:39
mveDave Kreskowiak1-Feb-05 3:39 
GeneralVB.Net and Access Stored Procedures Pin
BlueMurderJay31-Jan-05 16:44
BlueMurderJay31-Jan-05 16:44 
GeneralRe: VB.Net and Access Stored Procedures Pin
Just Greeky Creek1-Feb-05 1:41
Just Greeky Creek1-Feb-05 1:41 
GeneralRe: VB.Net and Access Stored Procedures Pin
BlueMurderJay1-Feb-05 14:39
BlueMurderJay1-Feb-05 14:39 
GeneralRe: VB.Net and Access Stored Procedures Pin
BlueMurderJay1-Feb-05 14:44
BlueMurderJay1-Feb-05 14:44 
GeneralRe: VB.Net and Access Stored Procedures Pin
BlueMurderJay1-Feb-05 16:11
BlueMurderJay1-Feb-05 16:11 
GeneralRe: VB.Net and Access Stored Procedures Pin
Dave Kreskowiak1-Feb-05 18:06
mveDave Kreskowiak1-Feb-05 18:06 
QuestionHow to use DirectShow in VB.net? Pin
rushing31-Jan-05 14:32
rushing31-Jan-05 14:32 
AnswerRe: How to use DirectShow in VB.net? Pin
Christian Graus31-Jan-05 14:58
protectorChristian Graus31-Jan-05 14:58 
Generalcrystal reports - dynamically add detail section Pin
kkristian31-Jan-05 11:48
kkristian31-Jan-05 11:48 
QuestionCan someone help me with this one Pin
Delo31-Jan-05 11:39
Delo31-Jan-05 11:39 
AnswerRe: Can someone help me with this one Pin
Charlie Williams31-Jan-05 12:38
Charlie Williams31-Jan-05 12:38 
GeneralRe: Can someone help me with this one Pin
Delo31-Jan-05 12:56
Delo31-Jan-05 12:56 

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.