nunobettencourt Posted October 25, 2007 at 08:42 PM Report Share #142925 Posted October 25, 2007 at 08:42 PM Bem, estou com dificuldade em desenhar uma linha num panel, aqui fica o código ... private void Form1_Load(object sender, System.EventArgs e) { this.panel1.Paint += new PaintEventHandler(panel1_Paint); } private void panel1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics ; Pen pen = new Pen(Color.Red); g.DrawLine(pen, 122, 40, 122, 140); g.Dispose(); } Link to comment Share on other sites More sharing options...
TheDark Posted October 25, 2007 at 09:50 PM Report Share #142953 Posted October 25, 2007 at 09:50 PM E exactamente que dificuldade estás a sentir? Desaparecido. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now