Tile With Lightweight Image Control Arrays

Tile With Lightweight Image Control Arrays

I write apps for companies where computer know-how is at an all-time low. Most applications scare people to death. However, Web-style forms and graphic buttons present soothing enough interfaces that they can be inviting to users.

I wanted my forms to look just like a Web page, so I devised a method to replicate and tile one Image control across a form. To achieve this effect, add an Image control to your form, set its Index to zero, set Visible to False, and set an appropriate background image for the Picture property. Pass your form to the CreateBackground routine during its Load event:

 Private Sub Form_Load()	Call CreateBackground(Me)End SubPublic Sub CreateBackground(frmCallingParent)	Dim lTilesY As Long, lTilesX As Long	Dim lLeft As Long, lTop As Long	Dim oImg As Image	Dim X As Integer	Set oImg = frmCallingParent.Image1(0)	lTilesX = oImg.Width	lTilesY = oImg.Height	Do While lTop < Screen.Height		X = X + 1		Load frmCallingParent.Image1(X)		Set oImg = frmCallingParent.Image1(X)		With oImg			.Left = lLeft			.Top = lTop			.Visible = True		End With		lLeft = lLeft + lTilesX		If lLeft > Screen.Width Then			lLeft = 0			lTop = lTop + lTilesY		End If	LoopEnd Sub
Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of