Error .exe

Hello, when i want make ****.exe… i got error:

in this line: lblHP.Left = imgBackHP.Left + imgBackHP.Width

Where is problem?

(projectVertigo is it.)

What did the error say?

say:

Compile Error;

Method or data member not found.

Do you know what happen?

Show me the whole sub.

Private Sub Form_Load()
    Dim I As Long
    Dim Ending As String

    For I = 1 To 3
        If I = 1 Then Ending = ".gif"
        If I = 2 Then Ending = ".jpg"
        'If I = 3 Then Ending = ".png"
        If I = 3 Then Ending = ".bmp"

        If FileExists("\GUI\800X600" & Ending) Then
            frmMirage.Picture = LoadPicture(App.Path & "\GUI\800X600" & Ending)
        End If
    Next I

    imgBackHP.Picture = LoadPicture(App.Path & "\GUI\Empty.bmp")
    imgBackMP.Picture = LoadPicture(App.Path & "\GUI\Empty.bmp")
    imgHP.Picture = LoadPicture(App.Path & "\GUI\HP.bmp")
    imgMP.Picture = LoadPicture(App.Path & "\GUI\MP.bmp")
    imgEXP.Picture = LoadPicture(App.Path & "\GUI\TNL.bmp")
    imgBackEXP.Picture = LoadPicture(App.Path & "\GUI\Empty.bmp")
    picUserMenu.Picture = LoadPicture(App.Path & "\GUI\UserMenu.bmp")
    picGameMenu.Picture = LoadPicture(App.Path & "\GUI\GameMenu.bmp")
    picChatBox.Picture = LoadPicture(App.Path & "\GUI\Chatbox.bmp")
    lblCharStats.Picture = LoadPicture(App.Path & "\GUI\Buttons\Char.bmp")
    lblInventory.Picture = LoadPicture(App.Path & "\GUI\Buttons\Item.bmp")
    lblEquipment.Picture = LoadPicture(App.Path & "\GUI\Buttons\Equip.bmp")
    lblSpells.Picture = LoadPicture(App.Path & "\GUI\Buttons\Skill.bmp")
    lblWhosOnline.Picture = LoadPicture(App.Path & "\GUI\Buttons\Online.bmp")
    lblGuild.Picture = LoadPicture(App.Path & "\GUI\Buttons\Guild.bmp")
    lblOptions.Picture = LoadPicture(App.Path & "\GUI\Buttons\Menu.bmp")

    lblHP.Left = imgBackHP.Left + imgBackHP.Width
    lblMP.Left = imgBackMP.Left + imgBackMP.Width
    lblEXP.Left = imgBackEXP.Left + imgBackEXP.Width

    picChatBox.Top = 522
    picChatBox.Left = 0
    picScreen.Top = 0
    picScreen.Left = 0
    picGameMenu.Top = 568
    picGameMenu.Left = 458
    picUserMenu.Top = 0
    picUserMenu.Left = 0
End Sub

Did you possibly delete the imgBackHP and that other stuff? You might also want to try specifying frmMirage.BLAHBLAH

Either lblHP or imgBackHP has been deleted.

Log in to reply