Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to allow user import image c#

private void cmdBrowser_Click(object sender, EventArgs e)
        {
            OpenFileDialog fileOpen = new OpenFileDialog();
            fileOpen.Title = "Open Image file";
            fileOpen.Filter = "JPG Files (*.jpg)| *.jpg";

            if (fileOpen.ShowDialog() == DialogResult.OK)
            {
                picImage.Image = Image.FromFile(fileOpen.FileName);
            }
            fileOpen.Dispose();
        }
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to get the hour on c# 
Csharp :: c# unity get name of object 
Csharp :: unity c# debug.log 
Csharp :: c# initialize empty array 
Csharp :: how to instantiate a gameobject 
Csharp :: unity always rotating object 
Csharp :: const class in c sharp 
Csharp :: c# entity framework group by 
Csharp :: disable rigidbody unity 
Csharp :: if in dictionary c# 
Csharp :: httpclient post c# example 
Csharp :: What is the difference between String and string in C#? 
Csharp :: c list add element 
Csharp :: c-sharp - get current page url/path/host 
Csharp :: c# reflection resize array 
Csharp :: c# consuming post rest service 
Csharp :: unity raycast 2d 
Csharp :: how to pass string value to enum in c# 
Csharp :: clamp vector3 unity 
Csharp :: winforms C# code cross thread operation is not valid 
Csharp :: c# input 
Csharp :: html beginform 
Csharp :: raylib c# 
Csharp :: sequelize count all 
Csharp :: c# console print 
Csharp :: single line and multiline comments in c 
Csharp :: how to set picturebox width with form width in c# 
Csharp :: unity call function on update once per second 
Csharp :: get what week of the month c# 
Csharp :: c# file read 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =