all groups > dotnet compact framework > may 2007 > threads for may 22 - 28, 2007
Filter by week: 1 2 3 4 5
Invalid cast exception when adding values from SQL CE SERVER table to a lsitview - Why?
Posted by Loogie at 5/28/2007 10:12:17 PM
I am trying to add values to a listview but it keeps throwing an error
saying
System.InvalidCastException was unhandled
Message="InvalidCastException"
I am using VB.Net 2005 compact framework
Here is my code and I put a message beside where the error is thrown
Dim cmd As New System... more >>
SQL Server Mobile Edition does not support calls to HasRows property if the underlying cursor is not scrollable."
Posted by Loogie at 5/28/2007 8:31:01 PM
I am trying to write some code to see if a table of a certain name does
not exist then it is to be created. However I am getting the following
error message:
system.InvalidOperationException was unhandled
Message="SQL Server Mobile Edition does not support calls to HasRows
property if... more >>
What does the 0 represent in .SelectedIndices(0)?
Posted by Loogie at 5/28/2007 6:29:45 PM
What does the 0 represent in SelectedIndices(0)with respect to a
listview in VB.net 2005 Compact Framework?
Thanks
:L... more >>
Please help me fix my code to check for existence of table
Posted by Loogie at 5/28/2007 12:16:40 PM
I am using vb.net 2005 compact framework. Having a problem checking to
see if a table exists. I want to create the table if it does not exist.
If it does then no action.
In my code below the word exists throws an error as it is not a member
of System.Data.SQLServerCe.SQLCeCommand...
So h... more >>
Capturing the Back Key
Posted by Hilton at 5/28/2007 11:31:50 AM
Hi,
ListView lv;
Neither this.lv.KeyDown or this.lv.KeyPress see the Back key. How do I get
my code to 'see' it? FYI: KeyDown does see the Up and Down arrow keys.
Thanks,
Hilton
... more >>
What is up with - The Targeted Version of the .net Compact Framework does not support latebound overload resolution
Posted by Loogie at 5/28/2007 7:42:11 AM
I am trying to add contents of a table to a listview. I am using VB.Net
2005 compact framework. I can not add the subitems using code below. I
get an error for each subitem as follows:
The targeted version of the .net Compact Framework does not support
latebound overload resolution
Dim c... more >>
I can't connect a pocket pc emulator with a windows service
Posted by Cristobal at 5/27/2007 11:46:01 PM
Hi gays!!
I've a problem, i'm trying to connect a simple web service to a pocket pc
emulator. When i try to run my application i get the "Connetion failed
exception". I've installed the activesync. My lan have a proxy for internet
connections. Please i need help!!! (i'm using vs2005)
Thank... more >>
How to implement a copy protection?
Posted by flik at 5/27/2007 12:00:00 AM
Hey,
I think about a way to implement a copy protection for my app.
The user is only allowed to install the app on 10 different devices....
I already read that the deviceID (-> GetDeviceID) is not really unique
because two devices of one manufacturer might have the same ID...
So is the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Error 120 calling MessageBeep?
Posted by Craig Setera at 5/25/2007 4:10:29 PM
I'm trying to call the MessageBeep function via P/Invoke from CF 1.0.
I'm getting back a 120 (decimal) error from GetLastError when making the
call and the FormatMessage call isn't giving me any more information.
Does anyone know what that error message means? This is on top of the
Smartpho... more >>
Drawing Rounded Rectangles?
Posted by Craig Setera at 5/25/2007 7:11:05 AM
What is the easiest way to draw rectangles with rounded corners in NetCF
1.0? It seems like the region support is minimal and doing rounded
rectangles appears to be difficult.
Thanks,
Craig... more >>
CAB for PPC2003 with VB2005
Posted by stranigiorni at 5/25/2007 12:10:47 AM
sorry, i don't know if this topic has already been discussed (i
couldn't find anything about) so... is it possible to create a CAB
file for PPC2003 with VB2005? i developed a project in vb2005 telling
it's for ppc2003 and the app run... but the cab i create gives me an
error on installation "is ... more >>
Getting real resolution in CF1
Posted by James Caan at 5/24/2007 6:23:42 PM
Hello
Is there any way to get the real resolution of a device in CF1? I mean if I
run an app on a VGA-Device, I still can only get 320x240.
The only thing I want is to know the resolution. I know there is a way to
mark it as resolution aware, is there a way without it?
Thanks
James
... more >>
How to detect System Time Change in CompactFramework?
Posted by José Joye at 5/24/2007 3:41:32 PM
In my application (written for Compact Framework 2.0 ), I have to be
informed whenever a system Time change occurs (NTP, daylight saving, ...).
Under the normal framework, I'm able to use the
"Microsoft.Win32.SystemEvents.TimeChanged" event. However, this is not
available under CF.
Any hel... more >>
Opennetcf DeleteSubKey "bug"?
Posted by James Caan at 5/24/2007 2:29:38 AM
Hello
I have problem deleting a subkey which I've create some seconds before:
Dim x As OpenNETCF.Win32.RegistryKey
x = OpenNETCF.Win32.Registry.LocalMachine.OpenSubKey("Software")
x.CreateSubKey("Test")
System.Threading.Thread.Sleep(10000)
x.DeleteSu... more >>
Running a single instance of an app
Posted by VicToro at 5/24/2007 2:28:53 AM
Hi,
I am running a background process (Console App) on a WM5 Pocket PC.
I'd like to have just one instance of the process running at the same
time. Something as giving the main method the property to be Static
Thread or looking if the Process is unique.
Since STAThread directive is not used... more >>
ADO.NET - Working with DataSet
Posted by Sheikko at 5/24/2007 12:41:54 AM
ADO.NET - Working with DataSet
=========================
HI, I want to create an application that interact with a DB. I wont to
use SQL statement, but I want to use DataSet.
- I have created my application
- From SERVER EXPLORER panel, I have added a connection to a database
(MyDB) and the ... more >>
screen alignment problems (possibly software related) ??
Posted by Milsnips at 5/23/2007 12:49:35 PM
hi there,
i've got a number of iMate JAMin devices all which are factory ROM
installations that i use my application for.
I've noticed some strange things regarding the screen alignment going off
when the device goes to sleep, then i turn it on again, at times the right
side of the device ... more >>
Disabling Incoming call Phone notification
Posted by Murthy at 5/23/2007 7:50:02 AM
Hi,
I want to disable the Incoming Phone Call notification that comes at the
bottom of an windows mobile 5.0 device.
Can some one tell me how i can disable that notification?
Thanks in Advance,
Murthy... more >>
Re: Controls Focus
Posted by ariadna.sirianni NO[at]SPAM gmail.com at 5/23/2007 7:45:31 AM
Hi Peter.
Thanks for your answer!
I'm alredy doing what you say. But I have problems with the controls
that are inside of other controls. For example, textboxs inside a
panel or the cells inside a grid. To resolve that cases we thought
about making a recursive function, but we don't want to d... more >>
Installing .Net compact on Windows CE 5.0 device
Posted by Michael5902 at 5/23/2007 6:18:02 AM
Hello
I need to install microsoft dotNet compact on an HMI panel that runs windows
CE 5.0. The panle doesn't support Active sync.
Thanks for your help
michael
... more >>
In C# Windows ce 6.0 How do I get my application to not be movable
Posted by Don at 5/23/2007 6:17:02 AM
Hi,
I have a windows application in C# running on Windows CE 6.0. I don't want
my application to be movable, resizeable or minimized. I just want it to be
static on the screen. How do I do it?
--
Don... more >>
Controls Focus
Posted by ariadna.sirianni NO[at]SPAM gmail.com at 5/23/2007 5:35:04 AM
Hi.
I'm developing in C# for PPC devices.
I found some code that works for WindowsForms. The code is the
followin:
DllImport("coredll.dll, EntryPoint=3D"GetFocus")]
private extern static IntPtr GetFocus();
=B7=B7=B7
control.Focus();
IntPtr handle =3D GetFocus();
[C#]
public class MyF... more >>
Fasr retreival of data from .sdf file using SQL CE
Posted by anujithsankar NO[at]SPAM gmail.com at 5/22/2007 11:10:12 PM
Hi,
I am trying to develope a Pocket PC application using MS Visual
Studio 2005 (C#)and the database is in the device (.sdf file).
Am trying to retreive a single row from a table containing around
10000 rows. I would like to know the fastest method to retreive the
values.
whether it is... more >>
TimeZone conversion and utils on PPC
Posted by PB at 5/22/2007 8:52:01 AM
Hi
We use PInvoke on "Kernel32.dll" to do some TimeZone conversion, Daylight
savings helpers, etc on our desktop applications.
I found out that there are no equivalent functions for these on PPC in
"CoreDll.dll". Is there any implementation of any of the following functions
on PPC?
- Syst... more >>
Datagrid Header Font Style not bold?
Posted by Jo at 5/22/2007 6:16:11 AM
Hi:
I m tryng to change the font style of a datagrid header so it is NOT
bold .
Any ideas?
Thanks
jo
... more >>
Split function behaviour...
Posted by Mobileboy36 at 5/22/2007 12:00:00 AM
Hi group,
Look at this little piece of code:
Dim test As String
Dim Sepken As Char() = {Chr(13), Chr(10)}
Dim message As String = "123" & vbCrLf & "456"
Dim En As IEnumerator
En = message.Split(Sepken).GetEnumerator
While En.MoveNext
... more >>
|