Results 1 to 5 of 5

Trouble loading pictures

Threaded View

  1. #1
    Registered User
    Join Date
    03-12-2024
    Location
    Pakistan
    MS-Off Ver
    MS Office Porfessional Plus 2021
    Posts
    2

    Trouble loading pictures

    If I change directory or folder name picture does not load.


    On Error GoTo picss
    If prin <> Empty Then
    
        Image1.Picture = LoadPicture("D:\Faheem Khalid\STEP\STEP 2024\Self Assessment Test 2024\Self Assessment Test 2024\Pictures" & prin & ".JPG")
        
    Else
    
    picss: MsgBox ("Please Upload Student's Picture"), vbCritical, "Information"
    
    f = MsgBox("Print Form without Picture", vbYesNo, "Help")
    If f <> 6 Then
        Unload Me
        frmform.Show
     Exit Sub
    End If
    
    End If
    Attached Files Attached Files
    Last edited by 6StringJazzer; 03-15-2024 at 08:16 AM. Reason: Code tags added (AliGW); title updated - please review the forum guidelines

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1