|
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
|
|
|
|
|
Rupesh,
I do see the Paint event for the picture box in Pocket PC 2003, Win CE 5.0, Windows Mobile 5.0 Pocket PC, Windows Mobile 5.0 Smartphone.
What device are you targeting?
You can also refer the following link which explains in detail:
http://blogs.commentor.dk/post/Transparent-Controls-in-NETCF.aspx
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
hi all,
how can i add contact to pocket pc using vb.net?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hello Rupesh,
Here is the code to achieve the desired:
Imports Microsoft.WindowsMobile.PocketOutlook
Public Class Form1
Dim nc As Contact
Dim os As OutlookSession
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
nc = New Contact
os = New OutlookSession
os.Contacts.Items.Add(nc)
nc.FirstName = "Dave"
nc.LastName = "Traister"
nc.MobileTelephoneNumber = "99999999"
nc.Email1Address = "abc@test.com"
nc.Update()
End Sub
End Class
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Thanks Dave. Its work for me
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
source code on voice chatting in bluetooth device,
|
|
|
|
|
|
source code on Text chatting in bluetooth device,
|
|
|
|