Help Me With Load

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zaccy
    New Member
    • Jul 2007
    • 11

    Help Me With Load

    PLEASE HELP i have this problem and i need it fixed
    all i need to know is the code to load pictures from folders in my computer when a number is equal to a case
    on the old one it is

    LoadPicture(App .Path & \1.bmp)

    but it doesnt work on new VB it says Name 'LoadPicture' is Not Declared and same with app.path
    plz help me
    PLEASE
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    Originally posted by Zaccy
    PLEASE HELP i have this problem and i need it fixed
    all i need to know is the code to load pictures from folders in my computer when a number is equal to a case
    on the old one it is

    LoadPicture(App .Path & \1.bmp)

    but it doesnt work on new VB it says Name 'LoadPicture' is Not Declared and same with app.path
    plz help me
    PLEASE

    can you give some more details like

    1. What version that you are using?
    2. What you had tryed (only That Method) now?

    so that i can get some more information.

    Comment

    • Zaccy
      New Member
      • Jul 2007
      • 11

      #3
      Originally posted by hariharanmca
      can you give some more details like

      1. What version that you are using?
      2. What you had tryed (only That Method) now?

      so that i can get some more information.

      Private Sub cmd_Roll_Click( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles cmd_Roll.Click
      Randomize()
      Select Case Int(Rnd() * 6) + 1
      Case 1
      pic_Player1Dice .Image = LoadPicture (App.path & \"1.bmp")
      lbl_Score1.Text = lbl_Score1.Text + 1
      End Select
      End Sub
      End Class


      thats the whole code without other cases
      i am using visual basice 2005 express edition
      plz help me

      Comment

      • hariharanmca
        Top Contributor
        • Dec 2006
        • 1977

        #4
        Originally posted by Zaccy
        Private Sub cmd_Roll_Click( ByVal sender As System.Object, ByVal e As System.EventArg s) Handles cmd_Roll.Click
        Randomize()
        Select Case Int(Rnd() * 6) + 1
        Case 1
        pic_Player1Dice .Image = LoadPicture (App.path & \"1.bmp")
        lbl_Score1.Text = lbl_Score1.Text + 1

        End Select
        End Sub
        End Class


        thats the whole code without other cases
        i am using visual basice 2005 express edition
        plz help me
        [code=vb]
        pic_Player1Dice .Image = LoadPicture (App.path & "\1.bmp")
        lbl_Score1.Text = val(lbl_Score1. Text) + 1
        [/code]

        change this two things and try.

        Comment

        Working...