还是C#的问题
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing.Printing; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void 打印ToolStripMenuItem_Click(object sender, EventArgs e) { PrintDialog pd = new PrintDialog(); System.Drawing.Printing.PrintDocument pdd = new System.Drawing.Printing.PrintDocument(); pd.ShowNetwork = false; pd.PrintToFile = false; pd.Document = pdd; if (pd.ShowDialog() != DialogResult.Cancel) { pdd.Print(); } } private void Form1_Load(object sender, EventArgs e) { } } } 编译的是出现打印框的文件,可是打印框不跳出来,点打印按钮链接不上。
1.确定是否执行了 打印ToolStripMenuItem_Click 这个函数?是不是你菜单绑定事件失效了。 菜单的名称最好使用英文。 2.你可以放一个打印对话框控件到面板上,这样new的话,可能还缺少一些pd的属性设置?比如父容器这些?
请你不要使用汉字的函数名和变量名 编译可能出问题
答:点击某个button时,调用show(i),把id为"div"+i的那一层的display设为block(简单点说就是,如果你点了第一个button,就显示id...详情>>
答:在 VS 2008中,我们就开发人员所关心的一些常见的使用场景在性能上作了很大的改进.我们对新的产品功能以及现有的产品功能都设置了明确的性能指标。 例如,对于新...详情>>