changing picture in a form

Freeze
01-11-2003, 12:10 PM
i set picture: d01.jpg as background to my form..

i made a button:

private sub cmd_click()
Form1.Picture , ("C:\image001.jpg")
End Sub

to change the picture on_click

i know this code cant be very correct.. but how do i chage the background?

ah.. and how do i set the form, that the user cant modify the size of the form?

Freeze
01-11-2003, 12:22 PM
nobody?

rimby
01-11-2003, 12:24 PM
For your background question, use LoadPicture to set the background, e.g.:


Form1.Picture = LoadPicture("C:\image001.jpg")


For your last question, set the BorderStyle of the form to either Fixed Single or Fixed Dialog, depending on the type of form you need.

Freeze
01-11-2003, 12:25 PM
thanks :)

Lar_19
01-11-2003, 12:28 PM
For your other question, change the border style propety of your form to a non-sizable one.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum