ASP.NET - Dibujar

 
Vista:

Dibujar

Publicado por Carlos (4 intervenciones) el 02/07/2002 09:21:35
Hay alguna forma de dibujar rectangulos, lineas .... en un WebForm sin tener que hacerlo por codigo, es decir, como antiguamente .....

GRACIAS
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Dibujar

Publicado por Marcelo (10 intervenciones) el 02/07/2002 10:25:17
No se puede, solo lo puedes hacer por medio de codigo, por si no sabes como hacerlo te recorte algo de la ayuda que habla de esto.

In Visual Basic .NET, graphics are provided by the System.Drawing namespace, which encapsulates the new GDI+ APIs. GDI+ expands upon the graphics capabilities of Visual Basic 6.0, but the methods are not compatible. When an application is upgraded from Visual Basic 6.0, graphics methods are not upgraded.

The following example shows the code used to draw a circle in the upper left corner of a form using Visual Basic 6.0 and Visual Basic .NET:

\' Visual Basic 6.0
Private Sub Form_Click()
\' Set the ScaleMode to pixels.
Me.ScaleMode = 3
Me.Circle (50, 50), 50, vbRed
End Sub

\' Visual Basic .NET
Private Sub Form1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Click
\' Create a Pen object.
Dim pen As New Drawing.Pen(System.Drawing.Color.Red, 1)
Me.CreateGraphics.DrawEllipse(pen, 0, 0, 100, 100)
Pen.Dispose
End Sub

Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Dibujar

Publicado por rLAND (1 intervención) el 02/09/2008 19:05:21
Ese codigo es para un winform, no para un webform.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar