Results 1 to 5 of 5

Thread: [RESOLVED] App.path in VB2005 mobile app

  1. #1

    Thread Starter
    Member kryptonboy22's Avatar
    Join Date
    May 2006
    Location
    philippines
    Posts
    48

    Resolved [RESOLVED] App.path in VB2005 mobile app

    Hi!

    1. What's the conversion or codes of App.path of vb6 to vb2005 mobile application?

    2. What's the best to practice in mobile application in database connection?
    - Hard coded or by object (direct connect)

    hope i deliver it right!


    Thanks guys!

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: App.path in VB2005 mobile app

    Hi,
    for app.path do...
    AppPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase )

    Sorry - don't think I understand 2, but hard-coding generally is a no-no

    I keep my connection strings in an XML file

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Member kryptonboy22's Avatar
    Join Date
    May 2006
    Location
    philippines
    Posts
    48

    Re: App.path in VB2005 mobile app

    thank sir! Now i got the path but the problem i cant apply it to a picturebox. You see i need to load a picture in a specific path. When i search on an item i have to load the designated picture. Why my picturebox cant load picture by path?

    my code is: (ofcourse error occur)
    ImageViewer.Image = System.Drawing.bitmap(sFullPath)


    Thanks sir!

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: App.path in VB2005 mobile app

    Try
    imageviewer.image = new bitmap(sfullpath)

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  5. #5

    Thread Starter
    Member kryptonboy22's Avatar
    Join Date
    May 2006
    Location
    philippines
    Posts
    48

    Re: App.path in VB2005 mobile app

    Thanks sir i think its going to work. I just cant test it cause i dont know how to path the location of Storage card of the device in emulator. but the path you gave works.


    ------------------------------------------------------------

    thanks for the help sir pete. Its working now! thanks a lot sir!
    Last edited by kryptonboy22; Mar 31st, 2008 at 07:44 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width