VB.Net思路:检查控件,设置控件权限

前端之家收集整理的这篇文章主要介绍了VB.Net思路:检查控件,设置控件权限前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Public Class NFWindowsControl
    Inherits Windows.Forms.Form

    Public Sub New()
        checkPermission()
        '
        '
        '
    End Sub

    Public Function checkPermission()

    End Function

    Protected _SystemFunctionID As String

    Public Property SystemFuntionID() As String
        Get
            Return _SystemFunctionID
        End Get
        Set(value As String)
            _SystemFunctionID = value
        End Set
    End Property

    Private Sub NFWindowsControl_Load(sender As Object,e As System.EventArgs) Handles Me.Load

    End Sub
End Class
    Dim mitButton As ToolStripMenuItem	
            For Each obj In Me.Controls	
                If TypeOf (obj) Is ToolStripMenuItem Then	
                    mitButton = obj	

                    Dim s() As String	

                    s = Split(mitButton.Tag,";")	

                End If	
            Next	
if typeof(obj) is … Then
select case typeof(obj)
case label or button
.visible or .enable

case textBox
.readonly
.visible

case button

end select 
end if
原文链接:https://www.f2er.com/vb/258275.html

猜你在找的VB相关文章