How can i not do this

04-27-2006, 03:26 AM
I must admit before askign the question i feel really stupid for not knowing how to do this it seems like such an easy task and was in vb6 i guess getting used to net will take a little longer than i reckoned on. The problem i have is when the user right clicks the form a dialog box comes up and when they sleected which picture they want its loaded onto the form as its background image. The problem i have is i cant get the background image to change. ANy help will be greatly appreciated

04-27-2006, 11:01 AM
I take it you're using the OpenFileDialog? If so, you'll need to put something like this in your right-click event:

Me.BackgroundImage=New Bitmap(OpenFileDialog1.Filename)

04-27-2006, 11:13 AM
Thanks JNewt worked like a charm. thanks again. two thanks in two sentences bet you feel proud lol

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum