Click here to Skip to main content
16,020,459 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Luc Pattyn25-Aug-10 13:56
sitebuilderLuc Pattyn25-Aug-10 13:56 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Peter_in_278025-Aug-10 14:33
professionalPeter_in_278025-Aug-10 14:33 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
PIEBALDconsult25-Aug-10 15:53
mvePIEBALDconsult25-Aug-10 15:53 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Luc Pattyn25-Aug-10 16:42
sitebuilderLuc Pattyn25-Aug-10 16:42 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini25-Aug-10 14:16
Sam Martini25-Aug-10 14:16 
AnswerRe: Get the Variable name which passed the value to the Parameter Pin
PIEBALDconsult25-Aug-10 15:55
mvePIEBALDconsult25-Aug-10 15:55 
GeneralRe: Get the Variable name which passed the value to the Parameter Pin
Sam Martini26-Aug-10 3:07
Sam Martini26-Aug-10 3:07 
QuestionNewbie trying to Magnify Flash Object... Pin
Berserker7Force24-Aug-10 14:06
Berserker7Force24-Aug-10 14:06 
I have a Shockwave Flash Object (named webFlash) in my form. I'm trying to use StretchBlt to magnify the object. Ideally I would like to push a button and have it replace the Flash Object on my form with the magnified version.

Any help would be appreciated, even just documentation on how to use StrechBlt because I can't find anything on it. Thank you.

The code below I found browsing the web. It was originally for a mouse cursor, but I'm trying to adapt it.

Private Declare Function GetCursorPos Lib "user32" (ByRef lPointCoordinateoint As PointAPI) As Integer
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lplWindowName As String) As Integer
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Integer, ByVal hWnd2 As Integer, ByVal lpsz1 As String, ByVal lpsz2 As String) As Integer
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Integer) As Integer
Private Declare Function StretchBlt Lib "gdi32" (ByVal hdc As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hSrcDC As Integer, ByVal xSrc As Integer, ByVal ySrc As Integer, ByVal nSrcWidth As Integer, ByVal nSrcHeight As Integer, ByVal dwRop As Integer) As Integer
Private Declare Function GetDesktopWindow Lib "user32" () As Integer
Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As Integer, ByVal hdc As Integer) As Integer
Private Structure PointAPI
    Dim X As Integer
    Dim Y As Integer
End Structure
Dim PointCoordinate As PointAPI
Dim lWind As Integer
Dim lDesktop As Integer
Dim lButton As Integer

Private Sub Video_Mag_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Video_Mag.Click
    Dim lWind As Object

    lWind = GetDesktopWindow()

    lDesktop = GetDC(lWind)

    lButton = GetDC(Me.Handle.ToInt32)

    Timer.Enabled = True
End Sub

Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick
    GetCursorPos(PointCoordinate)
    ' ? > Origin X > Origin Y > Size X > Size Y > ? >
    StretchBlt(lButton, _
               webFlash.Location.X + webFlash.Width + 1, _
               webFlash.Location.Y + webFlash.Height + 1, _
               webFlash.Width, _
               webFlash.Height, _
               lDesktop, _
               webFlash.Location.X + webFlash.Width, _
               webFlash.Location.Y + webFlash.Height, _
               124, 60, &HCC0020)
End Sub

QuestionHow to make a button that will copy two files and put them somewhere else Pin
mshome7724-Aug-10 1:37
mshome7724-Aug-10 1:37 
QuestionRe: How to make a button that will copy two files and put them somewhere else Pin
Covean24-Aug-10 2:08
Covean24-Aug-10 2:08 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
mshome7724-Aug-10 2:17
mshome7724-Aug-10 2:17 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
Richard MacCutchan24-Aug-10 2:56
mveRichard MacCutchan24-Aug-10 2:56 
AnswerRe: How to make a button that will copy two files and put them somewhere else PinPopular
Tom Deketelaere24-Aug-10 3:22
professionalTom Deketelaere24-Aug-10 3:22 
QuestionRe: How to make a button that will copy two files and put them somewhere else [modified] Pin
mshome7724-Aug-10 5:31
mshome7724-Aug-10 5:31 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
spencepk25-Aug-10 2:42
spencepk25-Aug-10 2:42 
AnswerRe: How to make a button that will copy two files and put them somewhere else PinPopular
johannesnestler24-Aug-10 5:22
johannesnestler24-Aug-10 5:22 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
mshome7724-Aug-10 7:40
mshome7724-Aug-10 7:40 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
hahanottelling24-Aug-10 21:13
hahanottelling24-Aug-10 21:13 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
johannesnestler24-Aug-10 22:28
johannesnestler24-Aug-10 22:28 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
Tom Foswick24-Aug-10 21:58
Tom Foswick24-Aug-10 21:58 
GeneralRe: How to make a button that will copy two files and put them somewhere else Pin
mshome7725-Aug-10 2:18
mshome7725-Aug-10 2:18 
AnswerRe: How to make a button that will copy two files and put them somewhere else Pin
Phan7om26-Aug-10 23:19
Phan7om26-Aug-10 23:19 
Questionget the IDLE time [Solved] Pin
εїзεїзεїз23-Aug-10 23:04
εїзεїзεїз23-Aug-10 23:04 
AnswerRe: get the IDLE time Pin
Nuri Ismail23-Aug-10 23:28
Nuri Ismail23-Aug-10 23:28 
GeneralRe: get the IDLE time Pin
εїзεїзεїз23-Aug-10 23:49
εїзεїзεїз23-Aug-10 23:49 

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.