Re: How to create a Vb6 program without forms with picture?
To put pictures & buttons you need a form but if you don't want to see the form then you could 'remove' the form's border using the properties windows and setting BorderStyle = 0 (None)
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
Re: How to create a Vb6 program without forms with picture?
Originally Posted by jggtz
To put pictures & buttons you need a form but if you don't want to see the form then you could 'remove' the form's border using the properties windows and setting BorderStyle = 0 (None)
Thanks you :-) in future i use this function and remember everything you say. I do what you say but see this. Border no more, but i can see other thing, i need only picture to see, not backround around picture area.
Re: How to create a Vb6 program without forms with picture?
Originally Posted by jggtz
You could resize the form to the same size of the picture using the Paint event of the form, as:
Code:
Private Sub Form_Paint()
Me.Width = Picture1.Width
Me.Height = Picture1.Height
End Sub
Picture1 is the name of the control, you can change to your real control's name
Or you could set the size at design time
When i try to enter width and height numbers in design time, nothing hapend. Then i try paste that code and see what have we got.
Maybe i do a mistake somwhere.
Bookmarks