Post has been Discarded

Color Picker visual basic 2015

Tutorial to create a color picker in visual basic .net 2015, visual studio using color palette
ChaosEnginesays...

Why do people do this? It's a terrible way to create a coding tutorial.

You can't easily search it, you can't copy the code.

Tell me one way that a video would be better than an article for the same thing.

NoBodysays...

Private Sub pbxPalette_MouseMove(sender As Object, e As MouseEventArgs) Handles pbxPalette.MouseMove
On Error Resume Next
Dim img As Bitmap
img = Me.pbxPalette.BackgroundImage
Dim iY, iX
iX = (MousePosition.X - Me.Left - Me.pbxPalette.Left) * (img.Width / Me.pbxPalette.Width)
iY = (MousePosition.Y - Me.Top - Me.pbxPalette.Top) * (img.Height / Me.pbxPalette.Height)
Me.pbxColor.BackColor = img.GetPixel(iX, iY)
End Sub

Private Sub pbxPalette_Click(sender As Object, e As EventArgs) Handles pbxPalette.Click
Me.pbxSelectedColor.BackColor = Me.pbxColor.BackColor
End Sub

Discuss...

🗨️ Emojis & HTML

Enable JavaScript to submit a comment.

Possible *Invocations
discarddeadnotdeaddiscussfindthumbqualitybrieflongnsfwblockednochannelbandupeoflengthpromotedoublepromote

Send this Article to a Friend



Separate multiple emails with a comma (,); limit 5 recipients






Your email has been sent successfully!

Manage this Video in Your Playlists




notify when someone comments
X

This website uses cookies.

This website uses cookies to improve user experience. By using this website you consent to all cookies in accordance with our Privacy Policy.

I agree
  
Learn More