- ©«¤l
- 57
- ¥DÃD
- 7
- ºëµØ
- 3
- ¿n¤À
- 60
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWSXP
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2011-4-9
|
¥»©«³Ì«á¥Ñ §b§b ©ó 2010-5-9 02:31 ½s¿è
·í§ÚÌÁä¤JMessageBox. ªº®ÉÔ,·|¦Û°Ê¥X²{ show³oÓ¤èªk
¦ÓMessageBox©Ò¦³ªº¦¨û¤]¥u¦³³oÓ¤èªk,¦ý¹ê»Ú¤W,show ¨Ã¤£¬OMessageBoxªº¦¨û
¦pªG±z¦³¥J²Ó¬Ýªº¸Ü,´N·|¬Ý¨ì , show ³oÓ¨ä¹ê¬O¤@Ó¤À¨É¨ç¼Æ(¦³¤HºÙ¤§¬°ÀRºA¨ç¼Æ)
¦pªG§Ú̬ݨìshow ªº¼ÐÀY©w¸q,¥]§t¤Fshared³oÓ¦r
public shared function show(..........) as dialogresult
´N¥i¥H¤F¸Ñ,³oÓ¨ç¼Æ¨ä¹ê¥i¥Hª½±µ³z¹LÃþ§O¦s¨ú,¦Ó¤£¥Î³z¹L¹êÅé¦s¨ú
©Ò¥H§Ṳ́£·|¼g³o¼Ëªºµ{¦¡½X dim x as new messagebox
µM«á¦A¨Ó x.show , ³o¬O¿ù»~ªº
¥t¥~,show³oÓ¨ç¼Æ¥i¥H¶Ç¦^ dialogresult ³oÓ¼ÆÈ, ¥¦¨ä¹ê¬O¤@Ó±`¼Æ,§ÚÌ·|¦b«á±¥Î¨ì¥¦
¦AªÌ,show¨ä¹ê¬O¤@Ó¦³20ºØ§ÎºAªº¦h¸ü¨ç¼Æ,¥¦Åý¤@Ó¨ç¼Æ¥i¥H¦³¬Û¦Pªº¦WºÙ,«o¦³µÛ¤£¦Pªº¿é¤J¤è¦¡
³o¨Ï±o¦WºÙªº¨Ï¥Î¤W§ó¨ã¦³¼u©ÊªÅ¶¡,¦P¼Ëªº°Ê§@¦WºÙ,«o¦³ªÌ¤£¦Pªº§e²{¤è¦¡,³o¼Ëªº¤è¦¡,Åýµ{¦¡½Xªº
ºÞ²z§ó¥[ªº¤è«K,¥H¤U§ÚÌÁä¤J¤@Ó¦h¸üªºshow ¤èªk- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If MessageBox.Show("MyFirstProgram", "WindowsForm ", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Information) = Windows.Forms.DialogResult.Yes Then
- MessageBox.Show("¦¨¥\")
- End If
- End Sub
½Æ»s¥N½X ·íµM¥u¦³§Ú̦b«ö¤Uyes¶s¤~·|°Ê§@,¦Ó«ö¤Uyes®É´N¦^¶Ç Windows.Forms.DialogResult.Yes,
WindowsForm´N¬O³o»òªºÂ²³æ |
|