On 8 Mar, 14:52, Armin Zingler <az.nos...@freenet.de> wrote:
> Am 08.03.2010 13:05, schrieb Hotrod2000:
>
> > * * Private Declare Function BitBlt Lib "gdi32.dll" Alias
> > "BitBlt" (ByVal hdcDest As IntPtr, ByVal nXDest As Integer, ByVal
> > nYDest As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer,
> > ByVal hdcScr As IntPtr, ByVal nXSrc As Integer, ByVal NySrc As
> > Integer, ByVal dwRop As System.Int32) As Long
> > * * * * BitBlt(dc2, 0, 0, Me.ClientRectangle.Width + widthDiff,dc1, 0
> > - borderSize, 0 - heightTitleBar, 13369376)
> > The error I get is this :-
>
> > Argument not specified for parameter 'dwRop' of 'Declare Ansi Function
> > BitBlt Lib "gdi32.dll" Alias "BitBlt" (hdcDest As System.IntPtr,
> > nXDest As Integer, nYDest As Integer, nWidth As Integer, nHeight As
> > Integer, hdcScr As System.IntPtr, nXSrc As Integer, NySrc As Integer,
> > dwRop As Integer) As Long'.
>
> I should have read everything...
>
> The message says an argument is missing. Use intellisense while typing.
>
> * *BitBlt( _
> * * * dc2, 0, 0, _
> * * * Me.ClientRectangle.Width + widthDiff, <ARGUMENT MISSING HERE>, _
> * * * dc1, 0 - borderSize, 0 - heightTitleBar, 13369376 _
> * *)
>
> The missing argument is the height of the rectangle.
>
> In addition, have a look at the methods
> - System.Drawing.Graphics.CopyFromScreen
> - System.Windows.Forms.Control.DrawToBitmap
>
> --
> Armin
Thanks Armin,
Yep I've put the missing argument in !!! I must check my code writing
more carefully in future !!!
Works a treat with some height code !!!
Thanks again.
|