Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-26-2011, 03:51 AM   PM User | #1
rsisme2
New to the CF scene

 
Join Date: Nov 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
rsisme2 is an unknown quantity at this point
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.
-Bob

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
Beep()
FillRectangleRectangle(?, i)
End If
Next i
End Sub


Public Sub FillRectangleRectangle(e As System.Windows.Forms.PaintEventArgs, ByVal i As Integer)
Dim blueBrush As New SolidBrush(Color.Blue)

e.Graphics.FillRectangle(blueBrush, rects(i))
End Sub
rsisme2 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:15 PM.


Advertisement
Log in to turn off these ads.