Q
Qwert
Heya,
I have a cusom control:
Imports System.ComponentModel
Imports System.Web.UI
<DefaultProperty("Text"), ToolboxData("<{0}:WebCustomControl5
runat=server></{0}:WebCustomControl5>")> Public Class WebCustomControl5
Inherits System.Web.UI.WebControls.WebControl
Dim _text As String
<Bindable(True), Category("Appearance"), DefaultValue("")> Property
[Text]() As String
...
End Property
Protected Overrides Sub Render(ByVal output As
System.Web.UI.HtmlTextWriter)
output.Write([Text])
End Sub
End Class
I want to draw graphics (bmp's) in 'Render'. How is this done? In VB.NET
controls you could do things like:
Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
With e.Graphics
.DrawImage(...)
End With
End Sub
Any help/links appriciated,
mr noob.
I have a cusom control:
Imports System.ComponentModel
Imports System.Web.UI
<DefaultProperty("Text"), ToolboxData("<{0}:WebCustomControl5
runat=server></{0}:WebCustomControl5>")> Public Class WebCustomControl5
Inherits System.Web.UI.WebControls.WebControl
Dim _text As String
<Bindable(True), Category("Appearance"), DefaultValue("")> Property
[Text]() As String
...
End Property
Protected Overrides Sub Render(ByVal output As
System.Web.UI.HtmlTextWriter)
output.Write([Text])
End Sub
End Class
I want to draw graphics (bmp's) in 'Render'. How is this done? In VB.NET
controls you could do things like:
Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
With e.Graphics
.DrawImage(...)
End With
End Sub
Any help/links appriciated,
mr noob.