I want to make an colorpicker in msacces. So i can pick on the desktop screen any color i want.
like the program jcpicker.
This is what working in VB net:
Dim bmp As New Drawing.Bitmap(1, 1)
Dim gfx As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(bmp)
gfx.CopyFromScreen(New Drawing.Point(MousePosition.X, MousePosition.Y), New Drawing.Point(0, 0), bmp.Size)
Dim pixel As Drawing.Color = bmp.GetPixel(0, 0)
Cpanel.BackColor = pixel
RedTextBox.Text = pixel.R
GreenTextBox.Text = pixel.G
BlueTextBox.Text = pixel.B
But how can i do this in VBA in msacces??
like the program jcpicker.
This is what working in VB net:
Dim bmp As New Drawing.Bitmap(1, 1)
Dim gfx As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(bmp)
gfx.CopyFromScreen(New Drawing.Point(MousePosition.X, MousePosition.Y), New Drawing.Point(0, 0), bmp.Size)
Dim pixel As Drawing.Color = bmp.GetPixel(0, 0)
Cpanel.BackColor = pixel
RedTextBox.Text = pixel.R
GreenTextBox.Text = pixel.G
BlueTextBox.Text = pixel.B
But how can i do this in VBA in msacces??