Answered by:
vs 2008 mobile application

Question
-
can anyone help me to do set an image as background in vs 2008 mobile application??
thanks in advance.
pura
Thursday, April 15, 2010 8:49 AM
Answers
-
Hi pura.peace
You can watch this video and download a VB or C# code to add an Image as a background for your application.
How Do I: Display a Background Image on a Form?
I hope that helps
Regards : MrAlshahawy
Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helps- Proposed as answer by Ashraf Alshahawy Thursday, April 15, 2010 10:02 AM
- Marked as answer by pura.peace Friday, April 16, 2010 5:36 AM
Thursday, April 15, 2010 10:01 AM
All replies
-
Hi pura.peace
You can watch this video and download a VB or C# code to add an Image as a background for your application.
How Do I: Display a Background Image on a Form?
I hope that helps
Regards : MrAlshahawy
Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helps- Proposed as answer by Ashraf Alshahawy Thursday, April 15, 2010 10:02 AM
- Marked as answer by pura.peace Friday, April 16, 2010 5:36 AM
Thursday, April 15, 2010 10:01 AM -
Thursday, April 15, 2010 11:28 AM
-
Hi ashraf fawzy ,
In my program I used the following code to retrive the image from file that resides inside my mob application solution
Bitmap
bitmap = newBitmap(@"\Program Files\SmartDeviceProject2\pushy.jpg");
but am getting the following error
"Could not find file '\Program Files\SmartDeviceProject2\pushy.jpg'."
can u help me to solve this pls.
Thanks and Regards,
pura
Friday, April 16, 2010 5:54 AM -
Hi ,
use this function to retrieve the path of image exists with your executable file :
Private Function GetExePath() As String
Return (Path.GetDirectoryName(Assembly.GetExecutingAssembly.GetName.CodeBase))
End Function
In Properties Panel set your image property :
Build Action : Content
Copy to output : Copy if newer
This way your image will be transformed into your project directory on Emulator.
Let me know if you need any help
Regards : MrAlshahawy
Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helpsFriday, April 16, 2010 6:03 AM -
Hi ashraf fawzy ,
no need to answer for last qustion..i found the solution of that problem.thanks for your useful post.
thanks and regards
pura
Friday, April 16, 2010 6:05 AM -
You are welcome ,
And if you would like to add how you fixed it so it may help someone else , that would be good.
Regards :MrAlshahawy
Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helpsFriday, April 16, 2010 6:08 AM -
I set the following property of image file
Copy to output Directory: Copy always
its solved my problem.
Thanks and Regards,
pura
Friday, April 16, 2010 6:25 AM -
Hi ashraf fawzy ,
I need one more help from you regarding this backgroud. My need is now that to know
"How to set my image as a mobile background not only a single form" like theme
Thanks and Regards
pura
Friday, April 16, 2010 6:43 AM -
Hi Pura.Peace ,
Based on that your new question is different from this thread , and to give yourself a better chance to receive an answer for it , Create a new thread with your new question.
Regards : MrAlshahawy
Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helpsFriday, April 16, 2010 6:50 AM