sampai sekarang belum pernah denger tuh ada command button yang berfungsi ganda seperti itu, tapi command button biasa bisa juga diakalin supaya bisa berfungsi ganda dengan menamfaatkan event mousedown atau mouseup, ini ide sederhananya, tapi masih harus dikembangkan lagi.
Private Sub Command1_MouseDown(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
If X < 3 / 4 * Command1.Width Then
'fungsi command button
ElseIf X > 3 / 4 * Command1.Width Then
'fungsi combo box
End If
End Sub
Shift As Integer, X As Single, Y As Single)
If X < 3 / 4 * Command1.Width Then
'fungsi command button
ElseIf X > 3 / 4 * Command1.Width Then
'fungsi combo box
End If
End Sub
Semoga bermanfaat.
Salam,
BH.
Makaliwee <[EMAIL PROTECTED]> wrote:
Rekan programmer,
di-VB ada nggak ya, komponen command button yang
jika diklik ujung kanannya berfungsi sebagai
combobox, tetapi jika diklik bagin lainnya langsung
eksekusi seperti commandbutton.
Terima kasih
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 1GB free storage!
http://sg.info.mail.yahoo.com
Start your day with Yahoo! - make it your home page
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.
