Click here to Skip to main content
15,895,192 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to get info from a file when it is being used by another process? Pin
Luc Pattyn16-Jul-07 6:49
sitebuilderLuc Pattyn16-Jul-07 6:49 
GeneralRe: How to get info from a file when it is being used by another process? Pin
Vivek Narayanan17-Jul-07 0:14
Vivek Narayanan17-Jul-07 0:14 
AnswerRe: How to get info from a file when it is being used by another process? Pin
Dave Kreskowiak16-Jul-07 6:55
mveDave Kreskowiak16-Jul-07 6:55 
QuestionIterate through child treenodes Pin
penguin500016-Jul-07 5:45
penguin500016-Jul-07 5:45 
AnswerRe: Iterate through child treenodes Pin
MidwestLimey16-Jul-07 7:21
professionalMidwestLimey16-Jul-07 7:21 
QuestionPDF/CHM Conversion Pin
phyrrix16-Jul-07 5:33
phyrrix16-Jul-07 5:33 
AnswerRe: PDF/CHM Conversion Pin
Nick Rioux16-Jul-07 6:15
Nick Rioux16-Jul-07 6:15 
Questione.graphics.fillpath Pin
Tom Deketelaere16-Jul-07 5:00
professionalTom Deketelaere16-Jul-07 5:00 
I've been looking at my (very simple) code for the better part of 2 hours now and just can't seem to find my mistake.

I want to draw an arrow (pointing down) on a label.
so I used the fillpath methode but it doesn't work, the strange thing is that when I use the drawpath methode it does work.

here is my code:
Private Sub drawarrow(ByVal g As Graphics)<br />
        If Me.Height > 30 Then<br />
            Dim widtharrow As Integer = 4<br />
            Dim heightarrow As Integer = 4<br />
            Dim heightmargin As Integer = 3<br />
            Dim x1 As Integer = (Me.Width / 2) - (widtharrow / 2)<br />
            Dim y1 As Integer = Me.Height - (heightarrow + heightmargin)<br />
            Dim x2 As Integer = (Me.Width / 2) + (widtharrow / 2)<br />
            Dim y2 As Integer = Me.Height - (heightarrow + heightmargin)<br />
            Dim gp As New GraphicsPath<br />
            gp.AddLine(x1, y1, x2, y2)<br />
            x1 = (Me.Width / 2) - (widtharrow / 2)<br />
            y1 = Me.Height - (heightarrow + heightmargin)<br />
            x2 = Me.Width / 2<br />
            y2 = Me.Height - heightmargin<br />
            gp.AddLine(x1, y1, x2, y2)<br />
            x1 = (Me.Width / 2) + (widtharrow / 2)<br />
            y1 = Me.Height - (heightarrow + heightmargin)<br />
            x2 = Me.Width / 2<br />
            y2 = Me.Height - heightmargin<br />
            gp.AddLine(x1, y1, x2, y2)<br />
            gp.CloseFigure()<br />
            'gp.CloseAllFigures()<br />
            'gp.FillMode = FillMode.Alternate<br />
<br />
            g.FillPath(Brushes.Blue, gp)<br />
            'g.DrawPath(Pens.Black, gp)<br />
            gp.Dispose()<br />
        End If<br />
    End Sub

if anyone spots what my mistake is please let me know

thanks
AnswerRe: e.graphics.fillpath Pin
Luc Pattyn16-Jul-07 5:17
sitebuilderLuc Pattyn16-Jul-07 5:17 
GeneralRe: e.graphics.fillpath Pin
Tom Deketelaere16-Jul-07 5:27
professionalTom Deketelaere16-Jul-07 5:27 
GeneralRe: e.graphics.fillpath Pin
Luc Pattyn16-Jul-07 5:31
sitebuilderLuc Pattyn16-Jul-07 5:31 
Questiongetting a string full of apostrophes Pin
reegan4116-Jul-07 4:53
reegan4116-Jul-07 4:53 
AnswerRe: getting a string full of apostrophes Pin
Luc Pattyn16-Jul-07 5:19
sitebuilderLuc Pattyn16-Jul-07 5:19 
Questionhow to click a button in another app Pin
billiardpro1816-Jul-07 3:48
billiardpro1816-Jul-07 3:48 
AnswerRe: how to click a button in another app Pin
Dave Kreskowiak16-Jul-07 4:12
mveDave Kreskowiak16-Jul-07 4:12 
AnswerRe: how to click a button in another app Pin
TomGarth16-Jul-07 4:36
TomGarth16-Jul-07 4:36 
GeneralRe: how to click a button in another app Pin
billiardpro1816-Jul-07 4:44
billiardpro1816-Jul-07 4:44 
QuestionLocking a record Pin
dptalt16-Jul-07 2:42
dptalt16-Jul-07 2:42 
AnswerRe: Locking a record Pin
Eduard Keilholz16-Jul-07 3:54
Eduard Keilholz16-Jul-07 3:54 
AnswerRe: Locking a record Pin
Dave Kreskowiak16-Jul-07 4:11
mveDave Kreskowiak16-Jul-07 4:11 
QuestionRND FUNCTION Pin
swallow4eva16-Jul-07 2:32
swallow4eva16-Jul-07 2:32 
AnswerRe: RND FUNCTION Pin
Tom Deketelaere16-Jul-07 2:50
professionalTom Deketelaere16-Jul-07 2:50 
GeneralRe: RND FUNCTION Pin
swallow4eva16-Jul-07 3:09
swallow4eva16-Jul-07 3:09 
GeneralRe: RND FUNCTION Pin
Tom Deketelaere16-Jul-07 3:30
professionalTom Deketelaere16-Jul-07 3:30 
GeneralRe: RND FUNCTION Pin
swallow4eva16-Jul-07 4:18
swallow4eva16-Jul-07 4:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.