Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フォームに画像ボックスを追加し、2 つの画像をインポートします。プロパティの下のimageプロパティから、アプリケーションの起動時に最初の画像を選択し、内部でstart button event画像を他の画像に変更したいと考えています。これは私が試したことです:
image
start button event
pbIndicator.Image = Image.FromFile(@"..\Resources\indicator_green.png");
しかし、ファイルが見つからないという例外エラーが発生します。