使用c#桌面应用程序上传图像 [英] uploading image using c# desktop application

查看:80
本文介绍了使用c#桌面应用程序上传图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以使用c#桌面应用程序共享上传图像的代码

Can anybody share the code for uploading image using c# desktop application

推荐答案

试试这些C#代码它正在运行:

Try These C# Code it''s working:
private void Button_changeImage_LinkClicked(object sender, ButtonClickedEventArgs e)
        {
            objLog.WriteLog("Came to Edit Image of Student on Admission Form");

            string imagename;
            FileDialog openFileDialog_scanImage = new OpenFileDialog();
            openFileDialog_scanImage.Filter = "Image File (*.jpg;*.bmp;)|*.jpg;*.bmp;";
            try
            {
                if (openFileDialog_scanImage.ShowDialog() == DialogResult.OK)
                {
                    imagename = openFileDialog_scanImage.FileName.ToString();
                    Bitmap newimg = new Bitmap(imagename);

                    image_student.SizeMode = PictureBoxSizeMode.StretchImage;

                    image_student.Image = (Image)newimg;

                }
                openFileDialog_scanImage = null;
            }
            catch (System.ArgumentException ae)
            {
              MessageBox.Show(ae.Message.ToString());

            }


        }


查看此文章



http://msdn.microsoft.com /en-us/library/ms229715%28VS.100%29.aspx [ ^ ]


Hello Professional



那里是这样的几种控制方法和类,如 Picture box control File Reader Write 方法。



这些链接可以帮助您查询......



http://www.c-sharpcorner.com/UploadFile/8ea152/fetch-image-from-database-in-windows-form -application / [ ^ ]





乐于助人
Hello Professional

there is several control method and classes like Picture box control and File Reader Write method by that you do this.

may these link will help you for your query......

http://www.c-sharpcorner.com/UploadFile/8ea152/fetch-image-from-database-in-windows-form-application/[^]


Happy to help


这篇关于使用c#桌面应用程序上传图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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