Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Visual Basic 2008

Hallo,

Tijdens het maken van mijn programma (zie vraag uit mijn vorig topic) heb ik nog een probleem ondervonden. Toen ik op het idee kwam om een trackbar te maken om te gebruiken om het volume van windows te regelen, kwam ik dit stukje code tegen via Google:

Public Class Form1
   Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer)
   Const KEYEVENTF_KEYUP As Long = &H2

   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       Call keybd_event(System.Windows.Forms.Keys.VolumeUp, 0, 0, 0) 'Volume Up
   End Sub

   Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
       Call keybd_event(System.Windows.Forms.Keys.VolumeDown, 0, 0, 0) 'Volume Down
   End Sub

   Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
       Call keybd_event(System.Windows.Forms.Keys.VolumeMute, 0, 0, 0) 'Mute
   End Sub
End Class

Dit werkt wel, maar ik wil het graag in een trackbar hebben.

Weet iemand hoe ik dit kan doen?

MVG,

Albert

Featured Replies

Dat kan wel, want dan zet je het gewoon in het valuechanged event van de trackbar.

Maar dan zit je wel met het probleem dat je niet weet wat de huidige waarde van het volume is.

  • Author

Ok, dat gaat dus niet?

Dan kan ik dat beter achterwegen laten als er geen andere oplossing is.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.