Click here to Skip to main content
15,923,226 members
Home / Discussions / C#
   

C#

 
AnswerRe: Visual Studio designer woes, with the collection designer and an abstract class Pin
led mike22-Aug-08 6:25
led mike22-Aug-08 6:25 
QuestionSend image from client to server Pin
Xprt22-Aug-08 6:04
Xprt22-Aug-08 6:04 
AnswerRe: Send image from client to server Pin
Mark Salsbery22-Aug-08 6:07
Mark Salsbery22-Aug-08 6:07 
GeneralRe: Send image from client to server Pin
Xprt23-Aug-08 5:30
Xprt23-Aug-08 5:30 
GeneralRe: Send image from client to server Pin
Mark Salsbery23-Aug-08 10:13
Mark Salsbery23-Aug-08 10:13 
AnswerRe: Send image from client to server Pin
Samer Aburabie24-Aug-08 8:49
Samer Aburabie24-Aug-08 8:49 
GeneralRe: Send image from client to server Pin
Xprt26-Aug-08 3:59
Xprt26-Aug-08 3:59 
QuestionTrying to change Background Image via App.Config Pin
RighteousBrother22-Aug-08 5:54
RighteousBrother22-Aug-08 5:54 
Hi,


I have a windows form with its Background Image property set to a .jpg which is in the Resources folder.

I want to be able to change the Background Image from the App.Config file.

I've set the properties needed in the App.Config file, and I've written a bit of code in the Form Load event, which points to the correct jpg. However, when I change the image in the config file, the form still loads the original image. Is there something I should be putting into the Form Load event to load the new jpg? I've tried refresh, but that doesn't work, the code I'm using is as follows:


private void FormDisplay_Load(object sender, EventArgs e)

{

try

{

........

CustomerDisplay.Properties.Settings mySettings = new CustomerDisplay.Properties.Settings();

Image Img = Image.FromFile(mySettings.BackgroundImage);

anyone have any ideas?

Thanks,

RB
AnswerRe: Trying to change Background Image via App.Config Pin
Björn Friedrich23-Aug-08 3:21
Björn Friedrich23-Aug-08 3:21 
QuestionTTS in C# Pin
MatthewG22-Aug-08 5:51
MatthewG22-Aug-08 5:51 
AnswerRe: TTS in C# Pin
SomeGuyThatIsMe22-Aug-08 5:53
SomeGuyThatIsMe22-Aug-08 5:53 
Question[Message Deleted] Pin
AeonBlue22-Aug-08 5:14
AeonBlue22-Aug-08 5:14 
AnswerNot a C# question Pin
led mike22-Aug-08 5:25
led mike22-Aug-08 5:25 
Questionneural network Pin
nth404022-Aug-08 5:08
nth404022-Aug-08 5:08 
JokeRe: neural network Pin
Brady Kelly22-Aug-08 6:14
Brady Kelly22-Aug-08 6:14 
QuestionVirtual Camera Control Pin
tjschilling22-Aug-08 5:06
tjschilling22-Aug-08 5:06 
QuestionRe: Virtual Camera Control Pin
led mike22-Aug-08 5:19
led mike22-Aug-08 5:19 
AnswerRe: Virtual Camera Control Pin
tjschilling22-Aug-08 5:32
tjschilling22-Aug-08 5:32 
GeneralRe: Virtual Camera Control Pin
led mike22-Aug-08 6:13
led mike22-Aug-08 6:13 
Questionmdi child form Pin
laknath22-Aug-08 4:22
laknath22-Aug-08 4:22 
AnswerRe: mdi child form Pin
DaveyM6922-Aug-08 4:37
professionalDaveyM6922-Aug-08 4:37 
AnswerRe: mdi child form Pin
Manas Bhardwaj22-Aug-08 5:00
professionalManas Bhardwaj22-Aug-08 5:00 
QuestionLink Keyboard Shortcut to Button Pin
polishprogrammer22-Aug-08 4:09
polishprogrammer22-Aug-08 4:09 
AnswerRe: Link Keyboard Shortcut to Button Pin
Abhijit Jana22-Aug-08 4:23
professionalAbhijit Jana22-Aug-08 4:23 
GeneralRe: Link Keyboard Shortcut to Button Pin
DaveyM6922-Aug-08 4:25
professionalDaveyM6922-Aug-08 4:25 

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.