|
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,
|
|
|
|
|
|
Is it not possible to, CreateWindowEx, create a window which is originally minimized in Windows CE 5.0? Look here: http://msdn2.microsoft.com/en-us/library/ms908193.aspx
The following dwStyle flags are not supported:
WS_CHILDWINDOW WS_ICONIC
WS_MAXIMIZE WS_MAXIMIZEBOX
WS_MINIMIZE WS_MINIMIZEBOX
WS_OVERLAPPEDWINDOW WS_POPUPWINDOW
WS_TILEDWINDOW WS_THICKFRAME
WS_TILED
The best I've accomplished so far is a window which has the width and height == 0 and the position x:400, y:300 (the middle of the screen). But there's a shrinking square which exists for a fraction of a second. Is there no way to get rid of it?
|
|
|
|
|
Hi every body ,
i have a treeview control in windows mobile 5.0 pocket pc , i want when the user select a node to clear all other nodes , i try to do it but it does not work , so can i find some help ??
Thanks ,
Mona
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
Hello Mona,
I tried using the following code and it worked for me:
Me.TreeView1.Nodes.Clear()
Are you doing anything different? If yes, can you post the code snippet you are using?
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
thanks dave for your reply , i already use this code but the problem was :
i have parent nodes which have a child nodes and the child nodes have also childes and all data returned from a database .
so to make the performance better , i have when the user select any node to clear all other expanded nodes which was selected before
so i wrote this code
For i As Integer = 0 To TreeView1.Nodes.Count - 1
If (i <> e.Node.Index) Then
TreeView1.Nodes(i).Nodes.Clear()
End If
Next
and it works but not totally correct ,
when i select a parent node and then select another it works and clear all the childes nodes under the selected node ,
but when i select a child node which has sub childes it clear the parent of this node and it's normal because the index here has changed ??? that's the problem !
LA ELAH ELA ALLAH MOHAMED RASOL ALLAH
|
|
|
|
|
You can try creating a function to clear the nodes and call it recursively for child nodes as shown below:
Private Function ClearChildren(objTV As TreeView, strParentNode As String) as Boolean
On Error Goto Hell
Dim i As Long
'Use a reference to the Parent node
With objTV.Nodes(strParentNode)
'Loop through the children
For i = 1 To .Children
'Determine if the child has a sub node
If .Child.Children > 0 Then
'Recurse this method
ClearChildren objTV, .Child
End If
'Clear the node
objTV.Nodes.Remove .Child.Index
Next
End With
'Success
ClearChildren = True
Exit Function
Hell:
End Function
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Hi,
I have a problem to make a CAB file for my project exe (create in Visual studio 2005, C#) into PocketPc 2003. When i execute a cab on a PDa with pocketpc 2003 I retrive an error: "It's not a valid CAB file for windows CE".
The CAB work perfectly on PDA with windows mobile 5.0.
Why? I can create a CAB file compatible with pocketpc2003?
Thanks a lot.
Alex
|
|
|
|