日期:2014-05-17  浏览次数:20996 次

c#中的show()方法和showLog方法的返回值都是什么呢
c#中的show()方法和showLog方法的返回值都是什么呢?,我是新手,还不太懂啊

------解决方案--------------------
show不返回(void),showlog是啥
------解决方案--------------------
也不返回吧,
是打开一个新的窗体。
------解决方案--------------------
public void Show();
show方法无返回值


 //
        // 摘要:
        //     将窗体显示为模式对话框,并将当前活动窗口设置为它的所有者。
        //
        // 返回结果:
        //     System.Windows.Forms.DialogResult 值之一。
        //
        // 异常:
        //   System.ArgumentException:
        //     owner 参数中指定的窗体就是显示的窗体。
        //
        //   System.InvalidOperationException:
        //     要显示的窗体已经可见。- 或 -所显示窗体被禁用。- 或 -显示的窗体不是顶级窗口。- 或 -显示为对话框的窗体已经是模式窗体。- 或 -当前进程不是以用户交互模式运行的(有关更多信息,请参见
        //     System.Windows.Forms.SystemInformation.UserInteractive)。
        [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
        public DialogResult ShowDialog();

  // 摘要:
    //     指定标识符以指示对话框的返回值。
    [ComVisible(true)]
    public enum DialogResult
    {
        // 摘要:
        //     从对话框返回了 Nothing。这表明有模式对话框继续运行。
        None = 0,
        //
        // 摘要:
        //     对话框的返回值是 OK(通常从标签为“确定”的按钮发送)。
        OK = 1,
        //
        // 摘要:
        //     对话框的返回值是 Cancel(通常从标签为“取消”的按钮发送)。
        Cancel = 2,
        //
        // 摘要:
        //     对话框的返回值是 Abort(通常从标签为“中止”的按钮发送)。
        Abort = 3,
        //
        // 摘要:
        //     对话框的返回值是 Retry(通常从标签为“重试”的按钮发送)。
        Retry =&n