Click here to Skip to main content
15,121,549 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPassing object byRef in Remoting in vb.net - transparentProxy errro Pin
Anonymous19-Apr-04 3:18
MemberAnonymous19-Apr-04 3:18 
QuestionHow do I Pin
KORCARI19-Apr-04 3:08
MemberKORCARI19-Apr-04 3:08 
AnswerRe: How do I Pin
Dave Kreskowiak19-Apr-04 3:39
mveDave Kreskowiak19-Apr-04 3:39 
AnswerRe: How do I Pin
jimpar20-Apr-04 8:41
Memberjimpar20-Apr-04 8:41 
GeneralError in Add-In of Word in Windows 98/ME Pin
Mayank Kumar19-Apr-04 1:39
MemberMayank Kumar19-Apr-04 1:39 
GeneralMicrosoft .Net Framework Source Code Pin
steff kamush18-Apr-04 22:23
Membersteff kamush18-Apr-04 22:23 
GeneralRe: Microsoft .Net Framework Source Code Pin
Dave Kreskowiak19-Apr-04 2:25
mveDave Kreskowiak19-Apr-04 2:25 
GeneralBitBlt LoadImage Pin
Fade (Amit BS)18-Apr-04 15:19
MemberFade (Amit BS)18-Apr-04 15: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 7:40
MemberFade (Amit BS)18-Apr-04 7:40 
GeneralRe: Projects and solutions Pin
Fade (Amit BS)18-Apr-04 8:38
MemberFade (Amit BS)18-Apr-04 8:38 
GeneralAdvanced BitBlt problem... Pin
Fade (Amit BS)18-Apr-04 3:05
MemberFade (Amit BS)18-Apr-04 3:05 
GeneralCreating Application for Website Pin
fargate18-Apr-04 2:17
Memberfargate18-Apr-04 2:17 
GeneralRe: Creating Application for Website Pin
Fade (Amit BS)18-Apr-04 3:12
MemberFade (Amit BS)18-Apr-04 3:12 
GeneralRe: Creating Application for Website Pin
fargate20-Apr-04 2:17
Memberfargate20-Apr-04 2:17 
GeneralRe: Advanced BitBlt problem... Pin
PaleyX17-Apr-04 16:58
MemberPaleyX17-Apr-04 16:58 
GeneralRe: Advanced BitBlt problem... Pin
PaleyX17-Apr-04 17:02
MemberPaleyX17-Apr-04 17:02 
GeneralCenter text on an a form using DrawString Pin
PaleyX17-Apr-04 4:47
MemberPaleyX17-Apr-04 4:47 
GeneralRe: Center text on an a form using DrawString Pin
Dave Kreskowiak17-Apr-04 5:37
mveDave Kreskowiak17-Apr-04 5:37 
GeneralRe: Center text on an a form using DrawString Pin
PaleyX17-Apr-04 7:08
MemberPaleyX17-Apr-04 7:08 
GeneralRe: Center text on an a form using DrawString Pin
Fade (Amit BS)18-Apr-04 3:17
MemberFade (Amit BS)18-Apr-04 3:17 
GeneralRe: Center text on an a form using DrawString Pin
PaleyX18-Apr-04 15:52
MemberPaleyX18-Apr-04 15:52 
Generalget DB schema Pin
Silly Boy17-Apr-04 4:37
MemberSilly Boy17-Apr-04 4:37 
GeneralRe: get DB schema Pin
-Dr_X-18-Apr-04 19:21
Member-Dr_X-18-Apr-04 19:21 
QuestionDraw on a Picture Box? Pin
Toola17-Apr-04 2:50
MemberToola17-Apr-04 2:50 
AnswerRe: Draw on a Picture Box? Pin
Fade (Amit BS)17-Apr-04 15:21
MemberFade (Amit BS)17-Apr-04 15: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.