linqpad命令行中的Windows表单与LinqPad适当
我有一个我通过lprun.exe
运行的脚本,该脚本与通过linqpad合适运行时看起来不同。当我通过命令行运行时,它看起来像:
-
当我从linqpad正确运行它时,它显示为:
-
LPRUN命令是否有一些设置,以使其看起来与在LinqPad中运行时相同?
更新
由于我对缩放/窗口表单的知识不足,这些行(我只是从最初从Visual Studio中从表单设计师手中抓到的线条之前就可以从Visual Studio中抓取它)会引起问题吗?
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(750, 450);
this.MinimumSize = new System.Drawing.Size(765, 480);
I have a script I run via lprun.exe
that appears different than when it is ran via LINQPad proper. When I run via command line, it appears as so:
- Note the overlap of checkboxes in the 'Production Publish Settings' and the checkbox with the Cancel button.
When I run it from LINQPad proper, it shows up as so:
- Note that there is no overlap and the font looks crisper and spacing is 'better'.
Is there some setting on lprun command to make it look the same as when ran in LINQPad proper?
Update
Due to my lack of knowledge on scaling/Windows Forms, could these lines (which I just grabbed from the Form Designer originally from Visual Studio before moving code into my script) be causing issue?
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(750, 450);
this.MinimumSize = new System.Drawing.Size(765, 480);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论