Click here to Skip to main content
16,011,608 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Webcam Capturing Component Pin
Codemonkey859-Mar-04 15:26
Codemonkey859-Mar-04 15:26 
GeneralRe: Webcam Capturing Component Pin
Anonymous29-May-04 8:15
Anonymous29-May-04 8:15 
QuestionHow to do a binary search on a dataset? Pin
JimWDurbin7-Mar-04 11:14
JimWDurbin7-Mar-04 11:14 
GeneralActivating a Vb app via a URL Pin
Clyde Davies7-Mar-04 4:42
professionalClyde Davies7-Mar-04 4:42 
GeneralRe: Activating a Vb app via a URL Pin
Dave Kreskowiak7-Mar-04 5:16
mveDave Kreskowiak7-Mar-04 5:16 
GeneralRe: Activating a Vb app via a URL Pin
Clyde Davies8-Mar-04 9:18
professionalClyde Davies8-Mar-04 9:18 
GeneralRe: Activating a Vb app via a URL Pin
Dave Kreskowiak8-Mar-04 10:07
mveDave Kreskowiak8-Mar-04 10:07 
GeneralQuestions about releasing handles. Pin
gregcost7-Mar-04 1:55
gregcost7-Mar-04 1:55 
I Dim a graphic “Public Ax1g1 As Graphics = MYform1.CreateGraphics” and the call the “bitblt” function to capture the image and then I release the handle “Ax1g1.ReleaseHdc(dc1)”

On any subsequent call to this class “Ax1ThumbnailClass.AxCaptureImage” I get an invalid parameter exception on Ax1g1.ReleaseHdc(dc1).

I’ve tried not releasing the handles and I do not get the exception but the captured image is blank.

Help greatly appreciated!!!!

********************CALLING CODE***********************
Ax1Thumbnail.AxCaptureImage(MYform1.AxWebBrowser1.Location.X, MYform1.AxWebBrowser1.Location.Y)
Myform2.thumbScr1.Image = Ax1Thumbnail.Ax1Image.GetThumbnailImage(50, 50, Nothing, Nothing)


Public Class Ax1ThumbnailClass
Public Ax1g1 As Graphics = MYform1.CreateGraphics()
Public Ax1Image = New Bitmap(150, 150, Ax1g1)
Public Ax1g2 As Graphics = Graphics.FromImage(Ax1Image)
Public dc1 As IntPtr = Ax1g1.GetHdc()
Public dc2 As IntPtr = Ax1g2.GetHdc()

Public Sub AxCaptureImage(ByVal Browser1 As Integer, ByVal Browser2 As Integer)
CallBitBlt.BitBlt(dc2, 0, 0, 150, 150, dc1, Browser1, Browser2, SSRCCOPY)
Ax1g1.ReleaseHdc(dc1)
Ax1g2.ReleaseHdc(dc2)
End Sub
End Class

Public Class bitbltClass
<system.runtime.interopservices.dllimportattribute("gdi32.dll")> _
Public Shared Function BitBlt(ByVal hdcDest As IntPtr, _
ByVal nXDest As Integer, _
ByVal nYDest As Integer, _
ByVal nWidth As Integer, _
ByVal nHeight As Integer, _
ByVal hdcSrc As IntPtr, _
ByVal nXSrc As Integer, _
ByVal nYSrc As Integer, _
ByVal dwRop As System.Int32) As Boolean
End Function
End Class


Thanks, GregC
GeneralFtpCommand Problem in VB6 Pin
mariam_S6-Mar-04 19:51
sussmariam_S6-Mar-04 19:51 
GeneralRe: FtpCommand Problem in VB6 Pin
Dave Kreskowiak7-Mar-04 4:58
mveDave Kreskowiak7-Mar-04 4:58 
GeneralPutting a form into another form Pin
GaryKoh6-Mar-04 16:20
GaryKoh6-Mar-04 16:20 
GeneralRe: Putting a form into another form Pin
Dave Kreskowiak7-Mar-04 5:01
mveDave Kreskowiak7-Mar-04 5:01 
GeneralRe: Putting a form into another form Pin
GaryKoh8-Mar-04 5:36
GaryKoh8-Mar-04 5:36 
GeneralRe: Putting a form into another form Pin
Dave Kreskowiak8-Mar-04 7:54
mveDave Kreskowiak8-Mar-04 7:54 
GeneralRe: Putting a form into another form Pin
Anonymous9-Mar-04 18:43
Anonymous9-Mar-04 18:43 
GeneralRe: Putting a form into another form Pin
GaryKoh9-Mar-04 18:44
GaryKoh9-Mar-04 18:44 
GeneralWeb Form Newbie Pin
Isaiah256-Mar-04 2:21
Isaiah256-Mar-04 2:21 
GeneralRe: Web Form Newbie Pin
John Kuhn7-Mar-04 20:30
John Kuhn7-Mar-04 20:30 
QuestionScan IP and Computer Name on LAN? Pin
DaKhucBuon5-Mar-04 17:32
DaKhucBuon5-Mar-04 17:32 
AnswerRe: Scan IP and Computer Name on LAN? Pin
Daniel Turini5-Mar-04 17:48
Daniel Turini5-Mar-04 17:48 
GeneralRe: Scan IP and Computer Name on LAN? Pin
DaKhucBuon6-Mar-04 5:35
DaKhucBuon6-Mar-04 5:35 
GeneralRunning Other Office Applications w/ Excel Visual Basic Pin
rcheek20045-Mar-04 9:29
sussrcheek20045-Mar-04 9:29 
GeneralRe: Running Other Office Applications w/ Excel Visual Basic Pin
partyganger5-Mar-04 9:43
partyganger5-Mar-04 9:43 
QuestionHow to specified datagrid's row backcolor Pin
BigGirlBigEyes5-Mar-04 0:21
BigGirlBigEyes5-Mar-04 0:21 
AnswerRe: How to specified datagrid's row backcolor Pin
-Dr_X-5-Mar-04 16:02
-Dr_X-5-Mar-04 16:02 

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.