| |

VerySource

 Forgot password?
 Register
Search
View: 805|Reply: 5

You can set the background picture of the picturebox in design mode. If it is in a class, how to set the background file

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Invalid IP Address

Post time: 2020-3-9 14:00:01
| Show all posts |Read mode
You can set the background picture of the picturebox in design mode. If it is in a class, how to set the background picture of the picture.
Or how to put the image file into the relevant resource file and get it from the code? ?
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-5-30 14:30:02
| Show all posts
The code specifies the relative path of the picture
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Invalid IP Address

 Author| Post time: 2020-5-31 00:00:01
| Show all posts
I want to put the picture in the resource file and quote it, mainly to prevent the user from changing it
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-8-9 18:15:01
| Show all posts
I ran into a problem with the pictureBox zooming when the window was maximized
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Invalid IP Address

 Author| Post time: 2020-8-12 10:45:02
| Show all posts
You can put the picture in the resource file, what should I do?
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-8-19 10:00:01
| Show all posts
After adding the picture to the resource file
this.PirtureBox1.Image = Resource file name. Image file name;
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list