📄 customcontrol1.vb
字号:
Imports System
Imports System.Web
Imports System.Web.UI
Namespace MyCustomControls
Public Class CustomControl1 : Inherits Control
private strMessage as string = "This is my custom control!"
public property Message as string
Get
Message = strMessage
End Get
Set
strMessage = value
End Set
end property
Protected Overrides Sub Render(Output as HtmlTextWriter)
Output.Write(strMessage & " The time is now " & _
DateTime.Now.ToString)
End Sub
End Class
End Namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -