Designer and imagefile

sultan87

Active Member
Licensed User
Longtime User
Hello
j' used Designer with imageview
imagefile = " xxxx.jpg" in the repertory Files
Activity.LoadLayout (" Main")
I would like by modified program
imagefile = " yyyy.jpg" in File.DirRootExternal
how to make ?
Best Regards
 

sultan87

Active Member
Licensed User
Longtime User
Hello
Activity.LoadLayout("Main")
imageview1.Bitmap = LoadBitmap(MyPath & "/Images/","vignobles.jpg")
Message error
imageview1 used before initialize
Best Regards
 
Upvote 0

sultan87

Active Member
Licensed User
Longtime User
Hello
yes,an ImageView named ImageView1 is include in my layout
ImageView1 is not declared as a global variable
Best regards
 
Upvote 0

sultan87

Active Member
Licensed User
Longtime User
Hello
new essai
ImageView1 is declared as a global variable

Activity.LoadLayout("Main")
imageview1.Bitmap = LoadBitmap(MyPath & "/Images/","vignobles.jpg")

now, it's good

Thanks

Best regards
 
Upvote 0
Top