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

Visual Basic

 
GeneralRe: Capturing a Picturebox in Windows 8 Pin
gwittlock1-Nov-14 22:23
gwittlock1-Nov-14 22:23 
GeneralRe: Capturing a Picturebox in Windows 8 Pin
Richard MacCutchan1-Nov-14 22:32
mveRichard MacCutchan1-Nov-14 22:32 
GeneralRe: Capturing a Picturebox in Windows 8 Pin
Mycroft Holmes1-Nov-14 23:45
professionalMycroft Holmes1-Nov-14 23:45 
GeneralRe: Capturing a Picturebox in Windows 8 Pin
Dave Kreskowiak2-Nov-14 3:58
mveDave Kreskowiak2-Nov-14 3:58 
GeneralRe: Capturing a Picturebox in Windows 8 Pin
gwittlock2-Nov-14 23:25
gwittlock2-Nov-14 23:25 
GeneralRe: Capturing a Picturebox in Windows 8 Pin
Richard MacCutchan3-Nov-14 0:19
mveRichard MacCutchan3-Nov-14 0:19 
RantRe: Capturing a Picturebox in Windows 8 Pin
Eddy Vluggen3-Nov-14 5:59
professionalEddy Vluggen3-Nov-14 5:59 
AnswerRe: Capturing a Picturebox in Windows 8 Pin
Richard Deeming3-Nov-14 2:23
mveRichard Deeming3-Nov-14 2:23 
On the Windows 7 computer that works, have you disabled Aero? It sounds like your code doesn't work with layered windows.

Most Google results seem to suggest that you need to pass the CAPTUREBLT flag (&H40000000L) to the BitBlt function[^]. It's not declared in the RasterOp enum[^], because VB6 came out a long time before Aero, so you'll need to declare it yourself.

My VB's a bit rusty, but something like this should work:
VB
BitBlt hDCMemory, 0, 0, WidthSrc, HeightSrc, hDCSrc, LeftSrc, TopSrc, CLng(vbSrcCopy Or &H40000000L)

Edit: Forgot that VB6 uses Long for 32-bit integers. Blush | :O



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


Questionhow to blink a row(datagridview) when particular column value is todays date - VB - Access code Pin
Member 1119188529-Oct-14 22:28
Member 1119188529-Oct-14 22:28 
AnswerRe: how to blink a row(datagridview) when particular column value is todays date - VB - Access code Pin
Praneet Nadkar29-Oct-14 22:36
Praneet Nadkar29-Oct-14 22:36 
GeneralRe: how to blink a row(datagridview) when particular column value is todays date - VB - Access code Pin
Member 1119188529-Oct-14 22:49
Member 1119188529-Oct-14 22:49 
Questionhow to insert a text ("xxx") into pdf file? Pin
Virendra Singh Bhanu29-Oct-14 15:59
Virendra Singh Bhanu29-Oct-14 15:59 
AnswerRe: how to insert a text ("xxx") into pdf file? Pin
Richard MacCutchan29-Oct-14 22:28
mveRichard MacCutchan29-Oct-14 22:28 
Suggestion[REPOST] how to insert a text ("xxx") into pdf file? Pin
Richard Deeming30-Oct-14 3:21
mveRichard Deeming30-Oct-14 3:21 
QuestionCrystal Report Print Property Name Pin
peppe7928-Oct-14 23:14
peppe7928-Oct-14 23:14 
QuestionCould not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Ed Barnes28-Oct-14 9:09
Ed Barnes28-Oct-14 9:09 
QuestionRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Richard Deeming28-Oct-14 9:33
mveRichard Deeming28-Oct-14 9:33 
AnswerRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Ed Barnes28-Oct-14 9:54
Ed Barnes28-Oct-14 9:54 
GeneralRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Richard Deeming28-Oct-14 10:18
mveRichard Deeming28-Oct-14 10:18 
GeneralRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
btamxx26-Dec-14 9:31
btamxx26-Dec-14 9:31 
AnswerRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Richard Deeming28-Oct-14 10:22
mveRichard Deeming28-Oct-14 10:22 
GeneralRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Ed Barnes28-Oct-14 11:00
Ed Barnes28-Oct-14 11:00 
GeneralRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Eddy Vluggen28-Oct-14 11:13
professionalEddy Vluggen28-Oct-14 11:13 
GeneralRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Ed Barnes28-Oct-14 12:43
Ed Barnes28-Oct-14 12:43 
GeneralRe: Could not Load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly Pin
Eddy Vluggen29-Oct-14 8:52
professionalEddy Vluggen29-Oct-14 8:52 

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.