Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 657355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:48:53+00:00 2026-05-13T22:48:53+00:00

I am developing smart device application in C#. I am able to add the

  • 0

I am developing smart device application in C#. I am able to add the images in my application by sharing the folder. I am sharing the folder by doing some setting in the emulator. In the emulator by setting File -> Configure ->shared folder, I am able to retrive the images in my application by using Bitmap(). But I want to diplay these images from my application’s folder. In my application I have added one folder by using add -> New Folder. In that I kept my images. But when I add them by using Bitmap I am getting error. I am using the code
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
to get the path of application & I am displaying the path in message box in emulator but is giving path as ‘program file/managedappl’.So how to add the images from application’s local folder? Is there any way? If there is only one way as I above mentioned then can my application successfully display the images on different mobile devices after deploying the application on them ? Can u provide me the code or link through which I can resolve the above issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T22:48:54+00:00Added an answer on May 13, 2026 at 10:48 pm

    If you look in the emulator: are the image files copied to the device upon running the application? This is necessary to get things working.

    Then, you’re using the correct code to determine the location of your program’s exe file, however, you of course need to add the name of the folder that contains your images.

    Let’s say your application’s exe resides in \Program Files\managedappl and your pictures reside in a folder pics within the program’s folder. Then you determine the image path with:

    Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase), "pics");
    

    After that you can append the name of an image file.

    It is important to configure the image files in Visual Studio so they are copied to the device when running the application. If you look under “My Device” in the emulator (the mobile “Explorer”), you should see the following folder structure:

    \Program Files\managedappl
    \Program Files\managedappl\pics
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing smart device application in C#. I am able to add the
I am developing smart device application in C#. In that I am calling the
I am developing smart device application in C#. It is a window application. In
I am developing smart device application in C#. In that I am calling the
I am developing smart device application in C#. I am developing this application for
I am developing the smart device application. There are different screen resolution for different
I am developing smart device application in C#. When I deploy my application on
I am developing smart device application. In that I am consuming the java web
I am developing smart device application. I want to know whether we need to
I am developing smart device application in C#. In that I am calling the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.