How to Get Proxy Address on WinCE(C#) Dear rick,
WebProxy.GetDefaultProxy() method has been obsolete since .NET Compact Framework. And it will not gain the value we expected. Instead, it's recommended to use GlobalProxySelection Class with its Select method.
Similar topics can be found when you search the key word in our forum, following may help you:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=688350&SiteID=1
Regards,
Zero Dai - MSFT Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Launching a clsid-based control panel Thanks for responding. I can't tell you much about the clsid option, as I've never found any documentation on this. If there is any documentation available on this I would love to see it. But if you look at the abbreviated file in my initial post, you can see what the root xml file looks like. I've been able to gather that this is the file that drives the menu on the normal settings.exe (when run without parameters). Several of those lines use the familiar .cpl.xml files, but some of them just provide a clsid instead. For example, the Power settings, which is the last one in that example file. There is no .cpl.xml file in that case so I don't know how to launch it (actually there is a power.cpl.xml file on this device, the Vox, but that particular file is not valid and returns an error if you try to load it directly).
<cpl-link clsid="{4B7CEEDD-7179-4a8b-AB92-340545B0AB07}" res="16330"/>
Some recent devices are using this method for certain customized control panels, but I don't know if there is any way to launch those panels directly without going through the settings menu (and for that matter, I don't automatically know which panel to launch since I'm not aware of anything that ties that clsid to the name of the control panel I seek).
- Todd Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Sending Messages from a CE Device to PC and back Thanks for your reply... I had already looked at all of these previous sugestions before posting hence the new post. I can ping both the desktop and the device, is there a way to verify that everything is configured correctly ...I'm sure I must be over looking something
Thanks again Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Problem with Device Emulator Thanks.
I tried that way. It only displays "connecting..." dialog but didn't response further. I have also tried closing and reopening VS2005, and also restarted my computer. But the problem still exists.
How can I do
Need I restall it Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Can I develope an MFC application for windows mobile 2005 based smartphone ? Thanx for the reply. Actually I am trying in MFC and facing some problem while getting the softkey controls. I succeeded in getting the controls in Win32 using switch (LOWORD(wParam)) but in MFC I could not the stuff till now. Ne suggestion regarding this. regards, Debdeep. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
update messages on screen.. thx it helped
not with every message but with a lot of them!
what i am thinking is if the DoEvents() "pushes" delegates to be done or label.text="sth" executions .... logic says the former one but practice shows that the later ones are also shown... Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
rerieving the status of phone hi raja, how to include the above assembly reference . is there any method to include the assembly reference . i added ur above code . but its showing compilation errors . could u help me in this . thanks sadiq Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Unable to set focus on Form after using ShowDialog() Hi All,
I am creating an application that uses multiple forms.
The structure is like as under:
Main Form----> Child Form-1, Child Form-2, Child Form-n ----> Detail Form-1 , Detail Form-2 , Detail Form-n
Main form is the starting form.
It uses ListForm.Show() for opening Child Forms.
While Child forms use DetailForm.ShowDialog() to open Detail Forms.
When I switch from Detail form to Main Form (after setting DetailForm.DialogResult = DialogResult.Cancel) the focus is not set to the Main Form.
Attached is the snippet of the source code:
class MainForm : Form
{
private static MainForm _instance;
public static MainForm Instance
{
get
{
if (_instance == null )
_instance = new MainForm ();
return _instance;
}
}
private void showChildForm()
{
ChildForm.Instance.Show();
}
}
class ChildForm: Form
{
private static ChildForm _instance;
private bool value;
public static ChildForm Instance
{
get
{
if (_instance == null )
_instance = new ChildForm ();
return _instance;
}
}
private void showDetailsForm()
{
DetailsForm form = new DetailsForm();
DialogResult result = form.ShowDialog();
if(result == DialogResult.OK)
value = true;
else
value = true;
}
}
class DetailForm: Form
{
private void mnuSwitch_Click( object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
MainForm.Instance.Show();
}
} Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Make own keyboard in WM5, CSharp hmm thanks Can you please provide me any sample or information where I should search for some SIP samples/tutorials I searched the internet with google for many hours but it seems there is no documentation about creating SIP keyboards I don't believe it but still I haven't found anything about creating SIP keyboards Can you please provide me... anything Thanks very much in advance Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
getting System.FormatException in the Sub Main of VB.Net app Thanks for your reply I turned off Option Strict and everthing that was throwing that error works fine now. I understand the point you made of processing the class as a string. Is that being done in the Designer Generated Code How could I find the culprit Ryan Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Pocket PC serial number I've check this on my iPAQ but I don't seem to have this file. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Hiding grid columns in a datagrid. Hello,
Not sure I understood what you. Please correct me if I am wrong. Do not add a column style.
So I commentted out all the columns that I didn't want to display. However, the code below displayed all the columns. As the datatable contains all the columns anyway I think this will always display all columns.
Any other suggestions would be must helpful.
Thanks for your help,
Code Block
DataGridTableStyle tblStyle = new DataGridTableStyle ();
tblStyle.MappingName = "OrderDetail" ;
grdBeverages.TableStyles.Add(tblStyle);
grdBeverages.DataSource = DS.OrderDetail.DefaultView;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["OrderDetailID"].Width = 0;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["BeverageID"].Width = 0;
grdBeverages.TableStyles[ "OrderDetail" ].GridColumnStyles[ "Beverage" ].Width = 50;
grdBeverages.TableStyles[ "OrderDetail" ].GridColumnStyles[ "BeverageQty" ].Width = 40;
grdBeverages.TableStyles[ "OrderDetail" ].GridColumnStyles[ "BeverageQty" ].HeaderText = "Qty" ;
grdBeverages.TableStyles[ "OrderDetail" ].GridColumnStyles[ "BeverageCost" ].Width = 40;
grdBeverages.TableStyles[ "OrderDetail" ].GridColumnStyles[ "BeverageCost" ].HeaderText = "Cost" ;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["StarterID"].Width = 0;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["Starter"].Width = 0;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["StarterQty"].Width = 0;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["StarterCost"].Width = 0;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["MaincourseID"].Width = 0;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["Maincourse"].Width = 0;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["MaincourseQty"].Width = 0;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["MaincourseCost"].Width = 0;
grdBeverages.TableStyles[ "OrderDetail" ].GridColumnStyles[ "TotalCost" ].Width = 40;
grdBeverages.TableStyles[ "OrderDetail" ].GridColumnStyles[ "totalCost" ].HeaderText = "Cost" ;
//grdBeverages.TableStyles["OrderDetail"].GridColumnStyles["OrderID"].Width = 0; Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Flyout Memory release Hello,
From what I've seen so far once the flyout page is shown the memory allocated for it is never reclaimed. I was wondering if anyone knows a way I can reclaim/unload the memory cosumed by the flyout page on the onHide event. Thanks. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
onChange event not working Check you're not getting an error in the code, the function running once and never again is a classic symptom on an exception occuring. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Activex and windows services Hi Tom
This forum deals only with Smart device development topics.
Please post your question in the appropriate desktop windows newsgroup ( http://msdn.microsoft.com/newsgroups/default.aspx ) Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Does anybody know where I can get the format for encoding PVRTC4 textures? PVRTC4 textures are used by the Intel 2700G chip. It is a proprietary texture format that is used when programming this chip and is used by a whole lot of D3DM source code examples supplied by Imagination Technologies. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
WScript.Shell in x64 What error does RegWrite return I've seen some mention of RegWrite returning an error on 64bit, but still writing the registry entry. I really must install a 64bit Vista to test this out. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Set ActiveSync Serial Connection Speed Thanks
I was able to find it at and set the following and it worked:
[HKEY_CURRENT_USER\ControlPanel\Comm]
"AutoCnct"=dword:00000001
"Cnct"="`115200 Default"
"LastSerial"="`57600 Default" Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
How to read SMS from Inbox in C# How can I access the sms messages from my inbox using C# I try to create an aplication where I can quote from those messages. David Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
prblem connection in socket (in vs2003 work but in vs2005 give exception) hi Ilys Tumanov
Thanks for reply
My Application Code is
try
{
// Establish the remote endpoint for the socket.
IPEndPoint remoteEP = new IPEndPoint ( IPAddress .Parse( "192.168.0.48" ) , 11000);
// Create a TCP/IP socket.
Socket soSender = new Socket ( AddressFamily .InterNetwork,
SocketType .Stream, ProtocolType .Tcp);
// Connect the socket to the remote endpoint. Catch any errors.
try
{
soSender.Connect(remoteEP);
MessageBox .Show( "Socket Connect " );
}
catch ( ArgumentNullException ane)
{
MessageBox .Show( "ArgumentNullExcption " + ane.Message);
}
catch ( SocketException se)
{
MessageBox .Show( "SocketException " + se.Message);
}
catch ( Exception ex)
{
MessageBox .Show( "SocketException " + ex.Message);
}
}
catch ( Exception exp)
{
MessageBox .Show(exp.Message);
}
this code connect with sever application in vs2003 without any exception but in vs2005 it give the Excepton .The Details of Exception are
Type SocketException
Message A socket operation was attempted to an unreachable host
stack trace
at System.Net.Sockets.Socket.ConnectNoCheck()
at System.Net.Sockets.Socket.Connect()
at TestApplication.Form1.button1_Click()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.Button.OnClick()
at System.Windows.Forms.ButtonBase.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at TestApplication.Program.Main()
Erro Code 10065
i set Poket PC SE Emulator 2003 form Tool + Option + Device
in Properties i set DMA Transport in Transport box.
Thanks and regards
Nisar Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Does Visual Studio Standard Edition support debugging a mobile device in the cradle I am researching the purchase of Visual Studio 2005 and the specs say that both Standard edition and Professional edition support mobile device development. However, the Standard edition specs also say that it only supports "Local" debugging. Does that mean I cannot debug a mobile device in a cradle connected to the PC via USB cable, and instead have to be able to run the program in the emulator on the PC to debug Or is that scenario not considered "remote" debugging Can someone who has Visual Studio 2005 Standard edition and has tried to debug a mobile device in a USB cradle please let me know one way or the other If you haven't actually tried it and would just be guessing, please do not reply. Thank you.
Thanks,
Brad Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Windows Mobile CreateImageSurface error Yes, you understood me correctly. That HResult is D3DMERR_DRIVERUNSUPPORTED but I thought I tested for that in the caps. What caps do I need to check so that I know beforehand that the device does not support CreateImageSurface.
As a side note I found a workaround. I create a IDierect3DMobileTexture and then just use GetSurfaceLevel(0, &ptSurface) to create a surface. Kind of funny that the device will support creating a texture (which is a group of surfaces) but not a single surface. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Created CAB file using VS 2005 fails to install These warnings have nothing to do with the issue. Possible reasons:
- CAB is compressed and/or signed and you're installing it on a device with no compressed/signed CAB support (e.g. Windows CE, PPC before WM 5.0).
- CAB is not compressed and/or not signed and you're installing it on device which needs compressed only CABs (SP 2003) and/or needs signed CAB (SP, WM 5.0 and above).
- You have setup DLL which does not match the CPU in the device. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Back Key Blues (can't trap back key) Thanks Christopher for you help.
I think I've got the part where the we P/Invoke SendMessage to unmanaged code, now I'm trying to figure out if I need to add / create an event handler, a message filter or something so the form can be notified of the back button press. I'm not getting the event in the usual KeyPress or KeyDown handlers.
For better or worse, the application I'm working on is a series of forms, a parent with many childeren. The program would function best if it could clean up the forms when the back key is pressed and would be better if the application traversed up the menu hierarchy rather walk the bread crumb trail.
Also, probably a question for another thread, but is there a way so the application will have only one entry in the task manager, there are as many entries in the task manager as the application has forms open.
A solution to all these problems is to have a single form, and have many controls that are shuffled around by making the current one visible. From what I'm reading about P/Invoke and message filtering, if the UI is to be snappy, I should go with a single form.
< chris Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Changing OS from Pocket PC 2003 to CE 6.0? The reason I am asking is that my boss asked me to find out. CE 6.0 has some features that would help us develop better software for our products. They are looking to take the devices out in the field right now and upgrade to the new OS and install our new software on them instead of ordering new devices with the operating system on it. I understand that CE is a customizable operating system, which is fine because we could taylor it to suit our needs. I just needed to know if there was ANY possible way to put a new OS on such devices. Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Links added programmatically don't work? Are you sure someVariable is defined properly I've noticed this happen in the flyout before. It's because of how the href property works. It's easier for me to show you than explain it.
Code Snippet theDiv.innerHTML = "<A href="http://forums.microsoft.com/MSDN/Hello">Here's a link!</A>"
This link will cause the gadget/flyout to shrivel up in size. It's because the string "Hello" isn't a valid link and I think it's a bug in sidebar that tries to open the link in the current window (which will be your gadget/flyout).
Code Snippet theDiv.innerHTML = "<A href="http://gadgets.intelligroup.eu/">Here's a link!$lt;/A>"
Works fine, will open a new window and launch the page. If you're still having problems, try launching the link using javascript instead (although you really shouldn't have to):
Code Snippet theDiv.innerHTML = '<a href="javascript:System.Shell.execute(\''+someVariable+'\');">Here's a link!</a>";
Andy Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development
Set Column size in DataGridView Win Mobile 5.0 Hi
I have just created a DataGrid and i have successfully binded it to a DataSet.
However when the DataGrid loads up the colums do not span across the whole DataGrid.
How do I set the columns in the DataGrid to automatically size and span the whole DataGrid
Regards
K Tag: Sidebar Gadget Development ZUNE gadget Smart Device Development