Click here to Skip to main content
16,005,181 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Email in VB .NET Pin
Dave Kreskowiak19-Apr-04 9:40
mveDave Kreskowiak19-Apr-04 9:40 
GeneralRe: Email in VB .NET Pin
Jubal1519-Apr-04 19:39
Jubal1519-Apr-04 19:39 
Generalautoconverting word version Pin
dark_owl19-Apr-04 5:50
dark_owl19-Apr-04 5:50 
GeneralDistribution of VB.Net in the future Pin
trimtrom19-Apr-04 5:14
trimtrom19-Apr-04 5:14 
GeneralRe: Distribution of VB.Net in the future Pin
Dave Kreskowiak19-Apr-04 6:05
mveDave Kreskowiak19-Apr-04 6:05 
GeneralRe: Distribution of VB.Net in the future Pin
Ian Darling19-Apr-04 6:20
Ian Darling19-Apr-04 6:20 
GeneralRe: Distribution of VB.Net in the future Pin
trimtrom19-Apr-04 8:51
trimtrom19-Apr-04 8:51 
GeneralRe: Distribution of VB.Net in the future Pin
Ian Darling19-Apr-04 8:55
Ian Darling19-Apr-04 8:55 
GeneralRe: Distribution of VB.Net in the future Pin
Colin Angus Mackay19-Apr-04 12:49
Colin Angus Mackay19-Apr-04 12:49 
GeneralWord display in a Winforms app Pin
RichardGrimmer19-Apr-04 3:27
RichardGrimmer19-Apr-04 3:27 
GeneralDocumenting Pin
preid119-Apr-04 3:03
preid119-Apr-04 3:03 
GeneralWriting a VS.NET Addin Pin
cnurse19-Apr-04 2:54
cnurse19-Apr-04 2:54 
GeneralTransparentProxy error in remoting Pin
Sandeep Sharma19-Apr-04 2:20
Sandeep Sharma19-Apr-04 2:20 
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 

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.