First, double-click the Resource under the project. resx, the view appears, click "Add resource" -- select "add existing file", find the image you want to add, and click "save". Then, open resource. designer. cs will find several more lines of code as follows: internal static System. drawing. bitmap ABC {get {object obj = ResourceManager. getObject ("ABC", resourceCulture); return (System. drawing. bitmap) (obj);} ABC indicates the image name. After adding the image, you can use the resource image switch (LeiBie) in the project code) {case "hot economic evaluation": pic. backgroundImage = Evaluation. properties. resources. economic Evaluation of hot harvest; break; case "Economic Evaluation of Water Flooding": pic. backgroundImage = Evaluation. properties. resources. economic Evaluation of water flooding; break; case "three-way economic evaluation": pic. backgroundImage = Evaluation. properties. resources. three-way economic evaluation; myLable7.Visible = false; myLable14.Location = myLable7.Location; break ;}