Answer Questions
flreStarter CreateWindowEx problem
Hi all, I want to create the window at runtime that popup at the down of the existing window, i tried to use createwindow function through pinvoke, but i m getting the handle 0.Plz any1 can help me out i need help.Code is like this [DllImport("coredll.dll")] public static extern IntPtr CreateWindowEx( uint dwExStyle, string lpClassName, string lpWindowName, ulong dwStyle, int x, int y, int width, int height, IntPtr hWndParent, int hMenu, IntPtr hInstance, string lpParam); // function that displays the window [DllImport("coredll.dll")] private static extern bool ShowWindow(IntPtr hwnd, int nCmdShow); [DllImport("coredll.dll", CharSet = CharSet.Auto)] private static extern bool EnableWin ...Show All
hoowahfun unable to use using Microsoft.WindowsCE.Forms; namespace
Hi expert: I am hoping to develop a handphone application, however when i compile my source code, error occrs saying that namespace 'WindowsCE' does not exsits in Microsoft namespace, why i have already installed MS ActiceSync 4.0, MS .net compact framework 2.0 and MS device emulator 1.0-ENU into my computer. but the same thing still happen. All the expert out there please help me.....thanks in advance! Have you added a reference to the corresponding assembly in your project Thanks a lot! Understood....i think this is my problem. In Visual Studio, click your projects name in Solution Explorer -window, and right click. Select Add Reference -menu item. Then scroll until you see "microso ...Show All
csLearner How to handle a message before the client displays it
Greetings, I'm programming in C# with Visual 2005. I'm trying to implement an addin for WLM that will make some treatment on an incoming text message. So, I'd want to wait the end of the treatment to display the incoming text message into the "chat window" of WLM. When I handle the event IncomingTextMessage of the MessengerClient class, the text message is first displayed, and then, the event is handled. But I'd want do do the opposite: first handle the message, then make my stuffs, and finally display it. Is it possible And how Thanks a lot. R.P. r0d wrote: Maybe it is possible to do that with the Activity SDK I don't see anything talking about this kind of development. Why don ...Show All
mmdawson1 Get network connection notification.
If there such a thing as the possibility of getting a notification to your application that the PocketPC now has a network connection This is for a Today Plugin application and I don't want to sit there with the code trying to connect every so often as that seems like a waist of resources/processor. There has to be a better way. Thanks Awesome thanks Alex ! :) NotifyAddrChange can be used to detect changes in IP addresses assigned to a device - this would normally occur when device gets connected. On WM5 you can use Service and Notification Broker (snapi.h) to request notifications on change of such values as ConnectionsCount or ConnectionsNetworkCount ...Show All
Marc DESJARDINS .NET CF 2.0 application occupies lot of memory
Hello, I have created a .NET Cf 2.0 application which working perfectly fine however as the application is continuosly used over a few hours the program memory goes on reducing till finally at some point it gives a system error and crashes. Also after the crash the memory is not release and the application is also not running after teh crash. Only after a soft reset th memory comes back to normal size. What could I be doing wrong Devices tested on HX4700 (WM 5), HP 2210 (WM 2003), Dell Axim X50 (WM 2003 SE). Hozefa You have a memory leak which you'd need to find and fix. Most common reason is not disposing of IDisposable objects allocating native resources, e.g. Bitmaps. Hi ...Show All
roy182 BOTS on MSN
There have been a number of questions about BOTS in the forum in various theads so I thought I would provide this post with a broader update on the topic. MSN has recently started licensing BOTS on the network. The huge benefit of a licensed BOT is that it will have contact limitations removed (the reverse list), so that millions of people could connect to the same ID. Our goal is to enable a broad network of these IM applications integrated with other MSN services (Activity API, Search, etc.). To make sure our customers have the best experience with these applications and provide tools to the broadest number of companies seeking to build BOTS, we have started licensing ISV’s that build platforms with access to our protoco ...Show All
ykgreene Xml validation
I greetings to all, threre is an effective way to validate XML in CF I tried to validate it using XmlReaderSettings but it is not effective. So someone knows how to validate an XML Greetings. If you mean validation against schema, validating XML reader is available on NETCF V2 and it works the same way as on desktop. There's no way to validate XML on NETCF V1 unless you do it all yourself. That's properties of files in VS project which are telling VS what to do with the file and when to do it. It's not device specific. Hi thanks for your help. I only copied the file in the same directory of the exe. I tried to launch this example before local to my computer (by double clicking ...Show All
x868 How to use RegisterRunningDevice
Hi all !!!!!!!!!!!! I'm on an important project of network device developping. I made a UPNP AV Control Point that works very well. Now I'm building a MediaServer device and I'm facing a problem about register the device. I did my own implementation. Since it doesn't work, I tried the example provided by the microsotf SDK and I get the same error after calling IUPnPRegistrar::RegisterRunningDevice. the return result of the function is 8004a025. I searched the meaning of this value and I didn't obtain anything. If somebody can know the meaning of this or the causes of non-running of this function, I'm waiting your contibutions because without running the function I canont progress. Thank you very much. ...Show All
cheston Get Current Screen Name?
Can Any one please tell how to get the Current Active Screen Name in C#. Hope you can help Thanks Can Any one please tell how to get the Current Active Screen Name in C# Hope you can help Thanks Can Any one please tell how to get the Current Active Screen Name in C#. Hope you can help Thanks I am still not sure I understand why you need that but anyway... There're a few simple API's that you can call: GetForegroundWindow should return you a window handle of the currently active window: [DllImport("coredll.dll")] static extern IntPtr GetForegroundWindow(); and GetWindowText th ...Show All
RossWalkerContractor Setting the width of the vertical scrollbar of a DataGrid possible?
Is there a way to set the width of the vertical scrollbar of a DataGrid in C# in NETCF (system.windows.forms.datagrid) Could you be a little more specific I don't know how to go about doing that. I managed to change the width of the VSB by overriding the DataGrid Class. and setting (( VScrollBar )( this .VertScrollBar)).Width = 100; I haven't managed to alter the colors yet though. Edit: Unfortunately the VertScrollBar didn't exist in the compact framework. Edit 2: This solved the problem: VScrollBar v = (VScrollBar) typeof (DataGrid).GetField( "m_sbVert" , BindingFlags .NonPublic| BindingFlags .GetField| BindingFlags .Instance).GetValue( this ); v.Wid ...Show All
pessi Robot Invaders - The Bonus Round!
Robot Invaders “The Bonus Round!” Build a Robot by next Wednesday and you could be one of 5 people to win $200.00 Who Will Win The 1st 5 people that submit their valid robot entries, which means: Submitted between today 8/29 and 9/6 11:00am PST This is for new Robots, those that have already been submitted will not be considered Your Robot must be integrated with the Messenger Activity window and 1 other great Windows Live service! Download the Activity SDK here Pick another great Windows Live service, please see http://dev.live.com or http://ideas.live.com for a list but some ideas would be ( Search , Alerts , Spaces , Virtual Earth , or Expo ) Your robot must be submitted correctly, whic ...Show All
Dark Dominion Are background processes supported by Smartphone 2003?
Hello, I don't know if develop for Smartphone 2003 2nd edition or for WM 5 Smartphone (because of availability of the devices). Now, a doubt has arisen: Can I use applications running in the background In the msdn page, in the " What's New in the .NET Compact Framework 2.0" area, it shows: Background Threads The .NET Compact Framework 2.0 adds support for background threads. Background threads are threads that do not prevent a process from terminating whereas foreground threads will keep a process active until all foreground threads are terminated. Setting a thread's IsBackground property to true makes that thread a background thread. Then, does it mean that background processes are not supported for Smartphone 2003 ...Show All
Pintoo Khaira prob with syncronizing socket send and recieve. Plzzzzzzzzzz help!
Hi, My app uses a socket connection to send and receive from a remote server. I've very serious prob with the socket, i.e. synchronizing send and receive on that. The app actually creates seperate threads for sending and recieving. The receive thread, which we call as cmsThread, keeps polling the socket, by calling receive on the socket periodically. From the time i started this app, i had probs with synchronizing the send and recieve. Previously i used lock(this) for both send and recieve, in the socket class that i created. This made my app look hanging when more msgs were sent. I realized that this was because of blocking the thread in send and receive. So i removed the lock statements altogether. But now i've a ne ...Show All
Aing_d SD-Card - No Update in ds if only 1 line edited
Hi there, I'm writing a Wm5.0 application using Vs2005 and storing in a SQLce database. I'm currently having problems updating to the Pocket PC SD Card if there is only 1 record in the dataset to be updated. The code i have works fine when the application / Database is deployed to the Pocket PC itself but when i deploy them to run from the sd card the following command only seems to update the data if there is more than 1 record to edit. the following is the relevent part of the procedure. PocketConn.Open() sqlAdapter.UpdateCommand = New SqlCeCommandBuilder(sqlAdapter).GetUpdateCommand() sqlAdapter.Update(ds, "ViewPayments") PocketConn.Close() The above code generates the following update query UPDATE [CollsSh ...Show All
vaishalli FF Polyline ReArraging?
I am having very strange behaviour in FF which seems to take the LeftTop edge of the last Poly I add and reArrange all of my other Polys' starting at that LeftTop edge, strangley keeping their proper shape...in certain cases even cropping the regions. Live Example: http://mssa.coba.usf.edu/mapControl/ Use IE to see proper result first, then watch it go nuts in FF. I'd paste the source, but the pages are all ASPX and ASCX - you all can see a good "glued" version of the code being delivered to your browser. Is there something I need to do differently, maybe do it on separete layers or what I notice the link in the question now shows you are converting over to Google maps. Its a real pity a work around couldn' ...Show All
