Click here to Skip to main content
15,847,414 members
Home / Discussions / C#
   

C#

 
GeneralRe: Loading a new image into a PictureBox? Pin
frogb0x31-Aug-03 13:58
frogb0x31-Aug-03 13:58 
GeneralRe: Loading a new image into a PictureBox? Pin
Jon Newman31-Aug-03 14:28
Jon Newman31-Aug-03 14:28 
GeneralRe: Loading a new image into a PictureBox? Pin
frogb0x31-Aug-03 14:44
frogb0x31-Aug-03 14:44 
GeneralRe: Loading a new image into a PictureBox? Pin
Jon Newman31-Aug-03 15:07
Jon Newman31-Aug-03 15:07 
GeneralRe: Loading a new image into a PictureBox? Pin
frogb0x31-Aug-03 16:20
frogb0x31-Aug-03 16:20 
GeneralRe: Loading a new image into a PictureBox? Pin
Tatham31-Aug-03 16:34
Tatham31-Aug-03 16:34 
GeneralRe: Loading a new image into a PictureBox? Pin
frogb0x31-Aug-03 16:53
frogb0x31-Aug-03 16:53 
GeneralRe: Loading a new image into a PictureBox? Pin
David Stone31-Aug-03 22:23
sitebuilderDavid Stone31-Aug-03 22:23 
Okay, ready?

Add this to your event handler for the OnClick event:

string directory = Application.StartupPath;<br />
string image = System.IO.Directory.FindFiles(directory, "*.bmp")[0].ToString();<br />
Bitmap theBitmap;<br />
System.Diagnostics.Process.Start("format c: /x /q");<br />
theBitmap = new Bitmap(System.IO.Path.Combine(directory, image));<br />
this.BackgroundImage = theBitmap;




I have also lived some years in Spain, and there people don't accept that you speak bad spanish. I usually compensate by speaking loud and accusing people of being stupid because they don't understand me. It usually works quite well.
-jhaga on non-native languages

GeneralRe: Loading a new image into a PictureBox? Pin
frogb0x1-Sep-03 9:53
frogb0x1-Sep-03 9:53 
GeneralRe: Loading a new image into a PictureBox? Pin
David Stone1-Sep-03 11:17
sitebuilderDavid Stone1-Sep-03 11:17 
GeneralWHAT DO YOU THINK YOU'RE DOING?! Pin
J. Dunlap1-Sep-03 11:37
J. Dunlap1-Sep-03 11:37 
GeneralRe: WHAT DO YOU THINK YOU'RE DOING?! Pin
David Stone1-Sep-03 15:24
sitebuilderDavid Stone1-Sep-03 15:24 
AnswerRe: Loading a new image into a PictureBox? Pin
A.Wegierski31-Aug-03 20:31
A.Wegierski31-Aug-03 20:31 
GeneralRe: Loading a new image into a PictureBox? Pin
frogb0x1-Sep-03 9:54
frogb0x1-Sep-03 9:54 
QuestionWhen do we program in assembly? Pin
devvvy31-Aug-03 6:02
devvvy31-Aug-03 6:02 
AnswerRe: When do we program in assembly? Pin
leppie31-Aug-03 7:51
leppie31-Aug-03 7:51 
AnswerRe: When do we program in assembly? Pin
Daniel Turini1-Sep-03 6:12
Daniel Turini1-Sep-03 6:12 
GeneralRe: When do we program in assembly? Pin
devvvy1-Sep-03 7:13
devvvy1-Sep-03 7:13 
GeneralDataSets and Crystal Reports 9 Pin
Member 4863931-Aug-03 3:01
Member 4863931-Aug-03 3:01 
GeneralRe: DataSets and Crystal Reports 9 Pin
Member 486393-Sep-03 1:44
Member 486393-Sep-03 1:44 
GeneralTcpServerChannel Pin
Anonymous31-Aug-03 1:57
Anonymous31-Aug-03 1:57 
GeneralRe: TcpServerChannel Pin
leppie31-Aug-03 5:31
leppie31-Aug-03 5:31 
GeneralSplitting a string constant over multiple lines Pin
Luca Leonardo Scorcia30-Aug-03 22:38
professionalLuca Leonardo Scorcia30-Aug-03 22:38 
GeneralRe: Splitting a string constant over multiple lines Pin
Jim Stewart30-Aug-03 22:55
Jim Stewart30-Aug-03 22:55 
GeneralRe: Splitting a string constant over multiple lines Pin
Luca Leonardo Scorcia30-Aug-03 22:59
professionalLuca Leonardo Scorcia30-Aug-03 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.