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.
Printable View
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.
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
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.
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
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
Hey,
For your information, the sample is available in VB.Net as well:
http://www.dotnetfordevices.com/snippets/13.html
Gary
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
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.
This code is giving me an error: no valid namespace.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
Any suggestions?
And what is the meaning of resources in this case, can't i use this code to open any image?
thanx.
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
Hello again,
the line giving the error is:
Protected Overrides Sub OnPaint(ByVal e As PaintEventArgs).
ok i will check for more details.
Thankx.
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
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
Hi,
I think it is the asm that is giving you problems
Try...
PeteCode: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)
thank you Pete for your concern.
it totally worked.