KeyDown ignored by several important controls
I have a recursive function that snakes throughout a form and all of it's
sub-controls to set a KeyDown event (to listen for the 'ESC' key). However,
several important controls, like the combobox and even buttons do not seem
to properly listen for keydown events. Is this by design? If I want to
enable a given hardware key throughout a form, is there a better way to
achieve this?
--
_________________________________
Jared Miniman, MS-MVP Mobile Devices
Mobile Computer Consultant
ActiveSync problems?
http://www.microsoft.com/mobile/pocketpc/support/help/activesync.asp
Connection Mngr Q's?
http://www.microsoft.com/mobile/pocketpc/tutorials/connectionmanager Tag: Work with SQLServer 2000 CE Tag: 9590
Disable Power-On Notifications?
I have a full-screen application that locks the taskbar (kind of like a
kiosk app); however, upon a power off/on toggle, sometimes the taskbar
appears, and being that it's locked, it covers the top of the screen until
it is forced into the foreground. Is there any way to prevent the taskbar
from receiving notifications on power up or otherwise keep the taskbar
constantly hidden?
We even capture the IntPtr to the taskbar window handle, then re-enable the
taskbar, then kill focus on the taskbar, then set focus on the current
full-screen form, then re-disable the taskbar, but that doesn't work. Any
ideas?
--
_________________________________
Jared Miniman, MS-MVP Mobile Devices
Mobile Computer Consultant
ActiveSync problems?
http://www.microsoft.com/mobile/pocketpc/support/help/activesync.asp
Connection Mngr Q's?
http://www.microsoft.com/mobile/pocketpc/tutorials/connectionmanager Tag: Work with SQLServer 2000 CE Tag: 9589
Webrequest.GetResponse error - no end of entity mark
Here is some Visual Basic code I'm using to submit a HTTP GET to an URL
that should be returning some plain text data (MIME type is "text/Plain").
When I run the code on the PocketPC emulator, I'm getting the error "The
response did not contain an end of entity mark" in the
Webrequest.Getresponse method.
Any idea what the error means? I can find zero documentation. I only get
the error in the Pocket PC version of my application (the same code works
fine in Windows!), and only when submitting to this particular URL (the URL
is for a built-in webserver for a piece of network-enabled audio hardware).
Dim sResponse, rspText
Dim req As HttpWebRequest
Dim rsp As WebResponse
Dim rspStream As Stream
Dim creds As New NetworkCredential(userID, password)
Dim sURL As New Uri("http://192.168.0.103/apicmd.asp?cmd=next")
req = WebRequest.Create(sURL)
req.Credentials = creds
req.Method = "GET"
rsp = req.GetResponse()
Thanks!! Tag: Work with SQLServer 2000 CE Tag: 9584
Web Reference "URL Behavior"
I have a .NET application for PocketPC that uses a Web Reference. I need to
be able to dynamically change the URL of this web reference and have read
about the "URL Behavior" property of the Web Reference and changing it to
Dynamic, but I don't have this property for some reason. Is it because it
is a PocketPC application? How else can I change the URL dynamically? Tag: Work with SQLServer 2000 CE Tag: 9583
Where has .Security.Cryptography gone?
I noticed that System.Security.Cryptography is completely stripped off in
the CF. Is there any chance
of doing some basic encryption / decreption in my CF application? Tag: Work with SQLServer 2000 CE Tag: 9582
Put contents of combobox into a string
OK, I'm trying to read the contents of a combobox into a string called item
but I've got no idea how to loop through each item in it
Dim i As Integer
Dim item As String
For i = 0 To ComboBox1.Items.Count - 1
item = item & "|" & ComboBox1. 'What goes in here
Next i
Can any help me out please?
Thanks Tag: Work with SQLServer 2000 CE Tag: 9573
Webrequest.GetResponse error - no end of entity mark
Anybody know what could cause the error "The response did not contain an
end of entity mark" in the Webrequest.Getresponse method?
Here's some background: I'm writing a Pocket PC app in Visual Basic
that communicates with the Turtle Beach Audiotron, a hardware digital
music server that can be controlled over the network via a built-in web
server. Turtle Beach published a programming API for the Audiotron;
commands are sent as HTTP GET requests. E.g., you tell the audiotron to
advance to the next track by sending the URL
"http://192.168.0.103/apicmd.asp?cmd=next", where 192.168.0.103 is the
network address of the audiotron. The Audiotron API also states that
replies from the GET are returned as plain text data (MIME type is
"text/Plain"). In the case of a successful "next track" command as
described above, the response would be "Error 0 - Success/n".
Ok, so here's my code that sends a "skip to the next track" command to
the audiotron. It works fine in my PC-based version of the app, but
the GetResponse method gives the aforementioned "The response did not
contain an end of entity mark" error when executed in the .NET compact
framework and deployed to the PocketPC emulator.
Dim sResponse, rspText
Dim req As HttpWebRequest
Dim rsp As WebResponse
Dim rspStream As Stream
Dim creds As New NetworkCredential(userID, password)
Dim sURL As New Uri("http://192.168.0.103/apicmd.asp?cmd=next")
req = WebRequest.Create(sURL)
req.Credentials = creds
req.Method = "GET"
rsp = req.GetResponse()
rspStream = rsp.GetResponseStream
Dim readStream As New StreamReader(rspStream, Encoding.UTF8)
rspText = readStream.ReadToEnd()
rsp.Close()
I can't find any documentation for the error (usenet searches, MSDN,
websearches, etc.). I have confirmed that it is not an emulator
communication problem, as the code works for external URLs (such as
www.google.com) and for another webserver inside my network (my
router's built-in webserver). Also, If I put in an invalid URL, I get
a completely different error. So the error is received only when
communicating with the Audiotron's built-in webserver, and even then
only in the .NET CF. I would love to hear any ideas!
Thanks :) Tag: Work with SQLServer 2000 CE Tag: 9572
Is Control.Invoke supported?
Hi,
The Visual Studio .NET 2003 documentation says that .NET Compact Framework -
Windows CE .NET supports Control.Invoke (i.e. accessing windows forms
controls from a thread they were not created on).
I'm trying to use Control.Invoke on a Pocket PC 2002 device and I get an
"Argument Exception" managed error.
Has anyone been successful with Control.Invoke and if so do you have some
sample code? My code works on the desktop but not on the Pocket PC.
thanks...Ron Lemire Tag: Work with SQLServer 2000 CE Tag: 9561
Help in API
We're trying to do a few things here without success and I would like to ask
for your help, please.
1) Disable and re-enable auto suspend
have found that we could P/Invoke
SystemParametersInfo(SPI_SETBATTERYIDLETIMEOUT, 0, NULL, TRUE) but haven't
found any working example and have no idea on how to start
2) Get free disk space
we could P/Invoke GetDiskFreeSpaceEx but no working example either
3) Get free memory
P/Invoke GlobalMemoryStatus, no working example either
4) Get remaining battery
- P/Invoke GetSystemPowerStatusEx - have found an example but couldn't get
it to work
- could use OpenNetCF.BatteryStatus but I still don't want to go that way...
I'd rather P/Invoke it myself...
Tks very much,
Arnaldo. Tag: Work with SQLServer 2000 CE Tag: 9557
Where is Emulator state saved?
I'm trying to load Emulator from command line, after that
I deployed an application to Emulator, I'd like to save
the emulator state, so next time when I load Emulator
from command line, the application I deployed is
still there.
VS.NET 2003
ActiveSync 3.7
Windows 2K+SP4 Tag: Work with SQLServer 2000 CE Tag: 9556
How to use resource files for multiple languages?
Hi!
I need to implement a functionality in my application for multiple
languages.
I imagine that I should use resource files, but I could not find any good
sample.
The user could choose in run time which language he desires.
Can anybody help me?
Thank you,
Anderson T. Kubota Tag: Work with SQLServer 2000 CE Tag: 9555
TreeView CheckBox question
Can we have a check box to show up on only certain treeNodes? My
knowledge tells me that this can't be done with what VS provides. What
can we do to get around this?
What I want to do is provide a check box for all the child tree nodes
except the root node.
Any suggestions?
Thanks in advance. Tag: Work with SQLServer 2000 CE Tag: 9552
Download the MSN Messenger Update for Windows Mobile-based Pocket PCs by Oct. 15
Dear Windows Mobile-based Pocket PC Customer:
As you may know, Microsoft recently announced an update to the .NET
Messenger Service, requiring that only updated clients access the
Service to help ensure that our customers have the latest security
and privacy protections. As part of this update, older .NET
Messenger Service clients, including all Windows Mobile-based
devices, are required to upgrade their MSN Messenger
Service clients.
We are writing to inform you that the MSN Messenger update for
Windows Mobile-based Pocket PCs is now available. Please
download and install this update prior to October 15, 2003 in
order to prevent any service interruptions.
After October 15, customers who have not installed the updated
client will no longer be able to access the .NET Messenger Service
from their Windows Mobile-based device. Customers will still be able
to download the update after October 15, but will not have access to
the Service until the download has been completed.
Please visit our web site for additional information and updates.
The Windows Mobile Team
www.microsoft.com/windowsmobile
Protect Your PC: 3 steps to help ensure your PC is protected
Microsoft wants to help ensure your PC is protected from the latest
Blaster virus, as well as from future threats. Please go to
www.microsoft.com/protect and follow these steps today.
1. Use an Internet Firewall
2. Update Your Computer
3. Use Up-to-Date Antivirus Software
To get more information and resources about how to help protect your
PC, go to www.microsoft.com/protect. Tag: Work with SQLServer 2000 CE Tag: 9542
Problem creating Windows CE .Net project - Automation Server can't create object
I want to create a Compact Framework app for the Viewsonic V210.
Vis Studio .NET 2003, I pick New Project, C#, Smart Device Application.
The Smart Device App Wizard comes up and I pick Windows CE and project type
of Window App.
Error box comes up with Title bar: "Microsoft Development Environment" and
text "Automation Server can't create object".
Is this a know problem and how do I fix it?
Thanks
Jim Tag: Work with SQLServer 2000 CE Tag: 9535
print from a pocket pc
Can anybody tell me which is the best solution to print something with a
program written in vb.net for a pocket pc?
I'm a bit confused on the whole process, so I'll try to explain what I need.
I'm going to write a Smart Device Application (using Visual Studio 2003 and
VB.NET code) for a pocket pc: one of the features to provide with this
application is the print of a final report (doesn't matter if html, word or
pdf) made of only text, connecting to a small mobile printer.
I've a pocket Pc supporting bluetooth (Compaq Ipaq 3900), but not yet a
mobile printer: the idea is to buy an hp printer (something else to
suggest?), connect the two via bluetooth, and add to application the code to
print he page, using hp mobile printing sdk.
I hope you'll suggest me examples, technical articles or useful links: any
help would be apreciated.
Francesca Tag: Work with SQLServer 2000 CE Tag: 9531
delegates
what is the advantage in using delegates over calling the method directly. I
guess we get run time binding to method calls, but what do I gain with this
flexibility. Tag: Work with SQLServer 2000 CE Tag: 9528
WebService and CF Performance - Again the issue
Hi, I've replied to a thread about this issue but it was rather old so i'm
posting a new one...
I'm having very poor performance acessing webservices!
I'm using both SQL CE Replication and WebServices to send data to my Pocket
PC from the cradle or GPRS.
Replication works fine, but webservices take several seconds to execute, up
to 20 or 30, which is unacceptable.Thing is I want to keep webservices...
I'd be very interested in earing from microsoft, or anyone else, about this
one.
bye,
André Tag: Work with SQLServer 2000 CE Tag: 9521
Transparent image
Hello
I'd like to create transparent image for my application.
If I point to bmp or ico file in project properties,
shortcut created to this exe file has non-transparent icon
in start menu on PDA and this does not look good.
thanks for any tip
Jacek Tag: Work with SQLServer 2000 CE Tag: 9514
Serial Communication
I am trying to implement serial communication on a CE
platform using .Net compact framework. Are there any
resources on this subject? Any help would be appreciated.
Thanks Tag: Work with SQLServer 2000 CE Tag: 9513
REe Creating a setup File for CF Application
Maybe not technicly this group, but this was where the original posting
was...
I'm using EzSetup, but each time I run it using the commandline:
ezsetup -l english -i MyApp_PPC.ini -o MyAppSetup.exe
in a command window, all I get back is the syntax text, not even an
error. All cabs and the ini file are in the same directory as ezsetup.
I was wondering if all options have to be supplied (in my case, no eula
or readme).
Contents of my ini file is as follows:
[CEAppManager]
Version = 1.0
Component = MyApp
[MyApp]
Description = "My new App"
;Because there are multiple .cab files specific to a CPU type,
;these files are relative to the installation directory.
CabFiles= MyApp_PPC.ARM.CAB; MyApp_PPC.ARMV4.CAB; MyApp_PPC.MIPS.CAB;
MyApp_PPC.SH3.CAB; MyApp_PPC.WCE420X86.CAB; MyApp_PPC.X86.CAB
This format was pilfered off of another posting, but without the listing
of multiple cabs. I also tried using commas to separate the file names,
but with no luck.
Any help would be greatly apprieciated.
Paul Tag: Work with SQLServer 2000 CE Tag: 9511
Numeric upDown Control decimal increment ??
If i set de Increment value to 0.5 the up/down does not work ?
Min, max, Value and increment seem all decimals , but the increment and
value properties seems to work only if you put a integer value in it
Is this a bug or am i missing something ?
Johan Tag: Work with SQLServer 2000 CE Tag: 9509
using loadcursorfromfile in vb.net
I have written:
"Declare Function LoadCursorFromFile Lib "\Program
Files\Axilog_SavPad\user32.dll" Alias "LoadCursorFromFile" (ByVal
lpFileName As String) As Long
l = LoadCursorFromFile("\Program Files\Axilog_SavPad\Cursor1.cur")"
But it gives no result.
How can I do to solve this problem? Tag: Work with SQLServer 2000 CE Tag: 9507
IrDA DiscoverDevices
Using VS NET 2003 C#
O2 XDA (Pocket PC 2002)
Nokia 6150 (6100)
The InfaRed Function of Pocket PC can find the Nokia 6150 Mobile Telefon.
When I run a program with :
IrDAClient irdaClient = new IrDAClient();
IrDADeviceInfo[] irdaDevices;
irdaDevices = irdaClient.DiscoverDevices(10);
irdaDevices.Length is allways 0. (No Exceptions)
If the PDA can find the Nokia then why can't IrDAClient find it?
Has any body tried this on a O2 XDA with different results?
For that matter has anybody had the same results, but has found it to be
Machine specific ?
I have tried a c++ Sample (IrdaMobil) that looks for a Nokia 5300 with a AT
Command. Connection to (IrDA Port) COM2 and COM3 works but the AT Commands
recieves a Timeout.
So the main questions are :
- is it the O2 XDA Maschine ?
- or am I doing something wrong ?
Mark Johnson, mj10777@mj10777.de Tag: Work with SQLServer 2000 CE Tag: 9505
SQL CE Install Problem
Hi.~
I am trying to install SQL CE 2.0 edition on Windows
2000 Server where SQL Server 2000(with sp3) and IIS is
installed previously in.
but, I am puzzled.
When I am trying to install SQLCE 2.0, the windows2000
shows error message "SQL Server CE tool will be only
compatible with SQL Server 2000 and SP1 higher..."
but SQL Server 2000 in my pc is updated to SP3.
please help me.. Tag: Work with SQLServer 2000 CE Tag: 9504
How to "free / dispose" objects?
Hi,
i'm really new to .NET and i know, that the garbage-collection should free
objects itself... but is there any way to force this?
for example: i have a loop in which i need to create a new object every
time, fill in some data, store it to a database and then... free it...
[pseudo-code]
while (readline(myLine) != eof)
{
TMyObj tempObject = new TMyObj;
tempObject.abc = "abc";
//...more data to fill
StoreObject(tempObject)
//in pascal i would do:
// tempObject.Free;
}
[/pseudo-code]
The loop will run thru about 100000 times - so 100000 objects are created
but only used for a very short time!
I need a new object to have a new reference - so a Clear-Function to clear
my data is not enough.
Question: WHEN will the garbage-collection free the instances of the loops
before?
Boris Tag: Work with SQLServer 2000 CE Tag: 9499
direct access from Handheld(CASIO IT 500) to remote sqlserver2000
hello everyone;
I need help^^;
Is it possible direct data access through wireless
network(bluetooth or others) from PDA(CASIO IT 5000) to
remote SQL Server 2000 Database?
If it is possible, how can I do that?
Until now, I write data access logic, which works in PC
environment.(using System.Data.SqlClient). and install
this program in PDA. but it didn't works. The error
message is some kind of typeload exception.
please help me.^^; have a nice day. Tag: Work with SQLServer 2000 CE Tag: 9494
Keydown Event losing focus
Hi,
I'm using the Keydown event on a form with a panel and scroll bar on
it, to trap the user pressing the hardware scroll buttons. It works
fine when the form is first loaded, however if the use selects a
control, then the scroll bar doesn't work on the form any more. Is
there a way of ensuring that the form always has focus so if the
scroll bars are pressed, the keydown event is fired as when the form
first loads?
Regards,
David. Tag: Work with SQLServer 2000 CE Tag: 9493