|
Hi
Thanks for your response, infact i am operating my device using RF remote, in this case i am unable to close the msgbox using remote. Hence,could you please help me regarding windows style notification for low battery indication.
Regards
Yogesh R.
|
|
|
|
|
I'm using sockets to communicate between a server (PC .NET 2.0 ) and a client (PDA .NETCF)
Everything works perfect also when I manually close the client program and starts it up again.
But when the PDA powers down automatic, I have big problems to establish the connection again.
I have tried many things using different timer and heart beat concepts. I'm able to detect the disconnection but trying to close/destroy and then listen again sometime messes up things.
So if anybody could redirect me to a sample that shows how client server communication is done in the right, robust and WLAN immune way, I would be very happy
Thanks in advance!
|
|
|
|
|
|
Hi.
Anyone knows if vector graphics is available in compact framework for use in smart applications?
Any thoughts are appreciated.
Thanks.
|
|
|
|
|
You won't find vector graphics in .NET CF. Maybe there are 3rd party libraries out there (such as Amanith VG) that you can use, but I haven't tried them out so I don't know what to recommend. I'm looking forward to Silverlight Mobile[^] which will provide vector graphics for Windows Mobile devices (plus other devices as Microsoft adds support).
What are you planning to do with vector graphics?
|
|
|
|
|
Hi.
Thanks for reply. I am experimenting on a interactive application using vector graphics.
Silverlight is only for web, not applications, or what?
br
|
|
|
|
|
Silverlight apps are delivered via the web, you are correct. I only mentioned it because it does support a type of vector graphics and will be available for some mobile devices in the future. This is great for me personally because I have invested a lot of time learning how to take advantage of the desktop Silverlight and related tools. The desktop Silverlight version 3, which recently released a public Beta, gives the apps the ability to install on the desktop and launch offline. I have no idea if or when this feature will translate to mobile.
Sorry I don't have better suggestions for vector graphics right now. I'm interested in learning more as your experiments and research progress.
|
|
|
|
|
I would like to determine which Item and SubItem has been hit within a ListView control.
C# Windows applications has a MouseDown event for ListView which can be used to retrieve the e.X and e.Y coordinates. The same event handler is not available for SmartDevice applications. Also, there is a GetItemRect() method for Windows applications which is not available for Smart Device.
The event handler along with GetItemRect can be used to determine which Item and SubItem has been hit within a ListView. How can I implement the same functionality on a SmartDevice?
Thanks.
|
|
|
|
|
|
Hi Gurge60,
Thanks for your reply. I am sure that this is the right solution but I do not know how to implement the subclass for listview with VS2005. The opennetcf domain seems to be expired so I can not follow any links. I have read some additional documentation but I am new to this and am stuck on how to proceed. Any additional information is appreciated.
Well, I have been at this for several hours now and feel like I am close but have one step to go.
1) Created a class:
namespace lvsc
{
public class asdf : ListView
{
public asdf()
{
ListViewSubclass asdf = new ListViewSubclass(new ListView());
}
}
public class ListViewSubclass : NativeWindow
{
. . .
}
}
2) Add a reference to the class in a new device application
3) Add a user control to the toolbox from this class
Now, I can add the new user control (asdf) to the device application. But I do not know how to trap the mousedown event.
I added an event handler to the device application as shown below. The asdf control has all the events and properties of a ListView plus mouse events . But the MouseEventHandler is never detected. In other words, when I run the application and click on the control asdf1_MouseDown is not called. What am I missing?
public Form1()
{
InitializeComponent();
asdf1.MouseDown += new MouseEventHandler(asdf1_MouseDown);
}
void asdf1_MouseDown(object sender, MouseEventArgs e)
{
}
Thanks,
d8
modified on Wednesday, March 25, 2009 2:58 PM
|
|
|
|
|
If you follow links that take you to opennetcf.net, change it to .com and they should show up. That way you can download the example code and play around with it (you'll also need their Smart Device Framework to compile).
The equivalent for the desktop framework NativeWindow class is the MessageWindow class (in Microsoft.WindowsCE.Forms.dll):
http://msdn.microsoft.com/en-us/library/microsoft.windowsce.forms.messagewindow.aspx[^]
Here is an old MSDN article (2004) that has some discussion on the MessageWindow class:
Add Keyboard Support to Compact Framework Apps by Trapping Windows Messages[^]
I'm not sure why mouse events were showing up in VS. Although you may be able to compile your code, the mouse events aren't going to work on the compact framework.
modified on Tuesday, April 28, 2009 2:04 PM
|
|
|
|
|
Hi Gurge60,
Thanks a bunch. That did the trick. I have the mousedown event trapped now.
d8
|
|
|
|
|
Is there a trick to hiding a CommandBar?
I am creating a CommandBar.
I am later on creating an additional CommandBar.
I want to hide the first CommandBar created, so I am using
CommandBar_Show(m_hWndCB, FALSE);
However it still shows until I tap on a CommandBar button on the screen then magically the new CommandBar appears.
Any ideas how to make this work?
|
|
|
|
|
SnWon,
Have you resolved your issue yet? If not, check out Ciro Sisman Pereira's Lightweight Image Viewer[^] article in which he takes a PPC app full screen (hides the default command bar).
|
|
|
|
|
Thank you for the reply.
Nope, we are still struggling with the commandbar.
He is using a dialog which I am not using.
|
|
|
|
|
Could you post some more complete code?
|
|
|
|
|
Helloooooo
I have a bunch of LabelFields on a Panel. The Panel's parent is a Form.
The Panel has the AutoScroll property set to true, and when the app. is run,
the vertical scrollbar is displayed. However, I am not able to scroll the
Panel using the up/down keys of the DPAD. Anyone know how I can make this
work?
Please suggest.
Thanks
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
Override your Form's OnKeyDown to handle the the down and up keys, then adjust the Panel's AutoScrollPosition as desired.
|
|
|
|
|
How to create custom icons for win mobile 5.0 in visual studio 2008 for smart device application.
|
|
|
|
|
Right-click on your project, select "Add New Item" and then choose "Icon" as the item type. After editing your icon right-click on the project and select "Properties." There will be a drop-down that you can use to select the icon you just added.
|
|
|
|
|
Hi,
I am developing an Win32 smart device console application for Windows mobile based smart phone. In my application I am sending a virtual key codes to the smart phone using SendInput() API to test different applications by capturing the screen shots for each screen after execution of every event.
In testing the contacts application I am sending VK_F3(Talk key) to make a call . Here I am getting three screen shots for one execution of this VK_F3 as "dialing ", "calling","callending" so how can I capture all the three screen shots for one event.
Can we get any notification that call has been ended from the underlying layers of the system ??
If so, can anybody suggest me a way or an API to use for this.
If u give me sample code then also it will be useful.
Thanks in advance for any help.
Regards,
Hema.
|
|
|
|
|
Please help...?
Thanks in advance.
|
|
|
|
|
|
Hi Friends,
Am Developing the smart Device application using vs2008(.net Compact Framework 3.5),now my query is how to develop the rollover images in my application?, can you please anyone help me....
Thanks in Advance...
|
|
|
|
|
Please let me know how to view command line on Win mobile 5.0 emulator in Visual Studio 2008?
I want to upgrade SQL server compact 2.0 so that it can be used with SQL server compact 3.5. Please let me know how to upgrade.
|
|
|
|