自己做输入框,控制更方便

简介: 自己做输入框,控制更方便
VERSION 5.00
Begin VB.Form frmInputDlg 
   Caption         =   "Input Dialog"
   ClientHeight    =   1590
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5940
   Icon            =   "frmInputDlg.frx":0000
   LinkTopic       =   "Form2"
   ScaleHeight     =   1590
   ScaleWidth      =   5940
   StartUpPosition =   1  'CenterOwner
   Visible         =   0   'False
   Begin VB.TextBox txtContent 
      Height          =   285
      Left            =   120
      TabIndex        =   0
      Top             =   1080
      Width           =   5655
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "&Cancel"
      Height          =   330
      Left            =   4560
      TabIndex        =   2
      Top             =   600
      Width           =   1215
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "&Ok"
      Height          =   330
      Left            =   4560
      TabIndex        =   1
      Top             =   120
      Width           =   1215
   End
   Begin VB.Label lblTip 
      AutoSize        =   -1  'True
      Height          =   195
      Left            =   240
      TabIndex        =   3
      Top             =   120
      Width           =   45
   End
End
Attribute VB_Name = "frmInputDlg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim strContent As String
Public Function test() As String
    Me.Show 1
    test = s
End Function
Private Sub cmdCancel_Click()
    strContent = "NULL"
    Unload Me
End Sub
Private Sub cmdOK_Click()
    strContent = txtContent.Text
    Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
    i = 1
End Sub
'MsgBox frmInputDlg.InputBoxEx("test", "please input ", "100")
Public Function InputBoxEx(strTitle As String, strMsg As String, strContentPre As String) As String
    Me.Caption = strTitle
    lblTip.Caption = strMsg
    txtContent.Text = strContentPre
    txtContent.SelStart = 0
    txtContent.SelLength = Len(txtContent.Text)
    Me.Show 1
    InputBoxEx = strContent
End Function
目录
相关文章
|
前端开发
关于友好性测试中鼠标样式的修改
在日常的界面测试中,我们一定会有这样的CheckPoint:鼠标移到可点击标识的上方时是否变为小手。 上图中的鼠标样式是错误的,要想修改成小手我们需要对应的找到他所对应页面元素的CSS样式并做修改(添加红字部分): div[id$='icmbx'] { display: inl...
1008 0
|
6月前
|
开发框架 前端开发 JavaScript
在Winform程序中增加隐藏的按键处理,用于处理一些特殊的界面显示或者系统初始化操作
在Winform程序中增加隐藏的按键处理,用于处理一些特殊的界面显示或者系统初始化操作
|
JavaScript
fastadmin 自定义 按钮 动态切换数据 TAB切换
fastadmin 自定义 按钮 动态切换数据 TAB切换
331 0
PS的标题栏以选项卡方式打开名字太长,导致切换标题的时候不方便,如何缩短标题栏?
Q:如图:PS的标题栏以选项卡方式打开名字太长,导致切换标题的时候不方便,如何缩短标题栏?
447 0
PS的标题栏以选项卡方式打开名字太长,导致切换标题的时候不方便,如何缩短标题栏?
|
6月前
|
图形学
小功能⭐️Unity自动更改文本框高度,以显示全部文本
小功能⭐️Unity自动更改文本框高度,以显示全部文本

热门文章

最新文章