Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
05-26-2011, 03:51 AM #1
- Join Date
- Nov 2010
- Thanked 0 Times in 0 Posts
Help with FillRectangle in VB.net
I'm looking for a little help; I've tried everything. Here is a little section of code of a bigger project. What do I need to plug into the ? in the FillRectangleRectangle call to get this to work? Thanks for any help.
Private Sub PictureBox1_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox1.Click
Dim i As Integer
Dim pt As Point
Label1.Text = "X=" & MousePosition.X & " Y=" & MousePosition.Y & " "
pt = New Point(MousePosition.X, MousePosition.Y)
For i = 0 To 117
If rects(i).Contains(pt) Then
Public Sub FillRectangleRectangle(e As System.Windows.Forms.PaintEventArgs, ByVal i As Integer)
Dim blueBrush As New SolidBrush(Color.Blue)