How to scroll large drawings/large docs?
Hi,
I have a "document". My doc can be divided to thousends of lines. Every line
can be displayed as a drawing, every line has an OnPaint method. How can be
displayed this document??? The height of every line is 75.
If each line is reperesented by separate controls the program will be very
slow, because thousands of controls must be checked every time wether they
are on the screen or not (?).
If the whole document is reperesented by one control size limitation seems
to be exceeded: the height of my "one and only" control should be more than
75000. System.Windows.Forms can not be resized (or not always can be resized)
to this height. The limit is 32767. ( My very large control is on a Panel in
this case.
I don't know the general way to handle large docs. Please help!!!
Frankie Tag: WM Print Engine with PDF support Tag: 88056
Connection Manager API
Hi,
I've seen some comment at various places on some sort of managed wrapper for
the connection manager API that's now available in .NetCF 3.5. Can anyone
shed a little more light on this like a) yeah it's in there and b) you need
to look in the XXX.xxx.xxx namespace.
Help appreciated.
J Tag: WM Print Engine with PDF support Tag: 88052
System.Drawing.Graphics.DrawImage seems to be not exact...
Hey everybody,
I've a little nice problem here. I want to scale a bitmap, everything
seems to be OK, but...
I sliced that Bitmap in nine (9) parts
- 4 corners (unscaled)
- top and bottom middlepart (only horizontal scaled)
- left and right middlepart (only vertical scaled)
- middlepart (horizontal and vertical scaled)
The 4 corners has a width and height of 5 px, top and bottom
middlepart has a width of scaled bitmap - 10px and a height of 5px,
left and right middlepart has a width of 5px and a height of the
scaled bitmap - 10px. The middlepart has a width and a height of the
scaled bitmap - 10px.
So, if I want to scale the new bitmap I think smaller than the
original on, everythink seems to be OK, but when want to scale it
larger, I got some problems with the top, bottom, left and right
middlepart. It looks like that the starting postions of the bitmap
parts had relocated by its own or evrythink else.
Does anybody of your had the some problems or the is problem between
my ears?
Thanks a lot...
Carsten Tag: WM Print Engine with PDF support Tag: 88050
Uninstalling Program Using DeviceProcessConfigXml
Hi All,
I have developed a kind of device loader, which starts automatically
when the device cradled. Using the software i want to uninstall a
certain software. When i call
m_rapi.DeviceProcessConfigXml(provisionFile, out output);
with the following xml, it doesn't uninstall. However for some
programs (i.e. compact framework or compact sql) it works pretty
fine.
<wap-provisioningdoc>
<characteristic type="UnInstall">"
<characteristic type="Program Name">
<parm name="uninstall" value="1"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Is it that the problem is with the way of preparing the cab file? Is
there anything that i should be doing with the setting of cab project?
And one more question, how do i simulate exactly the remove facility
of remove programs in control panel?
Thanks, Tag: WM Print Engine with PDF support Tag: 88048
GetAttachmentTable and DLLIMPORT
Hi
i wonder if someone can help me. Im trying to use the GetAttachmentTable
routine in MAPI.
[DllImport("MAPIlib.dll", EntryPoint = "IMessageGetAttachmentTable")]
private static extern HRESULT pIMessageGetAttachmentTable(IntPtr
msg, ref IntPtr AttachTable);
public IMAPITable GetAttachmentTable()
{
// Call the dll function
IntPtr tablePtr = IntPtr.Zero;
HRESULT hr = pIMessageGetAttachmentTable(this.ptr, ref
tablePtr);
if (hr != HRESULT.S_OK)
throw new Exception("GetAttachmentTable failed: " +
hr.ToString());
return new MAPITable(tablePtr);
}
When i try to run this i get
Can't find an Entry Point 'IMessageGetAttachmentTable' in a PInvoke DLL
'MAPIlib.dll'.
Can anyone help?
Thanks
Neil Tag: WM Print Engine with PDF support Tag: 88045
An existing connection was forcibly closed by the remote host...
Hi
My CF application have to be connected to a TCP server on a PC.
Here is the way I do on client :
[code]
private void Connect(string ip, int portNumber)
clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
clientSocket.Connect(new IPEndPoint(ip, portNumber));
receivedThread = new Thread(new ThreadStart(ReceiveThread));
private void ReceiveThread()
{
byte[] buffer = new byte[512];
int iBytesCount = 0;
while (!stopThread)
{
try
{
iBytesCount = this.clientSocket.Receive(buffer, 0,
this.receiveBufferSize, SocketFlags.None); ;
if (iBytesCount == 0)
break;
}
catch (Exception ex)
{
if (!stopThread)
{
throw new CommunicationException("An exception occured
in received thread.", ex);
}
break;
}
...
}
[/code]
The first time the PPC connect to the server all is well working :)
But If I shut down the Pocket PC using the power button on the device, and
exception occured in the ReceivedThread method. The exception is "A blocking
operation was interrupted by a call to WSACancelBlockingCall".
In this case, a Dispose the Socket and try to reconnect using the Connect
method. The Socket.Connect succed but each time this line is executed :
[code]
iBytesCount = this.clientSocket.Receive(buffer, 0, this.receiveBufferSize,
SocketFlags.None); ;
[/code]
I got the following exception "An existing connection was forcibly closed by
the remote host". Why ??? I'm unable to reconnect the Pocket PC to the server
!
Two days trying to figuring the problem but I now I don't know what to do :(
Please help me. Tag: WM Print Engine with PDF support Tag: 88035
CeSetUserNotificationEx question
I think I have pinvoke of CeSetUserNotificationEx working.
I'm not understanding how to intercept this though once its setup.
I'm trying to setup the notification to happen 3 minutes after Now and
I believe I'm creating the event correctly.
What I'm not understanding is how can I get my application to
intercept this notification then do some actions when it happens. The
problem I'm trying to get around is doing some periodic operation when
the device is in suspend mode. I just need to wake up for a second
check the current power state, do some operations then return the
power state. If call the below function 3 minutes into the future,
how can i intercept what is created?
Thanks for any help this type of thing is a little out of my area of
normal programming so I'm struggling a little bit.
private unsafe IntPtr AddJob( SystemTime st, string AppName,
string Args)
{
CE_NOTIFICATION_TRIGGER nt = new
CE_NOTIFICATION_TRIGGER();
CE_USER_NOTIFICATION un = new CE_USER_NOTIFICATION();
IntPtr h;
string dialogTextTest = "This is a test";
char* dialogText = dialogTextTest.ToCharArray();
fixed (char* pAppName = AppName.ToCharArray())
{
fixed (char* pArgs = Args.ToCharArray())
{
nt.Size = (UInt32)Marshal.SizeOf(nt);
nt.Type = 2;
nt.pAppName = pAppName;
nt.pArgs = pArgs;
nt.StartTime = st;
un.DialogText = dialogText;
h = CeSetUserNotificationEx(IntPtr.Zero, nt, un);
}
}
return h;
} Tag: WM Print Engine with PDF support Tag: 88026
unable to install windows mobile SDK
I'm trying to install windows mobile SDK 6.0 professional to target NET CF
3.5 application to windows mobile 6. However, launching the MSI I've this
error:
"the system administrator has set policies to prevent this installation"
I'M the administrator, and I'm didn't set any policy.
My pc runs win 2003 std.
any idea?
Win mobile 6 sdk standard has been installed without any problem
thanks Tag: WM Print Engine with PDF support Tag: 88020
Edge & 3GP, Web Service Problem
Hello Friends,
From last few days our users are facing one problem. We have implemented web
service to communicate to server. Now the problem is, generally 3GP
connection is there on devices, but sometimes when signal is weak, Edge is
connected.
In case of Edge, they are not able reach the server via web service.
So my question is, is it possible? if yes then what kind of optimization can
be done in web service call so that in weak signal also it will work?
Please help me.
Regards
Viral Tag: WM Print Engine with PDF support Tag: 88014
OpenNETCF.Net.NetworkInformation.Ping
I've been using this to ping an IP wirelessly to see if the TCP printer is
"online" wirelessly. Works great.
I know that in ActiveSync debug, the wireless is disabled but I can run
other syncing to a server over the lan via the ActiveSync just fine but the
ping always returns either a 1 or a 1000 which aren't even IPStatus
enumerations.....
Any idea as to what's happening here?
I'm not a network guru by any means.....
Is this pinging only applicable to wireless? Why is the syncing to another
server via a web service working fine yet I cannot ping the IP for that
server using the OpenNETCF.Net.NetworkInformation.Ping during an ActiveSync
debug session.....???
Any ideas?
TIA Tag: WM Print Engine with PDF support Tag: 88011
Round to nearest Multiple? NumericUpDown Question.
Sorry, a bit new at this CF.
I'm looking for a function that will allow me round the min from a
now() function to the nearest 15.
So for example if it's 9:31 I would like it to return 30
i've got TimeID set as a string:
TimeId = FormatDateTime(Now(), DateFormat.ShortTime)
which is working fine. and using mid or right am able to get the min
separated, but the rounding functions seem to just round to whole
numbers.
I'd be fine with a floor or ceiling command too, so that 9:31 would
return either 30 or 45.
I'm using a numericupdown to get the user of the form to input time in
increments of 15min.
And I guess since I'm on the topic is there anyway to make a
NumericUpDown control flip?
Using my original example. if I'm at 45 and press up I'd like it to
revert back to 00.
thanks in advance Tag: WM Print Engine with PDF support Tag: 87998
Synchronisation of data
Hi group
I have an application that take file from devices put them on the Host
PC throw active Sync, and send them to a server. this application use
a third party software to synchronise data from the Host PC to the
server.
The system run good from 4 years, and now we have a bug. I discover
that the third part society is closed, and the product never maintain
anymore. I have to change it.
Do you know about a good sync for folders ? I saw plenty of it, but i
have no time to compare myself, and suppose somebody have allready
done this. in an perfect world, it would be open source, so i can
maintain myself and have no problem with closed third part.
More, is there any tools that allows to take remote control of a
device from a PC, throw the web (intra extra or internet) throw a Host
PC, and then throw Active Sync ? (may be i have a new concept !!)
Thank you for your help
Romain TAILLANDIER
www.maintag.fr
www.cocktail-ludik.org
romaintaillandier.blogspot.com Tag: WM Print Engine with PDF support Tag: 87993
multimedia programming
Hello,
I am interested in developing an application that records sounds and
takes pictures and then does some analysis on the data. Does the CF
have some classes for sound recording/image capture? If not, are there
managed APIs available for this task?
Thanks. Tag: WM Print Engine with PDF support Tag: 87992
Beginner question, help!
Hi, i´m new developping app, and my question is:
I´ve 2 forms, fomr1 anf form2. In my form1 i´ve a datagrid that show some
data products from a SQLCE db... the form2 has a textbox where the user fill
a product name... how can i accomplish when the form2 is show, the user
enter into the textbox a product name, and when he press ok and the form2 is
closed, the form1 show the new data ?
Thanks a lot! Tag: WM Print Engine with PDF support Tag: 87988
Serving SOAP requests
Hello,
We are developing a mobile application running under .NET CF 2.0 or 3.5. The
application has to expose several service interfaces through SOAP (over
HTTP). Unfortunately, serving SOAP requests is not supported by the .NET CF
framework. That's why we have a strong interest in third-party libraries
providing this functionality.
Would someone mind to share his experience in this field? Is there a
recommendable library?
Any help is greatly appreciated.
-peter Tag: WM Print Engine with PDF support Tag: 87985
Calling a managed (C#) DLL from unmanaged (C++) code in Windows CE
Hi folks,
I know that what I want to achieve works in the "big" framework but I
also read (on the blog of the developer group of the compact framework
itself !) that it should work on Windows CE devices, too. The only
problem: up to now I found no explanation or example, *how* it can be
achieved to call a managed DLL (CF 2.0) from an unmanaged EXE (eVC 4)
on a Windows CE device (Mobile 2003 or Windows CE 5.0).
I've already gone most of the way by following some examples for the
"big" framework - the only (?) problem left is the registration of the
managed DLL on the device so that the EXE cannot find the DLL and its
exported methods.
Any idea how to register the DLL on the device or how else the DLL
could be loaded?
Any help or links to tutorials, posts or examples are welcome!
TIA,
Roland Tag: WM Print Engine with PDF support Tag: 87983
Using windows application project on a mobile device
Hello,
for a C# windows application I have created a project that is a kind of data
caching layer between the GUI and the remote server.
I am using socket operations for communication to server and a typed dataset
to cache the data.
Now I want to reuse that project as it is for a mobile application (e.g.
Windows mobile 5.0). SO I have created a new project in VS2008 for mobile
devices and added all files of my existing application project.
When I try to compile it there are hundreds of errors conserning the
dataset. It mainly complaints about "System.Runtime.Seriazable" and other
things:
....
Error 51 The type or namespace name 'Serialization' does not exist in the
namespace 'System.Runtime' (are you missing an assembly reference?)
C:\Dokumente und Einstellungen\Test\Eigene Dateien\Visual Studio
2008\Projects\SmartDeviceProject1\SmartDeviceProject1\DataSetMonitoring.designer.cs
9517 69 SmartDeviceProject1
Error 52 The type or namespace name 'Serialization' does not exist in the
namespace 'System.Runtime' (are you missing an assembly reference?)
C:\Dokumente und Einstellungen\Test\Eigene Dateien\Visual Studio
2008\Projects\SmartDeviceProject1\SmartDeviceProject1\DataSetMonitoring.designer.cs
9517 130 SmartDeviceProject1
Error 53 The type or namespace name 'Serialization' does not exist in the
namespace 'System.Runtime' (are you missing an assembly reference?)
C:\Dokumente und Einstellungen\Test\Eigene Dateien\Visual Studio
2008\Projects\SmartDeviceProject1\SmartDeviceProject1\DataSetMonitoring.designer.cs
93 60 SmartDeviceProject1
Error 54 The type or namespace name 'Serialization' does not exist in the
namespace 'System.Runtime' (are you missing an assembly reference?)
C:\Dokumente und Einstellungen\Test\Eigene Dateien\Visual Studio
2008\Projects\SmartDeviceProject1\SmartDeviceProject1\DataSetMonitoring.designer.cs
93 121 SmartDeviceProject1
Error 55 The type or namespace name 'Browsable' does not exist in the
namespace 'System.ComponentModel' (are you missing an assembly reference?)
C:\Dokumente und Einstellungen\Test\Eigene Dateien\Visual Studio
2008\Projects\SmartDeviceProject1\SmartDeviceProject1\DataSetMonitoring.designer.cs
203 40 SmartDeviceProject1
Error 56 The type or namespace name 'BrowsableAttribute' does not exist in
the namespace 'System.ComponentModel' (are you missing an assembly
reference?) C:\Dokumente und Einstellungen\Test\Eigene Dateien\Visual Studio
2008\Projects\SmartDeviceProject1\SmartDeviceProject1\DataSetMonitoring.designer.cs
203 40 SmartDeviceProject1
Error 57 The type or namespace name 'DesignerSerializationVisibility' does
not exist in the namespace 'System.ComponentModel' (are you missing an
assembly reference?) C:\Dokumente und Einstellungen\Test\Eigene
Dateien\Visual Studio
2008\Projects\SmartDeviceProject1\SmartDeviceProject1\DataSetMonitoring.designer.cs
204 40 SmartDeviceProject1
Error 58 The type or namespace name
'DesignerSerializationVisibilityAttribute' does not exist in the namespace
'System.ComponentModel' (are you missing an assembly reference?)
C:\Dokumente und Einstellungen\Test\Eigene Dateien\Visual Studio
2008\Projects\SmartDeviceProject1\SmartDeviceProject1\DataSetMonitoring.designer.cs
204 40 SmartDeviceProject1
...
Is there an easy way to transfer applications, or assemblys or classes or
entire projects into a SmartDevice application? Kind of converter? Why seems
the dataset to be completely different on both target plattforms? I would
have expected that things like the dataset is exactly the same with both
frameworks...
Thanks for your advice! Tag: WM Print Engine with PDF support Tag: 87982
SystemState
Hi folks,
Does anyone know if SystemState is available on PPC 2003 through
Microsoft.WindowsMobile.Status reference assembly?
Thanks,
D Tag: WM Print Engine with PDF support Tag: 87963
Application gone after power on
I'm having a strange and almost undebuggable program. During my
development, my PDA (a Socket SoMo, and previously an HP) is generally
sitting in the cradle and it's powered through the night, so when I
come back in the morning the application is still running and
everything is fine.
However, our sales people take out the PDAs now and the product is
beginning to sell. Customers and salesfolk are finding that
occasionally (once every 50 times or so) when the PDA is powered down,
they power it up and find that the application is just not there. No
exception or anything. It's just gone. Since the application disables
the taskbar and it starts up automatically, this generally means they
are sitting at the today screen and can't do anything. As a temporary
fix, I will write a secondary application that keeps checking every 5
seconds (or on power up) that the primary application is running and
restarts it if it isn't.. but does anyone know how I can try to track
this problem, or if it has been seen before.
Any help would be appreciated.
Taha Tag: WM Print Engine with PDF support Tag: 87962
Hooking the power button
Hi.
There are so many strange things that happen when my iPaq is "off" (stand by
mode).
My application is sometimes logging activity at 00:00 for several seconds.
Sometimes it is waked up and keep logging activity for several hours.
Lots of strange things.
I must avoid this and detect when the system is in stand by and when it is
really awake.
Any ideas?
I thought of the following, and be happy to get your comments:
1. Check the battery drain... I guess it suppose to be really low when we
are in stand by
even though there's this phantom wakeup.
2. Hook all messages and intercept the power button.
I saw an application doing that, but have no idea how to perform it on
c#.
As far as I remember, the "journalrecordproc" is obslete since somewhere
in the 90's (95?).
3. look for a pixel on screen to decide? I wonder if I'll still get the
answer from the image memory
and there will be no difference at all if I'm awake or some kind of
zombie.
4. Pray that future versions will have only 3 modes: on, off and real
standby... and wait for these versions... :)
Thanks
Empi. Tag: WM Print Engine with PDF support Tag: 87960
Recieve RAW/binary SMS WM6, C#, CF3.5?
Hi!
Is there any way to intercept incoming SMS'es from a specific number,
and read the body as a sequence of bytes/RAW data?
I have tried using a MessageInterceptor as described in
http://msdn2.microsoft.com/en-us/library/bb932385.aspx
but the Body in the recieved messages simply contains a text that tells
that the message cannot be viewed. "Innholdet i denne meldingen kan ikke
vises"
I know that the SMS message, which comes from a server, is binary, i.e
not Unicode, and I know how to decode it - I just need to get access to
the raw content.
I am using Compact FrameWork 3.5, Windows Mobile 6.0, C#
--
Bjorn Brox Tag: WM Print Engine with PDF support Tag: 87959
CGACUTIL is not executed
Hi,
I'm having a problem executing CGACUTIL on my CE6.0, ARMV4I based
target.
Executing CGACUTIL on the device do actually nothing. there is a very
quick blink, but no window is displayed, so I can't see the version
of
it.
I've also tried to execute CGACUTIL.EXE from a command shell, and it
also do nothing - immediatelly the next prompt is shown, nothing
displayed.
Executing CGACUTIL on the same target, with CE5.0 on it, opens a
window displaying
"ver=2.0.7045".
What can cause this behavior?
Thanks Tag: WM Print Engine with PDF support Tag: 87958
draw partial last item with OpenNETCF.Windows.Forms.ListBox2
Posted this in the OpenNETCF community but didn't get any response so
thought I would try here to see if anyone knows.
I'm using the ListBox2 for an ownerdrawn list and placing an image and
text in the items. The problem I'm running into is if the
ListBox2.Height isn't divisible by ItemHeight perfectly then the last
item in the list doesn't show and its just a large white box. It
seems that NOINTEGRALHEIGHT isn't available on the ListBox2 or I'm not
sure how to use it.
I would just like the last ListBox2 item visible on the control to
draw even if only 3/4 of it is visible.
Thanks for any insight into this issue
vince Tag: WM Print Engine with PDF support Tag: 87956
GC.Collect() not cleaning memory, how to find out what references to lots of memory still exist?
GC.Collect() not cleaning memory, how to find out what references to lots of
memory still exist?
When all my processign is done i set everything to null and then:
GC.Collect();
and then
GC.WaitForPendingFinalizers();
but it still shows that my process takes 400 MB of memory. Is there any easy
way to see what references that I forgot to set to null so that the memory
cleas up on GC.Collect() ? Tag: WM Print Engine with PDF support Tag: 87953
Is there any equivalent of TimeZoneInfo.SupportsDaylightSavingTime in
Hi,
I am using Win CE 4.2 with .NET CF 3.5.
I need to know if my current time zone support Daylight Saving
time. .NET 3.5 full framework has
TimezoneInfo.SupportsDaylightSavingTime which is not available in
Compact Framework.
I have a form in my application where user sets date & time. I am
pinvoking to SetLocalTime.
When ever AutoDST (Automatically adjust clock for daylight saving)
check box is not checked under control panel Date/Time,
Sytem.DateTime.Now is off by 1 hours while staying DST start/stop date
which is expected behavior.
I can set AutoDST check using setting registry key but every Timezone
does not observes DST so I can't use this solution generically.
If I know that the current time zone is observing DST and new date is
in range of DST Start/Stop date, I can add 1 hour.
Any help would be appreciated.
Thanks,
Jayesh Modha Tag: WM Print Engine with PDF support Tag: 87952
Mysterious behaviour with UserControl and DocumentList during desi
I wrote a simple control derived from UserControl which draws a diagonal
line. When I drag this control to a form, the control is displayed, the
diagonal line is shown in the form designer. When I add a second form to this
solution and put a DocumentList control on that second form, the UserControl
on the first form doesn't show the line any more during design time. All
design time behaviour is gone. Removing the DocumentList control from the
second form, all works well.
What am I missing? Tag: WM Print Engine with PDF support Tag: 87951
Hooking the power button
Hi.
There are so many strange things that happen when my iPaq is "off" (stand by
mode).
My application is sometimes logging activity at 00:00 for several seconds.
Sometimes it is waked up and keep logging activity for several hours.
Lots of strange things.
I must avoid this and detect when the system is in stand by and when it is
really awake.
Any ideas?
I thought of the following, and be happy to get your comments:
1. Check the battery drain... I guess it suppose to be really low when we
are in stand by
even though there's this phantom wakeup.
2. Hook all messages and intercept the power button.
I saw an application doing that, but have no idea how to perform it on
c#.
As far as I remember, the "journalrecordproc" is obslete since somewhere
in the 90's (95?).
3. look for a pixel on screen to decide? I wonder if I'll still get the
answer from the image memory
and there will be no difference at all if I'm awake or some kind of
zombie.
4. Pray that future versions will have only 3 modes: on, off and real
standby... and wait for these versions... :)
Thanks
Empi. Tag: WM Print Engine with PDF support Tag: 87949
ANN: Road Map for Windows Embedded
Microsoft Charts Its Road Map for Windows Embedded Business
<URL:http://www.microsoft.com/presspass/press/2008/apr08/04-15RoadMapEmbeddedPR.mspx>
Windows CE => Windows Embedded Compact.
--
Thomas Scheidegger - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/ Tag: WM Print Engine with PDF support Tag: 87947
How to update a label
Hi, my question is how to update tha value in a labe (label1)l when i click
in a button ( button1 or button2 ), like this code:
public partial class Form1 : Form
{
private static string variable;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = variable;
}
private void button1_Click(object sender, EventArgs e)
{
variable = "a";
}
private void button2_Click(object sender, EventArgs e)
{
variable = "b";
}
private void button3_Click(object sender, EventArgs e)
{
MessageBox.Show(variable);
}
}
thanks a lot!
Pablo Tag: WM Print Engine with PDF support Tag: 87942
Memoryleak - garbage collector / WinCe 5.0 / CF 2.0
Hello,
I´m programming a C# application on Windows CE 5.0 and CF 2.0.
This application should run permanently (24h/7days). I realized that the
garbage collector (gc) does not free all the allocated memory. Thus after a
while (a few days) an OutOfMemory-exception occurs.
I wrote a small test application:
In a function I created a form (Form frm = new Form();) which is shown by
ShowDialog(). I figured out that after closing this form and leaving the
function, some memory fragments won´t be freed by the gc (>= 4KB).
This behavior occurs when member variables (lists, bitmaps,...) are declared
in this created form. If I declare this member variables within a function
(stack) the memory will be totally freed.
As I can see there is a bug in Visual Studio 2005. The object â??componentsâ??
is created, but never used by the designer. The overridden dispose-function
in the designer.cs frees all the objects in the componets-object but â?? as I
said â?? this object is never beeing used.
I customized all overrides of dispose() in the designer.cs:
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed;
otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && this.Controls != null)
{
this.components = new System.ComponentModel.Container();
foreach (Control o in this.Controls)
components.Add(o);
components.Dispose();
}
base.Dispose(disposing);
}
Now, most of the memory is freed but periodically there still remain some
fragments in the memory (>=4KB up to 64KB (?)).
I also noticed that running this application on a desktop pc with the â??bigâ??
:NET framework â?? no memoryloak persists!
Has anyone noticed the same behaviour and/or found a solution for it?
Does anyone have experience with applications running round the clock on
Windows CE / CF 2.0?
Are there bugs in the gc on compact framework?
Thanks for your help, best regards Chris Tag: WM Print Engine with PDF support Tag: 87941
How to pause and resume media player
Is there a way to pause and resume the media player programmatically? Thanks. Tag: WM Print Engine with PDF support Tag: 87937
Bordered Text
Hi, does anybody know a way to draw a bordered text (which each
character surrounded by a contour)?
Andrea Tag: WM Print Engine with PDF support Tag: 87930
Change Combobox scrollbar width ?
Hi
Is there some way to change the scrollbar width of the combobox ?
I done this before on the full framework by changing the display
properties, but on my CE5 device i can't find this.
Overriding the combobox does not expose its scrollbar, so am stuck (except
creating a now one from scratch)
Johan Tag: WM Print Engine with PDF support Tag: 87928
sockets not seeing the world :(
Hi
I have been programming for years but am just starting to develop
mobile apps for wm5. im using visual studio 2008, but did start my
development on visual studio 2003.
I am trying to implement some parts of an ftp client into a compact
app using sockets. Within vs2003 this worked fine both in an emulator
and running the app on a device via the activesync link, but when i
created a cab file for the app and installed it on my device it would
not connect to the network, failing on the connect command (connecting
to an endpoint)
I have since moved to vs2008 and i am now unable to get my application
to connect to the outside world both on the emulator and the device. I
have tried opening the web browser on the emulator and am unable to
access a web page, which tells me it has no internet connection. thats
fair enough i can see why that wont work but when i install the app
onto my device i have tried opening a normal data connection and wifi,
both allow me to open web pages, but neither allow my socket to
connect
anyone got any ideas??
Pete Tag: WM Print Engine with PDF support Tag: 87927
Button background colour
I have a VB.NET 2005 application that has been upgraded from 2003. I am
trying to add colour to the forms, but when I change the background colour
for buttons, it shows up in the designer but not on the device. Foreground
colour works ok, as does the background for forms, panels etc but not
buttons. I have read elsewhere that it didn't work in CF 1.0 - is it because
my project has been upgraded? Also, I want to change some of the fonts. If I
click on the font property for the button it only gives me the option of
Arial and Tahoma, and there is no option for bold etc. If I look at it in
the 2003 code, I can choose from any font. What am I missing? Any help would
be appreciated.
Andy Baker Tag: WM Print Engine with PDF support Tag: 87925
How can I trigger the valuechanged event of the FORMvertical scrol
Hi All,
I am working on the .Net compact framework 2.0. I need to execute some
code whenever form's vertical scrollbar value has been changed.
Please let me know, how can i accomplish this task? Tag: WM Print Engine with PDF support Tag: 87916
Migrating from WM5 to WM6
Hi.
I was asked to estimate how much time it will take to move a software from
an iPaq 2190 to an iPaq 114.
The iPaqs are almost the same but the 114 runs the wm6.
1) Is it fully compatible regarding software that was written to the wm5?
1.1) If not, what should be done in order to migrate it?
2) Any better BT programming support on the WM6?
3) Is the memory managment really gotten better and I'll be able to get all
my dll's in one piece into the memory? :-)
Thanks.
Empi Tag: WM Print Engine with PDF support Tag: 87912
.NET CF & Hardreset - still not possible?
Hello
Is it really not possible to perform a hardreset with newer devices using
.NET CF?
Thanks
Rampf Tag: WM Print Engine with PDF support Tag: 87909
transparent labels
Is there a way to create labels that allow the background image to show
through, true transparency? I want to add a label to a picturebox image but
not show the label boundaries, blocking out the image.
-E Tag: WM Print Engine with PDF support Tag: 87891
Battery Notifications
Hi, i´m developping my app in C#, VS 2005 and my device is WM5.
I´d like to disable/hide the notification balloon that the OS launch when
the battery is low for example.... i was searching in some forums, but i
couldn´t find a solution....
Any idea ?
Thanks a lot in advanca. Tag: WM Print Engine with PDF support Tag: 87890
Imagelist problem
To support both VGA and GVGA I have two imagelists, one containing
16*16 bit icons and the other 32*32 bit icons.
Is it possible to use the same icon files for both the imagelists?
It seems that both lists uses the 32*32 bit variant in the icon file.
ImageSize for the imagelists are set to 32*32 and 16*16 respectively.
My goal is to avoid maintaining to files for each icon.
/Broeden Tag: WM Print Engine with PDF support Tag: 87889
A newbie question : no need to install .NET framework on the device?
Hi.
I've been written desktop applications for years. One of the biggest
difficulties of distributing my application has been to make the
client install .NET Framework Redistributable. Now, I'm about to start
writing applications for the Windows Mobile 5.0 (smart device). Since
I don't have a pocket PC, I used the emulators. Using Visual
Studio .NET, running the application on the emulator was very easy,
but I don't see any process of installing .NET framework on the device
(emulator). When I browsed to the application folder, I could only
find one single exe file. Do Windows mobile come with .NET Framework
installed? I know there is .NET Compact Framework Redistributable, but
it seemed like it was meant to be installed on PC not on Pocket PC.
When I deploying my smart device application, do I only need to give
the users the executable file, like X-copy installation? Tag: WM Print Engine with PDF support Tag: 87883
How do I install a SSL Certificate on a WinCE 5.0 Device?
Please excuse me if this has been covered previously, but I've searched for
the past two days and can only find references to installing certificates
(for https communications) to PocketPC, Windows Mobile 5/6, and SmartPhones
but nothing about how to install a cert under WinCE5. Our host server uses a
SSL Cert issued by VeriSign. I've copied the cert info to my desktop and
created a _setup.xml as outlined in several posts/blogs but I can't figure
out how to wrap that xml into a Visual Studio 2005 - SmartDevice CAB File...
I've successfully copied the .cer file to the WinCE device (Symbol/Motorola
MC3000 series), executed the Certificates applet in the Control Panel,
accepted the prompt to add it to the store, and the import worked perfectly.
But, is there a way for me to call CertManage.exe with some type of /silent
switch so I can programmatically import the cert without user intervention?
Or, is there a way for the VS2005 CAB to install the cert when it gets
expanded/installed? Oh, and this version of WinCE 5.0 doesn't contain any
VeriSign certs in the OEM Build.
I am investigating how to properly implement these types of certificates
because this device is apparently using 40 or 56-bit encryption when
communicating to our SSL Servers and I'm trying to increase the encryption
level to 128-bit. Our IT Dept increased the security levels on our servers
to 128-bit and all of a sudden my .NET 2.0 CF apps were unable to
communicate with the servers until they lowered it back down to 40 or 56-bit
(something like that).
And I do believe another side-effect of these "low-bit" encryption
communications (or improperly accepting all cert discrepancies using the
CheckValidationResult method in the LocalCertificatePolicy) are the fact the
all of my SOAP Requests greater than or equal to 34K become corrupt towards
the end of the file, but ONLY when communicating to our SSL Servers. So I
know I'm doing something wrong in regards to supporting 128-bit
encryption...
I appreciate any and all responses,
Thank you!
[Also posted to microsoft.dotnet.security] Tag: WM Print Engine with PDF support Tag: 87874
Error Installing Mobile Client Software Factory
Hi, Anybody could install the Mobile Client Software Factory ? My PC has VS
2005, and every time that i was installing, i get the same error: "you need
to install the Guidance automation Toolkit 2006 o later before to install de
MCSF"...., but now i´ve installed the last version of it.... I tried
severals ways but i couldn´t install it...
Any advice ?
Thanks a lot. Tag: WM Print Engine with PDF support Tag: 87873
Restart Application
Hi, 2 questions.
1.
I m working in a mobile application and i need restart my application after
i change language settings. How i do that?
2.
I have a Main form and i call another form (frmLanguages), when i change the
language display a msgbox asking if the user want restart application, if
the user choose yes i want call a function in Main form to restart
application.
Armando Rocha
http://www.ifthensoftware.com Tag: WM Print Engine with PDF support Tag: 87868
Socket Listen function backLog param error
calling socket.Listen(int backLog) produces an error no matter what value I
pass to it. How do I call this?
TIA Tag: WM Print Engine with PDF support Tag: 87867
How to programmatically install a SSL Certificate on WinCE 5.0 device.
Please excuse me if this has been covered previously, but I've searched for
the past two days and can only find references to installing certificates
(for https communications) to PocketPC, Windows Mobile 5/6, and SmartPhones
but nothing about how to install a cert under WinCE5. Our host server uses a
SSL Cert issued by VeriSign. I've copied the cert info to my desktop and
created a _setup.xml as outlined in several posts/blogs but I can't figure
out how to wrap that xml into a Visual Studio 2005 - SmartDevice CAB File...
I've successfully copied the .cer file to the WinCE device (Symbol/Motorola
MC3000 series), executed the Certificates applet in the Control Panel,
accepted the prompt to add it to the store, and the import worked perfectly.
But, is there a way for me to call CertManage.exe with some type of /silent
switch so I can programmatically import the cert without user intervention?
Or, is there a way for the VS2005 CAB to install the cert when it gets
expanded/installed? Oh, and this version of WinCE 5.0 doesn't contain any
VeriSign certs in the OEM Build.
I am investigating how to properly implement these types of certificates
because this device is apparently using 40 or 56-bit encryption when
communicating to our SSL Servers and I'm trying to increase the encryption
level to 128-bit. Our IT Dept increased the security levels on our servers
to 128-bit and all of a sudden my .NET 2.0 CF apps were unable to
communicate with the servers until they lowered it back down to 40 or 56-bit
(something like that).
And I do believe another side-effect of these "low-bit" encryption
communications (or improperly accepting all cert discrepancies using the
CheckValidationResult method in the LocalCertificatePolicy) are the fact the
all of my SOAP Requests greater than or equal to 34K become corrupt towards
the end of the file, but ONLY when communicating to our SSL Servers. So I
know I'm doing something wrong in regards to supporting 128-bit
encryption...
I appreciate any and all responses,
Thank you! Tag: WM Print Engine with PDF support Tag: 87866
VS2008 Slow build time
I have VS2008.VB WM6 CF2.0 OpenCF 2.1 Web services project, converted from
VS2005 - that is taking an eternity to build - change a single line of code
and wait 15+ mins for it build - hogging two processors at 100% as it does
so... I have installed hotfix KB94344 - to no avail...
Under VS2005 all was fine and development was quick - now under VS2005
development time as dropped to a crawl - any explaination as to what is going
on? Tag: WM Print Engine with PDF support Tag: 87860
Please Help! Downloading updates to Pocket PC 2003 not working!
I am using the following code to download files to my Windows CE
device running pocket pc 2003.
Private Function Download(ByVal strSource As String, _
ByVal strDestination As String) As Boolean
Cursor.Current = Cursors.WaitCursor
Application.DoEvents()
Dim request As System.Net.WebRequest
Dim response As HttpWebResponse = Nothing
Dim s As Stream = Nothing
Try
request = WebRequest.Create(strSource)
request.Method = "GET"
' read file content
response = request.GetResponse()
s = response.GetResponseStream()
Dim b() As Byte = New Byte(response.ContentLength) {}
s.Read(b, 0, b.Length)
' save file into local storage
If File.Exists(strDestination) Then
File.Delete(strDestination)
End If
Dim fs As Stream = File.OpenWrite(strDestination)
fs.Write(b, 0, b.Length)
fs.Close()
Catch ex As Exception
MsgBox(ex.Message & vbCrLf & vbCrLf & strSource)
Finally
If Not response Is Nothing Then response.Close()
If Not s Is Nothing Then s.Close()
End Try
Cursor.Current = Cursors.Default
End Function
The download works fine and all however when I download a CAB or EXE
file for use on the device the format is unrecognized by the device
and will not run. The exe doesn't execute and the CAB file displays
the following error:
The file "blah.cab" is not a valid Windows CE Setup file.
Any ideas how I can get this to work? Tag: WM Print Engine with PDF support Tag: 87859
Hi,
Cannot find PDA Print Engine(.Net SDK required) with PDF support.
I need to print pdf file from WM5/6.
Re: WM Print Engine with PDF support by vipsolution
vipsolution
Thu Apr 24 07:00:44 CDT 2008
Hi,
Currently there is NO SDK with Pdf printing support.
Sad but true... (The last was HP Printing Mobile + Westek.
Unfortunately project was frozen).
Can anyone explain why we have such situation on the market?
Pdf is ideal format to tranfer reports, documents... Plus there is
WM software which can create or print to pdf format,
but no software(SDK) which can print pdf...