setting IrDA Attributes
Hello,
How do I set up attributes for an IrDA device. I am trying to use
IrDA:IrCOMM as 9 Wire cooked.
I am using the following code:
private void Send_Click(object sender, System.EventArgs e)
{
try
{
irEndP = new IrDAEndPoint(irDevices[DeviceID].DeviceID,
"IrDA:IrCOMM");
irClient = new IrDAClient( irEndP );
}
catch( SocketException exS )
{
MessageBox.Show( "Create socket error: " + exS.Message );
return;
}
// Get the underlying stream of the client.
Stream irStream = irClient.GetStream();
irStream.Write( stringToByteArray(textBox1.Text), 0, textBox1.Text.Length );
// Display the number of bytes being sent.
statusBar1.Text = "Sending " + textBox1.Text.Length + " bytes";
irStream.Flush();
irStream.Close();
irClient.Close();
}
where irDevices[DeviceID].DeviceID is a previously discovered IrDA device
Thanks
Steve Tag: Anyone reccommend a zip compression library? Tag: 38492
MissingMethodException
Hi, I'm trying to call from C# a DLL function developed with eVC 3.0 and I
get the error MissingMethod Exception when I try to call the function.
I read all previous messages about this matter but I'm not able to solve the
problem.
I can say:
- the DLL is loaded because I put a message on DLLMain and I can see this
message; so the DLL is copied in the emulator and it is loaded.
- I've use "C" in the declaration of the DLL but with dependency walker I
don't see exactly the name of exported function but I see _Sierra@0 (the name
of the function is Sierra). I don't know if this is right or not.
Hoping in an answer...
Keven Corazza Tag: Anyone reccommend a zip compression library? Tag: 38486
DNS.Resolve
I have been using:
System.Net.Dns.Resolve("laptop1")
To check if I am connected to a network. If it is connected it returns an
ipHostInfo object, if not it raises an error. It works fine at first, but
if I later disconnect the network from the device and run that line of code
again it respond as if it were still connected. Even with no network it
returns information about the address as long as it was previously resolved.
Somewhere it is storing the ipHostInfo information, and using it even if the
device is not connected to a network, it appears as if this information is
stored on the handheld somewhere. Does anybody know how to clear this info,
so it checks the network every time for that address rather then pulling it
out of memory.
Thanks,
Joe Tag: Anyone reccommend a zip compression library? Tag: 38484
Check Box binding
I have to a bind check box in my application with a value which is
coming from database.
I have two values which are coming from database.
X - Check
Y - UnCheck
I am trying to do databinding with check box as below.
chkPropAcct.DataBindings.Add("Checked", dt, "PROP_Value")
Can any plz give help me out to do Data binding with check box
Thanks
Whiz Tag: Anyone reccommend a zip compression library? Tag: 38482
scrolling in datagrid
Hi All,
I would like to ask, how can i control scroll bar of datagrid,
say, get event when it is scrolling down, or scrolling up.
Thanks
Percy Tag: Anyone reccommend a zip compression library? Tag: 38480
Saving BMP file to disk in CF
I am trying to use Alex Feinman's code to save a bitmap to disk that was
created programatically. I am hitting the same problem that Page Brooks
below had earlier. I am generating a Bar chart and would like to save it to
disk.
Did anybody manage to get it working.
Any help would be appreciated.
Venkat Polisetti
>>Posted - 06/02/2003 : 12:42:40
>>
>>Upon closer inspection, I found that the SaveBitmap method is
failing when I use
>>Bitmap b = new Bitmap(100,100)
>>The size of the managed bitmap is not equal to the
sizeof(DIBSECTION). Is there a way to somehow set this?
>>Thanks,
>>Page Brooks
>>Posted - 06/07/2003 : 19:14:44
>>
>>quote:
>>
>>Originally posted by pbrooks
>>The size of the managed bitmap is not equal to the
sizeof(DIBSECTION). Is there a way to somehow set this?
>>
>>I think that when a bitmap is created using new Bitmap(cx,
cy), it might be created as a BITMAP and not DIBSECTION. This would be a
>>problem. Off the top of my head the only solution I can think of is to
call CreateDIBSection manually and replace the hBitmap in the >>Bitmap
object. I'll see what I can do.
>>Alex Feinman
begin 666 icon_profile.gif
M1TE&.#EA#P`/`+,``/_____,F?_,9LS,_YF9F9EF,V9FF0``?P```,# P ``
M`````````````````````"'Y! $```D`+ `````/``\`0 1'$,E)D[4(:"V+
M"& @;1MEGI(@( 219&1Y8;$)(F\,I)_HSJ^!86C Y70[8.; ;)IHS0.*,(IV
3>A(JP-H)L6"U5?8W0P@GOP@`.P``
`
end
begin 666 icon_reply_topic.gif
M1TE&.#EA#P`/`*(``/___X `@%D`60``?P```,# P ```````"'Y! $```4`
M+ `````/``\`0 -"2+I<'H6 "400@K@MZ12 ]F1,N3F=-XE/6EU6<*%J%9YX
CCKL>6V2 @5"X.@4DPPI(-$.^9# !)TC$W$X\BD_'+20``#L`
`
end Tag: Anyone reccommend a zip compression library? Tag: 38479
foreach field in class ???
I have a class with a lot of fields/variables that must be saved to a file
and loaded from a file. AFAIK the full framework has a serializing feature
but what about the compact framework? If there is something like a "foreach
field in class: save to file" - I think it would solve the problem - Any
help is highly appreciated
Thanks
Ole Tag: Anyone reccommend a zip compression library? Tag: 38476
compact framework for Pocket PC 2003 SE
Hi
Is there a special version of CF for Pocket PC 2003 Second Edition?
/peter Tag: Anyone reccommend a zip compression library? Tag: 38470
ANN: Smart Device Programming Chat today !
Just a reminder that we'll be hosting an online chat on November 11th
concerning Smart Device Programming with Visual Studio .NET 2003. Members of
the development team will be on hand ready to answer your questions, so
bring 'em on! Hope to see you there.
--------------------------------------------------
Smart Device Programming with Visual Studio .NET 2003
November 11, 2004
10:00 - 11:00 A.M. Pacific time
1:00 - 2:00 P.M. Eastern time
17:00 - 18:00 GMT
Please join the members of the .NET Compact Framework and Visual Studio
product groups in this live chat regarding the .NET Compact Framework and
the Smart Device Programming features of VS.NET. The .NET Compact Framework
brings the world of managed code and XML Web services to smart devices, and
it enables the execution of secure, downloadable applications on devices
such as personal digital assistants (PDAs), mobile phones, and set-top
boxes. Please come prepared to ask the tough questions!
--------------------------------------------------
To join this chat go to http://msdn.microsoft.com/chats
-- Thanks!
Amit Chopra
This posting is provided AS IS with no warranties, and confers no rights Tag: Anyone reccommend a zip compression library? Tag: 38465
Problem with dotfuscator
I have a pocket pc graphical app with an extra form, form2,
to which I added a menu. I compile the program, which is
configured as 'debug'. The program works on ipaq ppc,
on emulator, and on desktop. Then I use dotfuscator standard
edition for visual studio and now the program works only
on emulator and desktop, but not on device, hourglass keeps
turning forever.
I must emphesise, there is no added code in my program, simply
what is a given from the wizard plus an added form as described
above, so maybee someone can recreate the setup. I could
have attached it to this post, by I don't know if I am supposed
to or not. Tag: Anyone reccommend a zip compression library? Tag: 38464
Editing regional settings programming
hey lads,
i dont want my clients to change manually regiona settings on pda, so i
thought i could do it coding.
the prob is that i didnt find anything related to that...
does anyone knows how to do it?
many thx
MR Tag: Anyone reccommend a zip compression library? Tag: 38463
Determining the My documents folder?
How to determine the "My documents" folder in both full- and compact
framework? It should also be language independend. - any idea?
Thanks
Ole Tag: Anyone reccommend a zip compression library? Tag: 38459
serialization to relational DB?
Hi,
I'm working with reflextion a bit and I was wondering, since we have
serialization to XML with OpenNetCF component, isn't there some kind of
component of third party that could serialiaze an object graph to relational
DB? I thought about it for a while and it seems to me that with reflection
help this is possible - and it would be killer!
dan Tag: Anyone reccommend a zip compression library? Tag: 38457
GPRS connection goes down if Active Sync is started
I do this:
Connect to Internet via GPRS
Connect a GPS to Com1 of my device
Active Syns starts and GPRS connection goes down!
I use Qtek 2020 (XDA II) and Pocket PC 2003...
Any ideas?
--
//mikson Tag: Anyone reccommend a zip compression library? Tag: 38452
#if and define constants in VB.NET
Hi,
I need to use a lot of define constants for varios settings in my
application.
If I insert a constant in Project Configuration Properties - Build - Custom
constants, this constant is known in all modules. But if I insert #const in
any module, then I can use this constant ONLY in this module.
Does any eventuality exist to have a lot of constants, which are known in
all modules? Some statement (#LINK or #INCLUDE) for special file with
constants.
Viki Tag: Anyone reccommend a zip compression library? Tag: 38447
Registry and Wireless settings
I have a lot of WindowsCE4.2 devices, all must be setup with a
wireless profile, ie. static IP/subnet, wireless SSID/AdHoc. In stead
of configuring each device I would like to make a small application to
assist me. I have tried looking at the registry before and after
manually setting the profile, but still I am unable to clearly
identify fx the location of the IP address.
I have identified changes in the following keys:
LocalMachine\Comm\[adapter]\Parms\TcpIP\EnableDHCP
LocalMachine\Software\Microsoft\WZCSVC\Parameters\Interfaces\[adapter]\ActiveSettings
LocalMachine\Software\Microsoft\WZCSVC\Parameters\Interfaces\[adapter]\Static#0000
CurrentUser\Comm\WirelessAdapterCache\[adapter]
CurrentUser\Comm\EAPOL\Config\[SSID]\Enable8021x
The key LocalMachine\Comm\[adapter]\Parms\TcpIp also include a Value
"IPAddress" [String], however, it seems to be ignored by Windows Zero
Config.
I have been looking into this matter much but and about to go nutz as
I cannot figure out how its done. Can it be done? Where is the IP
stored? After a device reset (warm boot) it persists. Is it stored on
the card? Encrypted? I have searched looking at both string and byte
patterns.
Any comment appriciated. Thanks you.
Frederik Jensen, Judex Tag: Anyone reccommend a zip compression library? Tag: 38437
Event controles directory
Hi,
for my application I need an event wich controles a directory and fires, if
a file is added to the directory. Is something like this possible, and if
yes, how could I do that (I haven't wrote an event yet)?
Greets,
Cyberdot Tag: Anyone reccommend a zip compression library? Tag: 38434
Memory Usage
Hi All,
I have a C# application that uses an SQL Server CE database and I am a
little confused about the memory usage of my application.
When I start the application the Control Panel -> Memory display shows that
7MB was consumed, but when I use the Performance Monitor (MSCOREE.STAT) it
shows a Byte Allocation of 2 MB.
This all came up because I have an h2200 that was showing Control panel
memory usage of 2MB, and a h5500 that showed a memory usage of 7MB. I am
confused.
BTW. My DB is 3.5MB in size.
Can anyone explain for me.
Thanks,
James. Tag: Anyone reccommend a zip compression library? Tag: 38423
NetworkStream.BeginRead Blocking problem
Hi all,
I am trying to create CLient-Server based application. Talking of just
Client application, I want to read data from the server application. For
that
I created a socket and a new thread that reads all the time from the server.
However, the problem is when I close the socket (from client end), my data
reader thread (created above) does not close down. In turn it keeps waiting
for some message.
After bit of struggle I noted that somehow BeginRead calls back the method
after 1 minute. At that time my piece of code exits the thread. I want to
close the BeginRead operation as soon as I close the socket. You help will
be
appreciated. For that purpose I am presenting you with the code that I have
managed to write.
Public Delegate Sub DisplayInvoker(ByVal text As String)
Private Const IPADD As String = "192.168.11.2"
Private Const PORT As Integer = 5000
Private m_socketClient As TcpClient
Private m_data(1024) As Byte
#Region "Private Methods"
Private Sub connect()
Try
Dim ipAddObj As IPAddress = IPAddress.Parse(IPADD)
Dim ipEndPointObj As New IPEndPoint(ipAddObj, PORT)
Me.m_socketClient = New TcpClient(IPADD, PORT)
Me.btnSend.Enabled = True
Me.displayText("Connected to Host " + IPADD + " at Port " +
PORT.ToString())
Catch ex As Exception
Me.displayText("Socket connection failed")
Me.displayText("Reason: " + ex.Message)
Me.btnSend.Enabled = True
End Try
End Sub
Private Sub displayText(ByVal text As String)
If (text Is Nothing) Or (text = "") Then
Exit Sub
End If
Me.txtReceive.Text = Me.txtReceive.Text + vbCrLf + text
End Sub
Private Sub Send(ByVal text As String)
If Me.m_socketClient Is Nothing Then
Me.displayText("No socket connection available. Cannot send
text")
Exit Sub
End If
If (text Is Nothing) Or (text = "") Then
MessageBox.Show("No data to send")
Exit Sub
End If
Try
Dim bytes() As Byte = (New ASCIIEncoding).GetBytes(text)
Dim streamObj As Stream = Me.m_socketClient.GetStream()
streamObj.Write(bytes, 0, bytes.Length)
streamObj.Flush()
Me.displayText("Data Written: " + text)
Catch ex As Exception
Me.displayText("Sending FAILED: " + ex.Message)
End Try
End Sub
'This method is called to start reading
Private Sub BeginRead()
Try
Dim result As IAsyncResult =
Me.m_socketClient.GetStream.BeginRead(Me.m_data, 0, 1024, New
AsyncCallback(AddressOf Read), Nothing)
Catch ex As Exception
Me.displayText("Error at BeginRead: " + ex.Message)
End Try
End Sub
Private Sub Read(ByVal asyncResult As System.IAsyncResult)
Dim intCount As Int32 = 0
Try
intCount = Me.m_socketClient.GetStream.EndRead(asyncResult)
Me.displayText("Number of Bytes Received: " +
intCount.ToString())
If intCount < 1 Then
Me.displayText("Host connection closed")
Me.disconnect()
End If
Dim str As String = (New ASCIIEncoding).GetString(Me.m_data, 0,
intCount)
Dim result As IAsyncResult =
m_socketClient.GetStream.BeginRead(m_data, 0, 1024, New
AsyncCallback(AddressOf Read), Nothing)
Catch ex As Exception
Me.displayText("Error READING: " + ex.Message + " " + Now())
End Try
End Sub
Private Sub disconnect()
If Me.m_socketClient Is Nothing Then
Me.displayText("No socket connection")
Exit Sub
End If
Try
Me.displayText("Manually connection closed at " + Now())
Me.m_socketClient.Close()
Catch ex As Exception
Me.displayText("Socket Closing Failed: " + ex.Message)
End Try
End Sub
#End Region
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.connect()
Me.BeginRead()
End Sub
Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSend.Click
Me.Send(Me.txtSend.Text)
End Sub
Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnClose.Click
Me.disconnect()
End Sub
Private Sub btnEnd_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnEnd.Click
Me.disconnect()
Me.Close()
Application.Exit()
End Sub
Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnConnect.Click
Me.connect()
Me.BeginRead()
End Sub Tag: Anyone reccommend a zip compression library? Tag: 38422
For Peter Foot
Ok, additional to the PPC App installer, I made three modification to the PPC
App setup project.
1. add a SQLCE.ini file:
[CEAppManager]
Version = 2.0
Component = SCE
[SCE]
Description = SQL Server CE 2.0
CabFiles =
sqlce.wce4.armv4.CAB,sqlce.ppc3.arm.CAB,sqlce.wce4.armv4t.CAB,sqlce.wce4.mips16.CAB,sqlce.wce4.mipsii.CAB,sqlce.wce4.mipsii_fp.CAB,sqlce.wce4.mipsiv.CAB,sqlce.wce4.mipsiv_fp.CAB,sqlce.wce4.sh3.CAB,sqlce.wce4.sh4.CAB,sqlce.wce4.x86.CAB,netcf.core.ppc3.arm.cab,sql.ppc3.arm.CAB,sqlce.dev.ppc3.arm.CAB,netcf.all.wce4.armv4.cab,sql.wce4.armv4.CAB,sqlce.dev.wce4.armv4.CAB,netcf.all.wce4.armv4t.cab,sql.wce4.armv4t.CAB,sqlce.dev.wce4.armv4t.CAB
2. Add an invokation to the RunAppManager function as following
Dim argSQLCE As String =
Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "SQLCE.ini")
RunAppManager(argSQLCE)
Dim arg As String =
Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "Setup.ini")
RunAppManager(arg)
3. I add a "WaitForExit()" function after the process.start() function as
following.
Process.Start( _
String.Format("""{0}""", appManager), _
String.Format("""{0}""", arg)).WaitForExit()
Then After I generate the msi file and run it, the PPC App can be installed,
but when installing SQL CE it says "There is no device-compatible software to
install. "
I can send you my code if you don't mind.
Thanks. Tag: Anyone reccommend a zip compression library? Tag: 38421
Using multiple dataadapters does not work in CF???
Very odd behavior. I try to fill two dataadapters on the same connection and
I get an exception on the 2nd fill. Code similar to this has never been a
problem in my winforms app, so this must be some limitation of CF?
Dim strSQLServer As New SqlCeConnection(strConn)
Dim cmd As New SqlCeCommand
cmd.CommandType = CommandType.Text
cmd.CommandText = "Select * From Employees"
cmd.Connection = strSQLServer
Dim cmdPPC As New SqlCeCommand
cmdPPC.CommandType = CommandType.Text
cmdPPC.CommandText = "Select * From PocketPCs"
cmdPPC.Connection = strSQLServer
strSQLServer.Open()
Dim da As New SqlCeDataAdapter(cmd)
da.Fill(ds, "dtCanvassers")
Dim da2 As New SqlCeDataAdapter(cmdPPC)
'an exception occurs here
da2.Fill(ds, "dtPocketPCs") Tag: Anyone reccommend a zip compression library? Tag: 38419
Local datastore for visual basic .net aplication on a pda
I have this project for developing an drug interaction aplication for a pda
under a windows o.s .
The aplication is being developed on visual basic .net (using visual studio
.net 2003), and I needed to create an local datastore, the problem is that
most of the database access controls and etc available on the full .net
framework aren´t available for the .net compact framework, so, so much for
using an MS access database file, as for SQL, I kinda dislike the ideia of
having to install the CE server on the pda just to run a lame database that
only uses SELECT and WHERE (=?) queries (the aplication only reads a
specific value from a field on the database and compares it to another value
from another field).
So after all this, here's my questions: Is there any way to use an sql
database file as an local datastore without the SQL server running? Just by
reading from the file that is? And how about an serialized xml file from the
object model, could it do the trick or does it run in to the missing class
prob in compact framework?
Thanks for reading and for your time, help is most welcome. Tag: Anyone reccommend a zip compression library? Tag: 38414
NullReferenceException on line that does nothing.
Hi,
I've got a strange NullReferenceException on this line:
System.Data.DataTable oDT = null;
I've tried not initializing it, and setting it to something on the
next line, but that doesn't change anything.
Strangely, it does not throw an exception when I'm running in debug
mode (debugging on the device, not the emulator). It does throw when
I deploy and run on that same device.
Has anyone seen this behavior?
Thanks, and have a good day.
Tom Tag: Anyone reccommend a zip compression library? Tag: 38409
Putting the program icon in the WinCE main window
Hi,
This may be a stupid question, but how do you make your program icon appear
in the desktop window of the WinCE screen after VStudio has deployed your
application? What output folder I need to use?
Bert Tag: Anyone reccommend a zip compression library? Tag: 38406
Can I directly access hardware using managed code?
Of course you can!
http://blog.opennetcf.org/ctacke/PermaLink,guid,9a6c5e09-1bd1-4603-99b7-11310c06b68b.aspx
--
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here Tag: Anyone reccommend a zip compression library? Tag: 38393
Keypress event in main form
Hi guys,
Sorry for the cross-post but the guys in simgle dot net seem a bit loose
when we talk of pocket pc,
Im trying to bin a key to a button whit the keypress event of the form, per
exemple i got a button called cmdProduction
i want when u strike the "P" or "p" key on the keyboard that the
button_click event fire,
so far i got this but it does not seem to work :
Private Sub FrmMain_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
If e.KeyChar = "P" Or e.KeyChar = "p" Then
e.Handled = True
Call BtmProduit_Click(sender, e)
End If
end sub
This litle code dont even fire the keypress event of the form so im
wondering what im doiing wrong !
Thanks in advance !
Himselff Tag: Anyone reccommend a zip compression library? Tag: 38388
Z-order top using SetWindowsPos
"Peter Foot [MVP]" <feedback@no-spam.inthehand.com> wrote in message
news:ul%23WSajxEHA.2676@TK2MSFTNGP12.phx.gbl...
> You can use the technique described here to make your messagebox dialog
> always appear at the top of the z-order until it is dismissed:-
> http://blog.opennetcf.org/pfoot/#a11ad82c3-a428-4aac-959f-27c9c3590662
Peter,
You say, this works until the form is "dismissed". How do you dismiss the
form? I've converted the code you provided me with that for VB.
I'm using a Me.Close to close my form.
The first time the form appears, it stays up as I was hoping it would, not
getting hidden behind other forms. But the second and beyond time it is
called, its not going away, ever. I can tell that the form in the
background is still running as I can touch buttons, at least the part of the
buttons I can see behind my 'modal' form, and they work.
Any ideas? Tag: Anyone reccommend a zip compression library? Tag: 38387
Best choice of data storage on PDA in C# (short term/ long term)
I am a newbie, so please be patient. I am working on an app that will extract data from an embedded system via serial connection. I need to get the data as fast as possible and then go back and assimilate it after I've disconnected.
What is the best way to store this data for both the temporary and long term?
Thanks to anyone who helps.
*****************************************
* This message was posted via http://www.dotnetmonster.com
*
* Report spam or abuse by clicking the following URL:
* http://www.dotnetmonster.com/Uwe/Abuse.aspx?aid=8200b714ce074f33875eabde58bd1f64
***************************************** Tag: Anyone reccommend a zip compression library? Tag: 38386
Best choice of data storage on PDA in C# (short term/ long term)
I am a newbie, so please be patient. I am working on an app that will extract data from an embedded system via serial connection. I need to get the data as fast as possible and then go back and assimilate it after I've disconnected.
What is the best way to store this data for both the temporary and long term?
Thanks to anyone who helps.
*****************************************
* This message was posted via http://www.dotnetmonster.com
*
* Report spam or abuse by clicking the following URL:
* http://www.dotnetmonster.com/Uwe/Abuse.aspx?aid=84b2448f9fb84bc1b6bab3aee06821c8
***************************************** Tag: Anyone reccommend a zip compression library? Tag: 38385
Detecting Open Forms
Is there a way in CF .NET using C# to detect whether or not a form is
already open in memory, and if so, using a conditional to show that form
rather than having to do something like this:
Form1 frm = new Form1();
frm.Show();
since that always creates another instance. I don't want users to have a
bunch of the same form open on their PPC at one time, it's just silly and a
needless waste of resources.
Thanks Tag: Anyone reccommend a zip compression library? Tag: 38379
Trouble with Multi Threading
Hello All,
I am in the middle of creating a class that I want to use with Serial IO per
the MVP on this forum.
I am still having trouble with my design process I think.
I created a class that is designed to basically receive messages from the
port. It is a CommEvent
private void port_DataReceived()
{
byte[] data = port.Input;
RxMESSAGE += Encoding.ASCII.GetString(data,0,data.Length);
}
this class is created from a WinCE form.
there suggestion was to create a seperate thread that receives data.
my question(s) in this process is
1)if I have a class that is created from a WinCE form( myThread = new
Utility.myThreadClass(); ) with the event port_DataReceived. Will that event
raise without locking up my WinCE form?
2) how do I start a thread that will allow this event to be raise and allow
me to continue working on my WinCE form? In every other situation I have
written a thread that calls one function, once that function was done the
thread was done also, in this case I am trying to start a thread the allows
an event to fire? Tag: Anyone reccommend a zip compression library? Tag: 38373
Help with custom control development
Hello all!
I am developing a custom control with design-time support.
I have managed to build the design time assembly without any errors.
However, when I add my control to the toolbox it appears disabled. I
understand that something is wrong but I cannot figure out what it is. Is
there any way to get more information on what is going on?
Do you know of any descent tutorials on control develpment (because MSDN's
documentation on this topic sucks!).
Thanks in advance! Tag: Anyone reccommend a zip compression library? Tag: 38372
TCPClient & ActiveSync 3.7
hi,
I've got problem with connection to the Internet throw ActivSync 3.7 (usb) -
every time I call WebRequest.Create in my app on pocket pc with windows
mobile 2002 I get "The remote server returned an error (404) Not found"
exception.
But the page I want to request is on web server for sure.
Plz help. Tag: Anyone reccommend a zip compression library? Tag: 38371
WebService - putting on third party hosted site and how?
Hi all,
I am creating my first mobile app, and I am using a web service. It's all
working great on my local machine. However, I want to stick it out on the
net so that we can demo the app at the client site. My company website is
hosted by a third party. Is it possible to stick the webservice files out on
their server and have this work? I'm new at this stuff, so any help is
greatly appreciated.
Thanks,
Erin Tag: Anyone reccommend a zip compression library? Tag: 38344
PPC Phone Version.
Hi,
I'm developing an application form PocketPC, when I test in Pocket PC
2003 it's ok, but if I try to run in Pocket 2003 Phone Edition the
application freezes, I checked and the app freezes when I call
myForm.ShowDialog() method.
Does anyone know how to avoid this?
Thank You,
Eduardo Castro - MCSA/MCP Tag: Anyone reccommend a zip compression library? Tag: 38343
irda serial port emulator
Hello,
I am trying to write a program using .NET CF to interface with a PDA IR port
which communicates with an ACTiSYS IR100S Intelligent IR port. This device
contains the iRDA protocol stack so that when it is connected to a PC it
looks like a standard RS232 port.
I have some sample code which allows data to be sent via IrDA on my PDA.
This works between 2 PDAs running the same software. If I try to connect to a
PC then I would have expected to see some data when running hyperterminal. I
do not. Also I have found a terminal emulator for the PDA which allows IrDA
connection to the PC and I can send data from PDA to PC/ PC to PDA. Similarly
I have tried my sample code talking between 2 PDAs where 1 has the terminal
emulator and I don't see any data passed between the 2.
The code I have will also discover IrDA devices and this works OK.
I have 2 questions:
1. Why do I not see any data when running my sample code on either terminal
emulator window?
2. Do you have any .net sample code which I can use to communicate between
a PC and a PDA via IrDA? In my final application the remote device will be a
"dumb" device which accepts commands via RS232, so I can not expect to be
able to add any code to the remote device.
Thanks
Steve Tag: Anyone reccommend a zip compression library? Tag: 38342
DataGrid Cell Color - urgent
Hi Guys,
two question in one post
1. Can i change a particular cell background color in datagrid in compact
framework?
2. can i have label/button inside the cell in the datagrid?
Regards
Salim Tag: Anyone reccommend a zip compression library? Tag: 38341
Expanding a mainmenu in c# cf app with no mouse/pointer
I have encountered a problem with my c# compact framework app where i
have created a main menu which works perfectly within the emulator,
however, the device i am developing for has no mouse or pointer input.
is there any way of getting the focus to the menu via keys only? like
pressing alt in most windows apps?
thanks in advance!
lewis Tag: Anyone reccommend a zip compression library? Tag: 38340
No Smart Device Application template?
Hi!
I need to create a VB.NET application for a Pocket PC. I've installed
VB.Net, the .NET Compact Framework and the Microsoft Pocket PC 2003 SDK.
Still, there is no "Smart Device Application" template under New
Project/Visual Basic Projects.
I've tried deinstalling and reinstalling everything - still no template.
What am I doing wrong? Tag: Anyone reccommend a zip compression library? Tag: 38339
Two urgent issues in PPC development.
1. An old question which I have asked several times. I want to combine the
SQL CE installation in the Pocket PC Application. I can properly install the
the PPC application, but the SQL CE is not able to be installed properly. Can
anybody send me a sample setup project in VB.NET(coz my PPC application is in
VB.NET)? My email is: fengcs@ccdynasty.com It's really urgent. Many
thanks.
2. I am given this message every time I install the PPC application. The
message says that:" the program is not properly installed as it's for the
previous version..." However it seems the program is running smoothly after
installation. But I just donot want my customer to see this message. Tag: Anyone reccommend a zip compression library? Tag: 38338
App Deployment
Hi,
Can someone point me in the direction of how to deploy an application to a
PocketPC (using dotnetcf)?
Thanks,
Tim. Tag: Anyone reccommend a zip compression library? Tag: 38337
TCP Connection Timeout ?
Hi folks,
here is my (simple) code :
try
{
TcpClient tcpclnt = new TcpClient();
tcpclnt.Connect(IPAddress.Parse(ipAddress), intPort);
}
catch(SystemException e)
{
MessageBox.Show("Error : "+e.Message.ToString());
return false;
}
If it's not possible to connect to the specified IPAddress,
the connect needs between 45-60 seconds to get an exception.
Is there a possbility to have a shorter timeout, maybe with a
SocketOption, without use of a timer ?
cu
Axel Tag: Anyone reccommend a zip compression library? Tag: 38335
Something I must missunderstand about XML...
Hi all
I tried to write a simple XML-based message parser
I just can't get the infos I want from the XML
here is the xml file:
----
<?xml version="1.0" encoding="utf-8" ?>
<message id="00001">
<body>Corps du message de test. Ca donc c'est juste un test de message
</body>
<subject>Sujet test1</subject>
<sender>Moi meme</sender>
</message>
---
and the parser:
r = new XmlTextReader(path + file.Name);
while (r.Read())
{
if (r.NodeType == XmlNodeType.Element)
{
if (r.Name == "message")
msg.Id = r.GetAttribute("id");
else if (r.Name == "subject")
msg.Subject = r.Value;
else if (r.Name == "body")
msg.Body = r.Value;
else if (r.Name == "sender")
msg.Sender = r.Value;
}
}
r.Close();
I get the Id attribut id but none of the values...
Is that a good way to do this ?
Am I totally wrong by doing this?
thx in advance! Tag: Anyone reccommend a zip compression library? Tag: 38334
Serialization of arrays in dataset
Hi,
I have a dataset that I am using to transfer data to a web service from a
device. One of the elements in the datatable contained within the dataset is
a string array, which is stored fine in the dataset on the device. However,
when the dataset is transferred and I try to retrieve the data from the array
in the web service, the array is transformed into a string with the value
"string.object[]"
Now, I know that this is an effect caused by the serialization of the
dataset during transport from the device to the web service, so what (if any)
is the correct method of transferring arrays in datasets to web services? Tag: Anyone reccommend a zip compression library? Tag: 38333
Creating non maximized form in CF
Hi,
how can i make a form with takes e.g. half of the screen?
Anytime i make such a form with specifying size property smaller than size
of the screen, it's maximized when running the program. Disregarding
WindowState property is set to Normal. I wold like to make a form which looks
like System.Windows.Forms.MessageBox. I have not found any problems when
doing the same thing in adult .NET. Tag: Anyone reccommend a zip compression library? Tag: 38331
Threading & Synchronization in CF 2.0
Hi,
Has the CF 2.0 more support for inter-thread synchronization ?
For example, the absence of Monitor.Wait and Pulse methods
in 1.0 are a bit of a pain (OpenNETCF partially solves this).
The reason why I am asking is that the documentation
in VS 2005 mentions .NET CF as a supported platform
for some of these methods.
Monitor.Wait Method (Object)
...
Target Platforms: <...> .NET Compact Framework
But the methods do not seem to be available (Intellisense
does not find them). Documentation typo ?
Thanks,
Ralph Tag: Anyone reccommend a zip compression library? Tag: 38329
CF 1.0 SP2 deployment to Emulator from VS .NET 2003
Hi,
I'm new to CF dev and trying to find out
if there is a way to make VS.NET 2003 use
CF 1.0 SP2 when it deploys the framework
to the Pocket PC 2002 Emulator.
I believe it is possible to deploy the files
"manually", but don't one lose them when
turning off or hard resetting the Emulator ?
Thanks,
Ralph Tag: Anyone reccommend a zip compression library? Tag: 38328
File copy from device to desktop
Is there a way to initiate something on a Pocket PC to copy files to a
desktop? The users will copy to various laptops and desktops so I would
prefer not to have to install a RAPI app on each computer but will if
needed.
Thanks,
Jeff Tag: Anyone reccommend a zip compression library? Tag: 38325
Un-Full Screen
Hi All,
After making a full screen for the program, by
this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = FormBorderStyle.None;
this.ControlBox = false;
this.Menu = null;
How can i change screen back to normal?
I have tried calling the ControlBox and Menu back by
this.ControlBox = true;
this.Menu = new Menu();
but failed. Tag: Anyone reccommend a zip compression library? Tag: 38322
cannot connect to X5 from VS.NET
I am able to successfully build my C# app in VS.NET but am having trouble
deploying it to my Dell Axim X5. I am running ActiveSynch 3.7.1 and have
successfully connected my device to the PC and synchronized. Whenever I
select deploy, it asks me for the device type (which I select PocketPC) and I
get the following error:
Error: Cannot establish a connection. Be sure the device is physically
connected to the development computer.
According to Asynch, my device is connected. I am able to browse the device
using Mobile Explorer, etc.
I tried to deploy it to the emulator and that worked fine. Any ideas on
what might be wrong would be appreciated.
Regards,
Rob C Tag: Anyone reccommend a zip compression library? Tag: 38320
Can anyone reccommend a suitable zip compression library for .net cf?
Cheaper the better!
"chris" <chris-s@mailcity.com> wrote in message
news:12699dd8.0411120136.13863ef9@posting.google.com...
> Can anyone reccommend a suitable zip compression library for .net cf?
> Cheaper the better!
>
> Chris.