how can i refresh the content of HTMLviewer?
I am writing a message-exchanging application, the message content will be
saved in a HTML file, in the PPC application, i am using OpenCF's HTMLViewer
to show the HTML file, but how can i refresh the viewer so that I can keep
updating the message? thanks a lot!!
viewer.Refresh(); and viewer.URL("msg.html") don't work
I write sth. like<meta .... refresh=2>, it doesn't work as well Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35358
Emulator Problem
hi!!
im developing ASP.Net mobile web application. now when i run the app it uses
the ie of my computer whereas if i run a smart device application it uses the
Pocket PC emulator. is it possible to view ASP.Net app in that PC emulator?
if yes then how?
and could anyone suggesst me a good emulator as i think there is a problem
with the one that comes with .net framework. i have to restart the emulator
everytime i run my app.
Thanks.
Adeel. Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35354
Mobile interactivity with live website
I have a large coldfusion mx based website (running off a SQL Server 2k
db)and am looking to develop a mobile (smartphone/pda) application that will
be used to periodically update the live site and pull info back from the site
to update the handset. I am trying to get my head around where to
begin..ASP.NET, VB.NET, other and to find any kind of guidance
notes/samples/walkthroughs.
I am an experienced Coldfusion and web developer and SQL dba but am stuck on
where to begin with this application!
thank you
--
Jon Cooper
Visation Ltd Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35352
Help with error message (System.Data.IDbCommand)
I am brand new to PDA development, I inherited an app. from a developer who
recently left. We have been using the HP Ipaq h5500 pda's without a problem.
Recently, one of our salesman picked up an HP Ipaq h6300 pda, when I deploy
our app. onto this pda I get this error.
"
Could not load type
System.Data.IDbCommand from
assembly System.Data
"
Thanks in advance for any help that you guys can offer. Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35351
Signature Capture Options
Hi All,
I'm building an app. that has some signature capture requirements.
I need to be able to capture the signature on the PPC, sync. with
a server, and view the signature on the server. I've been looking
at ways to do this and I'd like to clarify the following:
From a legal perspective what is the best way to store a signature,
so that it will hold up in a court of law? e.g. should I save as
coordinates or as a graphic format?
Thanks for the assistance,
Ciaran Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35350
Socket.Connect fails after several successful attemps
Dear NG,
ive got the following problem. Ive made a client which makes a call to
a PHP-Script every 10 Seconds. The result of this call gets parsed.
The call is successfull all the time, but after about 70 calls the
code throws a exception at socket.connect().
Here is the code which i call every 10 Seconds. The method gets called
in a timerevent or in a thread with a waittime of 10 seconds. i tried
both, without success.
private string sendCommandToServer(string command){
connectCount++;
try
{
System.Net.Sockets.Socket socket = new
Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
IPAddress server = IPAddress.Parse("10.12.21.2");
IPEndPoint IPE = new IPEndPoint(server, Convert.ToInt32(80));
socket.Connect(IPE);
Byte[] msg = new Byte[command.Length+5];
msg = Encoding.Default.GetBytes(command+"\r\n");
StringBuilder data_string = new StringBuilder("");
Byte[] bytes = new Byte[1048576];
long bytes_read;
NetworkStream data_stream = new NetworkStream(socket);
int i, bloecke;
bloecke = 0;
socket.Send(msg);
bytes_read = socket.Receive(bytes);
while (bytes_read > 0)
{
for (i = 0; i < bytes_read; i++)
{
data_string.Append((char)(bytes[i]));
}
bytes_read = socket.Receive(bytes);
bloecke = bloecke + 1;
}
socket.Close();
string answer = data_string.ToString();
return answer;
}
catch(Exception ex){
throw new Exception("ConnectionCounter = "+connectCount, ex);
}
}
The command is: POST http://fis.solutions/news.php?gid=4916094959292
If anyone can give me a hint what to do, i would really appreciate it.
Greeting
Jens Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35349
returning dataset from webservice
I am trying to return a dataset from webservice.The webservice is called from
WindowCE.Net application running on the emulator.when the dataset get
returned there is no data in the dataset.where as when i debug the webservice
there is data in dataset.
please help as it is very importnat to me.
the Webservice namespace and the Client application namespace is different,.
Regards
Farrukh Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35347
Create buttons in another form
Hello,
I need to add elements out of a function to several forms. Example: I have
three forms, and every form needs a titlebar, wich i have designes as an
image with a frew buttons. I don't want to add the titlebar in everyform, so
i hoped to write a function, wich adds these few elements to the active form
when called.
I hope you understand my question ;o)
Greetings,
Cyberdot Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35345
GUID
How to create automatically new GUID?
Full framework has this feature but i cant
see it in Compact Framework... Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35344
Hotkey with Contextmenu
Hi,
i got an CE Device with a numeric keyboard.
WinCE 4.02.
I created an Contextmenu like:
&0 - do first
&1 - do second
...
With Win32-Menu the Menuitems is clicked when i press the 0 oder 1 or =
the other hotkeys.
This doesn't happend on CE.
Why, or better how can i do this? Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35342
static function for HTML Viewer
how should i instantiate viewer.parent?
thanks a lot!
private static void pSetupViewer()
{
pViewer = new HTMLViewer ();
pViewer.Parent = new _________;
// resize it
pViewer.Bounds = new Rectangle(10, 30, 230, 160);
string mLocalurl = "file://dir/a.html";
pViewer.Url = mLocalurl ;
} Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35339
ContextMenu - reproducible crash, CF 1.0 SP2
To Microsoft CF team and list,
I have previously posted information on this topic but I now want to open
another thread here after I have worked on this problem for a few days now
and want to share some information.
I have CF 1.0 SP2 and have been trying to get a ContextMenu working without
success. I keep getting a System.ArgumentException error.
What I am trying to achieve is to have a ToolBarButton set for a PushButton
style raise a ContextMenu when tapped. This part works as expected. As
background, I chose to use a ToolBarButton with PushButton style and a
separate ContextMenu instead of a ToolBarButton with the DropDownMenu style
set because I have found that for some Pocket PCs running PPC 2002 this
latter combination causes the Pocket PC to freeze after a couple of taps on
the menu. Having a ToolBarButton set as a PushButton and using a separate
ContextMenu overcomes the freeze problem on those Pocket PCs.
However, I also have various conditions in my app where I want to display
different menu items in the ContextMenu. When such a condition is
encountered in my app, I call a method and simply run
ContextMenu.MenuItems.Clear() and then begin using the Add() method to add
the new set of menu items. Theoretically, this should work every time, but
it does not.
I have now proven beyond doubt that a second call to my method that first
"clears" the MenuItems collection then "adds" the new ones will crash the
system IF the ContextMenu has not yet been displayed.
After much testing, it seems that the ContextMenu needs to be displayed
first each time after you Clear() then Add() a new set of menu items to
avoid the error message.
Displaying the context menu at the wrong time so a user can dismiss it just
to rebuild the next set of menu items is pretty ugly. This is the only
workaround I can find.
Does anybody know of a way to programmatically dismiss the ContextMenu in
order to provide this workaround?
For anyone interested, I can send you my VS .NET 2003 solution files that
will demonstrate this problem.
Does anyone have any other method of building different menu items for a
ContextMenu?
Does anyone know if CF 1.0 SP3 Beta or even CF 2.0 Beta fixes this problem?
Regards,
Neville Lang Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35334
I get an error saying contextmenu is not supported
I get an error: NotSupportedException error and it feeds to line:
this.mnuClose.Text = "Close";
What could be the problem? Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35332
saving dynamic dataset to sql ce
I am getting a dataset returned from a web service call, I want to persist
this in sql ce. Is there an easy way of doing this? Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35331
Application Foreground "Timeout"
I have a kiosk-type Pocket PC app which has a problem of moving to the
background after the device has been powered down with the power button. For
short durations of minutes to an hour or two, the app is in the foreground.
This only occurs after the device has been off for a relatively long time.
(e.g. powered off overnight).
I'm sure the app is still running because pressing a programmed HotKey
causes the top portion of my app to appear over the title bar. And then
tapping that exposed area of my app's screen restores the rest of the app to
full view.
I've tried using the BringToTop()/SetWindowPos()/ShowWindow() API commands
in the form's GotFocus event to no avail. (In VB6, this code keeps the
window on top no matter what; similar to a MsgBox with vbSystemModal.)
I suspect that it is not my app that goes to the background but rather
something in the OS that forces the Start screen to the foreground.
This application is used in scientific experiments. In a controlled lab,
this might not be such a problem. However, the app, being PDA-based, is also
used outside of a lab. Therefore it is imperative that the app never go to
the background. (To prevent subjects from running down the battery, and
inadvertent or intentional deletion of the app & its data; and to some
extent, give the appearance of a dedicated device which helps dissaude theft.)
Thanks in advance for any help!
shapij Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35326
Form Activate - Can it be bypassed?
Hi,
I have code in the Form_Activate event of my application and as the
user needs to switch between many forms, I simply hide them when the
user needs to move to another form. At present, I have a global
boolean called gbExitNow and set this to true and test for its
condition in Form_Activate, in order to bypass the code in
Form_Activate when the user switches to another form.
I'm sure there is a more efficient or programatically correct way of
doing this and was wondering if someone can please provide an
alternative method where I can bypass the Form Activate at certain
times. E.g. when the user selects "Save & Exit" the save routine is
performed, the form_activate is executed before the form is hidden.
Thanks in advance for any assistance.
Kind Regards,
David. Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35325
create an help file
Actualy my product documentation ship as a collection of HTML file
I wonder how could I ship it as a single help file!
Also I have a per page help, which I show from the help menu.
It would be nice if this 1 file Help file would still enable me to show the
contextual help (and not alway start on the index page) Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35322
Reading a param in log4net
Hi,
How do I read the .config file of the log4net section, I need my program to
get the file name of the fileappender set in the .config file (i.e <param
name="File" value = "\\Temp\\Test.log"/>
Johann Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35311
clearing old lines in vb.NET
Hello all-
I am developing an application that will take serial data from a
compass on a boat, and display it to the screen, like a compass. To
do this i need to draw a line on top of a bitmap, and have it refresh
at ~ 2 times a sec. I am new to vb.NET, it was working fine in eVB.
Here is the code that i have. if i call the fromimage on the bmp on i
want to update, compassBox.image, then the lines are not cleared, just
added on top of all the other lines. this will work for about 30 sec,
then there is an out of memory exception. I belive it is becuase i am
initializing a new bitmap every time, but if i call the dispose() on
temp then the image will not update.
Any help is greatly appreciated. I need to either find a way to clear
the old lines off the initial bitmap, so there is only one line at a
time, or find a way to clean up the memory from the tempBmp, so as to
not cause an exception.
Thanks so much for any help!!
Michael Hilton
''''Code
tempBmp = New Bitmap(PictureBox3.Image)
myGraphics = Graphics.FromImage(tempBmp )
myGraphics.DrawLine(New
System.Drawing.Pen(System.Drawing.Color.LimeGreen), 100, 100, xcoord,
ycoord)
CompassBox.Image = tempBmp
myGraphics.Dispose()
'tempBmp.Dispose() if i uncomment this line, it will not update the
display
''''/Code
An unhandled exception of type 'System.OutOfMemoryException' occurred
in System.Drawing.dll
Additional information: OutOfMemoryException Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35308
Make Compact Framework non volitile on Pocket PC upon cold boot.
When we cold boot our pocket pc with a VB Dot Net application installed we
lose the Compact Framework. We then have to download it again. Is there a
way to avoid this from happening?
Byron... Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35301
How do I get an accurate time in CF?
I need to keep the time with data that is coming into my app. On the
desktop I use DateTime.Now.Ticks to get a time stamp down to the thousandths
of a second. On the desktop is gave me numbers like this:
632312367562450276
632312367562606512
On the PPC I get numbers like this:
632314491430000000
632314491500000000
The precision is not there. The numbers I get from the PPC have gaps
anywhere from 2 to 5 seconds. The gaps on the desktop are approx .015
seconds. Is there a way to get a more accurate time stamp from PPC?
Thanks,
jim Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35299
Couldnt deploy application
Hi All,
I installed .NET CF SP2 in my pocket pc. After that, I am not able to
deploy my application from Visual studio 2003. I am using ActiveSync. I am
able to run the application using the emulator. Let me put in order of what
I did.
1. Installed Microsoft Loopback adapter in my desktop. I am running windows
xp.
2. Installed .NET CF SP2 in my pocket pc.
Whenever i deploy my application, visual studio is not responding and i had
to terminate it. What do I have to do. any help ? Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35279
Deploying application for handheld
Hi,
How can I create a setup file for handheld that installs my application via
Active Sync on handheld but before installing it checks, if CF is installed
or not? If not, it installs CF automatically.
I created Cab-file with VS 2003, but it is not comfortable, because the
setup-file has to be copied on handheld.
Thanks.
Amateur. Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35254
Network connectivity in emulator
Hi!
How do I set up network connectivity for the emulator? I want to test run my
app which is using sockets to communicate with other apps running on my PC,
but I just can not get the emulator network to work.
TIA
Jonas Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35253
Form without titlebar
I am developing a Windows CE (not Pocket PC or Smartphone) application using
Compact Framework. How do I create a form without a titlebar. I would
still like to have a menu, toolbar and the minimize/maximize/close buttons.
But they should all line up in the same row horizontally. The standard
application shiiped with Windows CE 4.2 emulator (for example, Microsoft
Wordpad) do this. Is there a way to accomplish that from Compact Framework?
Thanks
PR Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35244
Hide form in taskbar - Windows CE
I am writing an application for Windows CE device (not Pocket PC or
Smartphone) using the Compact Framework. When I open a dialog from my main
form, an additional button is displayed on the Taskbar. I would like only
one button to be displayed on the taskbar for my application. Since Compact
Framework does not support ShowInTaskbar property for forms, I am at a loss
of how to accomplish that. Any help would be appreciated.
Thanks
PR Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35241
Software keyboard
Hi all!,
I need to build a form with some editBoxes and my own numeric keyboard,
I have a problem with the keyboard, I have used a Button object for each
number
(1, 2, 3, .. 9) but when I press the buttons the current textBox lost the
focus and
I can´t know as it is the textbox where send the key pressed.
Any Ideas?
--
Saludos,
---------------------------------------------------------
Javier Ros Moreno
Aguas de Murcia
Murcia (España)
--------------------------------------------------------- Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35240
Finding out how much file system memory is free
In order to optimise a file caching strategy, I need to find out two
things:
1) How much non-volatile storage space is available (and where)
2) How much volatile storage space is available
I know how to find out how what the division between volatile storage
space and "working memory" is, and how to find out how much working
memory is being used, but I can't find the free volatile storage space.
Any clues?
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35227
Speeding up the drawing of forms and their controls...
I was under the impression that there was a way in which I could
create a populated control off-screen and then quickly show it (by
this I mean that no time is saved in the end, just that the user sees
an 'instantaneous' display when it does appear).
I have a custom control that I create and initialize off-screen (I
just set the draing point to somethign not visible) and then I changed
the drawing point to be 1,1, which is where I wnat it. The net result
is no apparent increase in performance on the drawing. I still see
individual button controls being drawn one after the other.
I'm thinking I may be barking up the wrong tree. Any advice would be
greatly appreciated.
Thanks,
-Neil K. Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35223
SmartPhone C# build fails
I installed the SmartPhone 2003 SDK yesterday and I'm having trouble
building a project.
I'm using Visual Studio .NET 2003 on a WinXP Pro machine. And I have
experience with building Pocket PC apps in C#.
I've created a blank C# Smart Device Application, platform target is
Smartphone, project type is Windows Application. With a blank Form,
when I select 'Build SmartDeviceApplicationX' from the Build menu the
Task List pane remains blank whilst the Output pane reports the output
below.
What's going on? I've tried removing the SmartPhone SDK, rebooting,
repairing my Visual Studio install, and adding the SDK back in - but
get the same problem.
There is also a problem with the emulator. When I try to deploy to
'Smartphone 2003 Emulator (Virtual Radio)' I get the error 'CE Boot
image could not be opened'.
Help!
TIA
Craig
------ Build started: Project: SmartDeviceApplication11,
Configuration: Debug Smartphone ------
Preparing resources...
Updating references...
Performing main compilation...
Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
Visual Studio is ready to deploy SmartDeviceApplication11
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35221
Detecting mains power
Does anyone know of any way of detecting whether a device has mains
power or not? I can see power state changes, but can't tell from them
whether the device is connected to a decent power supply.
(We'd like our app to keep trying to download updates if it's on mains
power, but not otherwise.)
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35219
To All: String reverse problem
This is a multi-part message in MIME format.
------=_NextPart_000_000A_01C4A096.349030E0
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
Hi,
I've check on the web for a string reverse function and this one on many =
places:
public static string StrRev(string s)
{
if (s.Length =3D=3D 1)
return s;
else
return StrRev( s.Substring(1) ) + s.Substring(0,1);
}
Now, this doesn't work when you put an empty string and produce a =
StackOverflowException, so we add a condition at the begining of the =
function:
public static string StrRev(string s)
{
if (s.Length =3D=3D 0)
return s;
if (s.Length =3D=3D 1)
return s;
else
return StrRev( s.Substring(1) ) + s.Substring(0,1);
}
Hope this helps, Tomer.
------=_NextPart_000_000A_01C4A096.349030E0
Content-Type: text/html;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1255">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I've check on the web for a string =
reverse function=20
and this one on many places:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff=20
size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff =
size=3D2>public</FONT><FONT=20
size=3D2> </FONT><FONT color=3D#0000ff size=3D2>static</FONT><FONT =
size=3D2>=20
</FONT><FONT color=3D#0000ff size=3D2>string</FONT><FONT size=3D2> =
StrRev(</FONT><FONT=20
color=3D#0000ff size=3D2>string</FONT><FONT size=3D2> s)</DIV>
<DIV>
<P>{</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000ff size=3D2>if</FONT><FONT size=3D2> =
(s.Length =3D=3D 1)</P>
<P></FONT><FONT color=3D#0000ff size=3D2>return</FONT><FONT size=3D2> =
s;</P>
<P></FONT><FONT color=3D#0000ff size=3D2>else</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000ff size=3D2>return</FONT><FONT size=3D2> =
StrRev(=20
s.Substring(1) ) + s.Substring(0,1);</P>
<P>}</P></FONT></FONT><FONT face=3DArial size=3D2></FONT>
<P><FONT face=3DArial size=3D2>Now, this doesn't work when you put an =
empty string=20
and produce a <STRONG>StackOverflowException</STRONG>, so we add a =
condition at=20
the begining of the function:</FONT></P>
<P><FONT color=3D#0000ff size=3D2>public</FONT><FONT size=3D2> =
</FONT><FONT=20
color=3D#0000ff size=3D2>static</FONT><FONT size=3D2> </FONT><FONT =
color=3D#0000ff=20
size=3D2>string</FONT><FONT size=3D2> StrRev(</FONT><FONT =
color=3D#0000ff=20
size=3D2>string</FONT><FONT size=3D2> s)</P>
<P>{</P>
<P></FONT><FONT color=3D#0000ff size=3D2><STRONG>if</STRONG></FONT><FONT =
size=3D2><STRONG> (s.Length =3D=3D 0)</STRONG></P>
<P></FONT><FONT color=3D#0000ff =
size=3D2><STRONG>return</STRONG></FONT><FONT=20
size=3D2><STRONG> s;</STRONG></P>
<P></FONT><FONT color=3D#0000ff size=3D2>if</FONT><FONT size=3D2> =
(s.Length =3D=3D 1)</P>
<P></FONT><FONT color=3D#0000ff size=3D2>return</FONT><FONT size=3D2> =
s;</P>
<P></FONT><FONT color=3D#0000ff size=3D2>else</P></FONT><FONT size=3D2>
<P></FONT><FONT color=3D#0000ff size=3D2>return</FONT><FONT size=3D2> =
StrRev(=20
s.Substring(1) ) + s.Substring(0,1);</P>
<P>}</P></FONT>
<P><FONT face=3DArial size=3D2>Hope this helps,=20
Tomer.</FONT></P></DIV></BODY></HTML>
------=_NextPart_000_000A_01C4A096.349030E0-- Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35211
OpenNETCF: Bug in Process.Kill?
I was just having a look at the code for Process.Kill, and it looks
somewhat wrong to me. In particular, it calls
OpenProcess (0, false, this.Handle)
but this.Handle is actually the result of calling OpenProcess in the
first place with the process ID.
Should the code not just call (after checking for exit etc)
TerminateProcess (Handle, 0);
? Why the two levels of OpenProcess? The last parameter of OpenProcess
is a DWORD, not a HANDLE, which also suggests there's something wrong.
On a different but related matter: have I overlooked something, or does
OpenNETCF not currently have a way of enumerating processes? If that's
correct, is there any reason for it other than no-one's done it yet?
It's definitely possible using Process32First/Process32Next with the
results of a CreateToolhelp32Snapshot call.
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35207
Dynamic URL Behavior
Hi,
I was just wondering how we can make a dynamic refrence for the location of
a web service on the CF for pocket pc 2003.
I have acomplished this with the standard framework but visual studio 2003
pro doesn't give me the option to change the url behaviour for smart device
applications.
can anyone help?
Thankx heaps
Lorenzo. Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35206
How to check a PDA is connected to the PC
pHi
I have a program to copy files from desktop pc to PDA for that I
was used OpenNETCF RAPI . It copies the file to the device well.
It gives an exception, when I try to copy the file to device which is not
connected to the PC ( Active sync not installed )
My program hangs, when try to copy the file to device which is not
connected to the PC ( Active sync installed )
There is any way to fix that problem
--
regards
prakash Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35197
Compact Framework 1.1 on Whidbey
Is it possible to set Whidbey to target CF 1.1 platform? Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35188
Pocket PC Setup Applications
I've built an inf, ini, and cab with cabwiz. Everything compiles and then I
create a setup.exe using the EzSetup application. I can run this but after
the Readme, Eula, I get an error that there's a problem in the Setup
file......
Then i thought, here's a way to to it the .NET way when i read the article
Developing and Deploying Pocket PC Setup Applications from
Microsoft....Download the code and it doesn't compile and what your suppose
to do to connect the pieces is less than intuitive.
Is there a recommended article on how to build a PPC setup program?
I need to install SQLServerCE cabs, Symbol cab as well as the app cab. I
also want to "include" a local database DB.sdf.
Any good recommendations?
TIA
Harry Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35180
How to show a hint?
Hi,
How can show a hint, the little yelow note, asocieted to a button?
thaks Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35179
.EXE appearing multiple time in folder
Hi,
I have a VB.NET CF application and somehow I keep getting multiple instances
of the .exe file in the folder where the
application gets deployed. What I see on the PPC when using File Explorer
is;
MyApp, MyApp(1), MyApp(2), ..., MyApp(12)
I tried deleting all of these but over time they begin reappearing. Any
ideas?
Thanks,
Bill Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35172
ShowDialog Issue
Hi,
I'm developing a C# application that will function like the SIP. I'm doing
this because our platform is a CEPC with touchscreen and we'll need a large
keyboard that is "finger friendly". The application can be invoked by any
other application in the system.
My problem is that I cannot figure out a way to display the SIP form in such
a way that forms behind it are truly disabled. The SIP form doesn't fill
the whole screen so some buttons from forms beneath it are visible to the
user. While these exposed buttons don't respond to while the SIP form is
displayed, they will respond after the SIP form is closed. Setting the
underlying form's enabled property to false and then back to true or
disabling individual controls on the underlying form doesn't help. As soon
as the form or the controls are enabled, they will respond to any touches
that occured while the SIP form was displayed. I could make the SIP form
full screen, but it's pretty ugly when the SIP form is in numeric keypad
mode. If I hide any underlying forms then the main window icons (i.e. My
Computer) become visible and active.
Does anyone have any suggestions? I'm guessing there's a simple
solution...I just haven't found it yet.
Thanks,
Jim Frazer Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35164
re: marketing your book
Byron,
Have you thought about selling your book to Libraries and other non-profit
organizations.
Ronald Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35156
DataGrid and MouseEvent Problem
I use PocketPC 2003 and C# as language.
I have a DataGrid control which displays data records from a database
server. I have a context menu which allows editing or deleting of a
selected row (record).
Problem:
When I tab and hold the stylus for one or two seconds I get the
context menu. But I do not get ANY mouse events. I have written
handlers for all three events providing coordinates (MouseDown,
MouseUp, MouseMove). NONE of these events gets fired unless I release
the stylus.
This has very nasty side effects. If a user has lets say row 3
selected and now tab and holds the stylus on row 6 he gets the
context menu correctly. Since now mouse events are fired the
coordinates of row 3 are still stored in my program. If the user
selects to delete the row, he deletes row 3 instead of 6!
Does anybody know about this problem? Is this a bug? Any workaround
available?
Many thanks!
Tom Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35155
Checking for other running CF applications
I've had success in using the various "CreateMutex" procs to stop
multiple instances of the same application but I've been unable to
find some code to check for other running named processes. In eVB I
managed to just use Mutex for that as well but it's not triggering any
code I write to trap it in VB .Net on the compact framework. Any
ideas, comments, samples would be welcome. These other applications
may be multi-form apps.
Thanks! Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35153
Error ..
I have a database in SQL Server and I connect myself to this to pass the
data from a table to SQL Server CE but when 498 registrations go it sends me
an error and not continuous.
Which could be the problem ??
The code that I use is the following
Dim cmd As System.Data.SqlClient.SqlCommand
Dim dtr As System.Data.SqlClient.SqlDataReader
Dim oConn As System.Data.SqlClient.SqlConnection
oConn = New System.Data.SqlClient.SqlConnection("user
id=pocket;password=12345;database=pocketCE;server=10.21.109.5")
oConn.Open()
cmd = New System.Data.SqlClient.SqlCommand("Select codani, nomani
from hoja", oConn)
dtr = cmd.ExecuteReader()
Dim oConnCE As New SqlCeConnection("Data Source = \My
Documents\prueba.sdf")
Dim SQLUpd As SqlCeCommand = oConnCE.CreateCommand()
Dim cCod, cNom As String
oConnCE.Open()
While dtr.Read()
cCod = dtr("codani")
cNom = dtr("nomani")
SQLUpd.CommandText = "INSERT INTO Animal VALUES('" & Trim(cCod)
& "','" & Trim(cNom) & "')"
SQLUpd.ExecuteNonQuery()
End While
MsgBox("ok")
oConnCE.Close()
--
David Amador Tapia
WebMaster "La Web de Davphantom"
www.davphantom.net
Cartagena. Colombia Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35152
How to write a debugger for .NET CE?
Hi!
Does anybody have a clue how to implement a debugger for the .net
compact framework (CE)?
The .NET debugging API contains a bunch of COM objects and interfaces
like ICorDebug and so on. But the SDK for Windows Mobile 2003-based
Pocket PCs does not contain the needed include files <cor.h> and
<cordebug.h> and the device seems to have no registry entry for
CLSID_CorDebug.
Is there any way to implement an own debugger for the compact
framework?
Any help would be appreciated.
Best regards,
Thomas Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35148
system.guid as Dataset/Combobox valuemember ?
im using RDA to pull a table from sql server, the table has clientId (guid)
and ClientName (varchar)
the table loads fine and i get in sqlce the correct values.
then i create a dataset, and bind the dataset to a combobox
comboClient .DataSource = myDataset.Tables[0];
comboClient .DisplayMember = "ClientName";
comboClient .ValueMember = "ClientId";
this throws a System.ArgumentEcexeption in the valuember line
does not happen if the ClientId is any other type
someone has found this behavior ? Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35147
Problem with DataSet.WriteXml
I am getting the following error from a call to DataSet.WriteXml():
'System.InvalidOperationException' occurred in mscorlib.dll
The code works fine on the desktop version of the program. Any ideas what
I'm doing wrong?
Thanks in advance,
jim
Here's the code:
string lsFileName = string.Empty;
DialogResult lResult;
lResult = lFileDialog.ShowDialog();
if(DialogResult.OK == lResult && string.Empty != lFileDialog.FileName)
{
lsFileName = lFileDialog.FileName;
if(Path.GetExtension(lsFileName) != ".xml")
lsFileName += ".xml";
lDbFile = new System.Xml.XmlTextWriter(lsFileName,
System.Text.Encoding.ASCII);
lDbFile.Formatting = System.Xml.Formatting.Indented;
lbReturnCode = true;
}
DataSet lDataSet = new DataSet("DataResults");
lDataSet.Tables.Add(m_ResultsTable);
lDataSet.WriteXml(lDbFile, XmlWriteMode.WriteSchema); //This line throws
exception
lDbFile.Close();
//lDbFile = null;
lDataSet.Tables.Remove(m_ResultsTable);
lDataSet = null; Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35144
.NET To Go Mobility Roadshow
You've probably heard folks from Microsoft talk about Smart Clients, and one
of the big features of Smart Client applications is the ability to easily
deploy as mobile applications. If you're thinking about tailoring your
application to a mobile environment, you should attend the .NET To Go
Mobility Roadshow. Best of all, it's free. To register for this free event
or to learn more, visit the Web site.
The .NET To Go Mobility Roadshow will provide you with the answers to your
mobile development questions. Digging into the details, using more code and
fewer slides, these technical sessions will show you how to develop and
implement mobile solutions using the .NET Compact Framework and languages
you are already familiar with.
http://www.msmobilityroadshow.com/ Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35143
ANN: MSDN Webcast on multi-threading application development
Do you want to know more about developing multi-threaded applications with
the .NET Compact Framework, both for Windows Mobile devices and for Windows
CE devices? Do you want to learn about starting / properly stopping threads?
Do you want to see the power that OpenNETCF.org's Smart Device Framework can
add to multi-treaded .NET CF applications?
Join us for a MSDN Webcast tomorrow, September 22nd, at 11.00 PM PST (GMT -
08.00) on developing multi-threaded applications using Visual Studio.NET
2003. During this Webcast, loaded with examples, we will discuss a lot of
things to think about when developing managed multi-threaded applications
using C# and the .NET Compact Framework. We will also take a look at Visual
Studio 2005 and its new features, focused towards multi-threading
application development.
Take a look here to sign up for this upcoming Webcast:
http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032257389&Culture=en-US
--
Regards,
Maarten Struys, eMVP
PTS Software bv
www.opennetcf.org | www.dotnetfordevices.com Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35138
Distinctive features of TierDeveloper 4.0
Some of the distinctive features of Tierdeveloper 4.0 are as follows.
Object handling
-Map to a single table or multiple tables
-Map to a view (read-only or in update mode)
-Define unmapped objects and create tables for them automatically.
-Support for auto-generated keys (Identity keys and sequenced values).
-Select subset of table-columns as object attributes
Transaction Support
-Specify insert, update, delete, and single-row select operations
-Specify multiple insert and single-row update operations
-Specify bulk updates and deletes with custom where-clause
-Specify transactional characteristics of objects for COM+
-Full transaction support for non-COM+ components in a parent-child relationship
Queries
-Specify joins
-Select subset of object attributes for retrieval
-Specify custom where-clause with nested queries, UNIONs, and others
-Accept run-time parameters
-Return a collection of objects as the output of query
-Support GetCount and GetPartialRows behavior in queries
Dynamic Queries
-Same as normal queries but with following additional features
-Specify where-clause at run-time
-Output of dynamic query is a collection of objects (just like normal queries)
Code Generation
-Complete re-architected template-based code generation engine.
-Code templates based on Javascript language and are customizable.
-Customize names for classes, methods, and properties.
-Generate .NET components in C# and VB.NET.
-Generate either COM+ or non-GAC code
-Build .NET components as private or shared assemblies Tag: Can I activate ActiveSync Synchronization programatically in .Net Tag: 35137
Can I activate ActiveSync Synchronization programatically in .Net CF?
or
What would be the choices for copying files b/w PPC and Desktop from within
custom application?