Readonly property causes exception!!!

G

Guest

Hi All,

i have a wiered problem..
i am developing an application using .net compactframework on an imate
pocketpc.
the problem is whenever i set a textbox's readonly property i get
"System.Exception" error ????

otherwise the application is running fine.

any one seen this before???
 
P

Peter Foot [MVP]

Is there a message with the Exception? under what context are you setting
the property - can you post a code snippet to reproduce it.
Also are you running the latest service pack on your device (.NETCF SP3)?

Peter
 
G

Guest

Thanks Peter for your reply,

i just wanna say that you've been very helpfull for the application i am
currently doing, i use the inthehand component which was really helpfull, and
many other replies in this group..:)

getting to the problem:
1-i checked the .net version installed on the imate it's SP1
2-the application is already distributed and running on IMATE JAM devices
(pocketpc 2003 SE), but only on this old imate (pocketpc 2003) the problem
exist "although both have same CF installed"
3-the error i get on the device is :
"Exception application run+0xf mainfrm+0xd"
4-the error i get while debugging is:
"An unhandled exception of type 'System.Exception' occurred in
System.Windows.Forms.dll
Additional information: Exception"

the error is in the line where the following code is written:
Me.txtName.ReadOnly = True //in the initialize component subroutine

that's it ..

NOTE :when i remove this line the application is running JUST FINE !!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top