RDA Push fail
I have a table which has only one primary key in SQL Server.
I am inserting records in this table, and can see the records inserted in
SQL CE Query Analyzer.
I am getting errors when I try to push this table (duplicate primary keys).
rda.Pull("Actions", sqlCmd, Me.strRemoteConnString,
RdaTrackOption.TrackingOn, "ActionsErrors")
The first push works (no inserts, just updates), but the second one doesn't:
rda.Push("Batches", Me.strRemoteConnString)
rda.Push("Actions", Me.strRemoteConnString)
What I am doing wrong?
Thanks for your help. Tag: UniqueConstraint Tag: 8778
Repeated References in Project File
I'm looking at one of my project files (.csdproj)... anyway, for the custom
control I created, there are many identical reference entries for it:
<VisualStudioProject>
<ECSHARP
ProjectType = "Local"
ProductVersion = "7.10.3077"
SchemaVersion = "1.0"
ProjectGuid = ...
>
<Build>
...
<References>
...
<Reference
Platform = "Pocket PC-Designer"
Name = "design.company.app.controls"
AssemblyName = "Design.Company.App.Controls"
/>
...
</References>
</Build>
...
</ECSHARP>
</VisualStudioProject>
Any ideas?
--
Chris Theorin
http://slurptheo.com Tag: UniqueConstraint Tag: 8771
MAC Address of wireless card
Hello,
I have a dell truemobile 1180 card.
The MAC Address of my wireless card has worn off the back of it. I have no
way to tell what it is now. Can i make a program to read the address of the
card? Or is there already a program out there that will read the mac
address? If so please send me links or post them,
Thanks,
-Tim Tag: UniqueConstraint Tag: 8764
Allowing a multi-threaded app to be stopped
I have an app that starts a second thread. This background thread runs while
the app is running. The thread loops, sleeping for a half second while
"isRunning" is true on the main form. Now, if the user goes to the running
programs list and kills my app, it disappears from the running program list,
but it is still running. If I manually set "isRunning" to false in debug
mode, then the app shuts down. Is there an event that occurs when an app is
stopped from the running programs list that I can use to set isRunning to
false. I have tried closed, closing, dispose, but none of these events occur
until the thread is stops.
Thanks, I am still new to threading.
Dave Tag: UniqueConstraint Tag: 8761
Lauching PIE
Is it possible to launch pocket internet explorer with a pre-defined URL
from within an application. Say for a help file? If it is how so?
Thanks, Tag: UniqueConstraint Tag: 8759
OpenNetCF.org has released v1.5 of the OpenNETCF.Desktop.Communication
OpenNetCF.org has released v1.4 of the OpenNETCF.Desktop.Communication
Library.
The Desktop.Communication Library contains classes used for communicating
with a CE device from a PC such as Microsoft's Remote API (RAPI).
Among the changes are the addition of the following methods:
DeviceFileExists, GetDeviceSystemInfo, GetDeviceSystemPowerStatus,
GetDeviceStoreInfo, GetDeviceSystemFolderPath, GetDeviceVersion,
GetDeviceMemoryStatus, GetDeviceCapabilities
Get the source and binaries here:
http://www.opennetcf.org/communication.asp
A sample is available here:
http://www.opennetcf.org/samples.asp
All OpenNETCF.org libraries are covered by the OpenNETCF Shared Source
License. For more
information visit:
http://www.opennetcf.org/License.asp
--
Chris Tacke, eMVP
Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net Tag: UniqueConstraint Tag: 8753
custominstaller without .net framework on PC ?
Our PPC app looks good. The install works.
My management understands the need to install CF on the PPC, but doesn't
like needing to do the larger full .NET download to a customers' PC just so
the installer extension works.
So - Is there an example of creating a custom installer dll (like the C#
example), in C++ so I won't need full .NET framework on the customers' PC?
Thanks,
Jim Mead Tag: UniqueConstraint Tag: 8741
P/Invoke array in struct
My C isn't what it should be, so can anyone translate the following C code
to .NET CF? Many thanks in advance!
struct DefinitionParms {
void * phAdapterParms;
int destParmLen;
};
DefinitionParms defParams;
int first = 1;
int second = 2;
int address[2] = { first, second };
defParams.phAdapterParms = address;
defParams.destParmLen = 2; Tag: UniqueConstraint Tag: 8721
UML TOOL
hi all
i am searching an UML Tool for CF .Net.
The UML Tool i'm looking for should be able to extract the
UML Scheme from source code, thats all.
Does anybody have a link?
thaankx
Clee Tag: UniqueConstraint Tag: 8719
Main forms, ShowDialog and MessageBox
Hi all
Have scoured the groups, but can't find a match on my problem, so I've
finally decided to post.
I have an app thats start-up object is 'frmMain'. From that form other
forms are called via 'ShowDialog', as the application represents sections on
a questionaire. All this works OK. Trouble starts when using 'MessageBox'
to display messages to the user regarding invalid entries etc - when the OK
on the message box is tapped, the new form gets killed off too. Is this my
error, or a bug? Have also tried using application .run to fire the
sub-sections (though I feel this is not best) but this has other isses with
execptions getting raised due to incorrect parameters.
Any info would be apprieciated. Tag: UniqueConstraint Tag: 8718
DLL File location
I am trying to write a Dll in EVC++ to use it in my
CF.NET application. Where (Directory or File) do I save
the Dll at so I can call it from my application.
Thanks! Tag: UniqueConstraint Tag: 8715
Unbound Grid Input
I would like to create an application which gives the user a "grid"
like interface for input, but is not connected to a database. (The
user would be entering a series of x,y like paired entries.)
I would probably want to save the input to an array for further
processing.
Is there a way to do this with the datagrid, or is there another
control that would give this capability? A pointer to any examples of
using an unbound grid would also be GREATLY appreciated.
Thanks
Dave Tag: UniqueConstraint Tag: 8714
migrate eVB to .NET
Hi, everybody.
I need to migrate an application from Visual Basic Embedded to .NET (Compact
Framework).
There is any tools to help that work?
I think that the solution is begin the application again, but if i can use
any form, that could be a help for me.
Thanks a lot. Tag: UniqueConstraint Tag: 8713
Main Form hidden after Password form OK
Hi all,
Although my problem is similar to a few previous posts on this list, none of
the answers seemed to work for me.
I have a Main Form which the Application.Run() starts up as the entry point.
During the constructor part of the main form, I make a call to a method that
displays a set of 3 registration screens. When the various details are
entered by the user and are all verified as OK, my code then completes the
constructor of the main form.
What happens is this: Instead of the main form displaying, the File Explorer
screen displays, the place where the app was started. I found that I needed
to click on the app icon again to get the main form to display. This is not
what I want to happen.
I have tried to move the registration checking to either side of the
InitializeComponent() in the main form's constructor but still the same
result. I have also moved my registration code to be called after the first
control gets focus, but still I cannot get the main form to display its
controls after the details entered are validated.
Any ideas anyone?
Regards,
Neville Lang Tag: UniqueConstraint Tag: 8712
how to make a shortcut
hello,
how I can make a shortcut for button in .net smart device
application (or key accelerator)?
Ignatov Tag: UniqueConstraint Tag: 8707
RAS and VB .CF
I need RAS API to establish a gprs connection,
but I dont know c++.
Someone has or knows where I can find the structures and
messages of the functions RAS for vb?
thanks in advance
(excuse my english)
ACP Tag: UniqueConstraint Tag: 8706
Show OK button instead of X in a form
Hi,
I need to show the OK button instead of the X, so the app will be closed
when it is clicked.
How can this be done?
Thanks in advance,
--
Ibai Peña
Movetek Integración Móvil Tag: UniqueConstraint Tag: 8703
calculate storage memory of PPC programatically
Hi frnd,
Can you please suggest a way to calculate the Storage
memory of Pocket PC programatically ?
Any tip(s) or suggestion(s) would of great help.
Thanx Tag: UniqueConstraint Tag: 8702
Bugs in Tree View
1. Create a node in tree view
2. Create context menu, which calls myTreeView.Nodes.Clear()
3. execute
if (myTreeView.SelectedNode != null)
myTreeView.SelectedNode.Nodes.Add( new TreeNode("blah");
Two problems:
1. the if is successful even though there are no nodes in the tree !
2. Nodes.Add does not throw, but doesn't add a node either
Microsoft, Please fix asap.
Kind Regards,
Pawel
www.24x7.com.au Tag: UniqueConstraint Tag: 8700
establishing a Dial-up\Ras\GPRS connection
Hello All,
I was wondering if anyone had come up with any useful articles for help
with establishing a Dial-up\Ras\GPRS connection, using the Compact Framework
and c#.
I have had a look at "p-invoke", and the wininet control, but I still can't
seem to get the API calls to function correctly within my application.
Any help would be appreciated.
Thanks,
Luke Tag: UniqueConstraint Tag: 8696
CF datagrid sorting problem
Hello,
I have a datagrid which displays some stock data (stock count, material,
description,...) to the user.
The user can select a row and alter the stock count value by means of a
up-down control above the grid.
The user can also sort the grid by clicking on one of the header row
columns. This sorting is done with a dataview and the .sort() method.
The problem is when a user sorts the grid by the stock count value and then
changes the stock count value, the selected row can switch places in the
grid.
The dataview seems to automatically resort the data when altering it,
according to the .sort() parameter, and not only when the .sort() method is
called.
Is there a way to prevent the dataview or datagrid to automatically
rearrange the rows when altering the value of the column it is sorted on? I
want the row to stay in place and only sort the grid by clicking on the
header row columns.
Thanks for any replies!
Tom Pauwels Tag: UniqueConstraint Tag: 8693
PictureBox & CreateGraphics problem
I don't know if anyone has posted the same or similar
question, I apologise if this is the case.
I am trying to develop an application for the PPC using
VS.NET 2003. My problem is that I need to capture a
signature. What I have attempted to do is use the
CreateGraphics method of a PictureBox but this throws a
NotSupportedException. This works in a standard Windows
forms.
Does anyone have any ideas?
Thanks in advance.
Chris. Tag: UniqueConstraint Tag: 8690
Query, raining the SIP on a form, C#
Hi all,
I thought I had the SIP under control but now I get an exception whenever I
try to either raise it programmatically or set the Enabled property to True.
All I have done is to drop an Input Panel (named MySIP) onto my form in the
Designer then in the constructor of the form have "this.MySIP.Enabled =
true;". When this is run in the debugger, it throws the following
exception:
A managed Exception occurred at
MISC::HandleAr+0x5b
MISC::HandleAr+0x5b
InputPanel::set_Enabled+0x12
MyForm::InitializeComponent+0x3
e8
MyForm::.ctor+0xc
...
...
...
...
Does anyone know what might be causing this exception?
Regards,
Neville Lang Tag: UniqueConstraint Tag: 8687
Dns, IP & WebRequest ?
On pocket pc I am able to access remote computer through their IP or name
with a WebRequest with something like
WebRequest.Create("http://"+myhostIP+"/blablabla);
however when I try to get an IP endpoint to myhostIP with
Dns.GetHostByAddress(myhostIP);
I get a socket exception : temprorary error during hostname resolution ....
mmhh..
what could I do ? Tag: UniqueConstraint Tag: 8685
IDbConnection
what's the difference between SqlCeConnection & SqlConnection ??
Both seems to be available on the pocket, I'm puzzled ... Tag: UniqueConstraint Tag: 8683
ComboBox - SelectedIndexChanged Event Bug
Hi,
I have noticed that SelectedIndexChanged event is fired twice if the
ComboBox is filled up by specifying datasource. Otherwise if you fill it up
using Items.Add this does not happen. Is this a known bug? Is there a work
around? I am using VS.NET 2003(RTM).
Thanks
Neelima Tag: UniqueConstraint Tag: 8673
Listview and data bindings
I would like to create a listview control and data bind to a table (VB
code). I cannot seem to get the code correct to load the listview
control (new to .net CF programming). With the items and subitems, I
am a little confused on how to do this. Can someone provide code
examples? Thanks in advanced. Tag: UniqueConstraint Tag: 8664
Icons apear with black bacground instead of transparent
Icons used in image list in tree and list boxes appear with black
backgrounds. This happens for application icons also. The icons work on some
Pocket PCs. They are standard 16x16, 16-colour icons. Editor used: VC 3003,
but some were unmodified Windows icons.
Does anyone else found this problem and possibly a fix?
Pawel
www.24x7.com.au Tag: UniqueConstraint Tag: 8656
Bug: Can not create Context Menu Separator
Dear Microsoft,
Runtime crashes in the generated code at line
MenuItem1.Tex t= "-";
Please fix.
Kind Regards,
Pawel Achtel
www.24x7.com.au Tag: UniqueConstraint Tag: 8655