system info on smartphones Hello, I am looking to write a small monitoring application that can provide system information such as: battery, cpu load, free memory, free disk, network bandwidth usage (bytes in and out) etc. I was wondering if anyone could point me in the right direction, in terms of APIs. Thank you. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Sending value to a webpage textbox via WebBrowser1 control I cant seem to get the following code to work in VB 2005 (im new at VB.net) for windows mobile 5 Pocket PC CF 2.0:
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted WebBrowser1.Document.GetElementById("nameInput").InnerText = "xxxxxx" End Sub
There is a textbox on the webpage named "nameInput" and i was just testing to see if it would put "xxxxxx" inside it after i hit the button to submit it (code not shown for that but is needed as well).
I keep getting this error for the WebBrowser1.Document line:
Error 1 'Document' is not a member of 'System.Windows.Forms.WebBrowser'
How can i correct this for what i need to do Any help would be great as i am stuck with this one right now!
Thanks! :)
David Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Sidebar Gadget Development tools What tools are you using to develope your gadgets A notepad Microsoft Visual Studio how about dreamweaver Please tell. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Settings wont close?? Are there any general reasons what the settings window wouldnt close after you click OK Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
which version of DirectX is supported by the .Net compact framework 2.0(i.e windows CE 5.0). Hi I need an urgent help on which version of DirectX is supported by the .Net compact framework 2.0(i.e windows CE 5.0). As i need to support the transparency,alpha blending, shapes(rectangle,ellipse,arcs,triangles) for my Win CE application . I did not get any thing in Graphics class in .Net compact framework and trying my hand on directX but don't kow much and even could not find much on net. so please if u have any info regarding it, do post it here
thanks
mahesh Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Dynamically Populating ComboBox or Select Option Hi all, Is it possible to populate a ComboBox or Select element via script after the page has loaded I want to have a drop-down with a dynamic list of items in my settingsUI, but can't seem to add items or options to boxes. Also, I am trying to do this with vbscript. It would be best if I could repopulate the drop-down on drop-open (onbeforeactivate ), so that it was always up to date, but if there is a way to at least add a dynamic list once on or before load that would work too. I have tried various approaches to the Select element, mostly similar to the technique here: http://www.microsoft.com/technet/scriptcenter/resources/qanda/aug05/hey0815.mspx Like with the ComboBox below, scripts running in my Windows Sidebar gadget just quit when I attempt to selectName.add newOptionElement I have attempted to work with the ComboBox also, as described here: http://www.microsoft.com/technet/scriptcenter/topics/activex/combobox.mspx I have used ComboBoxes before in other situations, so I think I have the syntax and everything right, but the scripts just quit at ComboBox1.addItem "Sample" or any variation thereof. I can probably find another method of making these options available to users of my gadget, but a ComboBox would be the best solution. Can Windows Sidebar gadgets have dynamically populated select-lists, and if so, how can I do it Thanks! Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
save data from xml file hi all,
do anyone knows how to save data from xml file to databse (mobile version such as mssql servel compact edition)
is there any website or tutorial tht i can refer to been searchin, but cldnt find any....(T_T)
please help me...im running out of time.....
thanks in advance Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
How to enable/disable body onclick to avoid body drag when dragging div object I am trying to create gadget where I want to do div object swapping by mouse drag n drop. I managed to get this work in IE. When I run it as sidebar gadget, I found an issue with the gadget body event where I don't want it to get dragged when I try to drag my div object. One work around is to disable or set document.body.onclick = "javascript.event.returnValue = false". The problem with this approach is that I don't have ability to undock my gadget by dragging the body anymore. I have to enable it.
My question is how to enable back the body onclick once you disable it. Anyone has a better solution for this type of problem I tried to look from the vista stock gadget code but could not make sense out of it how it does this. With vista stock gadget basically there is a region of body that is draggable and some other portion is not draggable. My guess is that it defines some div region where the draggable send the onclick event back to the body but the other is not. How do we do this
The following is the code:
Code Snippet
<script>
...
function BodyDrag(enabled) { document.body.onclick = "Javascript.event.returnValue = " + enabled; } </script> </head> <body onLoad="onLoad()"> <DIV id="bar1" class="bar" unselectable="on" style="background-image:url(divbar1.png)" onMouseOver="BodyDrag('false');" onMouseOut="BodyDrag('true');"></DIV> <DIV id="bar2" class="bar" unselectable="on" style="background-image:url(divbar2.png)" onMouseOver="BodyDrag(false);" onMouseOut="BodyDrag(true);"></DIV> <DIV id="bar3" class="bar" unselectable="on" style="background-image:url(divbar3.png)" onMouseOver="BodyDrag(false);" onMouseOut="BodyDrag(true);"></DIV> <DIV ID="floater" style="visibility:hidden;position:absolute; background-image:url(floater.png)"></DIV> <DIV ID="txt"></DIV> </body> </html> Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Astoria.Client futures? On a quick look it seems as if the client library doesn't require WCF, i.e. .NET 3.0.+, with just plain 2.0 System.Net.HttpWebResponse/Resquest(!) used. Is that the longer term plan (it's ok to guess :-)
Plus, as well as a JSON serializer/deseriler, an object statemanager and a nice wrapper over the GET/POST calls, what would I lose if we don't use the client side library
Is the longer term strategy to keep the Astoria client/service as some that should be always be used together or is it ok to 'go naked' on the client and just use the service side wrangling
David Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Disable start-button to get into kiosk Hello, I know that I am not the first asking the question about running a PDA in kiosk mode. What I did by now is to disable the taskbar by running the following line of code [DllImport("coredll.dll")] public static extern int ShowWindow(int hwnd, int nTaskShow); The goals was to disable the start-button by hiding the taskbar. This didn't work out (otherwise I would not write this post...) Then I found something about the SHFullScreen command and the way to use the SHFS_HIDESTARTICON parameter. This command was compiling and I could test it on the PDA however the start-button still was there and if you hit it quit often in a short timespan the whole PDA software crashed. So I might have done something wrong. So I wonder - has the SHFullScreen command the ability to disable the start-button and if so can you give me a few lines of code, please. I checked out the whole forum and I couldn't find someting that worked out well for me - also nothing on the OpenNETCF Forum. So if you pls drop a few lines of code for me I'd be very grateful. Thank you very much Greetings Taggert Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Could not receive SMS Hi expert, I am trying to use this application to receive SMS. However, when I send a SMS to this application using the callEvent application, the SMS straight away go into inbox without displaying in the 'receive SMS' application. Can all the expert out there help me on this Thanks in advance! Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
how can i use the webbrowser control? Hi,
Can any one suggest a good link which
gives complete information on using a webbrowser control. I want to
know
1. How to set the border for the control.
2. How to set the background image for the control
3. How to restrict the context menu from popping up on the control
I tried to set the "background " attribute of the <body> tag and
assigned the string as the value for the DocumentText property of the
control. But it does'nt work. It doesn't display the image on the
webrowser. But when "bgcolor" is assigned the same way, it works! It
displays the color. What could be wrong
- Hari Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
webBrowser documentText issue Hello, in my application I have my beatiful WebBrowser control, in the middle of my application i wrote a Menu page using myBeatifulWB.DocumentText = "HTML CODE"; then once i click on a special link (eg. customProtocol://) I need to refresh my page to a new one, so i handle this
Code Snippet
private void myBeautifulWB_Navigating(object sender, WebBrowserNavigatingEventArgs e) { if (e.Url.ToString().IndexOf("customProtocol:") != -1) { e.Cancel = true; BOL.CustomBrowser.handle(e.Url.ToString(), this); } } this actually work the first time (where i set the menu) but here I found the issue, seems that DocumentText can be set only once, googling(yahooing and livesearching) around, i found a pair of solution on Windows form, not useful on PPC, 1) setting AllowNavigation there is no Webbrowser.AllowNavigation Property 2) WebBrowser.Document.OpenNew(true); there is no Document property Please, note that i can't use a temporary file and Navigate() to it. is there a workaround to this Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
How can i send a message from one form to another form(smartphone) I have a main form with a listview control docked in it, and there is another form in my application include an left button which named "Done". I want to know: when i click the "Done" button, i use "this.close()" code to close the form, but i also want to add some items to the listview control which in the main form and then display them. Should i use the SendMessage() method or anything else Can anybody tell me how i can do it, please thanks. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
How do I package the .NetCF with my SmartPhone Application? I have created a VS2005 smartphone application. It requires the CF2.0. However, I can't find anything on packaging that CF2 with the application installer package.
I don't want the users to have to download a 37MB msi from Microsoft's site as part of the installation. Is there a way to get the CAB files and include it with my application installation
Thanks. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
fetching recipient in Pocket PC 2002 Hello,
which API i use for fetching email recipient in pocket PC 2002 plz reply me. if u have code do paste it.
Thanks
-Salman Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Mobile 5 C# Project streaming WMV files Hi,
I'm fairly new to Windows programming and even newer to Windows CE.
Problem:
I need to stream video from a C# application. I need to have fullscreen and Portrait comtrol as well as skinning and stop, start, pause.
Windows media Player was the obvious choice and I created a DLL which is called from the C# application. However I seem to have no control over the events in the DLL nor change the skin. I would be happy at the moment if I could just be able to go from full screen to portrait and visa versa.... but I cannon act on screen touch or any event it seems.
Also I don't understand why I can add a Windows Media Player control into my C# form on CE
Is there any easy way to do this
Please help ... I've spent way too much time on this .
Mike Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Advice about using GPS (port?) I'm about to write an application for Windows Mobile (WM) but I'm not sure of what I'm supposed to do. I'm aware that previous versions of WM only allowed one application to grab hold of the COM ports and therefore made it difficult to share the ports. I'm also belive that WM5 now allows multiple applications to share the GPS data. Plus, I assume for backwards compatibility, you can get WM5 to provide the GPS data to a specific COM port.
What I'm not clear about is is should I still just be opening COM ports to get the GPS data or is there a specific method where I should be asking for for the "GPS data" or something else Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Byte Array to Image.. Hi All , Can aybody tell me how i can convert Byte array to images .I do not have any idea regarding this . and how i can perform Scaling on images ....please i waiting for your reply.. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Changing WinCE device language programmatically(Urgent) Hello, I am developing an application which needs to change the User Interface language of my WinCE device to the selected one from my application. I need to change the device language , manually it is done from regional settings,but i have to do it programmatically. Can any one help me out in this ( i need it urgently) Thanks. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
SMART FAILURE PREDICTED ON HARD DISK 0: TOSHIBA Hello to all,
I have 2 laptops both are TOSHIBA Satellite M55-S325.
Some times back i switched the HDD and everything went fine, windows started normally. I did it for one day
only just to test something then switched them back to their original places...
Yesterday i started laptop 1, a "SMART FAILURE PREDICTED ON HARD DISK 0: TOSHIBA
MK1032GAXA WARNING: IMMEDIATELY BACKUP YOUR DATA AND REPLACE YOUR HARD DISK
DRIVE. A FAILURE MAY BE IMMINENT" message was showing whenever i start the laptop..
So what i did, i took the HDD from laptop 2 and replaced it in laptop 1, BUT the message is still coming up
with this HDD...
so i thought both HDD are about to go with the wind.. i went to the computer market and bought a new HDD
(TOSHIBA) and when i replaced it in laptop1, i got the same message.. so i thought there is something
wrong with the new HDD, i went and got it changed, went back with another new HDD, got it installed in the
laptop and the bad news is i got the same message...
I tried 4 HDDs, 2 of them were brand new.. 4 HDD can not be all failing... there must be something else..
Please help me in this issue..
Any thought will be appreciated.
Thank you,
Yazen Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Developing app's for WinCE 4.1 under VS.NET 2005 I have developing application for PocketPC under VS.NET 2005 und it works just fine (build&debug). Now I would like to migrate same project for Casio's IT-3000 which runs under WinCE 4.1!
I have manually install .net framework 2 (NNETCF2v2.wce4.ARMV4.cab) onto device and try to deploy project files but it won't work and result with error (device require newer version of operating system).
If anyone have any suggestion or expirience, let me know!
Thanks in advance!
Angello Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Windows ce 5.0 on vs2005.... can i access a .cdb file (pocket access)??? Can someone help me... i need to make a program that will run on win ce 5.0 that ll read/write data on a data base pocket access... does someone knows how i do it can i use a ado or something Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Refreshing Gadget Content problem EDIT: I have the gadget refreshing now, but how do I make it refresh only certain elements I'd be great to have just the SSID refresh when needed, or the Signal Strength. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
CCommandbar Menu: add popup menu to the menu Hi
I tried to add a popup menu to the existing menu and I didn't success.
I added simple menu item(not a popup menu item) and it success
Can someone write a code how to do it
Thanks Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
How to Get Proxy Address on WinCE(C#) hi there,
i found the public method WebProxy.GetProxy(Uri) can return the proxied URI for a request. YES, it exactly performed well on windows xp sp2 when i changed for different proxies in IE.
i noticed this method is also supported by .net compact framework. then i tried it on Windows CE 6.0(Device Emulator) , but it didnt work whatever proxies i set.
there's one concern is the project i created in VS2005 is for WINCE5.0. that means i created a WINCE 5.0 application, and then i tried to run on Windows Embeded CE 6.0 . may this be the root cause of the application failure although i dont think so.
additional info: IE on windows XP SP2 is IE7 , while in my WINCE6.0 OS, CE IE6.0 is the case.
alternative, is there any other method can be used to get proxy URI for different destination(request) URL
thanks in advance!
sample code:
public static void CheckProxyForRequest(Uri resource)
{
WebProxy proxy = (WebProxy)WebProxy.GetDefaultProxy();
Uri proxyUri = proxy.GetProxy(resource);
if(proxyUri == resource)
{
Console.WriteLine("No proxy for {0}", resource);
}
else
{
Console.WriteLine("Proxy for {0} is {1}", resource, proxyUri.ToString());
}
}
-rick Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Launching a clsid-based control panel Looking at the control panel documents used by settings.exe (for example, rootcdma.cpl.xml), we can see that many control panels use ".cpl.xml" documents but others supply only a clsid value. The file-based control panels can be launched from the command line using a command such as this:
\windows\settings.exe about.cpl.xml
Is there a corresponding command line method that can be used to launch the clsid-based control panels And if not, perhaps there is a COM-based method that can be used
Code Snippet
<stinger-controlpanel-doc> <cpl-title res="30056"/> <cpl-link href="telephonygsm.cpl.xml" res="30038"/> <cpl-link href="soundsgsm.cpl.xml" res="30030"/> <cpl-link clsid="{4B7CEEDD-7179-4a8b-AB92-340545B0AB07}" res="16330"/>
...
</stinger-controlpanel-doc> Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Sending Messages from a CE Device to PC and back Hello
Im having problems using MSMQ to send messages from a CE Device to a PC I have created the queues on the 2 platforms but when I try to send a message to or from I get a queue not found error. using server explorer I have verified that the PC queue exists and using msmqadm I have verified the the CE Device queue exists.
output from admadm for the CE Device Status command:
0. DIRECT=OS:RLC_XSCALE\Private$\Client;JOURNAL PRIVATE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes 1. DIRECT=OS:RLC_XSCALE\Private$\Client PRIVATE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes 2. DIRECT=OS:RLC_XSCALE\PRIVATE$\order_queue$ MACHINE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes 3. MACHINE=0dabb9e6-b032-d96c-cf5b-29da644da953;JOURNAL MACHINE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes 4. MACHINE=0dabb9e6-b032-d96c-cf5b-29da644da953;DEADLETTER MACHINE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes
Output from admadm for the CE Device Verify command: Computer name is RLC_XSCALE
MSMQ daemon installed.
NETREG daemon installed.
MSMQ configured.
Default Quota: 256
Port: 1801
Ping Port: 3527
QM GUID: 0dabb9e6-b032-d96c-cf5b-29da644da953
Network tracking: enabled
Start At Boot: yes
Base Dir: \Temp\MSMQ
Base Dir exists. Contents:
$localhost$ - Client.jr
$localhost$ - Client.iq
MQLOGFILE.TXT
sequence.dat
strings.dat
$localhost$ - order_queue$.iq
$localhost$ - 0dabb9e6-b032-d96c-cf5b-29da644da953.jq
$localhost$ - 0dabb9e6-b032-d96c-cf5b-29da644da953.iq
NETREG configured.
Cycle duration: 300
Use Redirector's netBIOS: yes
Track network: yes Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Problem with Device Emulator Hi,
I encountered a problem with Device Emulator in VS2005. When I open Device Emulator Manager, I found nothing in the treeview except a single "other" node. And when I debug an application, the Device Emulator could not be connected. But It works well days before.
Very appreciate you to help me. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Lock Device I have a Windows Mobile 5 PDA (Dell Axim X50v). I want to make a program (in Vb2005 using WM SDK) to create a program that locks the device using the method built into windows mobile. That is my first objective. My second objective is to make the app run from the today screen or system tray. I have searched these forums but the only "lock device" related topics are about people making their locking programs, when i want to use the one built into WM Thanks in Advance, James Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
Can I develope an MFC application for windows mobile 2005 based smartphone ? Hi all, Can I write an MFC application for windows mobile smartphone 2005 (i have done for windows mobile 2005 pocketpc before, that works fine). But for smartphone I am facing some problem to get the controls for softkeys in an MFC application. So I am trying with 'Win32 smart device project'. Is this a right approach for developing applications for windows mobile based smartphones. All the sample codes for smartphones I have checked are also written in 'Win32 projects'. Does MFC support smartphones properly Plz suggest. U can send me any relevants links also. regards, Debdeep. Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
update messages on screen.. Hello all,
In my application i would like to inform the user about the progress of it.. I have inserted a label at the bottom of my main screen and although i am invoking everything from my main GUI thread i also use event handlers and anonymous delegates..
e.g. on my GUI thread i have
UpdateStatus("Connected to : " + mNetworkAdapters .AssociatedAccessPoint.ToString());
which is the following :
public void UpdateStatus( string strStatus)
{
EventHandler myDelegate = delegate
{
lblStatusValue.Text = strStatus;
};
try
{
BeginInvoke(myDelegate);
}
catch ( ObjectDisposedException e)
{
//if the application closes rapidly
}
}
but i cannot see that on the screen at all! even if i place a Thread.sleep(1000) after the UpdateStatus call i still cannot see it...
any suggestions Tag: .NET Compact Framework compact/ mobile databases Smart Device Development
khrisn
I am working on a visual studio windows forms project to place on a mobile handheld unit running windows ce.net 2003. I currently have the project linked to tables in an Access database for debuging on my pc. where do i find info/ options on datastores for a remote handheld unit ie. do i need sql server mobile edition or can my oledb datasource be 'compacted' and used on the handheld unit, etc.....rather new to visual studio and programming. Thanks ahead.
Re: .NET Compact Framework compact/ mobile databases
Grassgrass
you connot deploy a windows app. to a ce device.cos ur project is a windows app.if it is a windows ce app. or pocket pc app.or smartphone app. then u can us access ,sql2005mobile,or xml