get rid of focus
Env.: WM6 / VS2008 / CF 3.5
Hi All,
I have this winform used to view info (not edit it). It contains a set of
labels and textboxes set in readonly mode.
The problem is that the focus is set automatically to first text box and the
caret is displayed. This is confusing to users because you think you can
type something in there. How can I get rid of this caret?
My dirty workaround is as such: ((Control)MyLabel).Focus();
-> Sets the focus to a label. It's dirty because Label hides Focus() (hence
the typecast). Which means I'm not supposed to use it. (BTW the compiler
emits a warning to remind me so).
Does anyone know of a more elegant/'legal' solution?
Note: Turning the textboxes into labels is not a good option here because
the form is sometimes used in 'view' mode and sometimes in 'edit' mode. And
I want to keep a single layout for both modes.
TIA,
Serge. Tag: Send Your Location Tag: 88297
Compiling for an older version
Hi,
We have a project, originally written in C# in VS2003 for PPC using .Net
Framework 1.1 and SDF 1.4 for devices running WM 2003se.
We've since upgraded the project to VS2005, .Net 2.05 and SDF 2.2 to
accomodate new devices running WM5/6.
Is there any way of using our new development environment to compile a
version for the older 2003se devices, or must we run two separate
environments / projects?
Any input gratefully received!
Matthew Bradford Tag: Send Your Location Tag: 88296
IsNumeric validation Compact Framework 2.0
Hi, are there any function in C# to validate that the value from a textbox
to be numeric ?
Thanks in advance. Tag: Send Your Location Tag: 88284
Multiple fields in ComboBox.DisplayValue
Hello to everybody.
I'm old in Delphi but quite new in Visual Studio, starting development
in VB.NET for PPC...
I would like to ask, if it's possible to add many fields in
DisplayValue field, in a ComboBox component.
In Delphi it was quite easy, defining field1;field2;... But in Visual
Studio 2005 (and VB.NET), I didn't find any information...
Thank you in advance,
Stratos Nikolaidis
Thessaloniki, Greece Tag: Send Your Location Tag: 88281
Web.Services SoapContext
Compact Framework 2.0 does not include support for WSE 3.0 (Web.Services3).
What can I use instead of SoapContext to pass my credentials?
On Windows application I use C# code:
NewToken.com.digitalpaytech.sandbox.TransactionInfoServiceWse
myPayStationWse = new
NewToken.com.digitalpaytech.sandbox.TransactionInfoServiceWse();
SoapContext myContext = myPayStationWse.RequestSoapContext;
UsernameToken token = new UsernameToken(myUsername, myPassword,
PasswordOption.SendPlainText);
myContext.Security.Tokens.Add(token);
myContext.Security.MustUnderstand = true;
It works fine. How can I connect to secure Web Server from Mobile
application where SoapContext is not available? Tag: Send Your Location Tag: 88278
WPF in CF
Hi
Is anyone aware if Microsoft is planning to support WPF in the Compact
Framework? I know that they introduced the WCF in 3.5 CF but have not heard
anything about WPF. (or how about WF)?
Thanks
Ivan Tag: Send Your Location Tag: 88277
ResultsetView
Hi, i´ve a question: i´m working with a resultsetview to bind my controls on
the form...but i´d like to "bind" to a property that i have in my form
(string name, for example ) ...anybody can help me to do this ? I´m working
in C#, CF 2.0 WM 5
Thanks a lot! Tag: Send Your Location Tag: 88276
Build error after upgrade project CF2.0 to CF3.5
Hello,
I have upgraded a windows mobile solution to VS2008 and CF3.5.
Everything was fine but the build fails with the following error
message:
Error 132 genasm.exe(1) : error There was an error initializing .
Could not load file or assembly 'Microsoft.WindowsCE.Forms,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac' or
one of its dependencies. Das System kann die angegebene Datei nicht
finden.
The assemblies are created anyway and if I copy them to my device the
program is running stable. I am using 3rd party assemblies that are
referencing explicitely to CF2.0 but at runtime this seems to be no
problem. Can anyone tell me if it's possible to ignore or fix that
error?
Thanks in advance
Roman Tag: Send Your Location Tag: 88275
The Device ID length
Hi,
I am using pInvoke of KernelIoControl in the coredll to obtain the unique
Device ID. After reading up on the Device ID it appears to be stored in 16
bytes. I have an older PocketPC 2003 (HP iPAQ), and the Device ID is quite
short, it looks like this (i changed some of the characters)
0f25213c-1d0f-4109-0900-0050bf2000f
Now I am running the code on a newer device (HP iPAQ 214), and the Device ID
is a lot longer, it looks like this (i changed some of the characters)
50006f00-6300-6b00-6500-74005000470000004960485042523232306f323433333800
So, I'm wondering, what would be the maximum size in characters the Device
ID can be? Would it be 128 characters?
Thanks for any info,
D Tag: Send Your Location Tag: 88274
Ping, HTTP Request, and ActiveSync
OpenNET CF Ping function works great to detect whether I can get a label to
a network printer to print or not. Used to use the HttpRequest trick but
the Ping kinda does two chores at one time - network connectivity and
individual network device availability.
What I need is someway to figure out whether I'm connected via ActiveSync
since this will block the Ping packets and lead me to believe I can't print
when in fact I can print.
So I need a way to check to make sure i don't have an acive ActiveSync
connection before I try to Ping.
Anyone know of a good way? I've searched the group archives but hoped there
was a way lately.
TIA
Harry Tag: Send Your Location Tag: 88268
Hide/Show MenuItem
Hi,
How can i Hide a MenuItem from MainMenu?
like that:
menu1.visible = false;
but the menu item dont have a propertie called visible.
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com Tag: Send Your Location Tag: 88256
Are IntPtr also potentially unsafe in case of exceptions in .NetCF or
Hi,
i recently red a blog entry (http://blogs.msdn.com/bclteam/archive/
2005/03/16/396900.aspx) which stated that the use of IntPtr's holding
a reference to unmanaged resources could be dangerous in case of
object finalization and exceptions.
As I understood it the handle finalizer thread (it seems that there is
one and I can not change this) could run the objects finalizer, maybe
clean up the unmanaged resources (I do this in finanizers) and make
the IntPtr invalid. All this could happen while one is actually in a
unmanaged method and could lead to problems.
Since I use a lot of P/Invoke calls and do stuff on the unamanged side
I looked for solutions. A solution is the use of SafeHandles -
unfortunately this class/interface is not available in .Net CF. So
can't this problem occur in the compact framework or do I have to use
another solution (of which I do not know)?
It seems that this issue is critical if one uses P/Invokes in objects
that are not kept outside the local scope and in case of exceptions.
What do you think about this?
Thank you in advance,
Tom Tag: Send Your Location Tag: 88255
Wcf on PDA Problems
Good morning/afternoon,
I am using WCF with the generated files from NETCFSVCUTILL to communicate
with the PC. Now i have found a few problems which i cant seem to solve and
are hoping that you guys could help.
1) To test the speed of the connection i made a while loop and got it to
send a to the PC from the PDA. But what i found is that it was only sending 4
messages a sec.. which to me seem slow. I might be wrong.
2) when ever a message is sent to the PC the .net compact frame work throws
an System.UriFormatException . There is no Uri's in my code. This is the
message i get:
System.UriFormatException occurred
Message="Invalid URI: The hostname could not be parsed."
StackTrace:
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind
uriKind)
at System.Uri..ctor(String uriString)
at System.Net.WebProxy.CreateProxyUri(String Address)
at System.Net.WebProxy..ctor(String Address, Boolean BypassOnLocal)
at System.Net.HttpWebRequest.SubmitRequest()
at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at
System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message
message, TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message)
at Microsoft.Tools.ServiceModel.CFClientBase`1.getReply(Message msg)
at
Microsoft.Tools.ServiceModel.CFClientBase`1.Invoke[TREQUEST,TRESPONSE](CFInvokeInfo info, PollRequest request)
at
TruTest.ExternalCommunication.ClientCode.TrutestCommnicationClient.Poll(PollRequest request)
at
TruTest.ExternalCommunication.ClientCode.TrutestCommnicationClient.Poll(DeviceInfo address, Int32 itemCountToRemove)
at
TruTest.ExternalCommunication.Service.SmartDeviceService.PollServer(Object
obj)
at System.Threading.ThreadPool.WorkItem.doWork(Object o)
at System.Threading.Timer.ring()
i am using the DNS.resolve ("PPP_PEER") to get the host address im sending
the message to.
Even enter the IP address of the computer this error gets thrown, but the
message to get passed from the PDA to the Computer. I think the channel
cinnection is been reset each time the Exception is thrown
3) the computers i am on are using proxy. Now to allow the pda and computers
to talk to each other i have to physical turn off the proxy in IE. IF i dont,
i geta proxy (407) Access denied, even tho im telling it to bypass for local
addresses.
well i hope some one can help with these problems.
Thanks in advances Tag: Send Your Location Tag: 88253
So many resolutions - Best way to support the most of them?
Hello,
Which ways can you recommend to support the most of the resolutions known
from WM6.0?
176x220
240x240
240x320/320x240
240x400/440x240
320x320
480x480
640x480/480x640
480x800
Is it recommended to create separate projects for each resolution or to
support a whole resolution group in one project. If whole groups which are
recommended to support in one application ? (because it is really hard work
to expand or edit the windows forms designer code for each resolution!? -
maybe there is a better way)
Hope that there is a good solution for this resolution-problem...
thx
juvi Tag: Send Your Location Tag: 88252
SoundPlayer from resource in CF3.5
Hi!
I using wav-file from resource without problem in desktop application in
NF3.5
soundPlayer.Stream = Properties.Resources.tada;
soundPlayer.Play();
When I try this code in CF3.5 I got error "Cannot convert byte[] in Stream"
Help me, please Tag: Send Your Location Tag: 88248
Embedded C# (Studio 2005) User controls not painting in designer
Embedded C# (Studio 2005) :
In the designer, my custom controls are not being displayed. I just get a box with the type of the control shown as text. My custom control is a combination of drawing, some text and a bitmap.
If the bitmap is not available my control simply draws a rectangle.
How can make Studio 2005 show me my controls in the designer? BTW, I don't have any problems seeing my contols when I tartget a desktop.
I only get this problem when targeting a CE device?
Ideas? Tag: Send Your Location Tag: 88246
recalling forms in wm5
I have been using panels for most of my project (coming from evb i
understood them) I have a project that has a form with c buttons each button
will crete a unique for for that buttons functionality. In button 1 ihave
the code
Dim StagingEvents as new frmStagingevents(passet)
StagingEvents.ShowDialog
(passet is a object of a asset that was previous scanned and found in a
database)
so now that the new form Stagingevents is active how do I kill the mainmenu
form from within the currently active form StagingEvents Tag: Send Your Location Tag: 88234
GPS and web service confilict
I have an app read location from external GPS and send request to a
webservice server using lat and longti as an input.
I use SerialPort class(c#, CF2.0) to read data from GPS, and it works
fine. However, after my serial port is opened. My webservice request
is always failed and I got an exception "Unable to connect to the
remote server". Here is my code:
private void Connect_Click(object sender, EventArgs e)
{
string[] ports = SerialPort.GetPortNames();
_serialPort = new SerialPort(ports[0]);
_serialPort.ReadTimeout = 5000;
_continue = true;
_serialPort.Open();
Thread readThread = new Thread(SerialRead);
readThread.Start();
}
private void SerialRead()
{
while (_continue)
{
string Sentence = _serialPort.ReadLine();
Thread.Sleep(1000);
}
}
private void Disconnect_Click(object sender, EventArgs e)
{
_continue = false;
_serialPort.Close();
}
private void Webservice_Click(object sender, EventArgs e)
{
try
{
WebReference.ContentControlService webService = new
GPSTest.WebReference.ContentControlService();
webService.contentSearch("xxxx");
}
catch (Exception pe)
{
MessageBox.Show(pe.Message);
}
}
Thank you very much in advance for your sugession and hits.
Adal Tag: Send Your Location Tag: 88227
How to run a project with Mobile 6 Emulator
I installed Windows Mobile 6 Professional SDK on PC and when I run old
application in Visual Studio 2005 I can choose to deploy on Mobile 6
Emulator.
But when I create a new project and run it I can deploy only on Pocket PC
2003 Emulator.
Do I need any settings for Mobile 6 Emulator in a project? Tag: Send Your Location Tag: 88226
Forms And Memory
Hello All, I have a question about forms and memory. I used to always leave
my forms in memory and then load them when needed however, due to becoming
tight on memory, I started to close my forms and then create new ones when
needed. My question is, what is better, leaving them open or disposing of
them? I started getting out of memory errors recently however, I am unsure
if it is because of this or switching to CF2.0 (did both at the same time). Tag: Send Your Location Tag: 88218
How to extract GPS tags from a image
Hi all,
I think I have tried almost everything.
1. I have been able to do that from a .NET program and by using
PropertyItems. Unfortunately PropertyItems is not available in CF
2. Using OpenNetCF. The GPS tags are not defined in this library.
3. Using a C++ COM Class and calling that class from my CF program.
Based on this
http://www.pocketpcdn.com/articles/articles.php?&atb.set(c_id)=57&atb.set(a_id)=6211&atb.perform(details)=&
Unfortunately that function doesn't return the GPS tags either.
What else can I try? I'm really desperate with this.
Any help will be appreciated.
Thanks a lot. Tag: Send Your Location Tag: 88215
Storage card issue
Hi, All
I have develop software for Texlogix Psion (Mobile 6.0) in CF 2.0.
During testing i found out that device sometimes can't detect existance of
storage
card, it happens when i am trying to upload files to PC.
After one or two successful uploads, looks like storage card (removable)
SM-MMC Card renamed to SM-MMC Card2 and all files arrive to newly created
directory
"SM-MMC Card"...
Any help on that. Is it known issue?
We had this problem a few years ago with Casio, but it was fixed by installing
patch file on each unit from casio.
Looks like another new unit with latest OS having the same problem.
Is it normal issue or only applies to specific device like Texlogix Psion?
I contacted Psion tech support on this matter, so far no answer, but they
suggested
to check if storage card has the destination folder before each upload
process.
Is it developmet environment .NET 2005 issue or handheld problem?
Please, help Tag: Send Your Location Tag: 88212
Printing error "COM doesn't exist"
Hi, All
I am using CF 2.0 and Texlogix handheld (OS Mobile 6.0) with Bluetooth.
I can print to a printer (Blackroc), but intermittent issue with the COM
port occures.
In the software i am using vertual serial port.
Please, help
How can i fix? It happens on open port.
I close, despose and set to Nothing com port after each print.
Any clue? Tag: Send Your Location Tag: 88210
How to reset handheld programmatically?
Hi, All
I am using CF 2.0 and Texlogix Psion OS Mobile 6.0
I need to perform reset on the handheld.
Any references to how to accomplish this task.
Thank you, Tag: Send Your Location Tag: 88209
Help required for Symbol 9090-S Bar Code Reader
I've developed an application for Symbol Bar code reader that runs Windows CE, whole the application is fine but i'm unable to use its Scanning feature.
via vb code i'm enabling true its barcode property like
Barcode1.EnableScanner = True
and i'm not getting any error also, but it does not activate its scanner.
I've checked a sample application that s shipped with this device and installed over it, scanning is working fine by it.
NEED URGENT HELP DEARS....
thank
From http://www.developmentnow.com/g/18_2006_11_8_0_0/dotnet-framework-compactframework.ht
Posted via DevelopmentNow.com Group
http://www.developmentnow.com Tag: Send Your Location Tag: 88204
GET IMEI from device
Hi,
How i get IMEI from a device running on windows mobile 5.
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com Tag: Send Your Location Tag: 88202
Crash in Remote Performance Monitor when trying to use GC Heap function (.NET CF 3.5)
I have a generic WinCE 5.0 system (desktop, shell, etc). When I try to use
the Remote Performance Monitor tool that comes with the
NETCFv35PowerToys.msi, it crashes when I hit the 'GC Heap' button.
To reproduce, I can generate an "out of the box" wizard generated C# app
targeting .NET CF 3.5 using VS2008. I change the generated Program.cs file
to be:
using System;
using System.Linq;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO.Ports;
using System.Threading;
namespace TestRPMTools // your namespace here...
{
class Program
{
static SerialPort m_SerialPort;
/// <summary>
/// The main entry point for the application.
/// </summary>
[MTAThread]
static void Main()
{
m_SerialPort = new System.IO.Ports.SerialPort("COM4", 115200,
Parity.None, 8, StopBits.One);
m_SerialPort.Open();
Application.Run(new Form1());
m_SerialPort.Close();
}
}
}
Now, just run this program on the target (using the RPM tool), and start
hitting the GC Heap button. Sometimes it works a few times (close GC Heap
window without saving if this works), but after a few times it fails,
throwing up a message box with this text:
exception code: 0xC0000005
exception address: 0x01d3a39c
Reading: 0x00000300
Faulting Module: mscoree3_5.dll
Offset: 0x0008a39c
Does anyone have a suggestions at all as to how to attack this issue? Is
this likely to be a bug in mscoree3_5.dll? Is there something that I need
to be sure is in my WinCE nk.bin image? (Right now, .NET CF 3.5 is deployed
by VS2008 - it is not built into the nk.bin image. I have pretty up-to-date
QFEs in the nk.bin.)
Full Disclosure: Also, the above code with the serial port is something that
I reduced my program to in order to report this issue. But removing the
same code from my larger program where the issue was first discovered
doesn't fix the issue, so the above code may be a red herring. The crash
may be caused by some unrelated issue.
(https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=331277)
Thanks for any suggestions anyone might have!
- Wil Tag: Send Your Location Tag: 88198
How can I see files from project using Emulator?
In project I added folder â??Dataâ?? with â??Config.datâ?? file. I changed property
of Config.dat file to Content and property of â??Copy to Outputâ?? to â??Copy
alwaysâ??.
Now from the code I try to access that file:
If File.Exists("C:\Project\Data\Config.dat") = True Then
MessageBox.Show("File Found")
Else
MessageBox.Show("File Not Found")
End If
I got "File Not Found". Tag: Send Your Location Tag: 88192
MainMenu Control
Hi, anybody knows if is possible detect when a mainmenu control pop down ?
I can manage popup event from VS, but i need to detect when it close.
Thanks in advance! Tag: Send Your Location Tag: 88190
How can I see data files from a project when use Emulator?
Right now I don't have actual Mobile device and I try to run my project from
Visual Studio 2005 using Mobile 6 Professional Emulator. However, Emulator
cannot see files on my local PC. Do I have to create a Storage Card? I added
files to my project. How can I access them? Thanks a lot. Tag: Send Your Location Tag: 88183
Remove Sip Button
Hi, i was looking into the web, but i could not find any real solution...
I´m developping an mobile app in C#, CF 2.0 and WM 5, and i´d like to remove
from the bar the Sip icon...
Anybody know how to do this ?
Thanks in advance.... Tag: Send Your Location Tag: 88180
Fatal Aplication Error on Convert.ToSingle() ?
Hi
cant explain it but this code on my CE5 device does not work :
strange : when running on the wm5 ppc emulator then the fatal error does not
occur, it seems to be fatal on my CE5 device only.
NumberFormatInfo provider = new NumberFormatInfo();
provider.NumberDecimalSeparator = ".";
float temp=0.0f;
temp = (float)Convert.ToDouble("21.0", provider); //works
temp = Convert.ToSingle("21.0", provider); // yields a Fatal
Application Error
Any hints ?
Could there be an error in the OS image ? Tag: Send Your Location Tag: 88176
Smooth animation of an image in .net cf ?
Hello,
I want to animate an image. There is a sample for WM5 and WM6 which let my
image be drawn with alpha info - how can I extend this feature with an
animation?
The image should make a slide like in WM 6.1 phone (slide panel)
Thanks for any help.
juvi Tag: Send Your Location Tag: 88170
Packaging _setup.xml (for SSL Cert) into WinCE 5.0 CAB using CabWiz?
I am attempting to install a SSL Certificate on a WinCE 5.0 mobile device. I
have already created the appropriate "_setup.xml" file that contains the SSL
Certificate installation information (as shown in several
posts/blogs/WinCE32 SDK). Now I am attempting to package _setup.xml (or just
it's contents) into a valid WinCE 5.0 CAB file. Using the makecab utility
provided in the WinCE32 SDK, as in: "makecab _setup.xml rootcert.cab" does
not create a "Valid Windows CE Setup File", as reported by the WinCE device
when I attempt to manually install the CAB. Therefore it seems like I must
somehow utilize the "cabwiz.exe" program, that also comes with the SDK, to
try and package my _setup.xml, but how? I have no "Application" to install
so what would I specify in the ".inf" file???
Questions:
1) When running cabwiz.exe (WinCE 5.0 SDK), how do I package my "_setup.xml"
using a ".inf" file when there is no application to install?
And/Or...
2) How do I determine if "_setup.xml" must be considered as extra
information for "_setup.xml", which apparently the file that cabwiz.exe
itself creates inside of the new cab file!??
The command-line for cabwiz.exe offers the /prexml or /postxml options when
creating a cab file - do I need to use them or do I somehow indicate, within
the ".inf" file, that my "_setup.xml" file is input for the cab build? I
guess I'm just not sure on how to create the ".inf" file for cabwiz without
really having an application to install and then go about the task of
indicating to the cab setup, "Oh, by the way, would you mind running this
snippet of xml contained in my '_setup.xml' file so the appropriate SSL Cert
Info is imported/registered properly?"
I really hope I'm not confusing everyone but I could certainly use some
clarification on how I can package the SSL Certificate '_setup.xml'
(mentioned in several blogs/posts that I've seen for PocketPC and Windows
Mobile 5/6) into a valid WinCE 5.0 Cab file that I require for my
Symbol/Motorola MC3000 Series WinCE 5.0 mobile device...
Thank you for your time,
Greg Hellem Tag: Send Your Location Tag: 88162
Checking for Installed Application.
Hi All,
I need to check and see if an application is installed, namely TomTom.
Is the best way to just look for the EXE file?
Or is there a more correct way?
Thanks,
ink Tag: Send Your Location Tag: 88159
waveOutSetVolume clicking sound
Hi there,
I have a problem when setting the sound volume on a moto Q.
I have a sound (440 hz) looping all the time.
I need to change the volume very often to give audio feedback.
I am using playSound and waveOutSetVolume via PInvoke calls from coredll.dll
The problem is, if I change the volume for lets say 10% every change
produces an annoying clicking sound.
Does anybody know how to avoid these clicks?
Thanks
Flo Tag: Send Your Location Tag: 88154
SQL Server CE Assembly question.
Hi, i´m making a mobile app with VS 2005, CF 2.0. and SQL CE 3.0 ( Sql
server 2005 Mobile edition )
When i add a reference to my project to System.Data.Sqlserce i notice that
the version is 3.0.3600.0
But when i browse with the File explorar to C:\Archivos de
programa\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0
i see that the version is 3.0.5206.0 ( right
click ---properties ---version )
Which is the correct version ??
Thanks a lot.! Tag: Send Your Location Tag: 88153
Sending commands to serial port connected device
Hello,
When I create a connection to an external device (barcode scanner) via
serial port, using the Terminal Services Client on the mobile device, I can
send commands to control to the external device and receive information
about it, such as the firmware version.
I have a vb.net application that sucessfully recieves data (via serial port)
from the barcode scanner, but with the serial port open, if I send the same
commands that I used using the Terminal Services Client, I get no
acknowledgment from the scanner. I'm guessing I'm missing something.
Is there a way to send the commands I use in the TSC and recieve data in my
app?
Thanks in advance for any replies.
Dave M Tag: Send Your Location Tag: 88152
Hiding messageboxes
Hi,
Is there a way to display a form/panel/image ontop of other popup messages
even though if they
were displayed after my object?
I need to detect a click on the screen in order to move out of standby mode.
All works fine except when I have messagebox displayed on screen.
My app dpesn't get a notification about clicks on it, so I find myself with
a dark screen,
and the user trying to feel his way around shouting "lights please" ;-)
Thanks,
Empi Tag: Send Your Location Tag: 88149
How to get rid of popup warning for new EXE?
Hi All
I am developing on an HC700 Motorola HHT. The OS has been upgraded from
PC2003 to WM5. And I am using C# with CF2.
Every time the debugger starts up the EXE on the device a warning pops up
asking am I sure I want to do this. This seems to happen for all ne
assemblies as well and any applications that are shelled from with in my
application that I have added to the device.
In short any new application that is run on the device for the first time
gets this popup.
How can I stop this? At least for development.
Thanks.
ink Tag: Send Your Location Tag: 88148
Make a trial license
Hi,
Im working with an app mobile, and i want make i trial license (15 days) for
my application.
which is the best way to do that? any sugestion?
--
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com Tag: Send Your Location Tag: 88147
Minimum font size for webbrowser control
I have a program, running under .net compact framework v2, on Windows
Mobile 5. The main window uses a WebBrowser control to display
everything.
I would some of the text to have a very small font size. I've put in
the appropriate CSS directives, e.g. font-size: 6pt. But there seems
to be some minimum font size in the WebBrowser control -- when I
specify a large font-size then the text shows large, but when I
specify a very small font-size then the text won't go as small as I
want it.
Is there some property of the WebBrowser control which will let it
display text smaller? Or is it an issue of font availability?
Damon. Tag: Send Your Location Tag: 88144
Setup program
Hi,
For some reason, my PDA setup software is installing a "pc version" as well
as installing the PDA correctly.
Is there a way to prevent it from doing that?
This way I must uninstall it each time I re test the application.
Thanks,
Empi Tag: Send Your Location Tag: 88140
Problem with random access files (bug?)
There seems to be a problem in the .Net CF 2.0 (and 1.0) regarding
random access files.
After several usages of FileStream.Seek and FileStream.Read, wrong
values are returned.
The code from this post demonstrates this problem:
http://groups.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/cf5970f09c81d50d/727be7bd89798b3b?lnk=gst&q=filestream+bug#727be7bd89798b3b
//create the test file
using (FileStream stream = new FileStream(@"test.dat",
FileMode.Create))
{
for (int i = 0; i < 1000; ++i)
{
stream.WriteByte((byte)(i % 256));
}
}
// demonstrate issue
using
(
FileStream stream = new FileStream(
@"test.dat", FileMode.Open,
FileAccess.Read, FileShare.Read, 128
)
)
{
byte[] buffer = new byte[500];
stream.Read(buffer, 0, 252);
stream.Read(buffer, 0, 102);
stream.Read(buffer, 0, 5);
stream.Read(buffer, 0, 63);
stream.Read(buffer, 0, 39);
stream.Read(buffer, 0, 34);
stream.Read(buffer, 0, 73);
stream.Read(buffer, 0, 73);
stream.Read(buffer, 0, 73);
stream.Read(buffer, 0, 73);
long pos = stream.Position;
stream.Read(buffer, 0, 73);
MessageBox.Show("Position: " + pos.ToString() + ",
value: " + buffer[0].ToString()
,"Should show 19");
stream.Seek(pos, SeekOrigin.Begin);
stream.Read(buffer, 0, 73);
MessageBox.Show("Position: " + pos.ToString() + ",
value: " + buffer[0].ToString()
,"Should show 19, shows 1 instead");
}
Same code works fine on the desktop.
Is this a known bug or limitation? Tag: Send Your Location Tag: 88138
Broadcom bluetooth manager and virtual serial port
Hi
I am kinda new to compact framework programming (I am experienced
asp.net developer), so please forgive me if my questions are trivial.
I've an application that connects to bluetooth device using virtual
com ports - before I connect this app to bt device I need to discover
the device and assign virtual com port, then configure the application
to use that port. Application utilizes standard cf2
System.IO.SerialPort class.
Everything worked well on my WM 5.0 device. Now I need to run this
application on WM 6 device with Broadcom bluetooth manager (IPAQ). My
WM 5.0 device didn't have any 3rd party bluetooth manager, just
standard Windows and I wonder if there will be any problem with
running this application because of the Broadcom bluetooth manager.
Will I be still able to discover the bt device and assign it a virtual
com port and then use it in my application?
I am not sure why HP decided to use 3rd party bluetooth software. Is
it only because they wanted to make easier using bt cell phones as
modems? What's the point in using such software?
Thanks for help in advance.
Regards,
Mike Tag: Send Your Location Tag: 88136
Symbol device
Hi, i´m developping an app with Symbol MC70 device ( WM5 and CF 2.0 ). This
device has an yellow key ( barcode trigger ), and i´d like to capture the
keypress event on it...but it can´t see to be a normal button, because i
couldn´t to trap the event... I was reading the SMDK .net documentation, but
i couldn´t find any info.....Anybody can help me ?
Thanks a lot.!! Tag: Send Your Location Tag: 88134
OS Version
Hello,
How can i determine the OS/Platform version with .NETCF?
I need to know if my app runs on Windows CE or on Windows Mobile and the
version number...
Thanks in advance,
Malik Tag: Send Your Location Tag: 88120
System.Diagnostics.Process TermWaiter.WaitForTerm();
We are using .Net CF 2.0.
We want to start the device clock application using Process.Start and when
the clock is closed/exitted, we want to carry out some operations. We have
used the following code for the same:
private void btnAdjustSystemTime_Click(object sender, EventArgs e)
{
System.Diagnostics.Process proc = new
System.Diagnostics.Process();
proc.StartInfo.FileName = "Clock.exe";
proc.EnableRaisingEvents = true;
proc.Exited += new EventHandler(clockProc_Exited);
proc.Start();
}
void clockProc_Exited(object sender, EventArgs e)
{
//do something here
}
Once, while executing the above code got a NullReferenceException with only
one line in the StackTrace:
TermWaiter.WaitForTerm();
After the exception, the application just shut down.
Could not recreate this exception.
Can anyone help me to find out the cause for the exception and its solution? Tag: Send Your Location Tag: 88115
Hi, I've just posted a small for sending your location to others
that may interest you over at www.binaryrefinery.com
http://www.ifthensoftware.com
"Richard Jones" <richard@binaryrefinery.com> escreveu na mensagem
news:3bb45cfd-15c1-466e-baf5-d39fa001e3f6@x35g2000hsb.googlegroups.com...
> Hi, I've just posted a small for sending your location to others
> that may interest you over at www.binaryrefinery.com
>
> Thanks
>
> Richard (Device Dev. MVP)