Click here to Skip to main content
15,910,083 members
Home / Discussions / C#
   

C#

 
GeneralPassword on a Windows Form Pin
Member 138504916-Nov-04 17:08
Member 138504916-Nov-04 17:08 
GeneralRe: Password on a Windows Form Pin
Dennis C. Dietrich17-Nov-04 5:53
Dennis C. Dietrich17-Nov-04 5:53 
GeneralRe: Password on a Windows Form Pin
Member 138504917-Nov-04 11:39
Member 138504917-Nov-04 11:39 
GeneralRe: Password on a Windows Form Pin
Dennis C. Dietrich17-Nov-04 12:12
Dennis C. Dietrich17-Nov-04 12:12 
GeneralBuilding an Internet Explorer Toolbar Pin
thintium16-Nov-04 13:56
thintium16-Nov-04 13:56 
GeneralRe: Building an Internet Explorer Toolbar Pin
Nick Parker16-Nov-04 16:06
protectorNick Parker16-Nov-04 16:06 
GeneralRe: Building an Internet Explorer Toolbar Pin
Luis Alonso Ramos17-Nov-04 19:43
Luis Alonso Ramos17-Nov-04 19:43 
GeneralChanging Background Image of form Pin
cheech522516-Nov-04 11:53
cheech522516-Nov-04 11:53 
Hi,

This seems like an easy enough question, but I can't seem to find a solution, so hopefully someone here can help me out. It should be noted that I am new to C#.

I'm trying to change the background image of my form when the user clicks a button. I'm able to do this if I use:

<br />
this.BackgroundImage = new Bitmap(@"C:\folder\folder2\image.jpg");<br />


However, I want my app to be portable, so I don't want the image stored in an outside folder. Is it possible to store the image within the app? For instance the initial background image is stored and called with:

<br />
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));<br />


I'm thinking of maybe making several "themes" for my application, and this is the first step. However, if someone can suggest a better way of doing this I'm all ears.

Thanks in advance for your help,

Chris
GeneralRe: Changing Background Image of form Pin
Nick Parker16-Nov-04 12:37
protectorNick Parker16-Nov-04 12:37 
GeneralEfficiently Swapping 2 numbers! Pin
jdeakin200416-Nov-04 11:51
jdeakin200416-Nov-04 11:51 
GeneralRe: Efficiently Swapping 2 numbers! Pin
latta16-Nov-04 12:37
latta16-Nov-04 12:37 
GeneralRe: Efficiently Swapping 2 numbers! Pin
Nick Parker16-Nov-04 12:40
protectorNick Parker16-Nov-04 12:40 
GeneralRe: Efficiently Swapping 2 numbers! Pin
latta16-Nov-04 12:58
latta16-Nov-04 12:58 
GeneralRe: Efficiently Swapping 2 numbers! Pin
Skynyrd16-Nov-04 13:22
Skynyrd16-Nov-04 13:22 
GeneralRe: Efficiently Swapping 2 numbers! Pin
Dennis C. Dietrich16-Nov-04 13:22
Dennis C. Dietrich16-Nov-04 13:22 
Generalfile association Pin
bwagz16-Nov-04 11:23
bwagz16-Nov-04 11:23 
GeneralRe: file association Pin
Nick Parker16-Nov-04 11:32
protectorNick Parker16-Nov-04 11:32 
Generalupdate statement Pin
cmarmr16-Nov-04 10:33
cmarmr16-Nov-04 10:33 
GeneralRe: update statement Pin
Nick Parker16-Nov-04 11:23
protectorNick Parker16-Nov-04 11:23 
GeneralRe: update statement Pin
Luis Alonso Ramos16-Nov-04 11:27
Luis Alonso Ramos16-Nov-04 11:27 
GeneralRegular expression problem Pin
Christian Graus16-Nov-04 9:03
protectorChristian Graus16-Nov-04 9:03 
GeneralRe: Regular expression problem Pin
Daniel Turini16-Nov-04 9:11
Daniel Turini16-Nov-04 9:11 
GeneralRe: Regular expression problem Pin
Christian Graus16-Nov-04 9:43
protectorChristian Graus16-Nov-04 9:43 
GeneralRe: Regular expression problem Pin
Nick Parker16-Nov-04 11:16
protectorNick Parker16-Nov-04 11:16 
GeneralRe: Regular expression problem Pin
Christian Graus16-Nov-04 13:26
protectorChristian Graus16-Nov-04 13:26 

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.