本文主要是介绍[VB.NET]头痛! Msgbox都搞不定,怎么开发呀!救命~,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
头痛! 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 ", " <script> alert( ''OK ''); </script> ")
__________________________________________________________________________
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( " <script> alert( ''嗨,老兄,我是在webform里面呢! ''); </script> ")
__________________________________________________________________________
看MSDN啊~
__________________________________________________________________________
MsgBox( "显示的内容 ")
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 ", " <script> alert( ''OK ''); </script> ")
__________________________________________________________________________
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( " <script> alert( ''嗨,老兄,我是在webform里面呢! ''); </script> ")
__________________________________________________________________________
看MSDN啊~
__________________________________________________________________________
MsgBox( "显示的内容 ")
MsgBox( "显示的内容 ", "显示的标题 ",按钮样式,显示的提示符号)
__________________________________________________________________________
这篇关于[VB.NET]头痛! Msgbox都搞不定,怎么开发呀!救命~的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!