S
Stefan Richter
I am just trying to paint on a Form.
I tried it with Bitmap.SetPixel, but that didnt work,
now I tried a method from the MS API.
Public Sub DrawRectangleFloat(ByVal e As PaintEventArgs) ' Create pen.
Dim blackPen As New Pen(Color.Black, 3)
' Create location and size of rectangle.
Dim x As Single = 0.0F
Dim y As Single = 0.0F
Dim width As Single = 200.0F
Dim height As Single = 200.0F
' Draw rectangle to screen.
e.Graphics.DrawRectangle(blackPen, x, y, width, height)
End Sub
This method seems to be called by the event "PaintEventArgs".
Unfortunately I haven't yet really that much expierence with those Events.
How do I call that event to get this rectangle drawn, and could I also do it
without an event???
I tried to write Handles behind the method, but whatever I select, it tells
me the signature wasn't fitting.
What I wanted to do in first place:
Drawing a few bars, that represent procentual values.
I had a look on Crystal, but for some strange reasons it didn't work with
the connection to
my db, I guess (MySQL)
Then I downloaded and installed this VBRKit,
but I have no idea how I should use it.
(http://msdn.microsoft.com/vbasic/vbrkit/default.aspx )
I tried it with Bitmap.SetPixel, but that didnt work,
now I tried a method from the MS API.
Public Sub DrawRectangleFloat(ByVal e As PaintEventArgs) ' Create pen.
Dim blackPen As New Pen(Color.Black, 3)
' Create location and size of rectangle.
Dim x As Single = 0.0F
Dim y As Single = 0.0F
Dim width As Single = 200.0F
Dim height As Single = 200.0F
' Draw rectangle to screen.
e.Graphics.DrawRectangle(blackPen, x, y, width, height)
End Sub
This method seems to be called by the event "PaintEventArgs".
Unfortunately I haven't yet really that much expierence with those Events.
How do I call that event to get this rectangle drawn, and could I also do it
without an event???
I tried to write Handles behind the method, but whatever I select, it tells
me the signature wasn't fitting.
What I wanted to do in first place:
Drawing a few bars, that represent procentual values.
I had a look on Crystal, but for some strange reasons it didn't work with
the connection to
my db, I guess (MySQL)
Then I downloaded and installed this VBRKit,
but I have no idea how I should use it.
(http://msdn.microsoft.com/vbasic/vbrkit/default.aspx )