3 Replies - 15334 Views - Last Post: 06 January 2010 - 01:53 AM Rate Topic: -----

#1 sram  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 05-January 10

Form Background Image

Post icon  Posted 05 January 2010 - 07:08 AM

Hello, I've just begun Visual Basic. I can't insert a code that assigns a resource I put ( a JPEG picture ) to become the background image of another form I have. Does anyone know?
Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: Form Background Image

#2 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 465
  • View blog
  • Posts: 4,255
  • Joined: 25-March 09

Re: Form Background Image

Posted 05 January 2010 - 08:38 AM

hello use the picture property of your form something like that:
Private Sub Form_Load()
MyForm.Picture = "C:\MyBackGroundPicture.jpg"
End Sub


Was This Post Helpful? 0
  • +
  • -

#3 vb5prgrmr  Icon User is offline

  • D.I.C Lover

Reputation: 109
  • View blog
  • Posts: 1,016
  • Joined: 21-March 09

Re: Form Background Image

Posted 05 January 2010 - 10:35 PM

NoBrain...tsk, tsk, tsk,... your forgot the loadpicture function...
Me.Picture = LoadPicture("PathFileNameToBackGroundPic")



sram,

Time to use your friends (yahoo, google, ask, answers, bing) and search for vb6 resource files tutorial or vb6 using resource files like this one...

http://www.vb6.us/tu...ource-files-vb6



Good Luck
Was This Post Helpful? 0
  • +
  • -

#4 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 465
  • View blog
  • Posts: 4,255
  • Joined: 25-March 09

Re: Form Background Image

Posted 06 January 2010 - 01:53 AM

oh yea :D ty for that vb5prgrmr :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1