Answer Questions
Thomaschr Messenger Add-in Template
Hey, I'm looking for the Messenger Add-in template, I'm talking about this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlive/html/messengeraddin_sdk.asp At the Creating an add-in part, it says open up a new document with the WLMAdd-in template, but I can't find it! Can anyone direct me to the download Thanks :) You don't really need a template for this since it's pretty simple. Just start a new class library project, add a reference to MessengerClient.dll (it is found in \Program Files\MSN Messenger), and make sure you class inherits the interface IMessengerAddIn. This interface's only method is Initialize(MessengerClient). For example: using Microsoft.Messenger; ...Show All
cgraus How to play an audio file (.wav) in WM 5.0 SP?
Hello. In project Visual Studio 2005, Visual Basic, Windows Mobile 5.0 Smartphone, Device Application, I have added an audio file, for example, drumpad-crash.wav. On this forum, from Mr. Ilya Tumanov (posts 3313) there is the program, which in the given project I have written down in such kind: Public Enum PlaySoundFlags ... End Enum Public Declare Function PlaySound Lib "CoreDll.dll"( _ ByVal szSound As String, ByVal hMod As IntPtr, _ ByVal flags As PlaySoundFlags) As Integer In method Form1_Load, I have written down the next line: PlaySound("..\..\drumpad-crash.wav, IntPtr.Zero, _ PlaySoundFlags.SND_LOOP) At Start of the project, constantly (LOOP) sounds the signal, wich has been no ...Show All
inzel SqlCeResultset and Bindingsource
I have created an entry form by creating a resultset data source (Categories) from a sql mobile database(Northwind), setting the resulset to Details (data source view) and dragging the datasource the form. Now I can easily accomplish navigation using the bindingsource but I don't now how to accomplish the following. If the user wants to add a record, I call the AddNew method of the bindingsource. Now when the user enters a Category ID that already exists I need to set the Bindingsource the corresponding record. I can't use the Find method of the bindingsource since the sqlceresult apparently doesn't support this. I tried using the seek method of the sqlceresultset but then I have no idea how to update the bindingsource to the correct recor ...Show All
Alan Finney Detecting an internet connection .NET CF 2.0
Is there any way to detect an internet connection in a device using the Compcat Framework Personnaly i detect the connection by calling a method of a web service and it works fine The easiest way I find to detect that a connection has been established is to use the SystemState class. It's available to both CF 1.0 & 2.0 on WM5 & WM6 devices SystemState _connectionsCount; void Form1_Load(...) { _connectionsCount = new SystemState(SystemProperties.ConnectionsCount); _connectionsCount.Changed += ConnectionsCount_Changed; } // Called when the number of connections changes void ConnectionsCount_Changed(object o, ChangeEventArgs e) { int connectionsCount ...Show All
Linda Call How to Loading a form fast??
Hi All, I'm developting a pocket PC application using CF1.0. On one to my forms I have about 30 buttons. When I load this form (using <form>.Show) there is a small delay displaying it and the form loads each button one at a time. How can I get this form to load quickly and display all button at once Thank Coss Thanks, I'll try it out and let you know. Coss One of the things we've done to speed up our form loading is always keeping slow forms preloaded in memory, active but hidden. Then when it's time for them to appear we just make them visible. This slowed down our initial startup so we made a splash screen that runs on a seperate thread while the ...Show All
whosoftk Creating Single Insatance Application in SmartDevice Application
Hai, I have created DeviceApplication present under Visual C#\SmartDevice\Windows Mobile 5.0 Pocket PC.The out of this is an exe.I want to make this exe to have single insatnce i.e if one instance is running,if u click on that exe for multiple times it must not new instances,instead it must pop-up some message.I have developed the exe in .NET 2.0 version.I tried to do fix the problem using mutex,but it did not work.Another approach is to derive a class from the WindowsFormsApplicationBase class in the Microsoft.VisualBasic.ApplicationServices namespace and set IsSingleInstance property.Can anyone explain how to do this for Smart Device Application.I found that GetProcessByName ...Show All
ant01 Autozooming
Hello to everyone. My problem is: when i am adding a new pushpin to the map, its (map) autozooming on that pushpin. I don't need it. How can I prevent it note: map autozooming when I using Find method and not when I adding new pushpin. I wrote a note:) it happens (autozooming) when I am using Find method and noit when I adding a pushpin... The same question Its not really a solution, but... working example: <div id="myMap" style="position: relative; display: none;"> function GetMap() { var ffv = 0; var ffn = "Firefox/" var ffp = navigator.userAgent.indexOf(ffn); if (ffp != -1) ffv = parseF ...Show All
dotnetkiwi Draw nice line Compact Framework
I want to draw some lines and basic shapes on screen in Compact Framework. I've used the Graphics class and a bitmap, and then added the bitmap to a picturebox. The problem is the lines look like *** when they are not going straight up or to the side, and by *** I mean that it looks like stairs. Anyone know how I can fix this problem Something like this: ScreenBitmap = new Bitmap (640,480); DrawImageGraphics = Graphics .FromImage(ScreenBitmap); Point[] PointsToDraw= new Point[5]; PointsToDraw[0]=new Point(0,0); PointsToDraw[1]=new Point(50,100); PointsToDraw[2]=new Point(300,200); PointsToDraw[3]=new Point(340,10); PointsToDraw[4]= PointsToDraw[0]; ...Show All
oystagoymp sqlceDataReader.Read Error please help
Hello there, I am looking to find out if I can get some help on an issues with the sqlceDataReader.Read mehtod in Visual Studio .NET 2005 Before I give you the snippet of code, I am going to give you all the background information as needed: Platform: Symbol MC50 using Windows Mobile 2003 Programming Platform: Visual Basic .NET 2005 Server Database Platform: SQL Server 2000 (Has SQL Server 2005 Mobile Edition Server Tools installed) Mobile Database: SQL Server 2005 Mobile Edition using Merge Replication Here is the background of the project. We have a barcode application that scans UPC barcodes of products and returns the basic product infromation. So all it does is reference data within a database. We orginally developed our c ...Show All
Kanhaiya Textbox SelectAll GotFocus
I'm trying to select the data in a textbox when the textbox gets focus, by doing a SelectAll() in the GotFocus event. When I step through in debug mode, the text is selected and highlighted, but then the text is deselected and the cursor appears where I tapped in the textbox. So, the GotFocus event occurs before whatever action occurs that I would trap with the Click or MouseDown events in the desktop environment, but those events are not supported in NETcf -- they're "available", in that they show up in the events dropdown in the IDE, but they don't seem to work -- when I put them in my code with a breakpoint, they don't seem to fire when I tap with stylus. So, any ideas on how to show the data in a textbox as selected whe ...Show All
qadirsyed push pins and background
Hi, with the help of this forum I have managed to get pins to display on the map > Change the background when clicked to indicate it has been selected - then when clicked again the backgound is removed to inicate is is not selected. Now I want to load the page with all the pins initially selected So i do :- AddClickablePin(1,-0.459610397815704,51.6549480199814,"./bcirclesm.png","Name 1","A3"); then I set the background using :- document.getElementById(1).style.backgroundColor="yellow"; When dipalyed they all have the right background. The thing is that when i now click on them the backgorund does not change even though the test for colour seems to work. Has anyone el ...Show All
Airan Creating CAB files for different Processors
Hi, I want to create CAB files for different processors. Can any one guide how can i proceed. Thanks in Advance, It depends. Windows Mobile is always ARM based; other CPUs are only available with generic Windows CE. Since Windows CE is highly customizable modular OS it might run or it might not run depending on OS features you're using. For example if you have GUI it would not run on headless CE devices (that is, no display). That means you have to test on each CE device you're targeting. Hi Ilya Tumanov, Thank you for ur immeadiate response. Even in WIndows CE or Windows Mobile Pocketpc 5.0 I could see only two processor types X86, X64, and with Pocket PC 2003 I can bui ...Show All
Paul Stovell secure device
how can i setup my pocket pc to accept only programs with the certificate that i have created OEM (as in device manufacturer in this case) should implement that in the OS image which is why I asked if you’re making at least OS for these devices. Best way to do it in my opinion - put your application in ROM and exclude CAB installer from the image. This way nobody would be able to install anything on your device and nobody would be able to use your application on "uncertified" devices because it comes with device only. Without changing ROM there's little you can do for the first item and pretty much nothing for the second one. You can check device type at runtime though. ...Show All
Michael Rodrigues Install an Exe and preserving it...
Hello, i have an extrange question and i think this is not the right place... but i want to give a try... i need to install an exe, and that this exe and all configuration still alive after a hard reset... is there a way of acomplish that thanks!!! for it to still be in memory after a hard reset would not really be possible I believe. The only people that can customize where/how/what programs are to be kept in memory after a hard reset would be the handset manufacturer/mobile operator people who supply the handset. I'm 90% sure about this however there may/may not be a way of still keeping YOUR program in memory after a hard reset. Hard reset cleans out everything and resets back to factory setting ...Show All
giftgirls Problem with TAPI lineDrop on smartphones (device Qtek 8500)
I use TAPI lineDrop routine call to drop the call in DATA mode: - rc = lineDrop(hcall, NULL, 0); lineDrop returns a positive value and I call lineDeallocateCall to deallocate handle: - rc = lineDeallocateCall(hcall); lineDrop returns LINEERR_INVALCALLSTATE and it seems that call is not in the idle state. And after that my TAPI message handler doesn't receive any disconnect messages. TAPI message handler receive disconnect message only after other side droped the line. This problem appeares only on smartphone devices (Qtek 8300 and 8500). On PDA (HP 6515, Qtek s100, MIO A-70x) these routines calls work without any problems. What is specific in TAPI lineDrop and lineDeallocateCall calls on smartphone devices ...Show All
