Showing posts with label vb. Show all posts
Showing posts with label vb. Show all posts

Friday, July 31, 2009

Report tanpa Data Environment

Ya, kita tetap bisa membuat report dengan data report tetapi tanpa data environmnet.
hal ini sangat dimungkinkan sekali, karena vb menyediakan objek data control untuk menghubungkan data report dengan database; yaitu adodc salah satunya.

oke, caranya gmn?
1. buat/desain report dengan data report
2. buat koneksi adodc-nya
3. hubungkan data report dengan adodc, yaitu..
- isi properties text pada data report dengan nama_field pada database
4. buat kodenya: letakkan di command atau objek lainnya.
set datareport1.datasource=adodc1
datareport1.show
5. oke deh selesai!

selamat mencoba!

Tuesday, November 4, 2008

Make 'blinking' label or any object with vb

wanna make a blinking label or object?..?

with vb, its so easy....here is the way:

suppose object label1 will blinking, step:

1. Put label1 t the form, fill its caption with any title

2. Put Timer to the form, set its properties: Enabled=true, interval=100 (it means 100 millisecond)

3. Goto code editor by doubleclick Timer, write this code:

    private sub Timer1_Timer()

        label1.visible=not label1.visible   'this will blink label1 each 100ms

     end sub

4. Finish...Run it!....

More timer programming in vb...try this...