|
I created a Mobile application (C#) for windows mobile 5, and also a custom downloader, I used OpenNetCF.ORG's desktop communication library to bulid the downloader, it has support for ActiveSync in it.
Paul
|
|
|
|
|
For .NET CF, check the Microsoft.WindowsMobile.Status namespace. The status is actually stored in a registry key and I actually figured which one a few weeks ago, but can't remember since I didn't end up using it.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
hi all,
i m using datagrid to show data.Each column of this datagrid have fixed length(width). How can i increase the width of particular column?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
you can use TableStyles:
For Example:
Dim ts As New DataGridTableStyle()
ts.MappingName = "TblEmployees"
GrdEmployees.TableStyles.Clear() 'GrdEmployees=Name of your datagrid
'Define all your columns
Dim ColID As New DataGridTextBoxColumn
With ColID
.MappingName = "EmployeeID"
.HeaderText = "ID"
.Width = 100
End With
With ts.GridColumnStyles
.Add(ColID)
End With
GrdMoves.TableStyles.Add(ts)
Hope it helped
|
|
|
|
|
Thanks a lot.
its work for me.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hi Guys,
Im New to writing mobile apps so..
Can anyone show me how to open GPRS Connection on a smartphone
(Windows Mobile 5) and close it.
the application is a simple receive and send data over the internet.
Thanks in advance.
|
|
|
|
|
Hello chaps,
I'm using eVC++ for a project (basically because it's free!), and I'm getting a little stuck on a few things. Firstly I'm playing around with GAPI, and while I've got it to work, it's not exactly fast - it's a 2D application; and my code will probably need optimisation. But the big question is that given I'm using eVC++, is this the best way to go? Or is there a more uptodate way, given that GAPI is now "deprecated".
Secondly, I'd also like to add a picture to a contact. I can understand the examples given on here and elsewhere about getting a contact and editing things such as the name, or the address, but when it comes to the picture itself, I can find nothing. It's not in the IContact structure, so any pointers to this would be great!
Many thanks in advance...
MrP.
|
|
|
|
|
Hi, I am developing a PDA application on Windows Mobile 5.0 Pocket PC SDK. I am using Visual Studio 2005 and C# as language. I need to play video files (.wmv) with WMPlayer 10, but I do not know how to do it. Anybody can help me? Any code examples?
Thanks
|
|
|
|
|
See this: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=395350&SiteID=1
But it might also be possible to use ShellExecute (available from NETCF2.0) on your media files like the example below:
Code Snippet
Proces p = new Process();
p.StartInfo.FileName = @"\myfolder\myfile.wmv";
p.StartInfo.UseShellExecute = true;
p.Start();
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
But on this way I do not use the WMPlayer SDK.
Do you know any WMPlayer control for Windows Mobile 5.0? The OpenNETCF does not work well with my pda. Do you know another though it not be free?
Regards
|
|
|
|
|
I am not sure what you mean by "But on this way I do not use the WMPlayer SDK".
Why would you not like to use the Windows Media Player to open the media files?
To run windows media player to open a file, use the code below:
System.Diagnostics.Process.Start("\Windows\wmplayer.exe", """\My Documents\My Music\new song.mp3""")
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
hi all,
how can i get the visibility status of keyboard? I means that Keyboard(soft input panel) is visible or not.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Rupesh,
If the Enabled property of the Input Panel is True, the panel is visible and if False, it is hidden.
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Hello,
I have a query whether 'SetKMode' is active in Windows Mobile 6.0.
Thanks is Advance!
|
|
|
|
|
No, its no longer supported.
Refer the article:
http://msdn.microsoft.com/en-us/library/aa908769.aspx
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Thanks for your resonse.
The article in MSDN says following lines: -
This function switches between kernel and user modes.
This function is no longer supported as of CE 6.0.
'SetKMode' is not supported for Win CE 6.0 whereas Windows Mobile 6.0 is based on Windows CE 5.2.
So my question is whether we cant use 'SetKMode' in WM 6.0?
|
|
|
|
|
It depends. The Setkmode API function is flagged as OEM meaning it would depend on the manufacturer whether this function is supported on the device or not.
MSDN link:
ms-help://MS.WindowsMobile.6/WindowsMobile6SDK/html/15be1603-7903-433f-a9ae-f2c2ea511df4.htm
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Hey Dave,
Can you please resend the link as i am not able to open this link.
Thanks,
Tony
|
|
|
|
|
Tony,
You can get the list of Privileged APIs in the Windows Mobile 6 SDK documentation. Just search with "Privileged APIs" and you shall get the list.
On MSDN:
http://msdn.microsoft.com/en-us/library/aa919335.aspx
~Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
hi all,
I want to show the form in normal mode. so i set the window state Property to 'Normal". I also define the size property. but when i run the application , the form is open in maximize mode.
any body have idea, that how can i perform this task using vb.net?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hi Guys,
I am developing a website using asp.net for mobile. I have requirement to upload images from mobile to webserver. I have write the code which works perfectly in openwave simulator. But when I am trying it in windows smartphone 2003 SE emulator then it does not display the file upload control. I can see only the Upload button.
I have also tried but it does not work. Please tell me the solution for this problem. Thanks in advance.
This is the aspx file
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MobTest1.aspx.cs" Inherits="MobTest1" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<body >
<mobile:Form ID="Form1" Runat="server" >
<mobile:DeviceSpecific ID="device1" Runat="server">
<Choice Xmlns="http://schemas.microsoft.com/intellisense/ie3-2nav3-0" >
<HeaderTemplate>
<asp:FileUpload ID="ftxt" runat="server" ToolTip="Jay" />
</HeaderTemplate>
</Choice>
</mobile:DeviceSpecific>
<mobile:Command ID="cmd" Runat="Server" OnClick="cmd_Click">Upload</mobile:Command>
<mobile:Label id="lbl" runat="server"></mobile:Label>
</mobile:Form>
</body>
</html>
Code behind file:
protected void cmd_Click(object sender, EventArgs e)
{
try
{
System.Web.UI.WebControls.FileUpload ftxt;
ftxt = (System.Web.UI.WebControls.FileUpload)Form1.Header.FindControl("ftxt");
if (ftxt.UniqueID == "ctl00$ftxt")
{
string[] str = Request.Form.GetValues(2);
string file = System.IO.Path.GetFileName(str[0].Substring(1));
string path = Server.MapPath("Image//") + DateTime.Now.Millisecond + file;
FileStream fs = File.Create(path);
byte[] bt = File.ReadAllBytes(str[0]);
fs.Read(bt, 0, Convert.ToInt32(bt.Length));
fs.Close();
DirectoryInfo Folder = new DirectoryInfo(path);
string FilePathSave = Folder.ToString();
File.WriteAllBytes(FilePathSave, bt);
lbl.Text = "Uploaded Successfully";
}
else
{
string[] str = Request.Form.GetValues(1);
string file = System.IO.Path.GetFileName(str[0].Substring(5));
string path = Server.MapPath("Image//") + file;
FileStream fs = File.Create(path);
byte[] bt = File.ReadAllBytes(str[0].Remove(0, 5));
fs.Read(bt, 0, Convert.ToInt32(bt.Length));
fs.Close();
DirectoryInfo Folder = new DirectoryInfo(path);
string FilePathSave = Folder.ToString();
File.WriteAllBytes(FilePathSave, bt);
}
}
catch(Exception ex)
{
}
}
|
|
|
|
|
Might be these links can help you:
http://forums.asp.net/p/1229679/2224327.aspx
http://forums.asp.net/t/1222177.aspx
http://www.eggheadcafe.com/software/aspnet/30593829/fileupload-control-on-mob.aspx
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Hello everybody
I want to make my own control with transparent background (For example round button).But I don’t know how I can do it. I am using C# .net, Compact Framework 2.0 and Windows Mobile 5/Pocket PC 2003.
Can someone help me?
Thanks in advance!
|
|
|
|
|
Windows CE does not support transparency of controls.
Depending upon the controls you need to make transparent you may be able to use a techinque such as the following one described by Alex Yakhnin in his blog - http://blog.opennetcf.org/ayakhnin/PermaLink,guid,34221459-8db8-41ef-91c7-5514eade8fca.aspx
You may also be interested in an approach outlined by Michael Koster in the following thread - http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1557544&SiteID=1
for painting the background of a panel.
How to make static controls transparent - http://www.pocketpcdn.com/articles/transparent_static.html
CUniButton - Universal button for Pocket PC - http://www.codeproject.com/ce/UniButtonDemo.asp
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
hi dave
Depending upon the controls you need to make transparent you may be able to use a techinque such as the following one described by Alex Yakhnin in his blog - http:
i follow above link . In this article, Alex apply the code snippent in Picturebox paint event. but picture box does not have paint event.
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|