[VB.NET]头痛! Msgbox都搞不定,怎么开发呀!救命~

前端之家收集整理的这篇文章主要介绍了[VB.NET]头痛! Msgbox都搞不定,怎么开发呀!救命~前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
头痛! MsgBox都搞不定,怎么开发呀!救命~ 请教各位大侠,帮我写个MsgBox的例子吧 __________________________________________________________________________ 您是在开玩笑吧?把这20分给我然后揭帖吧。 __________________________________________________________________________ MsgBox?——> MessageBox?@_@ DialogResult result = MessageBox.Show( "是不是没见过抢分的? ","打、打、打劫! ",MessageBoxButtons.YesNoCancel,MessageBoxIcon.Question); switch (result) { case DialogResult.Yes: { MessageBox.Show( "这次就让你认识一下! "); break; } case DialogResult.No: { MessageBox.Show( "还有比我能抢的!告诉我他住址先,我去抢他。 "); break; } case DialogResult.Cancel: { break; } } __________________________________________________________________________ MessageBox.Show( "XX "); 不过这是Winform里的,在VB.NET里只能用客户端脚本 __________________________________________________________________________ 呵呵,刚打完游戏,头脑还没清醒过来,没注意看版块,原来是VB.NET的,当我路过:) __________________________________________________________________________ msgBox()简单的用法: Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Button1.Click MsgBox( "就这么简单!! ") End Sub __________________________________________________________________________ Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Button1.Click MsgBox( "朋友,给点分用用! ") End Sub __________________________________________________________________________ lz .... 你太有才了!!! __________________________________________________________________________ msgBox还是调用vb6的函数的吧,最好用MessageBox.Show( "XX "); __________________________________________________________________________ lxcnn(过客)——嫩强悍,我佩服,代码这么诱人 __________________________________________________________________________ 在WinFrom 中是简单的,但在WebFrom中就难了, 如果要有返回值,就是超级难了(原来是高手除外) __________________________________________________________________________ MessageBox.Show() __________________________________________________________________________ 在.net 中用 RegisterStartupScript( "aaa "," ") __________________________________________________________________________ VB.Net中,msgBox() 需要Imports引用什么啊? 我加了好多还是提示“应为声明”的错误。MessageBox.Show()就不需要引用,可以正常运行。 看来msgBox() 看似简单,但是难倒了很多人啊! 如何在程序里面加一个引用就包括全部程序将可能用到的类库啊,这样就不会老碰到调试错误了? __________________________________________________________________________ Imports System Imports system.IO Imports system.Net Imports system.Text Imports system.Timers Imports system.Web Imports system.Windows Imports system.Resources Imports system.ComponentModel Imports system.Math Imports system.Drawing Imports System.Media Imports System.Data Imports System.Collections 有没有类似Imports System.* 的语句啊? Imports *.* 最好了! __________________________________________________________________________ 路过~ __________________________________________________________________________ 路过... __________________________________________________________________________ C#多好呢!! 路过了... __________________________________________________________________________ 简单来个吧: winform里面: MsgBox( "嗨,老兄,我是在winform里面呢! ",MsgBoxStyle.OkOnly,"友情提示 ") webform里面: Response.Write( " ") __________________________________________________________________________ 看MSDN啊~ __________________________________________________________________________ MsgBox( "显示内容 ") MsgBox( "显示内容 ","显示标题 ",按钮样式,显示提示符号) __________________________________________________________________________

猜你在找的VB相关文章