borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (Replacing the " character within a string) New Topic New Poll Post Reply
AndreaVB Forum : VB General : error
Poster Message
muddassir
Level: Trainee

Registered: 23-08-2008
Posts: 2

icon error

"I have declared namespaces as follows
Imports System.Drawing
Imports System.Drawing.Graphics
Imports system.Drawing.Drawing2D
Imports System.Windows.Forms.Control

"in the following code below first line shows an  error as typed in question above"

Public Sub FillRegionRectangle(ByVal e As PaintEventArgs)

        ' Create solid brush.
        Dim blueBrush As New SolidBrush(Color.Blue)

        ' Create rectangle for region.
        Dim fillRect As New Rectangle(100, 100, 200, 200)

        ' Create region for fill.
        Dim fillRegion As New [Region](fillRect)

        ' Fill region to screen.
        e.Graphics.FillRegion(blueBrush, fillRegion)
    End Sub

24-08-2008 at 06:17 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : error
Next Topic (Replacing the " character within a string) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder