|
I want to paint directly on the screen. No Form, no Control. A hidden application which paints directly on the screen. For example a text in the top bar where the start-button is.
This works fine and is not the problem.
The problem is, that i'm not able to delete the things I drawed on the screen. They will dissaper when Windows Mobile force the controls, forms, etc. to be repaint.
For example if I draw text on the top bar the text still appears until I open the start menu, because then the bar will be repaint.
After closing my hidden application I want to delete the text, which I drawed. So I have to force the whole desktop to repaint (because the text on top bar was only an example).
But I tried RedrawWindow (with IntPtr.Zero) and also SendMessage (with WM_PAINT to IntPtr.Zero). This force Windows Mobile to repaint everything, but it doesnt work
|
|
|
|
|
Use InvalidateRect() and then wait for the OS to send you a WM_PAINT in response so you can redraw.
|
|
|
|
|
Thanks, but it doesn't work, too
IntPtr deviceContext = GetDC(IntPtr.Zero);
Rectangle rectangle = Screen.PrimaryScreen.Bounds;
using (Bitmap capture = new Bitmap(rectangle.Width, rectangle.Height))
using (Graphics deviceGraphics = Graphics.FromHdc(deviceContext))
using (Graphics captureGraphics = Graphics.FromImage(capture))
{
BitBlt(captureGraphics.GetHdc(), 0, 0,
rectangle.Width, rectangle.Height, deviceGraphics.GetHdc(),
rectangle.Left, rectangle.Top, SRCCOPY);
deviceGraphics.DrawString("Hello", Font, new SolidBrush(Color.Black), 10, 10);
}
|
|
|
|
|
Hi sushilange,
try this
this.Refresh();
Pavan Pareta
|
|
|
|
|
I want to repaint/refresh Windows Mobile! And not my own application, because my own application isn't shown on the screen.
If I draw directly on the screen above EVERYTHING, I want to delete this after closing my app. So I have to inform Windows Mobile that it has to repaint EVERTHING displayed on the screen.
|
|
|
|
|
Hi all,
I am developing a smart device application in Visual Studio 2008 with .NET Compact Framework 3.5 using C#..
I need to convert voice to text and the vice-versa..
Do i require SAPI 5.1 for this development...
And also suggest me some websites where i will get help regarding this to proceed further..
Thanks in advance..
|
|
|
|
|
Sadly while the technology exists for Windows Mobile devices to do this (through some interfaces exposed by VoiceCmd.exe) due to licensing constraints Microsoft has been unable to release to the public information on how to use these interfaces. Most solutions I see rely on the device having a data connection to send voice data back to the server to be recognized.
|
|
|
|
|
Hi
I am developing Smart Device Application using .NCF 1.0 with Windows CE 5.0
I am getting an error after adding InputPanel in application which is "System.NotSupportedException". But its work fine when I try this on Pocket PC Application. I Don't understand why It will giving error with Smart Device Application.
Please help me on this.
Thanks in advance
Yogesh Rishipathak
|
|
|
|
|
In a small in-house project, I will need to set up a few Windows Mobile devices (version 6.0+) so each one has Internet access. There is no Wifi and the service plan doesn't include Internet so the only way to get these phones connected to the Internet is via ActiveSync/WMDC. Question is, can I connect multiple phones to one PC at the same time so each one will have Internet access?
Thanks!
|
|
|
|
|
hi evryone
how i can show any massage before the main form is load ?
(i work in WinCE)
thank's for any help
|
|
|
|
|
How are you loading the form ??
At Startup or from Application...
|
|
|
|
|
Hi All
I need User agent profile of Spice handsets but am not successful in that.
Can anyone tell me a specific website or path where I can find that .
I have searched the google in -out for that. no help
Ish Kumar Kapila
|
|
|
|
|
Do you have one of these devices in your possession? If so then why not request a page and see what agent string it sends?
|
|
|
|
|
MiKwhjddtWnWPmub7L59U2ZOTE5NzU1MD,MSISDN,MP and Chattisgarh, [18/Feb/2009:02:53:27:405] ,GET /xdime/view/pages/homeDeck.jsp HTTP/1.1,200,0,Browsing, Spice S820null
This is the string I am getting ... No-where am i seeing the User agent nor the User agent Profile string....
Spice S820null is the browser hit and not from the device....
No help getting from the device hits..
Ish Kumar Kapila
|
|
|
|
|
Any help regarding this message ... ??
Ish Kumar Kapila
|
|
|
|
|
hi
i am using htc 3400i i windows mobile 6 and i am very much interested to know how to develop mobile applications. i have vs 2003 and vs 2005 installed in my machine.
from where i have to start and i tried a sample application in vs 2003 and build solution but i dont know how to get emulator display and how to make my application to work in my mobile . kindly let me know
|
|
|
|
|
|
hi
Thanks for links and hope i will really get some idea and is this vs2003 is enough to develop application for windows 6 mobiles .
|
|
|
|
|
Please note that different versions of Visual Studio have limitations on the the versions of Windows Mobile they support. Read this post[^] for more details.
|
|
|
|
|
Hello,
Some months ago I could successfully build an image for the Windows CE 5.0 Emulator x86 following the instructions of this tutorial:
http://msdn.microsoft.com/en-us/library/ms918283.aspx
But recently I noted that I cannot debug applications from Visual Studio 2005 anymore (I didn't tested with VS2008). After the compilation, while deploying (the connection is made with conmanclient2), I receive the error message "The system didn't find the specified (or required) file" (this is actualy my translation, the pc is installed in german).
But it seems that the files are correctly copied, and I can start the application directly on the emulator.
I tried to debug the Emulator image with PlatformBuilder and at the same time to deploy the application from VS2005, but I get another error message:
"An operation was attempted on something that is not a socket". But I think it is because the Ethernet interface is already used by PlatformBuilder to debug.
As it had worked, I thought it is due to a Windows update. I've actualised PlatformBuilder with the latest updates and compiled the image for the emulator again (a clean was necessary...). Since I actualised PlatformBuilder, the tutorial mentioned above doesn't work anymore! The Ethernet interface is no more initialized.
Does someone have a similar problem or would have any idea of something else to try?
Thank you for your answers!!
|
|
|
|
|
Hi,
I want to implement GPRS and Wifi Connectivity in my mobile application. User can set
which connectivity he wants . so how i am able to done this by c# code.
I am using compact framework 2.0.
sandesh khare
sandesh
|
|
|
|
|
It sounds like you may have interest in the Connection Manager[^]. I wouldn't suggest hardcoding your application to only work over one of those two connection types. If the user connected using some other method (ex: over bluetooth or over some other connection type that you don't know about) then your application may not work for them.
|
|
|
|
|
Hi
I am developing Smart Device Application using .NCF1.0 with Windows CE 5.0
I am getting an error after adding InputPanel in application which is "System.NotSupportedException". But its work fine when I try this on Pocket PC Application. I Don't understand why It will giving error with Smart Device Application.
Please help me on this.
Thanks in advance
Yogesh Rishipathak
modified on Tuesday, February 10, 2009 1:36 AM
|
|
|
|
|
Here's the scenario:
You're designing an mobile application which is expected to have cca 10 new records daily. The nature of the problem/data is irrelevant.
What do you use for a db?
Until now, the discussion has included Access, SQLite, plain ol' XML ...
What would you recommend, and why? How does your recommendation influence performance/battery life?
To hell with circumstances; I create opportunities.
|
|
|
|
|
Currently I've being writing WINCE registry functions using RAPI.
It's easy to create or delete a key or value,
But when I want to rename a registry key, I found this really so confused me.
After I searched the net, the methods is almostly to coye recursive the key with all subkeys to a new name, then delete to orignal one. And this really not so security and could cost lots of time.
I wonder if anyone can help me with a more efficient way (Its better not to copy all subkeys)?
Thanks a lot !
|
|
|
|