System Memory Storage Memory Adjust in CF 2.0 or OpenNetCF?
Can I programmatically adjust this memory usage option?
I want more System Memory and only 5MB of storage Memory
CE 5.0 CF 2.0
Thanks Tag: what a better way to create splashscreen Tag: 65929
show or showdialog() difference
Dim f As New SelectBuilding
f.Show()
f.ShowDialog()
hi what is the difference between f.show()
and f.showdialog()
which one takes more memory more time and performance
give me some difference
and where exactly can used this type
thanks Tag: what a better way to create splashscreen Tag: 65916
Is there a way to debug a native DLL and a C# exe simultaneously?
I am using VS2005 and CF2.0.
I can call native code in native DLL from C# exe program through P/Invoke
without problems.
However if the DLL project is set as the startup project I can only debug my
native C++ DLL, not the C# program.
If I set the C# project as the startup project I can only debug my C#
program, not the C++ DLL.
Is there a way to debug both simultaneously ( as in desktop windows?) in a
mixed mode? Enable managed and unmanaged debugger?
Thanks
Werner Tag: what a better way to create splashscreen Tag: 65909
Problem with P/Invoke
Hi
I am trying to import a c++ code in c# using p/invoke but am having
some trouble in implementing it.
C++ code inside the dll
namespace abc{
class __declspec(dllexport) CommandLineParams{
void getCmdLineParams(wstring cc.wstring name );
};
}
C# code for p/invoke is this
[DllImport("Strider.dll")]
public extern void CommandLineParams.getCmdLineParams(string
cc, string Name);
when it use dumpbin to see what data is inside the dll , i see
following signature of this function
?getCmdLineParams@CommandLineParams@abc@@AAAXV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@0000@Z
(private: void __cdecl abc::CommandLineParams::getCmdLineParams(class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >,class std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> >))
Now i can't understand a thing in this signature ....
What am i doing wrong ? What should be the correct format of p/invoke ?
thanks in advance
Somesh Tag: what a better way to create splashscreen Tag: 65900
difference of Ports.SerialPort and Serial.Port?
Hi,
Can someone tell me what is the difference between
OpenNETCF.IO.Ports.Serial and OpenNETCF.IO.Serial.Port? How should I
decide which one I should use?
Thanks
Lok Tag: what a better way to create splashscreen Tag: 65896
PDA needs to be reset to be able to start our app. again
Hello,
we're writing some app. for Pocket PCs using CF 1.0 and openNETCF 1.4
for RS232 communication.
On one device we get an exception at closing the RS232 port which says
something like this:
"A thread (hex) has ended with 0". It seems to me that some thread has
been ended what could be normal but:
we close our app then because we wanted to finish anyway and the app.
isn't listed under running programs anymore, what would be okay either.
Problem: the user now can start any app. on his Pocket PC but not ours!
Ours won't run unless you're rebooting the Pocket PC (soft reset)!
What is wrong here? Why do we get this? It's a device with WM 5.0
but on another modell with WM 5.0 all is fine... and on others with WM
2003 it's fine as well!
Greetings
Markus Tag: what a better way to create splashscreen Tag: 65895
A managed CommPortException
Hi,
I'm using OpenNETCF implementation for Serial Port access. When I
deploy it as a console application, it works fine. However, when I
deploy it as a Pocket PC 2002 application, I got
A managed CommPortException
occurred at Application::Run+0x1a
CreateFile Failed: 55
Application::Run+0x1a
MainForm::Main+0x27
I checked the registry, /HKLM/HARDWARE/DEVICEMAP, COM4 exist. I also
ran the application as a console application and it works fine with
COM4.
- What is the best and easiest way to debug a Pocket PC application?
- Is there anyway I can have a console to input and output data? It is
not easy to display any information with an GUI only interface.
Any suggestions?
Thanks
Lok Tag: what a better way to create splashscreen Tag: 65893
Progress bar in WebBrowser control?
I use a WebBrowser on a form (CF2) and set some html-text. In one
device (windows mobile 5) I see a progress bar for 1 second, in another
device (windows mobile 2003SE) I see no progress bar.
Is it possible to disable the progress bar in the WebBrowser control? Tag: what a better way to create splashscreen Tag: 65891
Web services with .NET Compact Framework
I have done quite a bit of development with the .NET compact framework in
the past. I am coming back to a problem i had a while ago relating to web
services.
Basically, when the application tries to download data from a webservice, I
occasionally get a server returned type: text/html. This causes the
application to crash and die on me. I'm following the examples which have
been given in most .NET books by microsoft.
I am looking for an example which is complete and handles all kinds of
connection related problem. The frustrating thing is, MSN messenger works
fine on my mobile, i know it must have exception handling in that. I'm
wanting something reliable that I can download data on request.
Please can you advise me on this.
Many thanks. Tag: what a better way to create splashscreen Tag: 65885
VB.NET and Active Sync
Hi,
I am looking for a way to transfer files from pocket pc to desktop + desktop
to pocket pc. Is this possible with Active Sync? If yes: how can I do this
under Visual Studio 2005 and Windows Mobile 5? thx....juvi Tag: what a better way to create splashscreen Tag: 65878
Serialport question
Hi,
I'm trying to read data from a device connected by SerialPort van MS CF2.0
I connect to the device and the send an INIT command to it.
The device then responds with some data.
Each time the datarecieved event is handled, I get the following
(translated) error:
NotSupportedException
No error message can be shown because an optional source-assembly can not be
found at
Miscrosoft.AGL.Common.MISC.HandleAR() at
System.Windows.Forms.Control.get_Text() at
MyProgram.Form1.prt_DataRecieved() at
System.IO.Ports.SerialPort.CatchRecievedEvents() at
EventLoopRunner.CallRecieveEvents() at
WorkItem.doWork() at
System.Threading.Timer.ring()
Can anyone tell me what this means, please, and how can I solve this?
rg.
Eric Tag: what a better way to create splashscreen Tag: 65876
dispplay rtf text
Hi I'm using the OpenNetCf's TextBoxEx control and I need the textbox
to be
ReadOnly and put text with rtf format into the textbox.
I'm serching into the web but i don't find any example that showmy how
put rich text into the textbox using this control.
This is the demo string that i'm using
rtf_demo = "{\rtf1\deftab720{\fonttbl {\f2\fswiss
Tahoma;}}{\colortbl\red0\green0
\blue0;\red255\green0\blue0;\red0\green255
\blue0;\red0\green0\blue255;\red0\green255
\blue255;\red255\green255\blue0;} \deflang1033\plain\f2\fs17\cf1\b This
\plain\f2\fs17\cf2 is \plain\f2\fs17\cf3 a \plain\f2\fs17\cf4\b test!
\plain\f2 \fs17\cf5\b\ul underline \par }"
i'm try pass the string right to the textbox using the texboxex.text
method but it doesn`t work.
can any one help me? Tag: what a better way to create splashscreen Tag: 65875
Playing and storing remote media files
I need to play media files (audio, video) in CF (in my app or media
player). Media files will be stored in my own app running on server or
MS SQL in better case. Do you have any idea how to make it? Is it
better and even possible to store video files on MS SQL and play them
on Pocket PC? Thanks a lot Tag: what a better way to create splashscreen Tag: 65874
change color for different controls
hi
Private Sub accessallcontrol(ByVal paramcontrol As Control)
Dim childcontrol As Control
With paramcontrol
'If CType(paramcontrol, Control) =
System.Windows.Forms.RadioButton Then
'End If
.BackColor = Color.NavajoWhite
For Each childcontrol In .Controls
accessallcontrol(childcontrol)
Next
End With
but i want to change only combo box color different
and label box different color...
where to change it Tag: what a better way to create splashscreen Tag: 65869
How to turn off event-sounds on WinCE 4.1
Hi,
I have to turn off unter WinCE 4.1 the sounds for events (warnings,
system events) in my C# program (CF 1.0 SP3), because to turn it off
under "Control Panel/Volume & Sounds" and hope that nobody switch it to
on again is not a good solution. Can somebody help me?
Thanks,
Patrick Tag: what a better way to create splashscreen Tag: 65868
VS2005 new Project Wizard in C#
When I create a new Pocket PC 2003 project in C#, the wizard generates a
pocket PC like designer view. It helps me to align my contros in it. But,
when I create a Windows CE 5.0 application for Windows Mobile 5.0 Pocket PC ,
the pocket PC like designer view doesn't get generated. Any ideas?
Thanks!
--
Eric Tag: what a better way to create splashscreen Tag: 65866
PerformClick
Ok I have created a custom control that inherits from button. I am
using CF 2.0. I know that OpenNetCF has a button that implements the
PerformClick event, but I want to create my own.
I have created my own, and the PerformClick method works just fine
after the form is loaded. However, if I do the PerformClick in the
load event it does something quarky. It flashes the new form I am
trying to load and then goes back to the original. I am trying to load
another form from the click event. The new form loads fine, and then
it goes back to the original form. It's like it sends it to the back
or something. If I set the second form's TopMost property the form
shows on top as expected. Does anyone have a clue what is happening.
It's driving me crazy. I don't understand why my second form wont show
up on top. I would appreciate help from anyone! Tag: what a better way to create splashscreen Tag: 65862
How to use OpenNETCF?
I have installed OpenNETCF using its setup.exe.
"using OpenNETCF.Windows.Forms; " was included to my code, but I have got
the the following error:
The type or namespace name 'OpenNETCF' could not be found (are you missing a
using directive or an assembly reference?)
Why?
Thanks
Frankie Tag: what a better way to create splashscreen Tag: 65836
How can a button control be forced to stay in "button down" state?
I would like to force the button to stay in "button down" state until the
next click.
Do you have any idea how can I reach it?
Thank you for your answer
Frankie Tag: what a better way to create splashscreen Tag: 65834
SortedList in CF 2.0?
The help file indicates that this is supported. Intellisense lets me use it,
but it fails to compile. Looking at the Framework references in the VS2005
project, they are pointing at the 1.1 Framework (and apparently can't be
redirected.)
Anyone solved this one? TIA
Rick Tag: what a better way to create splashscreen Tag: 65830
how to get owner Information Name
hi
how to get owner information Name from pocket Pc windows mobile 2005/2003
VS 2003 in .net CF1 vb.net Code
thankxs Tag: what a better way to create splashscreen Tag: 65829
SDF Custom Control
So I have a project in VS .Net 2003 that uses a custom control that I created
and it all works great. I want to convert it all to VS .Net 2005. I opened
the Control project, it converted to 2005 with no problems and compiled
flawlessly. I did the same with my application project (the one that
consumes the control), it required that I change some references from
OpenNETCF V1.3 to the new V2.0 Beta.
It compiles with just one error:
Metadata file 'c:\Program Files\Microsoft Visual Studio8\
SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\CompactControls.dll'
could not be opened -- 'Version 2.0 is not a compatible
version.' C:\Master.NET2005\MobileApps\PreprocEval\PreProcEval\CSC PreProcEval
I have also tried creating a new Control Project in .Net 2005 and pasting
the control code from the 2003 project into the 2005 project to no avail.
Does anyone have a clue as to what is going on here?
Bill Tag: what a better way to create splashscreen Tag: 65828
Non Full Screen Dialog
Hi,
I need to make a non full screen dialog similar to a MessageBox but with
controls. I was able to do this in EVC++, however I cannot seem to get it to
work in CF 2.0. The only way it kind of works is if I make the form
borderless and this looks terrible.
Thanks,
Shaun Tag: what a better way to create splashscreen Tag: 65826
how to convert ASCII stram to Unicode string
Hi,
I am passing a char array through infrared socket.In .net compact
framework I am using IrDAClient class to get the stream.This stream
I'll read in byte array. I want to convert the ASCII byte array to
Unicode string. How to do that?
Thanks
Jayshri Tag: what a better way to create splashscreen Tag: 65824
creating programmatically the yellow notification balloon?
does anyone have a VB.net CF sample about creating programmatically the
yellow notification balloon?
thanks in advance
matteo
www.stranigiorni.com Tag: what a better way to create splashscreen Tag: 65822
Using static Library from application written with managed code
Hi
I have bunch of static libs which were written in C++ and i want to
link to those libraries using managed code(c#) . For c++ VS had the
option of including additional libraries .....what is the equivalent of
that for c# ?
Also will such a scenario work where a managed app access a static lib
written in native code?
Thanks in advance
Somesh Tag: what a better way to create splashscreen Tag: 65820
ListView MouseDown Event
Hi,
I am trying to add the following functionality:
- I have a ListView with a few columns that is in Detail view with single
row select enabled. I have added the ability for the user to tap on one of
the rows in the ListView to open up a new Form containing the details of the
item that was tapped. I also need to have a ContextMenu to popup when the
user performs a tap & hold on one of the rows.
I have implemented the SelectedIndexChanged handler to detect when the user
selects a row and open up a Form with the appropriate information. I have
also ascribed a ContextMenu to the ListView. The ContextMenu appears fine if
I tap & hold in the whitespace area of the ListView, however when I perform a
tap & hold on one of the rows, the SelectedIndexChanged routine fires before
the tap & hold support. I have tried various methods to get around this,
including changing the Activation method for row selection/activation, etc.
I then tried to author my own custom ListView control that captured the
MouseDown event, however this event never seems to fire no matter where I tap
the stylus.
Can anyone please help me out with this issue and possibly point me in the
direction of a code example or something similar. Any help with this issue
would be greatly appreciated.
Thank you very much,
Shaun Tag: what a better way to create splashscreen Tag: 65819
Disabling multiple instances of an application
Hi
I am developing a Win CE application in C#, .NET compact framework version 1.0.
I want to disable multiple instances of my application. Can this be done using Mutex? If so, then how? Else, is there any other method to do this?
It will be helpful if I could get a help as early as possible.
Regards
Kris
From http://www.developmentnow.com/g/18_0_0_0_0_0/dotnet-framework-compactframework.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com Tag: what a better way to create splashscreen Tag: 65818
Problem connecting SQL Server 2000 from Pocket PC 2003 SE emulator
Hi,
I am developing Device Application using VS.NET 2005, Pocket PC 2003 SE
Emulator and SQL Server 2000 database
Whenever I run the application from emulator, getting error " Specified
SQL Server does not found:10.1.15.1\\SQL2K ".
I tested the same code in the Windows application, It's working fine.
tried connecting LAN PC shared folders using Emulator File Explorer.
(Changed Device ID of the emulator and tried, but no luck)
Code Snippet as follows
SqlConnection ConObj = new SqlConnection();
ConObj.ConnectionString = "User ID=sa; Password=sa; Initial
Catalog=DotNetCF; Data Source=10.1.15.1\\SQL2K";
SqlCommand cmdObj = new SqlCommand("SELECT * FROM jobs", ConObj);
SqlDataReader drObj;
ConObj.Open();
drObj = cmdObj.ExecuteReader();
while (drObj.Read())
{
listBox1.Items.Add(drObj.GetString(2));
}
drObj.Close();
ConObj.Close();
Thanks in advance for any help!!!
-Rao Tag: what a better way to create splashscreen Tag: 65816
CF 2 + Sql Mobile : parameters slows queries... Bug ?
Hi,
I have a request which returns rows from a table with where clauses to
filter results. One clause is a int comparison, and the other is a LIKE
comparison.
If I build the request with concatenation ("WHERE column = " + myval + " AND
column2 LIKE '" + myval + "'"), it works well and return results in about
300 ms.
If I code "properly" using SqlCeParameters, using the same values than
before, the request takes up to 120 seconds !
I start to think it is a bug in Sql Mobile with LIKE clauses.
Our table has near 50000 records in 12 columns. The result of the query
contains near 150 records average (depends on the filters value).
Here is the struct of the table [1] and below a small VS 2005 code [2] that
can repro the behaviour :
[1]
CREATE TABLE [dbo].[Product](
[Prod_NProdGID] [int] NOT NULL,
[Prod_NProdID] [int] NOT NULL,
[Prod_SProductCode] [varchar](30) COLLATE French_CI_AS NULL,
[Prod_SDescription] [varchar](40) COLLATE French_CI_AS NULL,
[Prod_NType] [tinyint] NULL,
[Prod_NStatus] [tinyint] NULL,
[Prod_NUnit] [smallint] NULL,
[Prod_NProductBasketID] [int] NULL CONSTRAINT
[DF_Product_Prod_NProductBasketID] DEFAULT (0),
[Prod_NManualPriceForbidden] [tinyint] NULL CONSTRAINT
[DF_Product_Prod_NManualPriceForbidden] DEFAULT (1),
[Prod_NBonusInKindForbidden] [tinyint] NULL CONSTRAINT
[DF_Product_Prod_NBonusInKindForbidden] DEFAULT (1),
[Prod_SProductClass] [varchar](10) COLLATE French_CI_AS NULL,
[Prod_NMarketingPromotionForbidden] [tinyint] NULL CONSTRAINT
[DF_Product_Prod_NMarketingPromotionForbidden] DEFAULT (1),
[rowguid] [uniqueidentifier] ROWGUIDCOL NOT NULL CONSTRAINT
[DF__Product__rowguid__6923CC8E] DEFAULT (newsequentialid()),
CONSTRAINT [PK_Product] PRIMARY KEY CLUSTERED
(
[Prod_NProdGID] ASC,
[Prod_NProdID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Index [FK_Product_ProductBasket] Script Date: 02/10/2006
11:37:45 ******/
CREATE NONCLUSTERED INDEX [FK_Product_ProductBasket] ON [dbo].[Product]
(
[Prod_NProductBasketID] ASC
)WITH (SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF,
ONLINE = OFF) ON [PRIMARY]
GO
/****** Object: Index [FK_Product_ProductGroup_SL] Script Date: 02/10/2006
11:38:03 ******/
CREATE NONCLUSTERED INDEX [FK_Product_ProductGroup_SL] ON [dbo].[Product]
(
[Prod_NProdGID] ASC
)WITH (SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF,
ONLINE = OFF) ON [PRIMARY]
GO
/****** Object: Index [FK_Product_ProductStatus] Script Date: 02/10/2006
11:38:12 ******/
CREATE NONCLUSTERED INDEX [FK_Product_ProductStatus] ON [dbo].[Product]
(
[Prod_NStatus] ASC
)WITH (SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF,
ONLINE = OFF) ON [PRIMARY]
GO
/****** Object: Index [IDX_Prod_SProductCode] Script Date: 02/10/2006
11:38:22 ******/
CREATE NONCLUSTERED INDEX [IDX_Prod_SProductCode] ON [dbo].[Product]
(
[Prod_SProductCode] ASC
)WITH (SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF,
ONLINE = OFF) ON [PRIMARY]
GO
/****** Object: Index [index_1749581271] Script Date: 02/10/2006 11:38:28
******/
CREATE UNIQUE NONCLUSTERED INDEX [index_1749581271] ON [dbo].[Product]
(
[rowguid] ASC
)WITH (SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF,
ONLINE = OFF) ON [PRIMARY]
GO
/****** Object: Index [PK_Product] Script Date: 02/10/2006 11:38:35 ******/
ALTER TABLE [dbo].[Product] ADD CONSTRAINT [PK_Product] PRIMARY KEY
CLUSTERED
(
[Prod_NProdGID] ASC,
[Prod_NProdID] ASC
)WITH (SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, ONLINE = OFF) ON
[PRIMARY]
[2] User code file only... We have a form with 2 buttons and one datagrid.
public partial class Form1 : Form
{
SqlCeConnection conn;
public Form1()
{
InitializeComponent();
conn = new SqlCeConnection(
@"Data source = '\Storage card\app\db.sdf';ssce:encrypt database =
TRUE;ssce:database password='secret'"
);
conn.Open();
}
private void MeasureQuery(string query)
{
MeasureQuery(query, null);
}
private void MeasureQuery(string query, params SqlCeParameter[] parameters)
{
SqlCeDataAdapter da = new SqlCeDataAdapter(
query,
conn
);
if (parameters != null)
da.SelectCommand.Parameters.AddRange(parameters);
DataSet dts = new DataSet();
int begin = Environment.TickCount;
int step = 0;
int end = 0;
Cursor.Current = Cursors.WaitCursor;
da.Fill(
dts
);
step = Environment.TickCount;
dataGrid1.DataSource = dts.Tables[0];
end = Environment.TickCount;
Cursor.Current = Cursors.Default;
MessageBox.Show(string.Format(
"{0}ms + {1}ms = {2}ms\n{3}",
step - begin,
end - step,
end - begin,
query
));
}
private void button1_Click(object sender, EventArgs e)
{
MeasureQuery(
@"SELECT
Prod_NProdGID,
Prod_NProdID,
Prod_SProductCode,
Prod_SDescription,
Prod_NType,
Prod_NStatus,
Prod_NUnit,
Prod_NProductBasketID,
Prod_NManualPriceForbidden,
Prod_NBonusInKindForbidden,
Prod_SProductClass,
Prod_NMarketingPromotionForbidden
FROM Product
WHERE Prod_NProdGID = @GID
AND Prod_SProductCode LIKE @Code",
new SqlCeParameter[] {
new SqlCeParameter("@GID", 10),
new SqlCeParameter("@Code", "0890%")
}
);
}
private void button5_Click(object sender, EventArgs e)
{
MeasureQuery(
@"SELECT
Prod_NProdGID,
Prod_NProdID,
Prod_SProductCode,
Prod_SDescription,
Prod_NType,
Prod_NStatus,
Prod_NUnit,
Prod_NProductBasketID,
Prod_NManualPriceForbidden,
Prod_NBonusInKindForbidden,
Prod_SProductClass,
Prod_NMarketingPromotionForbidden
FROM Product
WHERE Prod_NProdGID = 10
AND Prod_SProductCode LIKE '0890%'"
);
}
}
Thanks in advance for any help.
Steve Tag: what a better way to create splashscreen Tag: 65815
Debugging with Visual Studio 2005 and CF2
Hi,
i wrote a little application. Debugging on emulator works fine. I'm trying
to debug this on a real device (dell axim x51 Win Mobile 5.0 german) and the
debugger stops with message:
Post-deploy error 0x80070005 returned after calling '\Windows\wceload.exe
/noui \Windows\System_SR_de.cab'.
How can i fix this problem? Tag: what a better way to create splashscreen Tag: 65814
Mapirule
Hi
I am using mapirule.dll . This dll can filter the incoming messages for e.
g on subject or phone number
But I have problem that the dll is taking only hardcoded
phone numbers.When I store a number in a variable and compare it with actual
phone number ,the dll is taking messages from all the numbers.
I have that code snippet.
the datatype of ccnum is wchar_t and pspvEmail->Value.lpszW is
pointer to structure.
if (wcsstr(pspvEmail->Value.lpszW,ccnum) != NULL)
{
if (g_hSmsAvailableEvent != NULL) {
// We have received an SMS message that needs to be send to our client.
// Since we run in the process space of Inbox, we are using a memory
mapped
// file to pass the message and phone number to our client, that
typically
// runs in another process space (therefor we can not simply copy strings)
.
// We protect the memory mapped file with a Mutex to make sure that we
are
// not writing new SMS data while the reading client is still processing
// a previous SMS message.
WaitForSingleObject(g_hMutex, INFINITE);
lstrcpy(g_pSmsBuffer->g_szPhoneNr, pspvEmail->Value.lpszW);
lstrcpy(g_pSmsBuffer->g_szMessageBody, pspvSubject->Value.lpszW);
ReleaseMutex(g_hMutex);
SetEvent(g_hSmsAvailableEvent);
}
// Delete the message and mark it as handled so it won't show up in Inbox
hr = DeleteMessage(pMsgStore, pMsg, cbMsg, lpMsg, cbDestFolder,
lpDestFolder, pulEventType, pHandled);
}
else
{
// a 'normal' message, pass it on
*pHandled = MRC_NOT_HANDLED;
}*/
If there is other solution then plz tell me
With Regards
Prasad Tag: what a better way to create splashscreen Tag: 65809
Read message from desktop MSMQ queue.
Can I read messages on a device from desktop queue?
I want to implement eventing of rarely connected devices.
Is MSMQ properly way for this solution?
Best Regards
Darek Tag: what a better way to create splashscreen Tag: 65808
multi-line text button?
Hi,
For desktop framework 2.0. I can create the button with text that is longer
than then button itself, and it automatically moves to a newline for it.
but in CF 2.0, the button text will just go outside the button, in which u
cannot see it if the text is longer than the button width...
I wonder how can i get the same as with the desktop framework?
Many thanks! Tag: what a better way to create splashscreen Tag: 65801
delegate for unmanaged callback
When using a delegate for callback from an unmanaged dll: do I have to fix (
(how do i?) that delegate somehow so that is will not be 'moved' on garbage
collection or voided totaly after the procedure is vacated so the unmanaged
pointer will loose it's relevance?
Thanks!
tb Tag: what a better way to create splashscreen Tag: 65797
InvalidOperation on CameraCaptureDialog.ShowDialog
Hello,
I got the hand over a Windows Mobile 2005 Pocket PC (an Eten M600) and
wanted to try some of the new features coming with the CF .NET 2.0.
But when I played with the CameraCaptureDialog class, an
InvalidOperation was throwed on the ShowDialog() method. At first I
thought I had a problem regarding the framework not being properly
installed on the device, but some other new methods work lie a charm
(POOM, Phone Calls etc.).
I tried different settings before calling ShowDialog(), and, of course,
the device has an integrated Camera but the result is always the same.
I thought all Windows Mobile 2005 certified devices had to support the
new API calls, could it be possible I fell on a device not supporting
it or am I missing something? Tag: what a better way to create splashscreen Tag: 65794
Limit to number of files in a PDA directory ?
Is there a limit to the number of files you can store in a PDA
directory ? I am developing a medical application (blood
gas/electrolytes) and the results and information from each test is
stored in an xml file. Each file is about 3K. Today FileStream started
throwing an exception whenever I tried to create a new file in the
directory. The directory containing the tests had 1299 files. Once I
cleaned out the directory, the exceptions stopped.
Is there a limit to the number of files (or size) of a directory on a
pocket pc ?
any info is appreciated
Taha Tag: what a better way to create splashscreen Tag: 65780
Unit Test Framework for .NET CF?
Has anybody found or maybe even successfully used any? I spent some time
searching but I could not find anything... Tag: what a better way to create splashscreen Tag: 65779
Tools to find out Memory Leaks
Hello All,
Does any of you know of any tool in the market to identify which
Process/Software is leaking memory. The PDA is Samsung 730 , Pocket PC
2003 OS. The Device does not leak any memory if we have just the .Net
Compact Framework and the Application installed. As soon as we install
Netmotion, Avalanche etc the device starts to leak memory. We are
trying to find which one of these is leaking memory, it could be a
combination of both. Do you guys know of any tool to find the same.
Thanks Tag: what a better way to create splashscreen Tag: 65764
Maybe a XmlTextWriter bug?
I'm trying to do this:
XmlDocument document = new XmlDocument()
// document fill...
// Write a new xml file
WriteXmlDocument(document);
XmlDocument newDocument = new XmlDocument()
document.load(sameFileAsPrevious);
// fill document with other data
WriteXmlDocument(newDocument);
// Function that writes document in a file
WriteXmlDocument(XmlDocument document)
{
XmlTextWriter writer = new xmlTextWriter(filepath);
writer.Formatting = Formatting.Indented;
writer.Indentation = 4;
document.write(writer);
}
The result is:
the first call to WriteXmlDocument generate a file correctly indented,
but the other calls to WriteXmlDocument generate all the new data (only
the new data, not the data written in the first pass) not indented!
Any suggestion? Tag: what a better way to create splashscreen Tag: 65760
ZIP files
Hi all
To save transfer time, some XML data will be sent to my PPC as a zip file.
My questions are
1) Is there native UnZip functionality in dotnet CF? If not, can someone
recommend something?
2) I would prefer some kind of UnzipStream, so that I can use XmlReader with
the zip file instead of extracting it first and working from disk (too much
space used), is this also possible?
Pete Tag: what a better way to create splashscreen Tag: 65759
How can be triggered Keydown event of a Button?
I ttry this:
Button MyButton...
MyButton.KeyDown();
but I get this
"The event 'System.Windows.Forms.Control.KeyDown' can only appear on the
left hand side of += or -="
Thanks
Frankie Tag: what a better way to create splashscreen Tag: 65758
Support for multiple language resources
Is there any way to switch cultures at run time in the CF 2.0? None of the
methods which work with the standard framework seem to work with the compact
version. Basically what I am trying to do is create multiple .resx files
such as "strings.en.resx" and "Strings.de.resx" and then access them with
ResourceMaganger.GetString("MyString", MyCultureInfo) calls. Tag: what a better way to create splashscreen Tag: 65757
How to deploy additional files to a windows mobile 5.0 emulator
Hi,
I changed the develpoment tool from vs2003 to vs2005 recently.
Originally, I have a xml file,named data.xml, added in the project in
the vs2003 project.
When I deployed the project to PocketPC2003 emulator, this XML File is
deplyed to the emulator successfully with the following code.
private string GetAppPath()
{
System.Reflection.Module[] modules =
(System.Reflection.Module[])
System.Reflection.Assembly.GetExecutingAssembly().GetModules();
string sPath =
System.IO.Path.GetDirectoryName(modules[0].FullyQualifiedName);
return sPath;
}
//......
private load()
{
string sPath = GetAppPath();
string sFileName= sPath + "\\" + "data.xml";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(new FileStream(sFileName, FileMode.Open));
//...
}
However, a problem occured when I deployed the same code and XML
file(data.xml) in VS2005 to Windows Mobile5.0 PocketPC Emulator. In the
Debug Mode, It shows that the file, "\Program
Files\DicM5\data.xml",doesn't exist, where DicM5 is the project name
in the Visual Studio.
How to deploy additional file to Windows Mobile5.0 PocketPC Emulator ?
Any Help is appreciated. Tag: what a better way to create splashscreen Tag: 65749
CF 2.0 + Sql Mobile : performance issues with LIKE
Hello,
We havev an application that worked well with CF 1.0 and Sql Ce 2.0.
Now we are upgrading the application in order to be in "full 2005"
environment.
Sometimes, the application has to request the DB with a LIKE clause
WHERE ProductCode LIKE ?
And we fix by code the value of the parameter to "1234%".
ProductCode is nvarchar(30).
With the CF 1.0 and Sql Ce 2.0, the request took up to 10 seconds.
Now the same request (and the same code) takes up to 120 seconds to
executes.
We also added an index to this column.
What can be the possibles causes of this slow behaviour ?
Thanks,
Steve Tag: what a better way to create splashscreen Tag: 65747
[newbie] sharing Bitmap resources & Designer?
Hi everybody,
I want to place images via PictureBox in a form.
(Actually I tried to use my own class, in order to enable transparency)
It works, except that I wonder, why VS Designer puts all images into a
local resource file? I am not able to put all my bitmaps into a central
resource file and then use it from there [with the designer]?
Why is it not possible to use images from a different resource than the
local with the designer?
Tilman
PS: this is VS 2005 with Windows Mobil 5.0 Tag: what a better way to create splashscreen Tag: 65745
What happens to dead timers?
I seem to be leaking a timer when I close a form but can't work out
why.
I have a very simple form ("TestForm" in the example below) that
contains a timer and a button that closes the form by calling Close. I
display the form by calling ShowDialog on it and then call Dispose when
ShowDialog returns. If I set a break point in the timer event, I can
see the timer being called when I show the form. If I then close the
form, the timer continues to be called, even after I have called
dispose.
I do not understand how this is possible. I would have thought that
calling Dispose on the form would have disposed all the controls in
including the timer and hence stopped the timer from firing. Also, if
the form has been disposed, what object is the timer calling?
I could disable the timer in the OnClosing event but I would like to
work out why this is happening in the first place so I do not end up
just hiding the symptoms.
Do I need to do extra work to dispose of a timer?
Attached is a small sample application that demonstrates this problem.
I tried to cut the code down as much as possible but it still a bit
long (sorry). To test, run the code and press the test button on the
first dialog. Add a break point in the timer event and see that it is
triggered. Next close the form. At this point the timer still seems
to be triggered.
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.ComponentModel;
namespace DeviceApplication1
{
static class Program
{
class TestForm : Form
{
public TestForm()
{
this.button1 = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer();
this.SuspendLayout();
this.button1.Location = new System.Drawing.Point(48, 148);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(72, 20);
this.button1.TabIndex = 1;
this.button1.Text = "Close";
this.button1.Click += new
System.EventHandler(this.button1_Click);
this.timer1.Enabled = true;
this.timer1.Interval = 500;
this.timer1.Tick += new
System.EventHandler(this.timer1_Tick);
this.AutoScaleDimensions = new System.Drawing.SizeF(96F,
96F);
this.AutoScaleMode =
System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(240, 294);
this.Controls.Add(this.button1);
this.Name = "TestForm";
this.Text = "TestForm";
this.ResumeLayout(false);
}
private void button1_Click(object sender, EventArgs e)
{
Close();
}
private void timer1_Tick(object sender, EventArgs e)
{
}
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Timer timer1;
}
public partial class Form1 : Form
{
public Form1()
{
this.btnTest = new System.Windows.Forms.Button();
this.SuspendLayout();
this.btnTest.Location = new System.Drawing.Point(114, 83);
this.btnTest.Name = "btnTest";
this.btnTest.Size = new System.Drawing.Size(72, 20);
this.btnTest.TabIndex = 0;
this.btnTest.Text = "Test";
this.btnTest.Click += new
System.EventHandler(this.btnTest_Click);
this.AutoScaleDimensions = new System.Drawing.SizeF(96F,
96F);
this.AutoScaleMode =
System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(240, 294);
this.Controls.Add(this.btnTest);
this.Name = "Form1";
this.Text = "Form1";
this.MinimizeBox = false;
this.ResumeLayout(false);
}
private void btnTest_Click(object sender, EventArgs e)
{
TestForm t = new TestForm();
t.ShowDialog();
t.Dispose();
}
private void button1_Click(object sender, EventArgs e)
{
Close();
}
private System.Windows.Forms.Button btnTest;
private System.Windows.Forms.Button button1;
}
[MTAThread]
static void Main()
{
Application.Run(new Form1());
}
}
}
Jonathan Tag: what a better way to create splashscreen Tag: 65744
Visual Studio 2005, Compact Framework 2.0 & Windows CE.NET 4.2
Can somebody please confirm my suspicion; I have been presented with a
Windows CE.NET 4.2 device (not PocketPC) and have been asked to develop an
application using Vusiau Studio 2005 and Compact Framework 2.0 - I cannot
find any compatibility between this as there only seems to be support for
CF2 on PocketPC/2003 and CE.NET 5
I have also tried loading the compact framework installers onto the device
and this fails with both versions!
Am I missing something, or are my findings correct? Tag: what a better way to create splashscreen Tag: 65743
ActiveSync Detailed technical info
Hallo!
I am trying to get detailed information of how ActiveSync works but I
cannot really find any detailed information (differences between Active
Sync versions, how dows it connect to the PC,...).
My main problem comes from the point that I want to create an
application that syncs with a server using MSMQ.
In order to use MSMQ I need to be able to reference the PDA.
In the case that the PDA has a direct internet connection (for example
via Wireless) I would have the Ip that would let me send the Messages
to the PDA.
But what happens when it's connected through a cradle? Does it get any
ip address that I could use? Should I make special desktop software for
the craddle syncing?
I would be very grateful if someone could point me to any information.
Thanks in advance
Jon Tag: what a better way to create splashscreen Tag: 65740
"Magic Gooddy" <gooddy@rambler.ru> wrote in message
news:OuY1BEBMGHA.3272@tk2msftngp13.phx.gbl...
> How to create the best splashscreen?
> Please, give me comments and code.