如何将jpeg转换为exe [英] How do I convert a jpeg into a exe

查看:127
本文介绍了如何将jpeg转换为exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




这是我的第一个小项目。我需要将jpeg转换为exe应用程序,以便当用户单击确定按钮时它将关闭。我怎么做。请帮帮我。



谢谢!



:)

解决方案

可能最简单的方法(如果我理解你的话)是创建一个带有两个控件的表单:一个PictureBox和一个Button。

设置的Image属性PictureBox到JPG文件,并将Text属性设置为teh Button为OK。

双击设计器中的按钮,并在teh hanlder中使用此代码:

关闭(); 



运行您的应用程序,您应该看到图片,然后确定按钮应该按照您的要求执行。


Hi
This is my first small project. I am required to convert a jpeg into an exe appplication so that when a user clicks on a OK button it closes. How do I do that. Please help me.

Thanks!

:)

解决方案

Probably the simplest way to do this (if I understand you right) is to create a form with two controls: A PictureBox and a Button.
Set the Image property of the PictureBox to the JPG file, and set the Text property to teh Button to "OK".
Double click the button in the designer, and use this code inside teh hanlder:

Close();


Run your app, and you should see the picture, and the OK button should do what you want.


这篇关于如何将jpeg转换为exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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