⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 network.frm

📁 不错的一个VB菜单设计 界面和功能都不错
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{75D4F47D-8785-11D3-93AD-0000832EF44D}#2.0#0"; "FAST2008.ocx"
Begin VB.Form frmNetwork 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Networking"
   ClientHeight    =   8010
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8970
   Icon            =   "Network.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   8010
   ScaleWidth      =   8970
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox txtProperties 
      BackColor       =   &H8000000F&
      BeginProperty Font 
         Name            =   "Courier New"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1635
      Left            =   3210
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   3  'Both
      TabIndex        =   13
      Top             =   1860
      Width           =   5685
   End
   Begin VB.Frame fraFrame 
      Caption         =   "Network"
      Height          =   4305
      Left            =   90
      TabIndex        =   6
      Top             =   3600
      Width           =   8805
      Begin VB.TextBox txtUserInfo 
         BackColor       =   &H8000000F&
         BeginProperty Font 
            Name            =   "Courier New"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1815
         Left            =   2520
         Locked          =   -1  'True
         MultiLine       =   -1  'True
         ScrollBars      =   3  'Both
         TabIndex        =   12
         Top             =   2400
         Width           =   6165
      End
      Begin VB.TextBox txtServers 
         BackColor       =   &H8000000F&
         BeginProperty Font 
            Name            =   "Courier New"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1635
         Left            =   2520
         Locked          =   -1  'True
         MultiLine       =   -1  'True
         ScrollBars      =   3  'Both
         TabIndex        =   11
         Top             =   450
         Width           =   6165
      End
      Begin VB.ListBox lstServers 
         Height          =   1620
         ItemData        =   "Network.frx":0442
         Left            =   90
         List            =   "Network.frx":0444
         TabIndex        =   8
         Top             =   435
         Width           =   2385
      End
      Begin VB.ListBox lstUsers 
         Height          =   1815
         ItemData        =   "Network.frx":0446
         Left            =   90
         List            =   "Network.frx":0448
         TabIndex        =   7
         Top             =   2400
         Width           =   2370
      End
      Begin VB.Label lblLabel 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Users on this server"
         Height          =   195
         Index           =   2
         Left            =   90
         TabIndex        =   10
         Top             =   2190
         Width           =   1395
      End
      Begin VB.Label lblLabel 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "Visible Servers"
         Height          =   195
         Index           =   0
         Left            =   90
         TabIndex        =   9
         Top             =   240
         Width           =   1035
      End
   End
   Begin VB.TextBox txtUser 
      Height          =   1335
      Left            =   120
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   5
      Top             =   240
      Width           =   4935
   End
   Begin VB.ListBox lstResources 
      Height          =   1620
      ItemData        =   "Network.frx":044A
      Left            =   120
      List            =   "Network.frx":044C
      TabIndex        =   3
      Top             =   1860
      Width           =   3000
   End
   Begin VB.CommandButton cmdDisconnect 
      Caption         =   "&Disconnect Dialog"
      Height          =   420
      Left            =   7110
      TabIndex        =   2
      Top             =   780
      Width           =   1725
   End
   Begin VB.CommandButton cmdConnect 
      Caption         =   "&Connect Dialog"
      Height          =   420
      Left            =   7110
      TabIndex        =   1
      Top             =   270
      Width           =   1725
   End
   Begin FLWNetwork.FWNetwork objNet 
      Left            =   5400
      Top             =   1260
      _ExtentX        =   820
      _ExtentY        =   820
   End
   Begin VB.Label lblLabel 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Resources"
      Height          =   195
      Index           =   1
      Left            =   120
      TabIndex        =   4
      Top             =   1650
      Width           =   765
   End
   Begin VB.Label lblTextUser 
      AutoSize        =   -1  'True
      Caption         =   "User && computer"
      Height          =   195
      Left            =   120
      TabIndex        =   0
      Top             =   30
      Width           =   1170
   End
End
Attribute VB_Name = "frmNetwork"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Private Sub cmdConnect_Click()
  If objNet.ConnectDialog(flwnetwork.flwNetResourceDisk) <> flwnetwork.flwNetSuccess Then
    Call MsgBox("User selects Cancel or Error!")
  End If
End Sub

Private Sub cmdDisconnect_Click()
  If objNet.DisconnectDialog(flwnetwork.flwNetResourceDisk) <> flwnetwork.flwNetSuccess Then
    Call MsgBox("User selects Cancel or Error!")
  End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -