Dear Deni,
Ini contoh codingnya, copy and paste ke form.
sebelumnya buat Scroll dan Textbox dl.
Option Explicit
Const PosisiAwal = 500
Private Sub Form_Load()
HScroll1.Min = 1
HScroll1.Max = 50
End Sub
Private Sub HScroll1_Change()
'gunakan PosisiAwal sebagai variabel yang tidak berubah nilainya.
'Klo pakai Text1.Left, nilainya akan berubah seiring dgn
Scroll_Change, akibatnya hanya bergerak satu arah.
Text1.Move PosisiAwal + (HScroll1.Value * 50)
End Sub
Regards,
Yulianto
KwetChiro
--- In [email protected], deni aslani <[EMAIL PROTECTED]>
wrote:
>
>
> ga bisa tuh
> kalo scroll geser kekiri atau kekanan
> textbox nya bergeser ke satu arah
> ga bisa dua arah
>
>
> Purwedi Kurniawan <[EMAIL PROTECTED]> wrote:
> kamu masih bisa pake scrollbar nya vb Den, dikombinasikan dg
method move dr object control yg mau kamu pindah.
> ini logika sederhana u. memindahkan textbox1 sesuai dg perubahan
scrollbar
>
> pada waktu user mengubah posisi scrollbar, letakkan code berikut:
>
> textbox1.move textbox1.left + scrollbar.value
>
> selamat bermain :)
> best regards
> [wwn]
>
> On 1/4/06, deni aslani <[EMAIL PROTECTED]> wrote:
> halo rekan-rekan Vbers,
> mau tanya nih ,
> apakah ada component scrollbar yg mempengaruhi posisi suatu
object ?
> kalau Hscrollbar yg ada itu khan hanya menunjukan nilai naik
atau turun
> tapi tidak bisa mempengaruhi posisi suatu object.
>
> terima kasih atas bantuannya
>
>
> Deni Aslani
>
>
>
>
> Untuk keluar dari millis ini, kirim email kosong ke:
> [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------
> YAHOO! GROUPS LINKS
>
>
> Visit your group "Programmer-VB" on the web.
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
> ---------------------------------
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
Untuk keluar dari millis ini, kirim email kosong ke:
[EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmer-VB/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/