Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21271

[RESOLVED] how to move a picture,img,frame aside and getting it back with a command button

$
0
0
i have a form that when i want to open it then a picture + img + frame are showing up
now when i hit the command button how do i move picture + img + frame aside and when i click the
command button again it returns to its orginal place.
i tried some codes but it dosnt work for me
i want it to move smoothly
this is the codes that i tried
Code:

Dim x As Integer
'x = 100: Do: vkFrame1.Width = vkFrame1.Width + 2: Loop Until vkFrame1.Width = 100
'x = 100: Do: Img.Width = Img.Width + 2: Loop Until Img.Width = 100
'x = 100: Do: vkFrame1.Width = vkFrame1.Width + 2: Loop Until vkFrame1.Width = 100

'x = 100: Do: vkFrame1.Width = vkFrame1.Width + 2: Loop Until vkFrame1.Width = 100
x = 100: vkFrame1.Width = 100
x = 100: Img.Width = 100
x = 100: Pic.Width = 100

' Dim x As Integer: For x = 1000 To 1400: vkFrame1.Width = x: Next x
' Dim s As Integer: For s = 1850 To 8000: Img.Width = s: Next s
' Dim t As Integer: For t = 1850 To 8000: Pic.Width = t: Next t

any help will be appriciated
tnx
salsa31

Viewing all articles
Browse latest Browse all 21271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>