|
I have installed Visual Studio 2008 and Mobile 6 SDK. When I try to use basic controls in a Visual C# Smart Device Project using .Net Framework 3.5, I cannot access many of the simple classes of the standard controls. For example, with only this Form Load event:
private void Form1_Load(object sender, EventArgs e)
{
Font mfont = new Font("Arial", 12);
}
I get
Error 1 'System.Drawing.Font' does not contain a constructor that takes '2' arguments
And any other System.Drawing classes are not found. Any of these controls work fine in a C# Windows Forms Application Project. Is this some simple Reference that has to be added to the Solution or are these Classes not really available in a Mobile 6 project. And why does a C++ Smart Device Project not even allow an application with visual Windows Forms Controls?
|
|
|
|
|
I am getting the same problem with the same setup. In addition:
- 'System.Windows.Forms.MainMenu' does not contain a constructor that takes '1' arguments
- 'System.Windows.Forms.MenuItem' does not contain a definition for 'Index'
- 'System.Windows.Forms.Menu.MenuItemCollection' does not contain a definition for 'AddRange'
etc...
My project was originally running successfully in vs2005/mobile 5sdk. The transferred project worked for a while, now I get 60 errors like this.
In the transition to the newer environment my code was automagically updated, as in
this.MainMenu1 = new System.Windows.Forms.MainMenu() became
this.MainMenu1 = new System.Windows.Forms.MainMenu(this.Components). This is ok in 3.5 as the constructor has new overloads, but not in 2.0.
It looks like maybe it is still referencing the wrong assemblies but for the life of me I can't find where.
Any ideas?
|
|
|
|
|
So I've got the design time Icons showing up successfully in the toolbox for a smart device project. When I drag and drop the control in a smart device project the default gear icon shows up for the control in the designer panel instead of the icon that is in the tool box. To make it more confusing this behavior only happens when the control is used on a machine other than the one it was compiled on. If I use it on the machine that it was compiled on all the icons show up correctly. Has anyone run into this before?
P.S. Right now I'm using the method of marking the icons as embedded resources, I've also tried the xmta route as well with the same results.
|
|
|
|
|
Hi all,
i have developed a MS BI using SSAS cubes and Performance point dashboards and published them on Sharepoint2007. now iam thinking of making a windows mobile version. any suggestions and thanks
|
|
|
|
|
While this doesn't necessarily help with SharePoint 2007, have you looked a the improvements to support mobile devices in SharePoint 2010?
From the SharePoint Blog, the #5 improvement for SharePoint 2010 Sites:
http://blogs.msdn.com/b/sharepoint/archive/2009/10/19/sharepoint-2010.aspx[^]
SharePoint Mobile Access – We both improved the experience for mobile web browsers and are introducing a new SharePoint Workspace Mobile client so you can take Office content from SharePoint offline on a Windows Mobile device. These clients let you navigate lists and libraries, search content and people and even view and edit Office content within the Office Web App experience running on a mobile browser.
|
|
|
|
|
Hello every one,
I am developing an application on iPhone. My client needs an application which people runs in their mobile phone. People should go through the list of products and choose them. After selecting they should send the order to the store. After submitting, the main store should receive the order via mobile phone. how I can impelement this application. Do i need web service programming or client side or ... .
What is the difference between them.
I pleased if you developers help me in this matter.
|
|
|
|
|
From your question it would seem that you are at a very early stage in your project; have you already looked here[^]?
It's time for a new signature.
|
|
|
|
|
Hi everyone, I have some isuues with Compact Frame work datagrid. It does not have much options like windows datagridview have.Can anyone please tell me how do I load data in coloumns and rows like in windows.
thanks
|
|
|
|
|
Hello everyone!
I'm new on mobile development, so be gentle with me. I need some information about how to create a serial communication, like the way arduino is connected to computer, a serial protocol. I want to create an applet to communicate with a C# application, for data exchange.
|
|
|
|
|
It's hard to answer that without knowing about the hardware you are using. Are you using a Windoiws Mobile device? Some other Windows CE device? Perhaps a .Net Microframework device?
|
|
|
|
|
I'm using a Sony Ericsson w910i (not a smartphone). The purpose is to create a java applet for my phone, that enables it to comunicate with my laptop, through bluetooth. I searched online about this type of connection, but found nothing.
|
|
|
|
|
When I run Windows Explorer, I can search the phone and add and remove and move around files and such on its SD card. When I try to do it programmatically, however, it appears that there is no way to do it. Is there a way to tell a program to create a file or copy a file to a docked Windows Mobile 6.1 device from a program running on the Windows 7 desktop?
"Eschew Obfuscatory Verbiage"
|
|
|
|
|
|
I have a class that I need to convert to a byte array for a Windows Mobile device. The byte array is sent using ssl to a server, which needs to rebuild the class. I have used BinaryFormatter on a PC client that worked great. However I can't use that with the compact framework. This is the code I am currently trying to use but its giving me the error message "Type 'PackageTrans' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.".
public byte[] ClassToBytearray(object obj)
{
int Length = Marshal.SizeOf(obj); <----------This is where I get the error.
byte[] bytearray = new byte[Length];
IntPtr ptr = Marshal.AllocHGlobal(Length);
Marshal.StructureToPtr(obj, ptr, false);
Marshal.Copy(ptr, bytearray, 0, Length);
Marshal.FreeHGlobal(ptr);
return bytearray;
}
This is my first time using Marshal. Why wouldn't a meaningful size or offset be computed? What is it that I am missing? Is there a different way I should be doing this? Any and all help would be greatly appreciated.
Thanks
-Kio
modified on Friday, June 11, 2010 1:25 AM
|
|
|
|
|
Look into serialization, there are many options -> Binary, xml, soap, etc.
|
|
|
|
|
hello
How did you manage?
|
|
|
|
|
Hi Friends,
I am developing a Windows Mobile application using 6.0 professional SDK.
Here I am consuming a web service which is hosted on HTTPS.
I am able to add the web reference successfully but when I call a method of the service using proxy it throws following exception.
"Could not establish trust relationship with remote server."
The same scenario works fine if I test it with a desktop windows application. I am able to call the method successfully and I receive the response too, but I dont know why it is not working with Windows Mobile.
I am able to browse the websites from the mobile browser so there is no issue about the connection.
Please help me soon friends I m running out of time...I have search all over the world during last 2 days but could not find any satisfactory and working solution.
Thank you all in advance.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
The first thing I would check is the date and time on your Windows Phone. It it is wrong then SSL authentication will fail.
|
|
|
|
|
Hi Joel,
Thanks for the reply.
I tried the tip you mentioned. I am currently running the application on device emulators.
I changed the date time information of the emulator to my system date time but it didn't work.
The web service I m consuming is in different timezone, and I tried to change the emulator datetime information to that timezone too, but that also didn't help me.
I event asked the service providers but according to them there is nothing changed from their side except the service url which I am currently using.
If I refer the same service url in a windows desktop application, everything works fine.
I am really stuck. Please help me.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
Dude! I tried this (setting the correct date/time) out of desperation after continually having a "Could not establish trust relationship with remote server" error message and it flippin' worked. Thanks for the tip--why can't these error messages give a little more information????
|
|
|
|
|
Hi friends,
Finally I found the solution of this problem.
I had to create a class which implemented ICertificatePolicy interface as following.
public class AlwaysTrustedCertificatePolicy : ICertificatePolicy
{
#region ICertificatePolicy Members
public bool CheckValidationResult(ServicePoint srvPoint,
System.Security.Cryptography.X509Certificates.X509Certificate certificate,
WebRequest request,
int certificateProblem)
{
return true;
}
#endregion
}
And before calling the first ever method of service I created an instance of this class and assign it to "CertificatePolicy" of "ServicePointManager" class.
ICertificatePolicy certificatePolicy = new new AlwaysTrustedCertificatePolicy();
ServicePointManager.CertificatePolicy = certificatePolicy;
var serviceClient = new ServiceClient();
serviceClient.Login(username, password);
This worked for me very well... but this is I guess work around not the proper solution.
If any body finds the solution please post.
Thanks and Regards,
Chetan Ranpariya
|
|
|
|
|
dear experts
i have recently seen some projects in web controlling electrical devices form s60 mobiles and the program written here in s60 mobile is python now i want to write my own code .pls any body suggest me which book to read ,web add for reference thanks in advance.
|
|
|
|
|
Hi,
I am using a Windows Mobile 6.1
I want to programatically know if currently the phone is connected to the internet through WiFi or GPRS or USB ?
How can I achieve this ?
Preferably in Managed code.
|
|
|
|
|
f9로 중단점을 설정하였습니다.
Debug mode was exited automatically when i want to use debug mode by press F5 key.
and i realize there is error when internet explore windows is running.
so i want to know how am i fix this?
(These day , i close all of internet explore windows and run debug mode)
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
Hi all,
i m using Nokia Mobile Phone ,i want to develop an application,that is able to access all things Inside of Nokia Phone, like Contacts,Messages,Task,Calendat,Notes,Files etc.
pleease can anybody help me and provide me guidance from where i can start.
please help me for this thanks in advance.
i m waiting for ur valuable suggestions.
|
|
|
|