C#在程序中创建一个exe [英] C# create an exe in the program

查看:49
本文介绍了C#在程序中创建一个exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我想知道是否有一种方法可以重新保存带有控件和命令的表单.一切都以赢的形式出现

normel形式

I was wondering if there was a way to re-save the form with the controls and commands, for example. its all in the win form by the way

the normel form

int btnumber = 0;
  private void pictureBox1_Click(object sender, EventArgs e)
  {
messagebox.show("HI");

  }



编辑表格



Edited form

int btnumber = 0;
  private void pictureBox1_Click(object sender, EventArgs e)
  {
   messagebox.show("You just edited me");

  }



和视觉上

normel形式

******
* btn_ *
******

编辑后的表格

******
* _btn *
******

因此,当我移动控件时,它将被保存到.因此,对于保存,我的意思是不去调试文件夹并抓住exe,我的意思是在程序中移动内容并更改程序外观,然后我可以将其保存为表格中的内容,然后思考一下.例如保存一个txt文件,一个更好的例子是C#,VB,C ++这些程序,一旦我调试了该程序,它就会自动将from从保存到debug文件夹中,希望您能理解我的意思,并且我想知道是否



and visually

the normel form

******
*btn_ *
******

the edited form

******
*_btn*
******

so when i move the control it will be saved to. so for the saving I mean no going to the debug folder and grabbing the exe, i mean with-in the program I move stuff around and change the programs appearance and I can then save that from of what it looks like in the form, think of this like saving a txt file, and a better example would be C#,VB,C++ these programs once I debug the program it auto saves the from into the debug folder, I hope you can understand what I mean, And I was wondering if there was any links or something that will help me meet this goal?

推荐答案

您无法执行此操作.您需要编译代码以查看应用程序中任何UI更改(移动buttont等)的结果.

保存后,文件将保存(更改)为frm等.但是,您只能在编译后运行这些更改.
You cannot do this. You need to compile code to see the results of any UI changed (moving buttont etc) in the application.

The file is saved (with changes) as an frm etc once you do a save. However, you can only run these changes after compilation.


这篇关于C#在程序中创建一个exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆