Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共285 条记录, 每页显示 10 条, 页签: [1]... [21][22][23][24] [25] [26][27][28]
[浏览完整版]

标题:[分享] 右下角弹窗小例子,带动画效果~~~

241楼
ycwk 发表于:2020/2/9 16:21:00
下面这段代码  移植到一个新建项目上没问题,可是移植到我现有项目上,即:在复制Msgbox的全局代码后,死活就是报“未知编译错误”,无法保存

解决了,把msgbox 改为了 msgbox1 就可以了,但是我弹出的窗口,全部在主程序的后面,能不能显示到前面来,并且像作者的例子一样,并排排列,而不是重叠在一起?
Public Class MsgBox
Private Sub MessageBox_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.Timer1.Interval = 30000 '设置执行间隔(30秒)
End Sub

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
Me.Close() '计时器自动关闭提示窗口
End Sub
End Class

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class MsgBox
Inherits System.Windows.Forms.Form

'Form 重写 Dispose,以清理组件列表.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
    If disposing AndAlso components IsNot Nothing Then
        components.Dispose()
    End If
Finally
    MyBase.Dispose(disposing)
End Try
End Sub



'Windows 窗体设计器所必需的
Private components As System.ComponentModel.IContainer

'注意: 以下过程是 Windows 窗体设计器所必需的
'可以使用 Windows 窗体设计器修改它.
'不要使用代码编辑器修改它.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.TextBox1 = New System.Windows.Forms.TextBox()
Me.Timer1 = New System.Windows.Forms.Timer(Me.components)
Me.SuspendLayout()
'
'TextBox1
'
Me.TextBox1.Anchor = CType((((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _
Or System.Windows.Forms.AnchorStyles.Left) _
Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Me.TextBox1.Location = New System.Drawing.Point(13, 13)
Me.TextBox1.Multiline = True
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.ReadOnly = True
Me.TextBox1.Size = New System.Drawing.Size(259, 138)
Me.TextBox1.TabIndex = 1
Me.TextBox1.TabStop = False
'
'Timer1
'
'
'MsgBox
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ClientSize = New System.Drawing.Size(284, 161)
Me.Controls.Add(Me.TextBox1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow
Me.Name = "MsgBox"
Me.ShowIcon = False
Me.Text = "提示"
Me.ResumeLayout(False)
Me.PerformLayout()

End Sub

Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
Friend WithEvents Timer1 As System.Windows.Forms.Timer
End Class
[此贴子已经被作者于2020/2/10 10:00:22编辑过]
242楼
ycwk 发表于:2020/2/10 18:26:00
求解答
243楼
ycwk 发表于:2020/2/11 15:05:00
弹出框为什么重叠在一 起?能否改成并列分布? 
244楼
at999at 发表于:2020/2/11 19:05:00
围观学习
245楼
12397522011 发表于:2020/2/16 21:58:00
看看
246楼
尘埃落定 发表于:2020/2/17 21:43:00
看看
247楼
xxfoxtable 发表于:2020/2/17 21:58:00

学习

248楼
chen_sheng 发表于:2020/2/19 0:01:00
看看
249楼
北狐 发表于:2020/4/1 18:33:00
收藏
250楼
shyilin4 发表于:2020/5/6 6:47:00
急急急急急急,
共285 条记录, 每页显示 10 条, 页签: [1]... [21][22][23][24] [25] [26][27][28]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02734 s, 2 queries.