|
SteveKier wrote: What happens is, no matter how long I hold the button down, I get a WM_KEYUP for VK_TTALK within a few hundred milliseconds of the key press event. This happens even though I hold the button down for many seconds after pressing it.
i have a hunch that the device is using a short and long key press functionality IE tap a key for one function and hold for another.
it appears that once the timer for the held key is reached the WM_KEYUP msg is sent by default.
u may have to override the standard key handling functions at a lower level than u are currently interfacing to. unfortunatly i dont have the experince to point to a document that is helpful.
|
|
|
|
|
...a good thought. Thanks.
Sadly, when I check out this idea I find that no message at all comes to my hook when I actually release the button. You're right, of course, that sometimes you'll see differences between press-release and press-hold: say, one key code for a press-release and a different key code for press-hold. But in this case it's the very same key code in both cases, both event (KEYDOWN and KEYUP) are driven by the press of the key, and there's no event at all on the release of the key. Bummer.
And you may be right that I'll need to intervene at an even lower level then the "low-level keyboard events" hook I've got. I've not found a (portable) way to do that just yet, though.
And as it happens we've decided to move away from depending on the SEND key and let the user choose a key that works - whatever key that may be on their given device. So if this behavior does turn out to be peculiar to the 6700 - as the evidence currently suggests - then the user can just choose a different key on that device.
Thanks again for your idea.
Steve
|
|
|
|
|
sounds like a very sensible work around, otherwise you would have to find the function that posts WM_KEY msgs rewrite it, tie ur on keyhandler when ur app starts then tie the normal handler when ur app exits.... messy and would prob interrupt other functionality with the device =(
|
|
|
|
|
Hello,
I was wondering if anyone knows an alternative to receive sms to a personal computer other than through a GSM Modem. I really find this method quite slow than using kannel project.
Any reply would be greatly appreciated. Thanks in advance
Aim small, miss small
|
|
|
|
|
Ummm the cell network your connected to will dictate if u use GSM or not...
could look for a WCDMA cell network but i doubt u will be able to tell the difference.
|
|
|
|
|
Hello!
I am facing some problems on the development of my mobile simlpe application connecting to an SQLCE database.
After searching a bunch of sites, tutorials and Q&A's my code seems to be correct and I can't figure out what's going wrong.
This is my code:
SqlCeConnection conn = new SqlCeConnection("Data Source=ChokweDB.sdf");
SqlCeCommand insertForm1 = new SqlCeCommand("INSERT INTO Form1Table (p1,p2,p3,p4,entrevistador,data) values ('" + p1.Text + "','" + p2.Text + "','" + p3Value + "','" + p4Value + "','" + txtEntrevistador.Text + "','" + txtData.Text + "')", conn);
conn.Open();
insertForm1.ExecuteNonQuery();
conn.Close();
My database is placed in the home directory of the application (filename ChokweDB.sdf). When I run the code, MVS2008 will simply not find the database:
The database file cannot be found. Check the path to the database. [ Data Source = ChokweDB.sdf ]
Why oh why? What am I missing?
|
|
|
|
|
Hi Vafo,
in your code you have to specify exact database path.
<br />
string DBPath = @"Program Files\ChokweDB.sdf";<br />
SqlCeConnection conn = new SqlCeConnection("Data Source=" + DBPath );
hope this will help you...
Pavan Pareta
modified on Friday, April 24, 2009 2:47 PM
|
|
|
|
|
Can't build, unrecogized escape sequence error after each dash...seen this before..
string dbconn = "@C:\Documents and Settings\Vasco\Ambiente de trabalho\Serviços de Informática\ChokweMobile\ChokweDB.sdf";
SqlCeConnection conn = new SqlCeConnection("Data Source=" + dbconn);
And after some correcting...
<pre> string dbconn = @"C:\Documents and Settings\Vasco\Ambiente de trabalho\Serviços de Informática\ChokweMobile\ChokweDB.sdf";
SqlCeConnection conn = new SqlCeConnection("Data Source=" + dbconn);
Returns Path not valid.
And...
string dbconn = @".\ChokweDB.sdf";
The database file cannot be found. Check the path to the database. [ Data Source = .\ChokweDB.sdf ]
The database IS o the same folder as the application - and it really IS there and the name is spelled correctly..
modified on Thursday, April 23, 2009 7:10 AM
|
|
|
|
|
Hi,
Add data source in your project.
then select your database (.sdf) file in your solution. then click properties then
set the value of Copy to Output Directory = Copy Always.
Try this.
Thanks
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
http://www.youtube.com/watch?v=-oJaaPCrk3Q
|
|
|
|
|
you should to add the data base trough add elements there you can see your data base and can execute program to compile if you want to compile trough mobile device add the data base in mobile device
Thanks
|
|
|
|
|
Try this
string path = "Data Source =";
path += System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
path += "\\Database.sdf";
then
myConnection = new SqlCeConnection(@path);
cheers
|
|
|
|
|
I have a very basic question but have lost some time wondering and digging the webs for an answer already - should be extra easy to answer tho:
I am developing a windows form for Windows Mobile 6 in C#, using Visual Studio 2008. I have two sets of radiobuttons in a form, and I want to separate them. I have learned I should use the WS_GROUP option, but the dumb question is...
"Where/how do I set this WS_GROUP option?"
Appreciate some reply - thank you for your attention
|
|
|
|
|
Can you confirm the development language that you are using? WS_GROUP is a windows style constant that is used in programs written in C/C++. For C# you would accomplish grouping radio buttons by either placing them in the same container (groupbox or panel).
|
|
|
|
|
Placing them inside a panel was the answer. Thanks.
|
|
|
|
|
I make code for read in web based mySql.
my php code able to read mySql and push to string.
$yoResult = iconv("EUC-KR", "UTF-8", $outxml);
echo $yoResult;
$yoResult is...
<?xml version="1.0" encoding="utf-8" ?>
<yodata>
<yovalue1>bla bla </yovalue1>
</yodata>
my window mobile code read that data string.
But i don't know How to handle that data!
How do I approach that data?
|
|
|
|
|
You might want to check out the XmlTextReader class or the ReadXml method of the DataSet object (Depending on what you are doing).
|
|
|
|
|
I give you here complete example for xml in windows mobile : It would show you in listbox all title and link of xml >
using System.Net;
using System.IO;
using System.Xml;
XmlTextReader reader = new XmlTextReader(filename );
while (reader.Read()) // if stream readed
{
XmlNodeType nodetype = reader.NodeType; // checking nodes every type
if (nodetype == XmlNodeType.Element)
{
if (reader.Name == "title")
{
listBox1.Items.Add("........................");
listBox1.Items.Add(reader.ReadString());
}
if (reader.Name == "link")
{
listBox1.Items.Add(reader.ReadString());
}
}
}
reder.Close();
xml :
<root>
<title> Newgame
http:...........<title> Newpc
http:...........
|
|
|
|
|
Hi,
I'm using C# and .net Compact Framework 2.0.
I want to draw a polygon at various angles, in other words I want to rotate it. However, I don't know the maths to do this,
transformation matix aren't part of the Cf so I've to figure it out for myself, any pointers?
Thanks
Gem
|
|
|
|
|
Why not just make your own transformation matrix class?
|
|
|
|
|
yup, thats what I'm trying to figure out
|
|
|
|
|
Hi
I think there is an article on this site which deals with this...
Also check SourceForge which i also think has some code to cover this (svg for cf).
Good luck
|
|
|
|
|
|
Hi everyone!
I have had so much help from this wonderfull site! Its time to give something back
I have made a really nice RAD framework for making finger-friendly apps for WM. Its called GSlide and is a teeny-tiny-bit revolutionary in its architecture i must say. Most importantly really easy to work with!
Check it out and please give me feedback!
www.gslide.mobi
Ciao,
Lars
|
|
|
|
|
Hi,
I download GSlide Framework. but how i install this framework. and how i use this. i not get any document in your site about "How to you?".
Can u provide a document for how i use this. if possible also provide any sample project for this.
Thanks
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
http://www.youtube.com/watch?v=-oJaaPCrk3Q
|
|
|
|
|
Hi, thanks for your question
GSlide operates slightly different than other frameworks since it uses more of a new component architecture with exe files responding to outside procedure-calls.
The nice thing about this is that prototyping can be VERY rapid, even be accomplished on your actual device.
GSlide is in other words not "installed" or used as a GUI component in the normal VS manner.
Think of GSlide developing more like client/server, or browser/server, developing.
Play around with the script-files on your device, or in the desktop emulator to get started. There are also examples in the menu on the site.
Im working on fun tutorials!
Ciao,
Lars
|
|
|
|