Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# display image

// open file dialog   
OpenFileDialog open = new OpenFileDialog();  
// image filters  
open.Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp";  
if (open.ShowDialog() == DialogResult.OK) {  
    // display image in picture box  
    pictureBox1.Image = new Bitmap(open.FileName);  
    // image file path  
    textBox1.Text = open.FileName;  
}  
Comment

c# display image


private void Form1_Load(object sender, EventArgs e)
{
    PictureBox pb1 = new PictureBox();            
    pb1.ImageLocation = "../SamuderaJayaMotor.png";
    pb1.SizeMode = PictureBoxSizeMode.AutoSize;
}

Comment

PREVIOUS NEXT
Code Example
Csharp :: convert int32 
Csharp :: c# array display 
Csharp :: c# #region #endregion 
Csharp :: c# get gridview DataKeyNames 
Csharp :: how to make a string in c# 
Csharp :: c# list.foreach 
Csharp :: pyautogui not odwnloading 
Csharp :: static c# 
Csharp :: default parameter c# 
Csharp :: how to make pc bsod C# 
Csharp :: c# sort int array 
Csharp :: c# backup sql 
Csharp :: C# fileinfo creation date 
Csharp :: c# function 
Csharp :: entity framework core genetare class using existing database 
Csharp :: c# replace multiple characters 
Csharp :: linq to json 
Csharp :: how to insert value to identity column using entity framwork 
Csharp :: if list does not contain then add c# 
Csharp :: c# string methods 
Csharp :: c# split large file into chunks 
Csharp :: declare string array c# without size 
Csharp :: c# get all letters 
Csharp :: frustum 
Csharp :: for jump script unity 2d 
Csharp :: c sharp list 
Csharp :: c# only letters 
Csharp :: deactivate a gameobject unity 
Csharp :: string trin c# 
Csharp :: cross thread exception in c# control 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =