PocketPC 2003 on WinCE .net 5.0
Hi !
It's possible to run an PocketPC2003 application developped with VS.net
2003 on a WinCE. net 5.0 device ?
If not, what can I do ? Must I convert my project to VS.net 2005
Thanks for you answer! Tag: New Fourm on dotnet Tag: 89154
How to prevent SELECTION by user, in TEXTBOX ?
Hi,
I want to prevent the user, from selecting text (blue selection) in TextBox
, How can i do this ?
(the textbox must be enabled=true)
Thanking in advance. Tag: New Fourm on dotnet Tag: 89152
How to get current ringtone name ?
Hello,
How can I get the current ringtone name on windows mobile 6 std & pro??
thx
juvi Tag: New Fourm on dotnet Tag: 89150
Crystal Reports & Compact Framework Integration on the Desktop
Hi experts.
I am using VB.Net 2005 as my development environment.
I have created an application for the Pocket PC. The data is
transferred to the desktop via OpenNETCF and then I use SQL Compact
Server 2005 to process the data on the desktop with a final export to
Access format.
I have Crystal Reports XI and my VB.Net 2005 is also bundled with CR
functionality. I created reports directly in CR XI and now need to be
able to use them in .Net.
Here is where I get lost. When I created my RPT file it had me connect
to the database (Access 2002) and then add a table and fields.
It works great except now that I am porting to my .Net app, the
database my embedded CR needs to connect to will always be changing
(dynamic). The table and field names will always remain the same. It
is just the file name that changes, based on user inputs.
So are there any tutorials, literature, help that anyone can point me
to so I can get on with my steep learning curve? I started programming
in VB.net and developing CR's just a short time ago and would
appreciate a 'dumbed' down explanation so I can get a handle on this.
Thanks for any help or advice offered.
Regards
The Mad Ape Tag: New Fourm on dotnet Tag: 89148
How to open a new window when using WebBrowser
Hi all,
I have a webbrowser component integrated into my form.
In my page I have some links. My problem is when I click on those
links I want Internet Explorer to show up with a new window, instead
of using my existing webbrowser.
Is possible to do that?
The funny thing is it's works when I write a simple WIN32 application
but it doesn't in CF.
This is how I code my links:
<a href="http://google.com" target="_blank">Open new page</a>
Thanks Tag: New Fourm on dotnet Tag: 89147
Really unhappy - cellular emulator not starting on 4 machines!
Hello
I tried to install and launch cellular emulator by performing the following
steps:
- Installing VS2008
- Installing Windows Mobile 6 std & prof. SDK Refresh
Tried it on Windows XP Professional 32bit SP2, Windows XP Professional 32bit
SP3, and two different Windows Vista x64 Business machines but no success.
Error message on the Vista x64: "There not seven pairs of XPVCOM..."
Error message on WinXP x86: "MS VC++ Runtime error"
thx for any help Tag: New Fourm on dotnet Tag: 89146
Opening Programs or Games in .net cf?
Hello,
Is it possible to open the programs, settings and game folder
programmatically?
With passing programs or games folder to fexplore.exe would open it in the
file explorer, but I want to get exactly the same as I would go to:
start->programs
start->programs->games
start->settings
if possible.
thx Tag: New Fourm on dotnet Tag: 89145
Leak of System.LocalDataStore
Hey all.
I am trying to trouble shoot a memory leak using .NET CF2 SP2. I am using
the Remote Performance Monitor from 3.5 PowerToys.
Usually I have great success with this tool in tracking down memory leaks
but in this instance I am confused.
We spawn a bunch of threads, they do something, control.Invoke to update
some UI then exit. Loop through doing this a ton of times (we are stress
testing the leak).
This blog almost describes what I am experiencing on CF2:
http://skalyan.blogspot.com/2008/06/thread-local-storage-leak-in-compact.html
However we are not doing SetData or GetData at all on any thread.
In performance monitor we are seeing the following:
System.Object[] Size: 268 Bytes, ID, ......someid.....)
---> [root: Other] System.LocalDataStore (Size: 16Bytes, ID, ....someid....)
---------> System.Object[] (Size: 140 Bytes, ID, ...someid...)
---------------> System.Collections.ArrayList (Size: 24 Bytes, ID,
...someid...)
--------------------> [root: Static (System.Threading.Thread)]
System.LocalDataStoreMgr (Size 24 Bytes, ID, ...someid...)
We see a ton of these. As we loop creating threads, we just see this number
sky rocket.
I tried to reproduce a simple test case of spawning threads, calling
control.invoke in the thread etc and do not see the leak.
Upgrading to 3.5 as the blog says is not an option for us.
Can anyone think of something that can be creating these leaks without the
SetData/GetData being called since we are not doing so?
In the Remote Profiler tree list, I cannot see any of the nodes attached to
these items attached to anything in our code so I'm not sure why their
lingering.
Any help would be greatly appreciated!
Thanks so much for your time in advance.
The threads are not leaking
I am getting the following objects showing up in Tag: New Fourm on dotnet Tag: 89144
documentation existing for possible arguments??
hello,
Is there a documentation existing for common programs like calendar.exe,
poutlook.exe.... which arguments they can take?
I would need to open the calendar add new appointment directly if possible
with arguments. And other functions I will also need so a doc. would be
perfect.
thx
juvi Tag: New Fourm on dotnet Tag: 89138
Info from device to PC
Hi to everyone...
One question, is possible from a device with WM 5 or WM 6, when it's
cradled, for example launch and application that resides in the PC desktop ?
For example, when the user press a button into a form in pocket pc, that
launch notepad.exe...
Thanks a lot.. Tag: New Fourm on dotnet Tag: 89136
SendKeys in Compact framework
Hi, i was reading some post ago, that in CF it´s possible to simulate los
taps...Can any give me any sample about this ?
Thanks a lot! Tag: New Fourm on dotnet Tag: 89135
How to port System.Environment.GetEnvironmentVariable()?
Hi,
I am port some code of .net framework 2.0 to .net compact framework.
There is code that use System.Environment.GetEnvironmentVariable to get
environment variable as some options but it is not supported by compact
framework?
Can anyone suggest if there is some convensions to port this code? for
example, what do people using compact framework normally use for program
options?
Thanks, Tag: New Fourm on dotnet Tag: 89131
Need help with reports
I want to create reports and I don't care if I use crystal reports or
vb.net reports. I am using vb.net 2005 and the app pulls data from
user created access db's and compact 2005 sdf's.
Here is where things get a bit tricky for me. I don't want to open any
datasets to create my reports. All of the data I need is staring at me
on the screen. Is there anyway to copy over the contents of textboxes
and listviews to the report easily?
I tried using the Print Form utility in the Vb.Net Power Pack but it
only does a screen capture and does not get the all of the information
I require.
This is my first .net project that I have required paper reports and I
am completely lost on how to approach this.. Every tutorial I have
found does not seem to apply as they all want to use a single static
database. I literally can be pulling data from hundreds of databases
in a variety of formats.
Dumping the contents of forms seems to be the easiest and logical
solution...I just can't get a handle on it.
Please help.
Thanks
:L Tag: New Fourm on dotnet Tag: 89122
ArrayList to bytes
Hi,
It is possible convert ArrayList object to bytes in CF?
I know that with full framework its possible...
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com
PORTUGAL Tag: New Fourm on dotnet Tag: 89121
Size in Bytes transfered...
Hi,
I call an webservice from my mobile application to send an array trought
them. It is possible get de size in bytes of data that webservice transfer
to server?. My goal is show in a label de value of data transfer like this:
" your transfer x Kb ".
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com
PORTUGAL Tag: New Fourm on dotnet Tag: 89111
Mobile IE TextBox font size...
Greetings all!
Quick question:
Is there anyway to change the default font size of a text box render to
Mobile Internet Explorer? I'm developing a Windows Mobile 2005 device... All
textboxes in HTML / Asp.Net / Mobile Controls all render the textbox to one
size only regardless of the size I specify. It works as expected in normal
IE...
I'd like to increase the font size in the text box because the device will
be driven by finger rather than stylus...
Cheers.
Dan. Tag: New Fourm on dotnet Tag: 89110
Programmatically open start menu possible?
Hello,
Is it possible to open the start menu programmatically in .net cf - c#?
thx in advance
juvi Tag: New Fourm on dotnet Tag: 89098
MouseMove is fired every time I click on pictureBox
Hello,
I want to use MouseDown, MouseMove, MouseUp, MouseClick.
MouseDown....Is used for Start e.x and e.y values
MouseMove....enables a bool value
MouseUp...disables bool value if enabled and compares actual e.x and e.y
values with old and starts code for moving picturebox in some direction
MouseClick...should only launch some things when picturebox is clicked.
But the MouseMove is fired every time.
Is there a way to avoid MouseMove if only click??
thx
juvi Tag: New Fourm on dotnet Tag: 89095
Environment.StackTrace Functionality
Hello,
Is there a way in the Compact Framework to access the callstack/stacktrace
of the currently executing thread? I'd like to simulate what
Environment.StackTrace does.
Cheers!
Rich Tag: New Fourm on dotnet Tag: 89088
Re: GPIO code example
You get the address and size based on your hardware data sheet. If you
don't know the address, or don't know that you need an address, then I
question whether you should be even doing this. What exactly are you trying
to do that you think you need the PhysicalAddressPointer for?
-Chris
" selma güzel <slm guzel@hotmail.com>" wrote in message news:...
> Message-ID: <51386bd6ff44486c857e54f336a5c126@newspe.com>
> X-Mailer: http://www.umailcampaign.com, ip log:88.252.250.136
> Newsgroups: microsoft.public.dotnet.framework.compactframework
> NNTP-Posting-Host: 22.bb.5446.static.theplanet.com 70.84.187.34
> Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP06.phx.gbl!newspe.com
> Lines: 1
> Xref: TK2MSFTNGP01.phx.gbl
> microsoft.public.dotnet.framework.compactframework:117142
>
> Hi,
> What is the reference for PhysicalAddressPointer parameters:myAddress,
> size
> Namely,according to where,must i set these?
> Thanks.
>
> url:http://www.ureader.com/msg/14288388.aspx Tag: New Fourm on dotnet Tag: 89087
RasHangUp
Hi all,
I have developed a simple software for a WM5.0 device that makes the
following operations:
- creates a GPRS and VPN connections through the DMProcessConfigXML API.
- opens the VPN connection through the OpenNETCF ConnectionManager.
- launch the TelnetCE software using the System.Diagnostics.Process class e
using the WaitForExit method.
- when the TelnetCE is closed, my software closes all connections through
the ConnectionManager Disconnect method.
Since the connection manager doesn't close all the opened connections, the
software must use the RasHangUp API.
The problem is that the device becomes unusable when the first RasHangUp is
called on the first opened connection (got through the RasEnumConnections
API).
Switching off and switching on the device, the RasHangUp API seems to
continue its work but the system connections are unusable anyway.
Only after a softreset the connections become usable.
If my software launch another application instead of TelnetCE, the problem
doesn't occur.
Can TelnetCE lock the connection even if it is closed?
How can I solve this problem?
Thanks in advance
mauro
PS: My disconnect methods
private static void disconnect()
{
if (_connectionManager != null)
_connectionManager.Disconnect();
_connectionManager = null;
Thread.Sleep(5000);
hangUpExistingConnection();
}
private static void hangUpExistingConnection()
{
int conns = 0;
RASCONN[] ras = new RASCONN[256];
ras.Initialize();
ras[0].dwSize = Marshal.SizeOf(typeof(RASCONN));
int lr = ras[0].dwSize * ras.Length;
int ret = RasEnumConnections(ras, ref lr, ref conns);
for (int i = 0; i < conns; i++)
{
try
{
RasHangUp(ras[i].hrasconn); // Execution stops here.
Thread.Sleep(3000);
}
catch (Exception ex)
{
showErrorMessage(ex); // No errors occured
}
}
} Tag: New Fourm on dotnet Tag: 89082
Almost always connected scenario
Hi,
We are planning a new project for devices running Windows Mobile. The
main doubt we've got at the moment is if we build a sometimes
connected scenario or an always connected one.
There will be a database server as the main application's repository,
but the most important part of the project targets people that need
mobility (no tied to desktop PC) in a quite reduced indoor space,
therefore, the idea would be to set up a WIFI network indoor.
Then, my initial idea would be to have a local database on the device,
that at a regular period synchronizes data with database server thanks
to WIFI connection (GPRS would not be needed). The unique limitation
we've got is that synchronization must be done quite often, that is,
we cannot be more than 15 minutes for example without synchronizing
data with the server. Changes made on devices must be available "quite
instantly" (15 minutes of delay would be nice) on database server for
other users to consume them.
As you can see, I'm talking about an scenario very near to "always
connected" paradigm. Then, would be possible to develop a Compact
Framework application that is "always connected" to the server. Some
years ago there were ASP.NET Mobile applications, but the problem
there was that you must open a browser and point to web application
server URL, the application was formatted depending on the device, and
so on, and that's a very different approach of interacting with a
Windows Forms Compact Framework "user-friendly" application.
Don't know if nowadays there's something similar and mor euser-
firendly that lets the user be "always or almost always
connected" (VIA WIFI, no GPRS) to a server from a device running
Windows Mobile.
Any advice or suggestion would be greatly appreciated. Thnaks very
much in advance.
Miguel
Blog: http://lonifasiko.blogspot.com Tag: New Fourm on dotnet Tag: 89078
how to compile code both for .net compact framework and .net frame
Hi,
I have a c# source file which wants to be used for both .net compact
framework and .net framework.
I want to use some kind of #if directive which can choose to compile
different part of code like
#if ABC
.net compact specific
#else
.net framework
#endif
I wonder what is specific condition I can use to indicate it is compiling
for .net compact framework? Tag: New Fourm on dotnet Tag: 89074
GPS Tracking
Hi all,
I need to know how it's works gps tracking. I supose that the mobile
device read gps coordinates and send them to an server through gprs.
It's true?
TIA,
Catalin Tag: New Fourm on dotnet Tag: 89071
Web Request Crashes If Not Port 80
This is a multi-part message in MIME format.
------=_NextPart_000_000E_01C8D643.B19B3170
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have a handheld running Windows Mobile 5 and an electronic scale with =
a WiFi connection at a fixed IP address. When the scale is used, a =
value is streamed to port 2101. I need to suck data off an that port. =
When I run the following code, address "http://192.168.1.107/" works =
just fine, but it grabs the built-in admin login web page. When I use =
"http://192.168.1.107:2101/", the code crashes with "This protocol is =
not supported".
Running Compact Framework 2, how do I code for a port that is not 80? =20
Dim httpResponse As HttpWebResponse
Dim ipAddress As String =3D "http://192.168.1.107/"
'Dim ipAddress As String =3D "http://192.168.1.107:2101/"
Dim httpRequest As HttpWebRequest =3D =
CType(WebRequest.Create(ipAddress), HttpWebRequest)
httpRequest.Credentials =3D CredentialCache.DefaultCredentials
httpResponse =3D CType(httpRequest.GetResponse, HttpWebResponse)
Thanks for any suggestions.
GS
------=_NextPart_000_000E_01C8D643.B19B3170
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16643" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D1>I have a handheld running Windows Mobile 5 and an =
electronic=20
scale with a WiFi connection at a fixed IP address. When the scale =
is=20
used, a value is streamed to port 2101. I need to suck data off an =
that=20
port. When I run the following code, address "<A=20
href=3D"http://192.168.1.107/">h<A =
href=3D"">ttp://192.168.1.107/</A></A>" works=20
just fine, but it grabs the built-in admin login web page. When I =
use "<A=20
href=3D"">http://192.168.1.107:2101/</A>", the code crashes with "This =
protocol is=20
not supported".<BR><BR>Running Compact Framework 2, how do I code for a =
port=20
that is not 80? </FONT></DIV>
<DIV><FONT size=3D1> </DIV></FONT>
<DIV><FONT face=3D"Courier New" size=3D1>Dim httpResponse As =
HttpWebResponse<BR>Dim=20
ipAddress As String =3D "</FONT><A href=3D"http://192.168.1.107/"><FONT=20
face=3D"Courier New" size=3D1>http://192.168.1.107/</FONT></A><FONT=20
face=3D"Courier New" size=3D1>"<BR>'Dim ipAddress As String =3D =
"</FONT><A=20
href=3D"http://192.168.1.107:2101/"><FONT face=3D"Courier New"=20
size=3D1>http://192.168.1.107:2101/</FONT></A><FONT face=3D"Courier New" =
size=3D1>"<BR>Dim httpRequest As HttpWebRequest =3D=20
CType(WebRequest.Create(ipAddress), HttpWebRequest)</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D1></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D1>httpRequest.Credentials =3D=20
CredentialCache.DefaultCredentials<BR>httpResponse =3D=20
CType(httpRequest.GetResponse, HttpWebResponse)</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D1></FONT> </DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>Thanks for any suggestions.</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>GS</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1></FONT></DIV></BODY></HTML>
------=_NextPart_000_000E_01C8D643.B19B3170-- Tag: New Fourm on dotnet Tag: 89065
Internet connection stops working until reboot
I've got a .NET CF 2.0 app running on a Windows Mobile 6 smartphone (a
Samsung Blackjack). I mostly use the phone for testing my app, so
it's running my app pretty much all the time.
Sometimes, after a few days the Internet connection will stop working.
Right now, for example, the ConnectionManager is returning
"ConnectionLinFailed", and has been for the last 12 hours or so. No
Internet apps are working, including IE. When I reboot it fixes the
problem.
Has anybody else had this problem, and/or found a solution?
Anybody know of something that my application could be doing to cause
this, or is it likely to be the phone or carrier? For example, could
this be something that happens if I'm leaking event handles, memory,
file handles, or some other resource? Is there a system log that
would indicate problems like this, like the Windows event log or the
Unix syslog? Is there a way to check for leaks of these or any other
resources that could cause problems, for example to see how many are
in use by my app or system-wide? Is there anything I can do from my
app that might help, like disabling/re-enabling the GPRS radio?
Thanks for any thoughts!
----Scott. Tag: New Fourm on dotnet Tag: 89058
Show form designer for my code file
Hi,
i have problem opening designer for my Form - Visual Studio 2005 do not show
form icon in solution explorer, so i can open my file only as "View Code" not
as "View Designer". If i could use "Open with..." opetion, but designer is
not included in list of editors.
I suggess that VS requires for designer that file contains class derived
from System.Windows.Forms.Form class and that this class must be first class
in code file.
This happended several times, but usualy after some restarts and rebuilds it
starts working. Not this time. I have my class declared as "public class
MainForm : Form" and this is the only class in the file.
Any ideas how to make VS to show designer for my form? Tag: New Fourm on dotnet Tag: 89052
Detecting faulty SD Card
Hi
I have an iPAQ hx2490 running WM 5.0 with a faulty SD Card. The problem is
that windows doesn't seem to know it is faulty.
In a .NET CF (2.0 or 3.5) I can create an SQL DB, move and copy files etc,
Close my program and open it again and all the files are in tact. File
Explorer and ActiveSync can see the SD Card but can't see the files I create
on it.
If I soft boot the device, all the files are gone.
The faulty SD card isn't the problem, but you can imagine how my customer
related to us after doing a stocktake and losing all the data!
My guess is that Windows Mobile has cached the data and failed to write it
to the card. Does anyone have any idea how I could detect that Windows hasn't
actually committed the data to the media.
Thanks
Steve Tag: New Fourm on dotnet Tag: 89046
How can I read SD card ID or similar information?
Hello everybody,
our software (c# on .CF) must handle different sd cards. So I need a SD card
specific information to identify a SD card.
My first idea was to use "IOCTL_STORAGE_GET_DEVICEID" via P/Invoke
(DeviceIoControl).
This works fine on a Windows Mobile 5 Hardware (Archer, Juniper Systems).
Unfortunatedly our customers have still older handheld hardware (Panasonic
CF-P1 with Pocket PC 2002). On these devices calling the DeviceIoControl
funktion with the "... _GET_DEVICEID" parameter fails with SD cards (Error
0x57 - wrong parameter). On the same system the function will work with
CF-Cards. So I assume, that this is an issue of the device. But I have no
chance to get a patch from Panasonic for this (old device).
So I have to find an other way to identify the different SD cards.
(I don't want to create additional files, because it would be possible to
exchange these files manually between the cards.)
My second idea was to use the Volume ID of the SD Card. Most SD Cards use
the FAT Filesystem. And this filesystem has an ID. You can see it if you call
the "dir" command on the comand shell. This information will be changed if
the SD card is formatted, but for our needs it is OK.
On the desktop PC there is the API call "GetVolumeInformation" which deliver
this information. But I have not found something like this for mobile
systems.
Does anybody know how I can read this ID?
A different way to get a "SD card specific ID" would fine, too.
Kind regards,
Christof Konstantinopoulos
(Dortmund, Germany) Tag: New Fourm on dotnet Tag: 89045
OpenNETCF.Desktop.Communication Question
Hi, can anybody guide me in how to use the OpenNETCF.Desktop.Communication
library to detect a running process in my connected device ?
Thanks in advance Tag: New Fourm on dotnet Tag: 89044
Mirrored forms - RTL for Arabic/Hebrew
I'm trying to make some software that is Right-To-Left capable for use
in Arabic and Hebrew. I'm running CE 6.0 and Compact Framework 2.0.
The Window Layout and Mirroring page on MSDN makes it sound as though
I can just call SetLayout and SetWindowLong and the whole form will
mirror: http://msdn.microsoft.com/en-us/library/aa913269.aspx
I can get the ControlBox and Form title text to flip to the other side
(maximize button in top left), but that's about it. I was assuming all
of the X,Y locations of the form controls would change when the origin
moved. Shouldn't a button that is on the left of a form move to the
right due to the Near / Far location?
Am I missing something obvious? Tag: New Fourm on dotnet Tag: 89037
OpenNETCF Webbrowser or visualize a html-file
Hi,
I have to show a html-file without other navigation on WinCE 4.2 and .Net
1.1
I try to use the Web-Browser from OpenNETCF V 1.4
But I don't understand to handle this part and I have'nt found any help
about V 1.4
I only want to open a form with 'frm.ShowDialog()' and show the html-file.
Can anybody help me and send a part of code, how to initialize and activate
the control and make it visible ?
thx.
--
mfg, Wolfgang
------------------------
A-8020 Graz
Austria Tag: New Fourm on dotnet Tag: 89033
Problem with the Soft Input Panel (SIP)
Hello,
I have a problem with the "Soft Input Panel" (SIP). Please have a look
at this screenshot of my application:
http://img517.imageshack.us/img517/668/sipproblemzu9.png
I have an own button to show the SIP. But if a click on this button, a
second default button appears. Is it possible to deactivate the
default SIP button?
And a second question: How can I check, if the SIP is currently shown
or hide?
Thank you very much for your help!
Greetings, Manfred
[DllImport("coredll.dll")]
private static extern int SipShowIM(SIPStatus i);
[DllImport("coredll.dll")]
private static extern bool SipSetInfo(ref SIPINFO pSipInfo);
[DllImport("coredll.dll")]
private static extern bool SipGetInfo(ref SIPINFO pSipInfo);
private enum SIPStatus
{
SIPF_OFF = 0,
SIPF_ON = 1
}
private struct SIPINFO
{
public Int32 cbSize;
public Int32 fdwFlags;
public RECT rcVisibleDesktop;
public RECT rcSipRect;
public Int32 dwImDataSize;
public Int32 pvImData;
}
private struct RECT
{
public Int32 left;
public Int32 top;
public Int32 right;
public Int32 bottom;
}
public Boolean isVisible() {
return pvtVisible;
}
public void SetPosition(Int32 top)
{
SIPINFO mySi = new SIPINFO();
bool result = true;
mySi.cbSize =
System.Runtime.InteropServices.Marshal.SizeOf(typeof(SIPINFO));
result = SipGetInfo(ref mySi);
mySi.rcSipRect.top = top;
mySi.rcSipRect.bottom = top + 80;
result = SipSetInfo(ref mySi);
}
public void show()
{
SipShowIM(SIPStatus.SIPF_ON);
}
public void hide()
{
SipShowIM(SIPStatus.SIPF_OFF);
} Tag: New Fourm on dotnet Tag: 89032
Restarting message loop with new form after exception
Hello,
In my Main() method in Program.cs, I have an exception handler around
my Application.Run(). If I catch an exception, I would like to bring
up a dialog box asking the user if they would like to send an error
report.
In my first attempt, I created the form for the dialog box, then tried
to restart the message loop with another call to Application.Run().
Unfortunately, this call to Appliction.Run() immediately throws an
exception. The documentation says that this will happen if I try to
start a message loop on a thread that is already running a message
loop, and Application.Run() seems to think the message loop is still
running. Perhaps this is because it was exited abnormally via an
exception.
In my second attempt, I starting a new thread, and called
Application.Run() from there. This works, but adds a lot of clutter
to an otherwise straightforward piece of code, and seems a bit kludgey
besides.
Is there a better way to do this?
Thanks!
----Scott. Tag: New Fourm on dotnet Tag: 89030
how to wait for data from the serial port
Hi,
I'm developing in c# .NetCF 2.0. I have two operations that need to come one
after another(in fact there are more than two but the basic idea is the same).
However, before starting the second, I must read and process the data from
the serial port(which is generated as a result of the first operation).
How to do it?
What is the best way?
What is the easiest way?
Thank you very much Tag: New Fourm on dotnet Tag: 89029
gotfocus keeps firing
I found the same issue, i had converted a vs2003 application to vs2005 and had textboxes which took advantage of the _gotfocus event to popup my own alphanumeric keyboard, this was all ok in vs2003.
After converting, the same gotfocus would popup the keyboard as before but would keep firing it.
After hours and hours of tinterweb meandering and general messing around,
I removed the handles textbox.gotfocus entry and created AddHandlers for them instead
Inside the gotfocus event i added a removehandler ( so it removed the callback )
Did the call to the alpha keyboard
Then reapplied the addhandler.
This seemed to fix it. Tag: New Fourm on dotnet Tag: 89028
Controlling GPIO using Compact Framework c# under Wince 5 on qq244
Hi,
The subject explains what i want to do simply.
How can i access GPIO using compact framework?And is it necessary to have
gpio driver for this sbc(arm9 based qq2440)?
Thanks in advance. Tag: New Fourm on dotnet Tag: 89026
Create Installation Package for VB2008 Project
I recently created a Windows Mobile application using Visual Basic. Net
2008. I also created a Deployment Project and am now ready to create the cab
files and distribute it. The application uses SQL CE and requires the
Compact Framework to be installed on the Mobile device. I have all the cab
files to install the SQL CE and Compact Framework.
My question is how can I have on total installer that will install my
project along with the SQL CE and Compact Framework?
I am sending this to uses on the road and have about 6 different cab files
that are required to be installed before the project can be installed and do
not want the user to be bogged down install 6 different applications. I just
want one total installer.
Thanks!!!
Lou Tag: New Fourm on dotnet Tag: 89016
Threads help
Hi,
I want a know if is possible launch a separeted thread that run with a
interval of time like a Timer object (Timer.Tick).
my goal is put to buttons (Start and Stop), when user click Start i want
launch a thread that do something with a interval of 30 seconds at least,
but user can work normaly, but when user click Stop i want also stop thread.
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com
PORTUGAL Tag: New Fourm on dotnet Tag: 89009
Question SqlResultSet
Hi, i´ve an application (WM5 CF 2.0) where i´ve two textbox T1 and T2, that
binding to a table in my Sql Server Mobile 2005 db.
So when i write any text in any textbox, the data is persisted to the table.
At here, all works fine.
The problem, es when:
I write in the T1, for example "hello1", go to the T2 and write "hello 2",
and GO back to the T1 and delete the text "hello 1" GO to T2, in the T1 the
srting "hello 1" appear AGAIN!!! why ? if i deleted it ??
Up to now, i couldn´t find an answer and solutin....
Can any help me ? or explain me why this behavior ?
Thanks in advance.
Daissy Tag: New Fourm on dotnet Tag: 89005
Help with custom 'clickable label' control
I've created a basic clickable label derived from
System.Windows.Forms.Control which works fine, BUT, I want to use it
in a situation where it will be 'scrolled' around the screen and this
is where it goes wrong, the 'OnPaint' event is not doing the
background so it ends up being 'smeared' rather than cleanly
displayed.
Below is the 'OnPaint' code, what do I need to do to ensure it is
'cleanly' re-painted?
protected override void OnPaint(PaintEventArgs pe)
{
Graphics gr = pe.Graphics;
base.BackColor = ViewerColors.ViewerBackColor;
if (Autosize)
{
SizeF size = gr.MeasureString(this.Text.ToUpper(),
this.Font);
this.Width = (int)size.Width;
}
else
this.Width = this.Parent.Width - (this.Left +
4);
Color textColor = ForeColor;
SolidBrush b = new SolidBrush(textColor);
gr.DrawString(Text, Font, b, 0, 0);
b.Dispose();
}
Chris Tag: New Fourm on dotnet Tag: 89003
Mobile Client Software Factory + VB.NET Example
Hi
Am am attempting to get the disconnected service agent withing the above
factory working. I am using Microsoft Mobile Development Handbook Chapter 7
as my guide.
I have setup the webservice and amended the config file and properties
within the web reference to point to my service however the code is failing.
on stepping the factory the problem is following the connection to the
webservice the code attempts to call the
Invoke within CommandCallback.cs
This is found within Mobile Application
Blocks\Mobile.DisconnectedAgent\CommandCallback.cs
line 65
public virtual object Invoke(params object[] args)
{
object targetInstance = Activator.CreateInstance(targetType);
MethodInfo method = targetType.GetMethod(targetMethodName);
return method.Invoke(targetInstance, args);
}
The code errors at
object targetInstance = Activator.CreateInstance(targetType);
It would appear the targetype is set correctly?
{Name = "OrderProductDialog" FullName =
"DisconnectedServiceAgentExample.OrderProductDialog"}
The error that is returned is
MissingMethodException
The C# version of the example works without errors but I need to get the VB
example working, I have tried creating a new example but the same error is
returned?
Thanks in advance
Tom Tag: New Fourm on dotnet Tag: 89002
MouseDown event not firing after ContextMenu closing
Hi,
I have the (reproducible) problem that no MouseDown event is firing if
I close a contextmenu by clicking besides it. I have a panel in which
I do custom drawings, on some places there pops a contextmenu up and
offers some options. If one clicks not on the menu, but somewhere else
in die appliation the contextmenu closes (as expected) but the
underlying panel does not fire any MouseDown event until it gets
redrawed - strange is that MouseMove and MouseUp get still fired -
unfortunately I need MouseDown and do not want to redraw the whole
panel just because of the contextmenu closes without a click on one of
the offered options (if one clicks on the context menu the effect also
vanishes - then MouseDown is again there).
Do you have any idea what this could be?
thanks in advance,
Tom Tag: New Fourm on dotnet Tag: 88998
Window Mobile 6(.NET) Remote Deletion & Detect Sim Card
Hi. I need the source code(with explanation if possible) or any other
information/codes related for the remote deletion and detect sim card
function for Window Mobile 6 (Programming Language: .NET). Below is the use
case description of the 3 function for more info.
Need Help ASAP. Thanks.
1.)
Use Case Title: Remote Deletion (Individual)
Actors: Server and Mobile
Brief Description: To remote delete SMS, pictures, video, audio and other
files from the phone memory and removable storage media
Pre-Condition: The mobile must be installed with Mobile SafeGuard system.
The remote deletion will be executed when instruction is received from the
server.
Post-Condition: Mobile SafeGuard system will send an instruction back to the
server after the success of the deletion.
Basic Flow:
Mobile receives instruction from the server.
System will delete the respective files from the mobile.
Alternative Flow:
-nil-
2.)
Use Case Title: Remote Deletion (Folder)
Actors: Server and Mobile
Brief Description: To remote delete all the files in the folder from the
phone memory and removable storage media.
Pre-Condition: The mobile must be installed with Mobile SafeGuard system.
The remote deletion will be executed when instruction is received from the
server.
Post-Condition: Mobile SafeGuard system will send an instruction back to the
server after the success of the deletion.
Basic Flow:
Mobile receives instruction from the server.
System will delete the respective files in the folder from the mobile.
Alternative Flow:
-nil-
3.)
Use Case Title: SIM Card Detection
Actors: Server and Mobile
Brief Description: To detect change of SIM card and send SIM card and device
information to the server.
Pre-Condition: The mobile must be installed with Mobile SafeGuard system.
The system detects changes in SIM card and device information.
Post-Condition: Server will be updated with the new SIM card and device
information.
Basic Flow:
Mobile receives instruction from the server.
System sends new SIM card and device information to server.
Alternative Flow:
-nil- Tag: New Fourm on dotnet Tag: 88992
INFORMATION_SCHEMA.Tables DATE_CREATED
Does anybody know if an RDA pull should update the DATE_CREATED column
of the INFORMATION_SCHEMA.Tables table for an SQL Compact Edition 3.1
database? In my tests the only columns that seem to be set are
TABLE_NAME and TABLE_TYPE. Could somebody please verify that the
DATE_CREATED is not set when pulling a table through RDA. Thanks! Tag: New Fourm on dotnet Tag: 88988
EventWaitHandle & CeRunAppAtEvent
Hey,
I found that EventWaitHandle is now implemented in the .NET CF 3.5,
but I can't find any managed method to create named events. Do I have
to still use P/Invoke and CeRunAppAtEvent?
Cheers
Michal Tag: New Fourm on dotnet Tag: 88980
Unit Testing classes using ResourceManager
Hi,
I am writing some unit tests for my windows mobile application.
Unfortunately, some of the code I want to test uses localization strings,
which blow-up my unit tests. I'm guessing this is because the language DLL's
are not being correctly found. Does anyone know how to solve this?
Here's a code snippet example of my unit test that blows up:
[TestMethod()]
public void GetStringsResourceManagerTest()
{
ResourceManager actual;
actual = Utils.GetStringsResourceManager();
Assert.IsNotNull(actual);
String lblPassword = actual.GetString("ACCOUNT_PASSWORD");
Assert.Equals(lblPassword, "PIN");
}
The call to GetString("ACCOUNT_PASSWORD") is throwing the following exception:
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
System.Resources.ResourceManager.GetString(String name)
MobileUnitTests.UtilsTest.GetStringsResourceManagerTest()
Thanks in advance for any help! Tag: New Fourm on dotnet Tag: 88969
How to check WCF support
Hi,
I have a CE5.0 and WM5.0 device. I just want to check whether my terminals
support WCF( Windows Communication Foundation) or not. Is there any
applications to check this support in our terminals? Or If not how i can add
this support for my devices basically what are the components are required
before building the OS image to enable WCF support?
Pleaes give me your inputs.
Thanks
Saravana Tag: New Fourm on dotnet Tag: 88967
HI
thank you all
here is a new fourm on dotnet
can post your queries here and get the answers as soon as possible