modal and modeless forms
Hi,
I have following questions regarding modal and modeless
forms in .NET CF.
1. How do we create modal and modeless forms?
2. What are the differences between PPC forms and
WinCE.NET forms behaviour?
3. Can we resize forms in PPC and WinCE.NET?
4. Any pointers or links for understanding forms in .NET
CF?
Regards,
Vishal. Tag: test Tag: 16026
Bulk Upadtion in DB
Hi frnds,
I'm supposed to do a Bulk updation. The updation would be
carried on about 70 - 80 tables.
Is there any bulk updation facility given by SqlCe like
the one given by Oracle ?
Any suggestion or tip would be of great help.
Thanks Tag: test Tag: 16019
How can I display Chinese under Compact Framework?
I am sending a bytestream of Chinese characteratics through sockets. I need
to display the Chinese characters (possibly BIG5 words) in my Pocket PC.
How can I do that? The output only consists of question marks when I
implement the code below:
checkbox.Text = "";
String checkpath = @"\My Documents\~result.txt";
if (File.Exists(checkpath))
{
File.Delete(checkpath);
}
FileStream checkfs = File.Create(checkpath);
BinaryWriter checkw = new BinaryWriter
(checkfs,System.Text.Encoding.UTF8);
// Receive the transcribed text for verification first
byte[] bytes = new byte[resultClient.ReceiveBufferSize];
resultstream.Read(bytes,0,bytes.Length);
checkw.Write(bytes);
checkw.Close();
//Convert the bytes received to a string
String checking;
checkfs = new FileStream (checkpath,FileMode.Open,FileAccess.Read);
StreamReader checkr = new StreamReader(checkfs);
checking = checkr.ReadLine();
checkr.Close();
checkbox.Text = checking; Tag: test Tag: 16013
<seealso cref= to Class Constructor fails
I am trying to get a seealso link to the Class Constructor where a Field is
set.
This seems to be the last major problem to get a Warning free compulation,
so it would be nice to get it solved.
There are two Constructors in this class and I have tried the following :
/// <seealso cref="Cards.Cards(Panel,string,int,int,int)"/>
or
/// <seealso cref="Cards.Cards()"/>
or
/// <seealso cref="Cards.Cards"/>
all of which failed (Function could not be found - "'Cards.Cards', das nicht
gefunden werden konnte").
Any help to get this solved would be nice.
Mark Johnson, Berlin Germany
mj10777@mj10777.de Tag: test Tag: 16011
SP2 - How to check the .NET version installed on PPC
Hi all,
In past posts on this group, there was information on how a user can
determine which version of .NET CF they have on their PPC. With the release
and installation of .NET CF SP2, I re-ran the CGAUTIL program in \Windows
directory on the PPC and found:
SP2 = 1.0.3316.00
For completeness, the previous versions were:
RTM = 1.0.2268.0
SP1 = 1.0.3111.0
Regards,
Neville Lang Tag: test Tag: 16010
collect data with different devices and copy (RDA) it to a sql server 2000 table ?
Hi,
I use RDA to synchronize my pocket pc's database with the sql server
2000 of my company.
My application (vb.net) only adds new rows to the sqlserverce
database. Existing rows will not be changed. My application is a data
collecting application. All works fine if I use only ONE pocket pc.
But if I synchronzie two pocket pc I get an error if I try to pull the
changes of the second pocket pc to the sql server. I think that the
problem of the second device is that the first device changed the
table on the sql server, what is normal for the pull action.
Is there any way to copy the collected data from more pocket pc's to
one table on the sql server?
what I need:
- one table on the sql server 2000
- the pocket pc's only collect new data (at the moment they have the
complete table from the sql server in the sqlserverce database because
I use RDA but It would be enough if the pocket pc only saves the new
collected data)
- add the new collected data to the (end of the) table on the sql
server (here is my problem: I like to collect new data with different
pocket pcs's at the same time)
- I will not need to change data which is located on the sql server
with my pocket pcs's - they only collect new data.
what is the best way to do this?
Thanks.
Regards,
Thomas Tag: test Tag: 15996
Deploying Applications
I wrote an application in C# for the .NET Compact Framework and when I
deploy the program, the Remove programs entry says 'My Company' - 'App
Title'. What attribute or settings do I need to change to make this say my
name? I tried changing parameters in the Assembly.cs file, but that did not
affect it.
Thanks, Tag: test Tag: 15982
Consultancy Needed
Hi,
I do have some an experience with developing in VB.NET
in .NET Framework.
Now I have to create an app for PocketPC (VB.NET and .NET
Compact Framework)
I have developed quite complex apps for Pocket PC 2002
using eVB
I need to recreate/improve existing eVB applications using
VB.NET
The product we are about to develop will be core company
product for Pocket PC. It will be extended and improved in
next versions. Therefore it must be well design and
written from the beginning, having in mind performance,
security, reusability issues etc.
I would like to go in the right direction. Our company is
thinking about getting some Pocket PC Development
Consultancy.
Does anybody know any good, professional Pocket PC
consulting source?
Any advice and suggestions would be appreciated!
Thanks for your time
Greg Tag: test Tag: 15980
DB Solution?
Hi all,
I have an application that requires a reasonably large DB on the Pocket
PC to be synchronised back to a PC on a regular basis. I need access on
the Pocket PC to be quick. I need synchronisation back to the PC to be
cheap (inexpensive) and accessible to a PC-based app.
I considered SQL Server CE but the sync'ing requires both IIS and SQL
Server... not cheap. I have an implementation that uses XML on the
Pocket PC... cheap and easy to merge into any other DB on the PC but
*brutally* slow to load on the Pocket PC (seconds for a 78K file!).
Is there a solution out there other than SQL Server CE? Or is there a
way to use SQL Server CE that doesn't require IIS and SQL Server on the PC?
Thanks in advance,
Rod O. Tag: test Tag: 15978
Creating Custom Component using a Native dll (c++)
Hi,
I am having extreme difficulty with creating components. I have
created a dll in Embedded c++ 4.0. I have created a wrapper for it
and am able to expose all the COM objects in managed code.
Although this is the problem I am having:
Trying to create a custom control to which I can drag and drop into my
form. I tried to create a run time and design time dll but was
unsuccessful. I have 3 books and nothing describes how to create
custom controls for native code.
Can someone help me?????
Thanks in advance. Tag: test Tag: 15973
sqlce concurrency issues
I am developing my first SqlCe application and have just run into a
concurrency problem. When I have two applications running on the same PDA
at the same time accessing the same local SqlCe database they encounter file
sharing errors.
Is this by design in SqlCe or is there some switch I am not setting.
The goal is to have a "background" process performing some sync operations
while the foreground application continues to function.
Thanks, Mike Tag: test Tag: 15203
PPC 2003 SDK and SP1 problems
Hi there,
I have a problem whenever I try to install the PPC 2003 SDK. When run, it
always gives me displays the error ...
" Internal Error 2229. ,InstallExecuteSequence, SELECT
'Action', NULL, 'Condition' FROM
'InstallExecuteSequence' WHERE 'Sequence' > 0
ORDER BY 'Sequence'"
I have checked with the MS website, but that only tells me to turn off virus
checkers etc. I have done this, and still cannot get it to install. I have
downloaded the same file 7 times now, and at 80Mb or so, it is a large
download !!! Any ideas (pppllllleeeeaaasseee..)?
Also, I have downloaded the Compact Framework .NET 1.0 SP1, and that just
complains that the installer package could not be opened.!?!?! Again, any
ideas.
I am using Win2K3Server, VS.NET2K3, .NET1.1, and (for now) PPC2002.
Thanks again for any help.
John Young Tag: test Tag: 15199
SetAttributeNode method only for root?
I want to add a atribute for a child node, but it isn't possible, only the
SetAttributeNode method is for the root? Does anybody know a solution to add
a attribute to a child or other node than root?
<notrootnode id="65">
Greetz
JJC Tag: test Tag: 15188
Resource Assembly Not Found?
This is a multi-part message in MIME format.
------=_NextPart_000_0078_01C3BE55.8C4A4100
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
My users are reporting a "Resource Assemby Not Found" error. I suspect =
that it may be occurring within my "try" block for the HttpWebRequest =
use portion of the code where I try to do a HTTP POST. I do not see =
this error on the emulator attached to the debugger nor on my device. =
It seems to happen on both PPC 2002 and 2003 devices. Once this error =
occurs, it seems to persist (that is subsequent attempts to POSt result =
in the same error). Doing a soft reset and trying again helped on one =
of the devices, but not on the other. Does this error have to do with =
the order of CAB installations?
Thanks...
Young.
------=_NextPart_000_0078_01C3BE55.8C4A4100
Content-Type: text/html;
charset="iso-8859-1"
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=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>My users are reporting a "Resource =
Assemby Not=20
Found" error. I suspect that it may be occurring within my "try" =
block for=20
the HttpWebRequest use portion of the code where I try to do a HTTP =
POST. =20
I do not see this error on the emulator attached to the debugger nor on =
my=20
device. It seems to happen on both PPC 2002 and 2003 =
devices. Once=20
this error occurs, it seems to persist (that is subsequent attempts to =
POSt=20
result in the same error). Doing a soft reset and trying again =
helped on=20
one of the devices, but not on the other. Does this error have to =
do with=20
the order of CAB installations?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Young.</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0078_01C3BE55.8C4A4100-- Tag: test Tag: 15186
Compact framework and symbol PPT 2800 scanner
I am developing an application using compact framework. This
application uses Symbol PPT 2800 and it is required to scan barcode
and update the Database using web services. I had posted a question
earlier and Alex suggested that I download .Net mobility kit from
Symbol's website (Alex, thank you!). I have downloaded and installed
'Windows CE .NET Utilities v1.1 for Visual Studio .NET 2003' but am
not sure how to use it.
When I open my application via Visual studio, I was hoping to see some
controls like 'Scan control' added to my CF toolbox. I am very new to
this. can somebody please help me with where can I get scanning
related controls\code? Tag: test Tag: 15179
ANN: Upcoming .NETCF and Smart Device Programming Chat
There will be an MVP hosted chat taking place this Thursday covering .NET
Compact Framework and Device development with Visual Studio .NET 2003. Full
details are as follows:-
Title: MVP chat: .NET Compact Framework and Smart Device Programming
Chat Date: December 11th
Time: 10:00- 11:00am Pacific Time (18:00 - 19:00 GMT)
Description: You know them from the newsgroups! You love them for their
immense knowledge! Please join these amazing Microsoft MVPs in this live
chat regarding the .NET Compact Framework and the Smart Device Programming
features of VS.NET. The .NET Compact Framework is a subset of the .NET
Framework designed to allow .NET developer to target smart devices. The
Smart Device Programming features of VS.NET allow embedded developers to
target devices running the .NETCF
Add to Calendar: -
http://msdn.microsoft.com/chats/outlook_reminders/embedded_Dec11.vcs
See http://msdn.microsoft.com/chats/ for other developer chats coming soon.
Peter
--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org Tag: test Tag: 15170
Emulator not installing as expected.
Previously I asked here if I where to have someone with
out the Development environment install the PocketPC SDK
on their machine, if the emulator would install. The
consensus on the group was, that yes it would install.
Well, unfortunately everything else (which he does not
need) installed fine, help, Readme and the SDK command
line shortcut. But not a trace of the emulator. When
installing he got a warning saying that eMbedded Visual
C++ was not installed and to click Ok to install the SDK
to develop application using Visual Studio .Net.
Everything else proceeded fine.
What do we need to do to get the emulator to
install !!!!???? Any ideas?
Thanks Tag: test Tag: 15161
Strange .Net CF GAC behaviour
Stan Adermann gave me, some months ago, the tips to
register resources dll into the GAC.
Unfortunately, I have a lot of troubles with the GAC
behaviour, I can't make figure out what the program
result will be.
My test program tries to load a simple string, this
string is stored in the standard neutral DLL, in an
english one and in a french one.
When I run the program, sometimes I get the default
(neutral) message, sometimes I have
a "MissingMethodException". Sometimes no resources dll
are recorded, sometimes only the english one is.
That's really unpredictable. I can provide my little test
program for interested people. My config is Dell Axim X5
with PPC2003 and .Net CF SP1.
Thanks for your help. Tag: test Tag: 15151
SqlCeDataAdapter and Fill(ds)
I am working on a .NET Compact Framework app using SqlCe and have run into a
problem using the Fill method of the SqlCeDataAdapter.
For some reason, the version of the framework I am running does not support
the fill method. The documentation in my Visual Studio .NET 2003 says the
method is there, but when I try to compile the application VS tells me there
is no such method.
Has anybody seen this before. Any clues as to how to fix it? Perhaps I am
missing a framework update I don't know about. My framework says it is v1.1
but when I look at the actual System.Data.SqlServerCe.dll it says it is
v1.0.5.0000
Thanks
Mike Tag: test Tag: 15145
Reflection - Getfield/Setvalue question ...
I likely just don't fully understand how reflection works, but what I want
to do is allow the user to manually enter in any field name (ie. BackColor,
ForeColor, Size, etc..) and a corresponding value, and then change the value
of that property at runtime.
Using 'hardcoded values', I'm trying:
Dim pi As System.Reflection.FieldInfo
Dim strFieldName as string = "BackColor"
Dim NewValue as Color = Color.Red
Dim x As Control = CType(MyControl, Control)
pi = x.GetType().getfield(strFieldName, Reflection.BindingFlags.NonPublic Or
Reflection.BindingFlags.GetField Or Reflection.BindingFlags.Instance)
pi.SetValue(Nothing, NewValue)
When I run this code I do not get an error on the pi = x.GetType line,
however pi always ends up being 'nothing'. When I try to run this in
imeediate mode I get a 'Parameter is incorrect' error.
Any suggestions?
Thanks in advance,
--Terry
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/28/2003 Tag: test Tag: 15143
Q: Reflection and Getproperty/Setvalue
I likely just don't fully understand how reflection works, but what I want
to do is allow the user to manually enter in any field name (ie. BackColor,
ForeColor, Size, etc..) and a corresponding value, and then change the value
of that property at runtime.
I'm trying:
Dim pi As System.Reflection.FieldInfo
Dim x As Control = CType(MyControl, Control)
pi = x.GetType().getfield(Param2, Reflection.BindingFlags.NonPublic Or
Reflection.BindingFlags.GetField Or Reflection.BindingFlags.Instance)
pi.SetValue(Nothing, NewValue)
When I run this code I do not get an error on the pi = x.GetType line,
however pi always ends up being 'nothing'. When I try to run this in
imeediate mode I get a 'Parameter is incorrect' error.
Any suggestions?
Thanks in advance,
--Terry
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 11/28/2003 Tag: test Tag: 15137
CF run problem
Hi all,
I made a freeware app that I put up on Handango. I've been talking to one
user who owns an Ipaq 5550 (WM2003) who says he has problems getting the app
to run. I've tested the app on both 2002 and 2003 emulators, and on my Ipaq
2215 (WM2003), all works with no problem. No other users have reported
problems. The error he sent me was:
"A managed InvalidCastException occurred at Application::Run+0xf
Could not find resource assembly
Application::Run+0xf
WolfClock::Main::0xa
OK to terminate"
Now, I'm trying to figure out how to best troubleshoot this. If any of you
guys have a 5550 let me know :) In the meantime, I've sent him the CAB file
for ARM device specifically (was using ezsetup to bundle them together) to
install on the PPC, in case that was the issue, but I haven't heard back yet
and am not confident that will change anything. The "Could not find
resource assembly" seems rather peculiar. I had him reinstall the .NET
framework SP1, but that didn't help. My app uses the XML and Drawing
libraries.
As a second question, is there a way to bundle the .NET framework with my
app, or at least verify the components I use are installed?
Thanks guys,
Brian Tag: test Tag: 15136
GetCurrentProcess
Hi All,
According to MSDN GetCurrentProcess() is supported in Win CE .NET, but I am
getting a MissingMethodException when I try to call it using Interop
services. Any other method to get the handle of the current process?
Thanks,
Bogdan Tag: test Tag: 15135
"Designed for Windows..." certification requirements ?
One of the items in the "Designed for Windows for Pocket
PC Handbook for Software Applications" is "Required: Help
Systems Integrated with System TOC". Maybe I'm looking
for the wrong things or in the wrong places, but does
anyone know of a place that I can find information on
what the recommended method is to achieve conformance
with this requirement from the .NET Compact Framework
(C#)? Everything I've found so far refers to either
the .NET Framework on the desktop (but not included in
the Compact Framework) or refers to the eMbedded Visual
Tools. Any help or pointers would be greatly
appreciated. Thanks-
-Dale
PS. - Sorry about reposting this question, I just thought
this subject line was more descriptive and might solicit
more response. Tag: test Tag: 15134
Invoke a PPC program from desktop
Dear all,
I wish to invoke a program that already resides on the pocket pc that is
docked upon docking. I already knew there's a event provided by the
communication library of opennetcf that can give me an event when the ppc is
docked. I wonder how can i call a ppc program to run from desktop, most
likely via activesync.
Regards
Chris Tag: test Tag: 15126
HELP: Some solution design questions and ActiveSync issue
Hi all,
Thanks for reading.
I am currently implementing a mobile solution for a client, the solution
required information to be downloaded from multiple data sources into the
pocket pc for offline viewing. The solution will allows user to perform
their duty on phone support off working hours.
At first, I am proposing on .NCF and SQL Server CE as a solution, but as the
client insists not to maintain any additional application on the pocket pc
(based on low usage, perhaps less than 20 such call a week off working
hour), we reached an agreement to implement it by using a reporting tool on
the server side. The solution decision also based on the requirements to
simply the technical architecture, leverage existing architecture, minimize
development efforts, and enable the "application" to be neutral on mobile
platform and devices, apart from maintenance issue.
The reporting tool able to generate html report files. The current design
is to have one record equivalent to a single html files since there are
quite a number of fields for a particular record (parent and child
included).
As an average, there are around 8000 records which means 8000 files to be
generated. Based on the new design, for the initial load at least, I need to
transfer 8000 records from the server to the pocket pc via ActiveSync
(Assuming that client don't want to use card reader either), for the
subsequent upload (daily), only modified html files (records) will be
downloaded to the pocket pc. I had wrote a small .NET app to perform the
folder and files compare and copy the new / modified files to a 3rd folder,
which will be used to download and overwritten file on pocket pc. Deleted
records will also be able to identified and empty content file will be
generated by the small .NET app to replace the file on the pocket pc. The
html files will be stored on the pocket pc's SD card. I recommend Resco
Explorer 2003 as the search capability (filename search). No upload from
pocket pc to server is required. Another possible solution is the reporting
tool just generated reports for records that have been modified, but well...
it's too complex or difficult as the data is from multiple data sources
(different system, and database platform as well) and spread across multiple
tables and there aren't any place to identify last modification date as a
whole in simple way.
I know this design sound very troublesome and lot of manual work ( i don't
like it either), but that is beyond my decision to make the call :( On top
of that, even with the design, lot of things can be simplified if there is a
card reader where i can directly compare the folder contains new generated
files with the folder on the SD card.
Well, well... let's assume i won't have a luxury of a card reader (though
it's very cheap on the market), I am currently doing some performance
testing on the file transfer (my client are not too concerns with the
download performance though, on top of that i managed to identify and copy
only the modified files over by using the small app i wrote...which is not
many files since is run daily).
*I need to answer 2 questions myself, 1) Any limitation on number of files
allowed in a single folder. 2) Any limitation on ActiveSync in term of
number of files allowed to transfer in a single session
here is some of my issues and discovery of the ActiveSync file transfer....
I am doing some testing to copy 10 thousands html files from computer to
pocket pc via activesync, but i found that it have the following issue - the
file transfer will fail after the file #999, complaining that there aren't
anymore free spaces on the SD card... which is not the case. The same error
message and problem if i unzip a zip files with 10 thousands html files into
a single folder on SD, the operation will fail exactly at the file #999. I
check my SD card format, it's FAT32. So, it didn't seems to be a limitation
of activesync file transfer but the pocket pc limitation.
To justify my recovery, I did another testing, this time i copy the files
into pocket pc memory instead of SD card. Well, to my suprise it success
without any problems at all. Apparently, no limitation on number of files a
folder can contains. So, I thought this must have something to do with my SD
card format
To add confusion and complexity to the issue, I did another testing by copy
the files over using a card reader, guess what? Not a problem as well, and
my pocket pc didn't have any problems accessing or searching files in the
folder.
It seems that i cannot get a definite answer to both of my *question, I am
totally confused, any ideas? please help as i need to find out if this is a
stopper to the whole design and identify alternative to it.
Thanks in advance.
Cheers,
Jeff Ong Tag: test Tag: 15107
Combobox data binding fires selectedIndexchange event 4 times
Hi,
does any one has any indea y binding a combobox with a
dataset fires its selected index change event 4 times? if
yes then how can i avoid it?
regards,Saima.
I am using the following code:
da.SelectCommand = cmd
da.Fill(ds, "VEHICLE_BRAND_TYPE")
Me.VehicleMakeTypecb.DataBindings.Clear()
Me.VehicleMakeTypecb.DataSource = ds.Tables
("VEHICLE_BRAND_TYPE")
Me.VehicleMakeTypecb.DisplayMember = "NAME" Tag: test Tag: 15104
Tip: How to show a gradient background in a ListView control
Check out my blog entry on how to do it:
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx/716aab0f-
03fc-4608-9ec5-a145d17e410b
Keep in mind that this code will work only on PPC2003 and
SmartPhone devices.
--
Alex Yakhnin, .NET CF MVP
http://www.intelliprog.com
http://www.opennetcf.org
blog: http://blog.opennetcf.org/ayakhnin Tag: test Tag: 15102
.NET CF App won't work on ARMV4i device
Hi Everyone
I used the guide by Steve and Mike
(http://msdn.microsoft.com/library/en-us/dnembedded/html/embedded04012003.asp).
to create a simple .NET CF Application for my ARM4i device (connected
through ethernet, not ActiveSync). I followed the guide step by step
and encountered no problems - til launching the application.
Everything worked out fine, VS .NET2003 could deploy the app to the
device, but the App just does not run. It does nothing, there is no
error there is no mouse pointer change, there is absolutely nothing
happening, when the application should start (see log below).
If I try to manually start the deployed application on the device by
double clicking the .exe file, absolutely nothing happens - no error,
nothing.
This is driving me insane.
Has anyone an Idea what the problem could be?
Thanks for any hints
-Michael
P.S. If I deploy the app on the Emulator it works.
LOG below:
------ Build started: Project: SmartDeviceApplication3, Configuration:
Debug Windows CE ------
Preparing resources...
Updating references...
Performing main compilation...
Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
Visual Studio is ready to deploy SmartDeviceApplication3
------ Deploy started: Project: SmartDeviceApplication3,
Configuration: Debug Windows CE ------
Deploying to Windows CE .NET Device using TCP Connect Transport
Connected to Windows CE .NET Device (Windows CE) running on ARMV4T.
Copying files from
'C:\WINCE420\VS2003\SmartDeviceApplication3\SmartDeviceApplication3\bin\Debug'
to '\Program Files\SmartDeviceApplication3'
Copying SmartDeviceApplication3.exe
Files in the package 'netcf.all.wce4.armv4t.cab' are more recent on
the device than on the development computer. Consider upgrading to the
latest version. Files affected are:
Microsoft.windowsce.forms.dll
Microsoft.visualbasic.dll
System.data.dll
System.net.irda.dll
System.xml.dll
System.windows.forms.datagrid.dll
System.windows.forms.dll
System.web.services.dll
System.drawing.dll
System.dll
Mscorlib.dll
Netcfagl1_0.dll
Cgacutil.exe
Mscoree1_0.dll
Mscoree.dll
Copying System_SR_enu.cab
Launching device installation of 'System_SR_enu.cab'. Please check
device screen for further instructions.........
---------------------- Done ----------------------
Build: 1 succeeded, 0 failed, 0 skipped
Deploy: 1 succeeded, 0 failed, 0 skipped
Launching Application
<no more output> Tag: test Tag: 15099
Desktop Viewer for .NETCF Apps
I was at a presentation some time back and the speaker had a piece of
software that allowed for the application being run on a physical
pocketpc device to be fed into a viewer on the desktop for display to
an audience.
This was not the Emulator.
The app was running on a physical device.
Has anybody come across this and where could I get a copy of same ? Tag: test Tag: 15098
BUG: Microsoft.VisualBasic.Conversion.Val(string)
Hi
This is reproducible on our own 4.2 based device as well as in the
emulator.. with SP1 or the current SP2 beta... Haven't tried on a PocketPC
maybe someone else can please(?)
When the locale is set to something like French (where decimal separators
are commas and not dots) calling Val("23.45") throws a
System.FormatException... Note that the same function call on the desktop
works as expected and as documented (i.e. The Val function recognizes only
the period (.) as a valid decimal separator)
Interestingly passing "23,45" to it returns 23,00... which is correct (Val
stops converting at the first character that cannot be interpreted as a
numeric digit, numeric modifier, numeric punctuation, or white space.)
I had a quick look with Anakrino on the desktop and cf implementations of
Microsoft.VisualBasic.Conversion.Val(string) and they seem identical except
they both call HexOrOctValue which have slight differences... Any ideas?
In the meantime since C# does not have an equivalent maybe someone has
written a handy function I could use until it gets fixed...(?)
Cheers
Daniel
PS In case the repro line of code was not clear just execute the
following when the locale is set to French...
MessageBox.Show(Microsoft.VisualBasic.Conversion.Val("34.3").ToString()) Tag: test Tag: 15096
Null Date in DateTimePicker Control?
Is it possible to specify a null date in the DateTimePicker control
written by Ralph Arvesen from smartdevices.microsoftdev.com site?
This is needed in the case where a date has not yet been specified
(e.g. in a database) and you want to indicate and maintain that state.
If this is not possible, is there a similar control that will allow
this functionality?
Thanks...
--Bruce Tag: test Tag: 15092
How to transfer image files from Desktop to Pocket PC?
Hi everyone,
I was just wondering if anyone know how to transfer image file from Desktop
to Pocket PC to be integrated into my program.. (i.e. not the normal File
Sync using ActiveSync) but dynamically.. So whenever the user load up the
application, the application should load the files from the desktop if
connected.
Thanks in advance and hope to hear from you asap.. it's urgent...
Best regards,
Kam Tag: test Tag: 15091
Rugged Device and the Compact Framework
Hey all,
I need some advice. I have been given the task of writing
a database application for a mobile handheld PC. The unit
must have a QWERTY keyboard and support the .NET
framework. The unit described above failed this test.
The OS on the Fex21 is Handheld PC 2000.
I assumed that I could write an application in Visual
Studio .NET 2003 and deploy it to the Windows CE device,
and everything would work fine. Now I read that the
device must have Pocket PC 2000 or 2002 ( or CE.NET ) in
order to work properly.
My question is: Is there any (1) Half-VGA, (2) QWERTY
keyboard, (3) Pocket PC 2000/2002/CE.NET devices currently
on sale? Or will I have to go back to eMbedded Visual
Basic? Was my investment in VS.NET 2003 a waste of money?
Regards
Ross... Tag: test Tag: 15089
save DataSet to XML
Perhaps a rather easy question for most of you but I'm stuck on it.
1) I've been trying for the past couple of days to save my dataset to
an XML file. I used to be able to save it without problem by using the
following method :
CustomersDS.WriteXml("deliveredCustomers.xml",
XmlWriteMode.WriteSchema);
now I get the following error : "System.Data.DataSet.WriteXml(string,
System.Data.XmlWriteMode)' is inaccessible due to its protection
level" - what does that mean? My dataset is initialised as private, I
changed it to public but still get the same problem.
2) I've also been trying to save directly to an XML file without going
through a DataSet (should save time!) by using the streamwriter and
the innerXml method. I've created a rather simple form with a couple
of textboxes that I want to save to XML when I click on a button.
This is what the code looks like :
private void buildXmlDoc() {
XmlDocument xmlDoc = new XmlDocument();
XmlNode deliveredCustomersNode;
XmlNode nameNode;
XmlNode emailNode;
xmlDoc.Load("customersDelivered.xml");
deliveredCustomersNode = xmlDoc.CreateElement("delivered");
xmlDoc.DocumentElement.AppendChild(deliveredCustomersNode);
nameNode = xmlDoc.CreateElement("Name");
nameNode.InnerText = listBox1.SelectedValue.ToString();
deliveredCustomersNode.AppendChild(nameNode);
emailNode = xmlDoc.CreateElement("Email");
emailNode.InnerText = textBoxEmail.Text;
deliveredCustomersNode.AppendChild(emailNode);
//create a FileStream obj so we can save the XML file
FileStream strmSaveToFile = new FileStream("customersDelivered.xml",
FileMode.OpenOrCreate,FileAccess.Write);
//instantiating a DataWriter obj so we can write the XML file
to disk
StreamWriter wrDataWriter = new StreamWriter(strmSaveToFile);
wrDataWriter.Write(xmlDoc.InnerXml);
wrDataWriter.Close();
MessageBox.Show("XML file saved!");
textBoxAddress.DataBindings.Clear();
textBoxPhone.DataBindings.Clear();
textBoxEmail.DataBindings.Clear();
textBoxCountry.DataBindings.Clear();
textBoxAddress.Text="";
textBoxPhone.Text="";
textBoxEmail.Text="";
textBoxCountry.Text="";
listBox1.SelectedIndex=0;
DataSet _CustomersDS = new DataSet("Customers");
_CustomersDS.ReadXml("customersDelivered.xml");
bindControls();
}
This method however doesn't seem to work.
Does the deliveredCustomers.xml file need to exist before I can use
this method ?
Is there any way I can add/append data to the end of the xml file ?
Thanks a lot !
jez Tag: test Tag: 15085
Two SqlCeRemoteDataAccess PUSH operations in a transaction?
Hi,
I need to run several SqlCeRemoteDataAccess push (or pull) operations in a
transaction... is this possible and how?
p.s.
Two tables are being pulled from a SQL Server using
SqlCeRemoteDataAccess.Pull method, .. tables (data) are being updated on a
PocketPC ... both need to be transferred back to the SQL Server, but if
either of those two Push-es fails, the second one should be "aborted".
Zarko Tag: test Tag: 15081
Form scroll
hi,
two question:
1) is it possible Scroll a form? or use a scrollable control?
2) when input panel apperas how to resize the form, input panel cover the
control in the form!
thanks. Tag: test Tag: 15080
How to get current time in C#?
I need to get current system DATE and TIME in C#. How can I do it? I can't
find it in Visual Studio Documentation.
Tom Tag: test Tag: 15078
Extending the datagrid
Does anyone know of any good articles on extending the
datagrid control in the CF?
I need to change cell background colours when data is
updated in cells.
Thanks
Iain Tag: test Tag: 15076
IsConnected? How to check (device to PC)
Hi, a simple question I suppose (hope so)...
What's the easiest way to check if a device is connected to a PC (over
ActiveSync) .. are there any events I can handle?
p.s.
What I want to do is to have a way of knowing whether my PocketPC
application is being executed in connected or disconnected (connected means
"in a cradle over a serial cable") state..
Zarko Tag: test Tag: 15075
obex in compact framework
How to use obex bluetooth file transfer in the compact framework?
I know that there are some APIs to P/Invoke, but anyone has already tried
that?
any help appreciated,
Matteo Cima. Tag: test Tag: 15069
Time control ?
Hello,
I found the datePicker control for the compact framework
but it does not allow user to set hours & minutes.
Where can i find a component to allow that ?
Thanks,
John Tag: test Tag: 15067
Can't debug
Hi All,
I was wondering if anyone has any suggestions of how to fix my debugging
problem.
Up until a couple of days ago, I've always been able to debug a program and
stop on any line I choose. But since delivering the program to the client,
I've now come back to make some changes and no matter what I do, I can't get
the IDE to go into debugging mode.
I've changed both exe's of the two projects in the solution from release to
debug, but neither enter will enter debug mode. The best I get is deploying
the app, launching the app, the hour glass appears on the device, but then
nothing the app doesn't run and consequently I never reach the breakpoint.
This happens with both projects.
I'm sure I've done something dumb, but just can't figure it out. If I just
run the apps, they both run fine - its just appears to be debugger.
Graham Tag: test Tag: 15066
Adding 2 icons in setup
Hi All,
How can I associate 2 icons (32x32 and 16x16) with the application? If I
associate 16x16 icon with the application and install the application using
setup, then it displays properly on start menu, but in programs folder 16x16
icon looks odd. If I associate 32x32 then it displays it properly in program
folder but displays only 1/4th icon in start menu.
Does someone know how to solve this problem?
Thanks in advance.
Pankaj Tag: test Tag: 15059
Databases and SQL
I am writing a basic useful little program for myself. It will use a db
that is stored on the ppc. If I create a database using access, how do i
transfer that to the ppc emulator and make sure it stays there (I don't have
a real ppc at the moment!)?
Also, when accessing the db from the ppc program, do I need to use the
System.Data.SqlClient namespace?
Any information is gratefully accepted. Also any links or tutorials (basic)
using database access on ppc would also be great.
Thanks in advance for any help given.
John Young Tag: test Tag: 15047