🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #401

[.Net - Grafica] pointf etc etc

#401
From: Antonios
Date: Thu, 01 Jun 2006 16:10
24 lines
1994 bytes
Premesso che vengo da VB6, non riesco a capire come usare
la polilinea.....come si fa?che sbaglio? come metto i punti in pointF???
grazie a tutti...

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As 
System.EventArgs) Handles Button1.Click
Dim DISEGNATORE As New System.Drawing.SolidBrush(System.Drawing.Color.Black)
Dim CARRELLO As New System.Drawing.PointF(4, 4)
Dim DISEGNA As System.Drawing.Graphics
Dim PENNA As System.Drawing.Pen
PENNA = New System.Drawing.Pen(System.Drawing.Color.Tomato)
DISEGNA = Me.PictureBox1.CreateGraphics()
REM ROUTINE GRAFICHE-----------------------------------------------
DISEGNA.FillRectangle(DISEGNATORE, New Rectangle(10, 10, 300, 800)) : rem OK
DISEGNA.DrawArc(PENNA, 10, 20, 44, 33, 0, 94) REM ok
DISEGNA.RotateTransform(45) REM ok
DISEGNA.DrawArc(PENNA, 10, 20, 44, 33, 0, 94) REM ok

DISEGNA.DrawLines(PENNA, CARRELLO) REM errore!

REM FINE ----------------------------------------------------------
DISEGNATORE.Dispose()
DISEGNA.Dispose()
End Sub 
Technical Details
Message-ID: <447f1192$0$29736$4fafbaef@reader2.news.tin.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!feeder.news.tin.it!spool.news.tin.it!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,7098dcbf09915b68,start
X-Google-Attributes: gidf94ee,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!feeder.news.tin.it!spool.news.tin.it!not-for-mail
Reply-To: "Antonios" <acsoftware@virgilio.it>
From: "Antonios" <acsoftware@virgilio.it>
Newsgroups: free.it.visual-basic
Subject: [.Net - Grafica] pointf etc etc
Date: Thu, 1 Jun 2006 18:10:50 +0200
Organization: ACSoftware 2000
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Lines: 26
Message-ID: <447f1192$0$29736$4fafbaef@reader2.news.tin.it>
X-Comments: Please send technical notifications to newsmaster@tin.it
NNTP-Posting-Host: 82.59.61.75
X-Trace: 1149178258 reader2.news.tin.it 29736 82.59.61.75:63254
X-Complaints-To: Please send abuse reports to abuse@tin.it