Click here to Skip to main content
15,886,724 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPassing object byRef in Remoting in vb.net - transparentProxy errro Pin
Anonymous19-Apr-04 2:18
Anonymous19-Apr-04 2:18 
QuestionHow do I Pin
KORCARI19-Apr-04 2:08
KORCARI19-Apr-04 2:08 
AnswerRe: How do I Pin
Dave Kreskowiak19-Apr-04 2:39
mveDave Kreskowiak19-Apr-04 2:39 
AnswerRe: How do I Pin
jimpar20-Apr-04 7:41
jimpar20-Apr-04 7:41 
GeneralError in Add-In of Word in Windows 98/ME Pin
Mayank Kumar19-Apr-04 0:39
Mayank Kumar19-Apr-04 0:39 
GeneralMicrosoft .Net Framework Source Code Pin
steff kamush18-Apr-04 21:23
steff kamush18-Apr-04 21:23 
GeneralRe: Microsoft .Net Framework Source Code Pin
Dave Kreskowiak19-Apr-04 1:25
mveDave Kreskowiak19-Apr-04 1:25 
GeneralBitBlt LoadImage Pin
Fade (Amit BS)18-Apr-04 14:19
Fade (Amit BS)18-Apr-04 14:19 
Cry | :(( Can someone PLEASE tell me why this won't work? Cry | :((

  ******** Declarations ******** <br />
    <pre>Private Declare Auto Function BitBlt Lib "GDI32.DLL" ( byVal hdcDest As IntPtr, ByVal nXDest As Integer, _<br />
        ByVal nYDest As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hdcSrc As Long, ByVal <br />
	nXSrc As Integer, ByVal nYSrc As Integer, ByVal dwRop As Int32) As Boolean<br />
<br />
    Private Declare Function LoadImage Lib "user32" Alias "LoadImageA" (ByVal hInst As Long, ByVal lpsz As String, _ <br />
ByVal dwImageType As Long, ByVal dwDesiredWidth As Long, ByVal dwDesiredHeight As Long, ByVal dwFlags As Long) As Long<br />
<br />
    Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long<br />
    Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long<br />
<br />
    Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long<br />
    Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long</pre><br />
<br />
 ******** Consts ******** <br />
    <pre>Private Const LR_LOADFROMFILE = &H10<br />
    Private Const IMAGE_BITMAP = 0<br />
    Private SRCCOPY as Integer = &HCC0020</pre><br />
<br />
<br />
 ******** Sub that won't work ******** <br />
   <pre> Private Sub ShowPicture(ByVal File As String)<br />
        Dim MemBmpHandle As Long<br />
        Dim MemHdc As Long<br />
        Dim Result As Long<br />
'<br />
        MemBmpHandle = LoadImage(0, File, IMAGE_BITMAP, 776, 84, LR_LOADFROMFILE)<br />
        MemHdc = CreateCompatibleDC(0)<br />
        Result = SelectObject(MemHdc, MemBmpHandle)<br />
' <br />
        Dim Grp As Graphics = PictureBox1.CreateGraphics ' Creating graphics object to BitBlt on<br />
        Dim TargetDC As IntPtr = Grp.GetHdc() 'Creating target HDC<br />
'<br />
        BitBlt(TargetDC, 0, 0, 776, 84, MemHdc, 0, 0, SRCCOPY) ' Blitting'<br />
<br />
        Grp.ReleaseHdc(TargetDC)<br />
        Grp.Dispose()<br />
        DeleteDC(MemHdc)<br />
        DeleteObject(MemBmpHandle)<br />
    End Sub


Fade (Amit BS)
GeneralProjects and solutions Pin
Fade (Amit BS)18-Apr-04 6:40
Fade (Amit BS)18-Apr-04 6:40 
GeneralRe: Projects and solutions Pin
Fade (Amit BS)18-Apr-04 7:38
Fade (Amit BS)18-Apr-04 7:38 
GeneralAdvanced BitBlt problem... Pin
Fade (Amit BS)18-Apr-04 2:05
Fade (Amit BS)18-Apr-04 2:05 
GeneralCreating Application for Website Pin
fargate18-Apr-04 1:17
fargate18-Apr-04 1:17 
GeneralRe: Creating Application for Website Pin
Fade (Amit BS)18-Apr-04 2:12
Fade (Amit BS)18-Apr-04 2:12 
GeneralRe: Creating Application for Website Pin
fargate20-Apr-04 1:17
fargate20-Apr-04 1:17 
GeneralRe: Advanced BitBlt problem... Pin
PaleyX17-Apr-04 15:58
PaleyX17-Apr-04 15:58 
GeneralRe: Advanced BitBlt problem... Pin
PaleyX17-Apr-04 16:02
PaleyX17-Apr-04 16:02 
GeneralCenter text on an a form using DrawString Pin
PaleyX17-Apr-04 3:47
PaleyX17-Apr-04 3:47 
GeneralRe: Center text on an a form using DrawString Pin
Dave Kreskowiak17-Apr-04 4:37
mveDave Kreskowiak17-Apr-04 4:37 
GeneralRe: Center text on an a form using DrawString Pin
PaleyX17-Apr-04 6:08
PaleyX17-Apr-04 6:08 
GeneralRe: Center text on an a form using DrawString Pin
Fade (Amit BS)18-Apr-04 2:17
Fade (Amit BS)18-Apr-04 2:17 
GeneralRe: Center text on an a form using DrawString Pin
PaleyX18-Apr-04 14:52
PaleyX18-Apr-04 14:52 
Generalget DB schema Pin
Silly Boy17-Apr-04 3:37
Silly Boy17-Apr-04 3:37 
GeneralRe: get DB schema Pin
-Dr_X-18-Apr-04 18:21
-Dr_X-18-Apr-04 18:21 
QuestionDraw on a Picture Box? Pin
Toola17-Apr-04 1:50
Toola17-Apr-04 1:50 
AnswerRe: Draw on a Picture Box? Pin
Fade (Amit BS)17-Apr-04 14:21
Fade (Amit BS)17-Apr-04 14:21 

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.