encoding and decoding from charaters to smileys
Actually i am facing one problem, If anyone can solve, plz help.
For my messenger applicaton I took sepearte form for emoticons and
inserting in to edit chat text box as symbol of smiley as yahoo
messenger does. then it has to be converted into smiley when it comes
to above text area. How to encode symbols to smileys? . Tag: Today screen line separator colour Tag: 76099
Lock into Landscape mode
Hi,
I'm building an application that should always run in landscape mode
using compact framework 2. I came up with this:
private void Form1_Resize(object sender, EventArgs e)
{
if (SystemSettings.ScreenOrientation != ScreenOrientation.Angle270);
SystemSettings.ScreenOrientation = ScreenOrientation.Angle270;
}
but that throws an exception, so I put it in an GotFocus event, which
seems out to work just fine, on the emulator. However, that event is
never fired on my PDA.
Anyone has a clue why setting ScreenOrientation results in an exception
when it is assigned a value during OnResize or why GotFocus isn't
called on my PDA? Or is there any other way to lock the value of
ScreenOrientation?
Thanks for any input...
Nico Tag: Today screen line separator colour Tag: 76092
SNAPI - EnableApplicationLauncher?
Anyone,
try as I might I can't seem to get a command line argument(s) passed
into my application when it is called by the system as a result of enabling
application launching, see code line below;
_ssCradle.EnableApplicationLauncher("Cradle State Change");
What am I doing wrong? The commandline of the application, when
executed by the system is devoid of arguments.
VS2005/CF2/WM5.0
Brip Tag: Today screen line separator colour Tag: 76086
Notifications on SMS, Phone, and Email
Hi guys!
It's been a while, I gave up on my own wrapper and purchased InTheHand
as well. It works great indeed. I just want to ask how can I notify or
make my application call a function or a method right after a call has
been done or an SMS has been sent or an Email has been sent?
Thanks! Tag: Today screen line separator colour Tag: 76085
problem with reinstall - vb.2005
I bought another laptop and installed my VB.2005. When I try to open a
porject I get the following error.
Error retrieving informationm from user database. Platform not found.
Does anybody know what I'm missing with the new install?
Thanks,
Stev Tag: Today screen line separator colour Tag: 76084
Quick help with PtrToStructure
So I have the following structure:
public unsafe struct DataStruct
{
public char* lpszData;
public int intData;
public bool boolData;
}
I can push it into memory by using the code:
DataStruct ds = new DataStruct();
fixed (char* value = testData.ToCharArray())
{
ds.lpszData = value;
}
ds.intData = 300;
ds.boolData = true;
//AllocHGlobal(size of the structure)
Marshal.StructureToPtr(ds, myData, false);
However, when I go to retrieve it (with the same structure definition),
I get an ArgumentException. Here's my code:
DataStruct ds = new DataStruct();
Marshal.PtrToStructure(m.LParam, ds); //where m.LParam is the valid
ptr
What am I doing wrong? Obviously, I need to do some extra work to
properly access that char array. Any ideas? Tag: Today screen line separator colour Tag: 76079
How can I read/write Access 2003 file in Windows Mobile v5.0 ?
Hello all,
I know we can convert mdb to cdb, but how can I access the .cdb files in
vs.net 2005 CF ?
someone can provide sample code or else ?
by the way, The files ADOCE.Net in InTheHand Software (www.inthehand.com)
is removed. (That in the following link)
http://msdn2.microsoft.com/en-US/library/ms837914.aspx
thanks all !
Chris Tag: Today screen line separator colour Tag: 76077
How do I access text file on handheld from PC
I need to access a text data file on a handheld device from an application
running on a desktop system. The handheld will be connected to the PC and
available through an activesync connection. Windows Explorer from the PC
can see the files and directory structure on the handheld, but I can't seem
to point a file open dialog to the handheld.
My research has turned up nothing so far and I'm not sure I'm even asking
this in the right forum. I'm hoping that someone here can help or at least
point me to the right place to ask the question.
Thanks,
John Kelsey Tag: Today screen line separator colour Tag: 76067
Confused by database choices
Hi All,
I need to do some windows mobile 2005 development which uses a database
on the device - I've not done anything database wise since back in the
good olde days of pocket access. I'm up to speed on ADO.net but the
choice of database is a little confusing.
>From the MS site, there's SQL Server CE, SQL Server 2005 Mobile and SQL
Server Everywhere Edition.
Which should I be using with VB.net 2005 and how do I go about
installing on the PPC and on the emulator under vb.net 2005?
Any help gratefully received, I've been all over the net, installed
SDKs/CTPs/ various SQL Server mobile/CE/etc editions off the MS site
and I'm now thoroughly confused.
Or am I better ditching the MS route and going for a 3rd party database
for the handheld end?
Cheers,
Slopey Tag: Today screen line separator colour Tag: 76066
How to add Popup emoticons panel
I want to add a popup emoticons panel which displays when user clicks
on. Do u have any idea how to implement in .NET.
Plz guide me in this matter. Tag: Today screen line separator colour Tag: 76062
[CF2.0] Class library and localized resources
Hi,
I have a solution with two projects : Client.exe and Library.dll.
The app client.exe reference the project library.dll. The solution is set up
to deploy only the exe file (to avoid the dll to create a folder in program
files, but the dll is deployed along the exe file).
Noth client.exe and library.dll have resource files that are localized (ex:
errors.resx, errors.fr.resx, form1.resx, form1.fr.resx, etc.).
When I deploy the solution with VS 2005, the client.exe file and its
sattelite assemblies are deployed, but for the library.dll assembly, only
the dll itself is deployed, not the localized sattelite assemblies.
Is there anything I missed in order to make VS deploy localized resources
for a class library ?
Thanks,
Steve Tag: Today screen line separator colour Tag: 76061
How to subclass Menu?
Hi,
Is it possible to subclass Menu in Compact Framework? In full Framework it
is, but
in CF I get "The type 'System.Windows.Forms.Menu' has no constructors
defined"
compiler error.
Tia,
Jman Tag: Today screen line separator colour Tag: 76060
Deploying to a Pocket PC
HI there
I have an app written in .net cf 2. I need to create a simple deployment
wizard(ish) installation that includes the .net framework.
Any ideas or suggestions?
Mike Nicol Tag: Today screen line separator colour Tag: 76056
About DataType Convert in CF2003
I need Convert a Double Array to a Byte Array for storing it to
Database.
Does anyone can give me a useful cue?
thanks a lot in advance. Tag: Today screen line separator colour Tag: 76055
[NetCF 2.0] Problem with generics
Hi,
In a class library, I have a static utility class with a methods that
accepts a generic delegate :
public delegate void MyDelegate<T>(
T dataItem,
string mappingName,
) where T : System.Data.DataRow;
And a method that use such a delegate :
public static void MyMethod<T>(
MyDelegate<T> theMethod
) where T : DataRow
{
...
}
When I call MyMethod from a device windows application, it cannot compile
(genasm error).
Is there any way to make it compile ?
Note that if I compile with VS 2005 SP1 Beta, it compile w/o problem.
Thanks,
Steve Tag: Today screen line separator colour Tag: 76053
I just need a very simply sample code using VS.Net 2005
Hello all,
I'm VS.Net 2005 newbie, I have experience on eVB Tools. but when I transport
to VS.Net 2005, I have no idea.
my mobile device is Windows Mobile 5.0 (5.1.70)
Processor: ARM920T S3C2440A
I'm trying to build new project in Visual Basic\Smart Device\
Even the local/offline DB operate sampe is ok.
I spent much time to op MSDN pages. but I can't found any doc. can help me
to finish this simple project.
I just want read/write a database files convert from Access 2003 database,
why diffcult like climbing moutain that over 4000 miles !
Thanks all ! Tag: Today screen line separator colour Tag: 76051
how to detect if power cord is plugged-in/put
hi,
I have problem about detecting power cord plug-in/out to display some
information.
I am developing a application that displays current battery usage and status.
currently, I can get "battery life time" and "battery status" (like high,
low, charge...) correctly. however, if user plug-in/out power cord, my
application cannot respond to this fact, change "low to charging"....
I then use "State and Notification Broker" and delegate a callback function.
This is workable, however, there is a serious dealy after power cord plug.
About 13 seconds will my callback function be called.
Could someone please give me advice. thanks in advance
-terence Tag: Today screen line separator colour Tag: 76049
CF Mouse wheel events
I have posted on this before and tried a few low level things without much
sucess.
I want to trap the mouse events in a multi form Windows Mobile 5 application.
The forms are full screen, taskbar hidden, auto scrolling disabled.
Using a Stowaway Bluetooth mouse and its driver.
Whilst when used with desktop windows, the mouse events are trappable, not
so on CF with WM5. THey tend togo to a form's window scroll, which I don't
want.
So I have added a vertical slider. When I click on the form the vents can
go through to the slider, whose event I can trap.
Problem is that I have to click on the form first. The app involves moving
through many forms and having to cickbefore using an up and down gesture with
the wheel is a pain.
I have tried setting focus to the slider when the forem gets focus but it
soon looses focus (can trap its lost focus event)
Any help would (urgently) be appreciated. Been tryingt o solve this for days!
So the question is: "How can I force the focus and activity of a form to a
vertical slider control using CF and WM5 when a form is brought to the form
with a form.show event on another form."
Thx
--
David Jones
Senior Lecturer
School of Electrical & Computer Engineering
RMIT University
+61 3 99255318 Tag: Today screen line separator colour Tag: 76043
DateTimePicker problems on smartphones
Hi,
I am writing an app in C# that uses the DateTimePicker control. I
first tried using the System.Windows.Forms.DateTimePicker control and
it works perfect for me on the PPC devices however the same code does
not seem to work on smartphones. The control displays ok, but none of
the arrow keys change any of the values in the control.
Next I tried using the OpenNETCF.Windows.Forms.DateTimePicker control.
The first thing I noticed is that it does not seem to honor the
following code...
using OpenNETCF.Windows.Forms;
DateTimePicker control = new DateTimePicker();
control.Format = DateTimePickerFormat.Custom;
control.CustomFormat = "hh:mm tt";
It displays the MM/dd/yyyy format instead... So, I changed it to use
the Time format. That seemed to work, but I get the unwanted seconds
field in the control. Now, my only issue is how do I get it out of
edit mode? The control seems to be sucking up all the keystrokes and I
have no way to tab off the control. Normally I am looking for the
center 5-way/VK_RETURN and if I get that key I end the edit mode.
Anyone else see anything like this?
thanks,
Mark Tag: Today screen line separator colour Tag: 76034
How to develop Windows Media Player Mobile application for Pocket
Hello Friends,
Can any how to develop applications for Windows Media Player in pocket pc?
What are the sdk need required to develop application in window mobile 5.0
using Media Player using compact framework.
Kindly pass any information to me regarding this issue.
-PHIJO MATHEW PHILIP. Tag: Today screen line separator colour Tag: 76017
Push Listener
Hello,
I try to make a push listener for PPC/SP.
On a desktop device, I would simply launch a thread with a TcpListener
and listen to incoming push notifications.
1/ But for a mobile phone, the device ip adress changes very often. Is
it possible to be notified (by an event) when the phone ip adress has
changed ?
Currently I poll the adress of the phone every few seconds to detect
these changes.
2/ I use a TcpListener in a thread that listens on the last detected ip
address on the phone. But when the ip changes, the TcpListener must
restart too. So the former TcpListener must be stopped and a new
TcpListener be created with the right adress. Is there a way to restart
a TcpListener with another adress without destroying it ? How can a
TcpListener be stopped when it's stuck on TcpListener.Accept for
example ?
Is using a TcpListener a bad idea ? Can it be achieve by using the
Socket class ?
thanks in advance Tag: Today screen line separator colour Tag: 76014
Bluetooth GPS
I have a GPS program I wrote with the help of OpenNetCF's GPS library,
which is great by the way.
The only gripe I have (Not with OpenNetCF) is every time I turn on the
GPS unit and try to connect, it asks me if I want to add the device to
my Bluetooth device list, then prompts me for my passkey, then I have
to go and setup the outgoing port. This is just annoying to do
everytime I want to connect to the device. Is there any way to
automate this?
I'm sure there isn't a way through managed code, but is there a way to
accomplish this through native code? I dug through MSDN and couldn't
find anything.
Thanks,
Chris Tag: Today screen line separator colour Tag: 76013
Bitmap Button Problem
Hi
Platform: using VS2005 C# for WM5.0 base PDA
I am making one Bitmap button(owner draw). What i have done is i am drawing
image on the button in onPaint() using e.drawimage ; I am also taking care
that my bit map becomes transparent(all corners) . For the same i am using
ImageAttributes attr = new ImageAttributes()
attr.SetColorKey(bmp.GetPixel(0,0), bmp.GetPixel(0,0));
In this case all the corners of my bitmap are becoming transparent and
showing same color(red color) which is my background color.(Here back ground
is my application's main form which is having back color = red) .
Till this point every thing is ok .
My problem is " if i load an image on the main form " . In that case above
bitmap buttons are still showing red color corner ...?? which is correct only
in above case, but in this case when an image is loaded on the main form ,Bit
map corners should display color of images which is loaded on the form,but it
is still showing Red corner (which is the back color of main form.)
How can i get rid of this problem ..
Please suggest ...
Regards
Manish Budhia Tag: Today screen line separator colour Tag: 76012
.NET Projects and Code Search
Hi All,
Just to inform you that you can search .net projects and codes from
this new google co-op search engine:
http://google.com/coop/cse?cx=017761021152254077700%3Aqxcfhsrsdwk
You are also welcome to contribute in this if you can.
Thanks and regards,
RS Tag: Today screen line separator colour Tag: 76011
Securing code in WM 5.0 (Obfuscation)
Hi All,
I have tried out obfuscation using Dotfuscator Community Edition provided in
Visual Studio 2005. It has been a pain for me as the application that being
built is quite complex and references multiple dlls. Exceptions such as
MissingResourceException and NullRefenceException eventually reduces
obfuscation to minimal application. Is there a better way to prevent
decompilation?
I have tried to decompile using Reflector
(http://www.aisto.com/roeder/dotnet/) and IL DASM on commercial WM 5.0
applications but unsuccessful as it throws "novalid CLR header and cannot be
disassembled" or "does not contain CLI header". Any idea how this is achieved?
Thanks in advance. Tag: Today screen line separator colour Tag: 76004
Packaging Dlls into a Single Exe file
Hi All,
I have a created a WM 5.0 application. It references to multiple custom
dlls. May I know whether these dlls can be packaged into a .exe file together
with the main application?
The reason for this to prevent user from accidental deletion of these dlls
and for security purpose.
Is it possible to be done in Visual Studio 2005 or I have use third party
solution for this?
In turn this .exe will be distributed via a .cab file.
Thanks. Tag: Today screen line separator colour Tag: 76003
Custom Controls??
I am trying to create a custom DataGrid. I have written the custom object
as a class. I dropped a normal datagrid on to my from designer, then edited
the code to make it a customgrid instead of the datagrid. it builds fine, but
when I view the form in designer mode I get errors, and the new grid item
isnt displayed.
Member Not Found.
Object Type cannot be converted to target type.
Object Type cannot be converted to target type.
my custom object is just a class file thus:
namespace test
{
/// <summary>
/// Summary description for DataBrowser.
/// </summary>
public class DataBrowser : System.Windows.Forms.DataGrid
{
public DataBrowser()
{
//
// TODO: Add constructor logic here
//
}
}
}
I took all the code out, but still throws these errors. What am I doing
wrong?
Thanks
Steve Tag: Today screen line separator colour Tag: 76001
File.WriteAllBytes for Pocket PC
Hi,
How can I convert this following code (from a window application) in a
device application (for PocketPC)
imports System.IO
CONST FILE_NAME1="myXMLfile1.xml"
CONST FILE_NAME2="myXMLfile2.xml"
File.WriteAllBytes(FILE_NAME1, File.ReadAllBytes(FILE_NAME2))
I tried the following but I didn't get very far as I also get a problem into
the xml return string placing an ? in front ------- ?<?xml version="1.0"
encoding="utf-16"?>
'Dim txtRep As String = "<?xml"
Dim fs As New FileStream(FILE_NAME1, FileMode.Open, FileAccess.ReadWrite,
FileShare.None)
Dim binReader As New BinaryReader(fs)
Dim AE As New System.Text.UnicodeEncoding
tmpTXT = AE.GetString(binReader.ReadBytes(fs.Length))
Console.WriteLine(tmpTXT)
binReader.Close()
fs.Close()
Thanks a lot for the help
Nicolas Tag: Today screen line separator colour Tag: 75997
Panel & click event
Hello,
I'm discovering CF 2.0 & C# development and I'm trying to create an
application for my Orange SPV-M3000 (WM5).
I need to group labels on a panel and make this panel react to clicks/taps.
I thought about creating a button that would cover the whole panel area
and change the background color of the button to transparent, but from
the archives of this group, it seems that CF doesn't support control
transparency.
Is there any other way to achieve my goal or do I have to create a
custom control (I've never done this kind of work) ?
Thanks for any advice, regards.
Eric Masson Tag: Today screen line separator colour Tag: 75987
Problems connectiong using 5.0 & activesync 4.2
Hi All,
I have a problem with a new device I got ( Symbol MC9090 ) it's running
Windows Mobile 5.0 and it has installed a program I wrote that establish a
TCP connection to a remote machine.
When I connect the PPC to the cradle I see like a new network connection
trying to get an IP in the host. at the end it fails asI do not have a DHCP
active. The problem is that the created connection have IP 169.254.2.2 in
the host and 169.254.2.1 in the PPC and not defined gateway.
Of course when Itry to do a telnet to the remote machine it fails :(
I tried to assign a static IP to eht RNDIS interface but I stil the the
aboves IPs assigned.
The weirdest thing is that IE does have connection !!!
Where can be the problem? I'm been on this for a couple of days now and I'm
getting frustaed.
Thanks a lot !
Ignacio Tag: Today screen line separator colour Tag: 75983
Hiding Vertical Scrollbar in Listbox
Hi
I am working on pocket pc and using .NetCF. We disable any stylus operation
to protect the screen from scratches, as a part of which we disable any
vertical scroll bars operation.
Can someone please let me know how I can hide a vertical scroll bar over a
listbox. The below code works fine for a datagrid but not for a list box.
string[] list = {"one","two","three","four","five","six","seven"};
listBox1.DataSource = list;
foreach(Control c in listBox1.Controls)
{
if(c.GetType().Equals(typeof(VScrollBar)))
{
((VScrollBar)c).Width = 0;
((VScrollBar)c).Hide();
}
}
Thanks,
Naresh Mirkhelkar Tag: Today screen line separator colour Tag: 75982
Do not build or distribute
When I am trying to find a bug I quite often stop my app and then re-run it
so that I can return to an earlier point and do something slightly
different.
I have about 10 projects in my solution and find it takes ages to rerun my
app due to rebuilding + redeploying all those DLLs to my PPC. Is it
possible to debug my app without having to rebuild + redeploy it?
Thanks
Pete Tag: Today screen line separator colour Tag: 75981
MSI WindowsInstaller.Installer List of products
Hi,
I am using the following code :
WindowsInstaller.Installer i = null;
Type oType = Type.GetTypeFromProgID("WindowsInstaller.Installer");
if (oType != null)
{
i =
(WindowsInstaller.Installer)Activator.CreateInstance(oType);
}
WindowsInstaller.StringList s = i.Products;
foreach (string s1 in s)
{
WindowsInstaller.StringList sc = i.get_ComponentClients(s1);
foreach (string c in sc)
{
Console.WriteLine(i.get_ProductInfo(c, "ProductName"));
}
}
This code prints all the installed programs on my computer.
The problem is that hi skips some programs and i can't see them.
I check the add\remore program and i do see them there.
i tried to search for them by components, i couldn't find them.
Please help me with this problem .
Regards, Rony Tag: Today screen line separator colour Tag: 75973
OpenNETCF.Net.DeviceStatusMonitor.StopStatusMonitoring not terminating worker thread
Hi,
Calling OpenNETCF.Net.DeviceStatusMonitor.StopStatusMonitoring is not
freeing up the worker thread: SDF P2PQueue handle-monitoring thread. So
when my app tries to close it can't.
Is there a bug for this? SDF 2.0.
Thanks. Tag: Today screen line separator colour Tag: 75969
Detecting if device conected is WM 5 or 2003
What's the easiest why to detect the version from the desktop ?
I've tried using the RAPI wrapper from opennetcf.org but running into errors
using myrapi.GetDeviceVersion() from
http://msdn2.microsoft.com/en-US/library/ms837846.aspx on a WM5 device I'm
guessing due to security restrictions or ActiveSync 4.
I can read the registry keys on the device fine any information held there ?
Thanks in advance. Tag: Today screen line separator colour Tag: 75963
question re: creating setup cab files
Hi there,
I have a program which i rewrote for WM5 and when i deploy the CAB file and
run it to install, it works fine. However i copied it to a PPC2003SE pda,
and it said it wasnt a valid WinCE setup file.
But.... if i connect the PPC2003SE device to my pc, and through visual
studio 2005, build and deploy to the "Windows Mobile 5.0 Pocket PC Device"
(which is really my PPC2003 connected, it will copy all the files across and
works perfectly fine.
So my question is: how to create a CAB file from my WM5 project that will
run directly also on the PPC2003 device, as i want to deploy over the net.
thanks,
Paul Tag: Today screen line separator colour Tag: 75962
Connectivity Issues while connecting Mobile 5.0 PDAs to PC through ActiveSync 4.2
Hi,
I am trying to connect my PDA with Mobile 5.0 to PC through ActiveSync
4.2. But i face some connectiviy issues with it. After somewhile, the
PDA automatically gets disconnected. Also i am not able to deploy any
of my applications on this PDA.
Could someone please help me with this?
Thanks and Regards,
Kshama Tag: Today screen line separator colour Tag: 75957
Intercepting outgoing calls using State and notification broker
Hi,
I need to develope an application for windows mobile that will monitor
and control
all the outgoing calls from mobile. ill maintain a list of numbers in
my application, if the anyone tries to call a number which is in that
list i should prevent them from establishng the call.
i find in net that we can use SNAPI to register an application to
receive notification so is it possible to block a call if i receive
notification in my application? if yes how can i do it? or is there any
other way to achieve this?
Thanks in advance Tag: Today screen line separator colour Tag: 75956
Mobile information transfer options
Hi
My client requires a simple data transfer utility to synchronise data
for a custom c# app between his windows mobile 5.0 pda and a xp pro
server. I cannot use the sql mobile synchronisation as the cost of
licensing sql 2005 enterprise edition is not feasible for this project.
I have also not been able to get it working on a duplicate of their
environment (xp pro server, no domain).
I'm new to mobile development but not c# windows and web dev. Can
anyone advise me on my options to develop a c# utility to automatically
transfer xml data files between the mobile device and the server it is
connected to via usb?
I really didn't think it would be this hard but I cannot find anything
yet to help me. I have tried using the server explorer to create
database connections and then create datasources (from the Data menu)
on the mobile app, this works in design time as I can preview the data,
but as soon as I run it in the emulator or real mobile 5.0 pda it
throws an empty SQLException (message is also "SQLException"). Can
anyone point me in the right direction to find a way to write this
automation myself? Tag: Today screen line separator colour Tag: 75949
Maximizing DataTable in DataGrid
Hi,
On Windows Mobile 5.0 (OS 5.1.70 build 14410.1.1.3) I have a .NET CF
2.0 application.
I'm trying to fit a DataTable in a DataGrid, but I can't get the
DataTable to maximize in the DataGrid.
In the first for-loop I'm setting the width of the columns to match the
width of the DataGrid.
-----------------------------------------------------------
DataTable dt = new DataTable("msgdata");
if(m_data_dg.TableStyles.Count > 0)
m_data_dg.TableStyles[0].GridColumnStyles.Clear();
string[] columnNames = table.columnNames;
DataGridColumnStyle[] tbcs = new
DataGridTextBoxColumn[columnNames.Length];
int w = (m_data_dg.Width) / columnNames.Length;
for (int i = 0; i < columnNames.Length; i++)
{
tbcs[i] = new DataGridTextBoxColumn();
tbcs[i].HeaderText = columnNames[i];
tbcs[i].NullText = "(null)";
tbcs[i].Width = w;
m_data_dg.TableStyles[0].GridColumnStyles.Add(tbcs[i]);
dt.Columns.Add(columnNames[i]);
}
for (int i = 0; i < table.row.Length; i++)
{
string[] fs = new string[table.row[i].item.Length];
for (int k = 0; k < fs.Length; k++)
{
fs[k] = table.row[i].item[k].value;
}
dt.LoadDataRow(fs, false);
}
m_data_dg.DataSource = dt;
m_data_dg.Update();
-----------------------------------------------------------
Any replies are appreciated,
Koen Tag: Today screen line separator colour Tag: 75944
Update text file real time
Hi,
I have to update my log file (.txt) every time the program finishes uploading
files to server. Log file is written to using FileStream now. However, if
I'm reading the text file (using Pocket Word) at the time the process try
to open and write, I'll get an IOException. Anyway I can update the text
file and see the data updated in PocketWord without close/open it again?
Thanks for all your time
Eric Tag: Today screen line separator colour Tag: 75942
Disabing Word Completion
I am looking for a way to simply disable word completion for an edit field,
other than switching it off for the complete Pocket PC.
We have a "combo box like" user control that needs to pick up the arrow keys
in the KeyDown event to move up and down a listbox. When the user types more
than 2 characters I get VK_PROCESSKEY, which I assume means that the arrow
keys are going to the word completion control.
I have subclassed the edit control to get the VK_RETURN, is my only option
to also use this and see if I get VK_KEYDOWN, etc, there.
Something along the lines of
TextBox.WordCompletion = false
would be nice.
Thanks for any help,
Peter Tag: Today screen line separator colour Tag: 75935
Perf Monitor CF2 SP1
Hi!
I've some trouble connecting to my device using this tool. I've followed
Steve P's blog
http://blogs.msdn.com/stevenpr/archive/2006/04/17/577636.aspx
Running a PocketPC 2003 SE with CF2 SP1 installed.
ActiveSync 4.1.0 (Syncronization is completed)
I've copied netcfrtl.dll and netcflaunch.exe to windows dir on device.
I've started netcfrpm.exe and clicked Live Counters...
But the status bar at the bottom right side says Disconnected, and there are
no selectable devices in the Device drop box (as it should be automatically
when using ActiveSync according to previously mentioned blog).
Has anyone else experienced this?
I've tried soft-resetting the device and restarted my computer...
Thanks in advance!
/ Peter Tag: Today screen line separator colour Tag: 75934
Show or ShowDialog
Hello, Is there a way to tell if a form has been displayed used Show or
ShowDialog?(C#)
TIA Tag: Today screen line separator colour Tag: 75932
Problem in Bitmap button
Hi
Platform: using VS2005 C# for WM5.0 base PDA
I am making one Bitmap button(owner draw). What i have done is i am drawing
image on the button in onPaint() using e.drawimage ; I am also taking care
that my bit map becomes transparent(all corners) . For the same i am using
ImageAttributes attr = new ImageAttributes()
attr.SetColorKey(bmp.GetPixel(0,0), bmp.GetPixel(0,0));
In this case all the corners of my bitmap are becoming transparent and
showing same color(red color) which is my background color.(Here back ground
is my application's main form which is having back color = red) .
Till this point every thing is ok .
My problem is " if i load an image on the main form " . In that case above
bitmap buttons are still showing red color corner ...?? which is correct only
in above case, but in this case when an image is loaded on the main form ,Bit
map corners should display color of images which is loaded on the form,but it
is still showing Red corner (which is the back color of main form.)
How can i get rid of this problem ..
Please suggest ...
Regards
Manish Budhia Tag: Today screen line separator colour Tag: 75929
How can i install pocket console on the PPC Emulator?
Hi,
I need a way for debugging PocketPc application. I found
PocketConsole as the right solution. My app is being developed in c#
using VS2003. Can anyone plz tell me how can i install the
pocketconsole on the PocketPC emulator, for debugging, my application.
Thanks
- Hari Tag: Today screen line separator colour Tag: 75928
Late Binding
The following code give me an error telling that "The targeted version
of the .NET Compact Framework does not support latebinding." I am
using VB.Net 2005. What do I need to do to fix this code because I
have not seen this before!
The 2 parts giving the error are:
- PointsSplit(PointLoop)
- PointsSplit(PointLoop + 1))
For PointLoop As Integer = 0 To PointsSplit.GetUpperBound(0) - 1
Dim DiffFound As String = FetchDBValue("Difficulty",
PointsSplit(PointLoop) & "-" & PointsSplit(PointLoop + 1))
If DiffFound > DiffToCheck Then
DiffBool = False
Exit Function
ElseIf DiffFound <= DiffToCheck Then
DiffBool = True
End If
Next PointLoop Tag: Today screen line separator colour Tag: 75927
How a thread can change a control?
I am programming an HP iPAQ 1950, using VB .NET. I have two threads, the
main thread and thread #2. I need thread #2 to be able to change a
control on a form. My code runs but does not change the control. I have
tried several permutations but nothing seems to work. Below is sample
code. Note that my delegate uses the EventHandler class because this is
what the help files said I needed to use. Thanks for your help.
--- Code in Module1 (thread 2)
frmChemScanner.CallChangeHdrColor()
--- Code in form frmChemScanner (main thread)
Public Sub CallChangeHdrColor()
Dim e As New EventArgs
Dim o As Object
Dim d As New EventHandler(AddressOf ChangeHdrColor)
Me.Invoke(d, New Object() {o, e})
End Sub
Sub ChangeHdrColor(ByVal sender As Object, ByVal e As EventArgs)
labDeleteMode.Visible = True
End Sub
John
P.S. Please don't respond to the return address. Tag: Today screen line separator colour Tag: 75925
Help for conversion from evc++ to c#
Hello ,
I am trying to write a block device driver for sd cards in c#.. i have
it in evc++.. i am not very familiar with c#.. could some one point me
as to how this could be done..
in the following code .. i a writing the contents of the file to
specific location on the SD card.
I did try in c#.. but i couldnt find much help.. i used the
coredll.dll.. however i am not sure of the parameter to be passed to
functions like CreateFile and DeviceIOControl function..
regards,
Manu
void CSdDemoDlg::OnRawWrite()
{
// TODO: Add your control notification handler code here
HANDLE hDevice1
=CreateFile(L"DSK1:",GENERIC_WRITE,0,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
SG_REQ lpInBuf1;
DWORD dwDummy1 = 3;
char *lpOutBuf1;
lpOutBuf1 = ( char *)malloc(512);
memset(lpOutBuf1, 0x00, 512); // only to see the changes
char pBuffer[512];
FILE *hDrv2=fopen("\\sdInput.txt","rb");
if (INVALID_HANDLE_VALUE == hDrv2) {
OutputDebugString(L"Failed to open Driver for read...\n");
} else {
size_t sz_read= fread(&pBuffer,512,1,hDrv2);
fclose(hDrv2);
}
strcpy(( char*)lpOutBuf1,( char *)pBuffer);
lpInBuf1.sr_start =0xFF; //0x0018555; // physical sector
lpInBuf1.sr_num_sec = 1; // number of sectors sector
lpInBuf1.sr_num_sg = 1;
lpInBuf1.sr_status = 0; //ERROR_SUCCESS;
lpInBuf1.sr_callback =NULL;// callbackDiskRead;
lpInBuf1.sr_sglist[0].sb_buf = ((LPBYTE)
MapPtrToProcess(lpOutBuf1,GetCurrentProcess()));
lpInBuf1.sr_sglist[0].sb_len = 512 * lpInBuf1.sr_num_sec;
BOOL bRet=DeviceIoControl(hDevice1, // Handle to the device
IOCTL_DISK_WRITE, // IOCTL for the operation
&lpInBuf1, // LP to a buffer (input data)
sizeof(lpInBuf1), // Size in Bytes of input data buffer
lpOutBuf1, // LP to a buffer for output data
sizeof(lpOutBuf1), // Size in Bytes of output buffer
&dwDummy1, // LP to variable (size of data in out
buffer)
NULL);
CloseHandle(hDevice1);
if(bRet==0)
{
MessageBox(MB_OK,(TCHAR *)lastRawWriteError,MB_ICONINFORMATION|MB_OK);
}
} Tag: Today screen line separator colour Tag: 75916
Does anyone know what property to use that represents the current Pocket PC
theme for the Today screen line separator?