windows-mobile

Windows Mobile 6 - Disable AutoComplete on WinForms TextBoxes

怎甘沉沦 提交于 2019-12-18 03:48:16
问题 I am making a windows mobile 6 app, where I need to disable autocomplete on the textboxes that I have on my form. Information is being scanned into them, therefore I need to disable the autocomplete/autosuggest feature. Can I do this programmatically or do I need to manipulate registry keys? (This is not a commercial application.) 回答1: Use this class, it will pinvoke the SHSetInputContext method and disable\enable the hover over events for the controls. Simply pass the controls Handle. public

Windows Mobile Development - Where to begin? [closed]

只谈情不闲聊 提交于 2019-12-17 17:27:21
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Okay, I will shortly be starting down the path of windows mobile development. I know nothing about the subject really and I am looking

How to lock file

假装没事ソ 提交于 2019-12-17 16:32:57
问题 please tell me how to lock file in c# Thanks 回答1: Simply open it exclusively: using (FileStream fs = File.Open("MyFile.txt", FileMode.Open, FileAccess.Read, FileShare.None)) { // use fs } Ref. Update : In response to comment from poster: According to the online MSDN doco, File.Open is supported in .Net Compact Framework 1.0 and 2.0. 回答2: FileShare.None would throw a "System.IO.IOException" error if another thread is trying to access the file. You could use some function using try/catch to

How can I call to a C++ function from C#

亡梦爱人 提交于 2019-12-17 15:34:36
问题 I have C++ code. That code contains Windows mobile GPS enable/disable functionality. I want to call that method from C# code, that means when the user clicks on a button, C# code should call into C++ code. This is the C++ code for enabling the GPS functionality: #include "cppdll.h" void Adder::add() { // TODO: Add your control notification handler code here HANDLE hDrv = CreateFile(TEXT("FNC1:"), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (0 ==

rapi.dll problem in windows 7 - C#

一世执手 提交于 2019-12-14 03:57:28
问题 i work with OpenNETCF.Desktop.Communication.dll (RAPI) to connect between PC and Windows mobile in my C# program. in Windows xp it work's excellent, but in windows 7 i get this error: Unable to load DLL 'rapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) in windows xp i install ActiveSync but in windows 7 i know that he is build in what can be the problem ? 回答1: Maybe this is a stupid answer, but did you install WMDC (Windows Mobile Device Center) on your

Print and Export to USB (File Format: XML/CSV/Excel) Functionality in Smart device[Symbo Motoroal MC75(Windows Mobile 6.1)] application?

北城余情 提交于 2019-12-14 00:03:45
问题 I have a form which contains combo boxes, textboxes and a data grid with many rows. I want to take print out (with generated barcode [application generating barcode as image]) and also want to export the data in that page as CSV/XML/Excel format to USB or Phone's Physical Directory. Please guide me how to it. This is my first Windows Mobile app. I am not so wise in Windows Mobile. Please help me find a better solution as a code or link or just direct me. 回答1: To create the Print Out, you will

Retrieve base URL path to be used in download image, CSS and javascript files from web page

我的未来我决定 提交于 2019-12-13 19:51:30
问题 We are downloading web page linked Images, style sheet(.css) and javascript files using web browser control (IWebbrowser2 and IHTMLDocument interface) ATL win32 application. Now for some of the web page image src= "/images/a1.jpg" are relative, so we need to append a base host address to the location and download. Do we have any method to get the base host address URL path to be append into image path. or any good parser to extract that? Thanks, Ramanand Bhat. 回答1: Does IWebBrowser2:

How can i fix this “Path not found” error?

时光毁灭记忆、已成空白 提交于 2019-12-13 18:17:42
问题 How can i solve this mobile application development problem? While connecting to the DB dataSource = \\..datafile.sdf I get this error "Path not found" I am using serviceCE dll for data access. 回答1: Windows CE has no concept of a relative path, so even if you "fixed" your invalid relative pathing it wouldn't work. You must use absolute paths. 回答2: The path you you have typed it is a relative path. Windows CE/Mobile does not support relative paths. It follows that since there is no concept of

Set Device Time on .NET CF

泄露秘密 提交于 2019-12-13 17:41:39
问题 Looking for a code sample that takes a .NET CF DateTime object, and sets the device's date and time to that date (and/or time zone). The purpose of this is to get the current "real" time off of a server via web service and set the device's time correctly. Anyone done this before? 回答1: You can use Opennetcf's DateTimeHelper class. Alternatively you can p/invoke SetLocalTime. 回答2: Regarding kgiannakakis' answer: Definitely the way to go, but if you don't want to require the entire OpenNETCF

Detect and prevent/delay windows mobile power off

一笑奈何 提交于 2019-12-13 16:43:29
问题 I have a window mobile application which needs to detect power off and perform some operation before the device shuts down. I have been able to detect that the device is shutting down using pinvoke to the RequestPowerNotifications win32 api. However I can not figure out how to block the power off for long enough to run my code. 回答1: As an application, you can't prevent it unless the OEM has somehow provided a custom API for doing so (and I've never seen it on any WInMo device, only on a few