Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How am I PaintPicture in UserControl

Status
Not open for further replies.

ii128

Programmer
May 18, 2001
129
US
I try to paint picture in Usercontrol, but nothing shows up when I run the Usercontrol.


Dim x As Picture

Set x = LoadPicture("c:\test vB\k-kabe48.gif")

Dim i As Integer
Dim p As Integer
i = 0
p = 0

Do Until i > UserControl1.Height
Do Until p > UserControl1.Width
UserControl1.PaintPicture x, p, i
p = p + 2900
Loop
i = i + 2900
p = 0
Loop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top