Results 1 to 14 of 14

Thread: [RESOLVED] mobile applications

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    15

    Resolved [RESOLVED] mobile applications

    hi ,
    i want to make an application for mobiles using .NET compact framework 3.5
    still im so new for this thing , so can i have references , or name of books, websites anything that can help me start programing.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: mobile applications

    Hey,

    Firstly, can you confirm that you have a copy of Visual Studio 2008? You are going to need this before you can begin your development of the application? In addition, you are going to need to download the SDK for the version of Windows Mobile that you are going to be targetting, you can find them here:

    http://www.microsoft.com/downloads/d...displaylang=en
    http://www.microsoft.com/downloads/d...displaylang=en
    http://www.microsoft.com/downloads/d...displaylang=en

    In terms of getting started, a good place might be here:

    http://msdn.microsoft.com/en-gb/netf.../bb495180.aspx

    Hope that helps!!

    Gary

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    15

    Re: mobile applications

    hi Gary,
    yes i have the VS 2008 , and the SDK v6.0 A.
    so im ready to start learning.
    thank you for the links.

    take care.

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: mobile applications

    Hey,

    Good stuff.

    Another source is this website here:

    http://www.dotnetfordevices.com/

    There is a sample application built up by the owner of that site, which takes a full line of business application, called RoadAssistance, and explains how to build it over a series of webcasts, you can find them here:

    http://www.dotnetfordevices.com/snippets/12.html

    Gary

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    15

    Re: mobile applications

    hi Gary,
    this is great.
    for now im just looking for Visual basic applications not C# , so im searching for basic like 101 application samples.
    you were a great help thank you for your time

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: mobile applications

    Hey,

    For your information, the sample is available in VB.Net as well:

    http://www.dotnetfordevices.com/snippets/13.html

    Gary

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: mobile applications

    Also, you might want to take a look at the following:

    http://msdn.microsoft.com/en-us/vbas...89075.aspx#net

    There are samples specifically for the Compact Framework.

    Gary

  8. #8

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    15

    Re: [RESOLVED] mobile applications

    Hi Gary,
    hope your fine.
    i'm working on .NET Compact Framework using VB.
    i found this code, it puts the image as a background on the form.

    Code:
    Protected Overrides Sub OnPaint(e As PaintEventArgs)
    
        Dim asm As Assembly = Assembly.GetExecutingAssembly()
        Dim backGroundImage As New Bitmap(asm.GetManifestResourceStream("mypicture.bmp"))
        
        e.Graphics.DrawImage(backgroundImage, Me.ClientRectangle, _
            New Rectangle(0, 0, backgroundImage.Width, backgroundImage.Height), _
            GraphicsUnit.Pixel)
    
    End Sub
    This code is giving me an error: no valid namespace.
    Any suggestions?
    And what is the meaning of resources in this case, can't i use this code to open any image?
    thanx.

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] mobile applications

    Hey,

    Where did you get the code from?

    Was it an example specifically for the .Net Compact Framework, or was it for the .Net Framework? It is possible that part of the above code is not supported in the .Net Compact Framework. Rather then copy and paste the code, type it into the IDE, and Intellisense should start giving you clues regarding what is not supported.

    Which line does the error appear on?

    Gary

  10. #10

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    15

    Re: [RESOLVED] mobile applications

    Hello again,
    the line giving the error is:

    Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs).

    ok i will check for more details.
    Thankx.

  11. #11
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] mobile applications

    Hey,

    Can you show where you have put the above code? Is it possible for you to paste in your entire form code so far?

    Gary

  12. #12

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    15

    Re: [RESOLVED] mobile applications

    Hi Gary,
    Hope this message finds you in good health.
    the attachment will show you the code displayed in the form place.
    the "bis.bmp" is added as you notice and it is changed to have a " always copy" output.

    can i load an image from a folder that is on the system( as in MyPictures file)?

    thankx
    Attached Images Attached Images  
    Last edited by ranabis; May 5th, 2009 at 09:43 AM.

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

    Re: [RESOLVED] mobile applications

    Hi,
    I think it is the asm that is giving you problems
    Try...

    Code:
     Dim strBackGround As String = System.IO.Path.GetDirectoryName(Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase.ToString()) & "\bis.bmp"
            Dim bgm As New Bitmap(strBackGround)
            e.Graphics.DrawImage(bgm, Me.ClientRectangle, _
            New Rectangle(0, 0, bgm.Width, bgm.Height), _
            GraphicsUnit.Pixel)
    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  14. #14

    Thread Starter
    New Member
    Join Date
    Mar 2009
    Posts
    15

    Re: [RESOLVED] mobile applications

    thank you Pete for your concern.
    it totally worked.

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