Private Declare Function SetWindowLongA Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private sBGImg As String
Private Sub Form_Load()
'A bit of test poetry
rtbTrans.TextRTF = "{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq1\fcharset0 Arial;}{\f1\fnil\fprq1\fcharset0 Times New Roman;}{\f2\fnil\fcharset0 Calibri;}}" & vbNewLine & _
"{\colortbl ;\red255\green0\blue0;\red0\green176\blue80;\red0\green77\blue187;\red255\green255\blue0;\red155\green0\blue211;\red255\green192\blue0;}" & vbNewLine & "{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sa200\sl276\slmult1\cf1\highlight0\lang9\b\f0\fs32 'Twas brillig and the slithy toves\par" & vbNewLine & "\cf2\b0\i Did gyre and gimble in the wabe\par" & vbNewLine & "\cf3\ul\i0 All Mimsy were the borogroves\par" & vbNewLine & "\cf4\ulnone\strike And the mome raths outgrabe\cf0\strike0\par" & vbNewLine & "\par" & vbNewLine & "\cf5\f1\fs44 ""Beware the Jabberwock my son!\par" & vbNewLine & "\cf6 The jaws that bite, the claws that catch!\par" & vbNewLine & "\cf2\b Beware the Jub-Jub bird, and shun\par" & vbNewLine & "\cf1\b0\i The frumious bandersnatch!""\cf0\highlight0\i0\f2\fs22\par" & vbNewLine & "}" & vbNewLine
'Set the default background image
sBGImg = App.Path & "\Test.jpg"
'Call the resize and draw code
Form_Resize
End Sub
Private Sub Form_Resize()
'Just setting the text box and its container picturebox to the size of the window