Check SD card Memory and
Hi Guys,
I want to check the SD card rest memory.and also want to check if there
is a SD card or not on DOT NET ?
Is there any api there?
and how to implement it?
My enviroment is: CF2.0
VS2005
Thanks Tag: listview vertical scroll bar sizing Tag: 78733
WAN communications
We have a VB.NET application that runs on a CE.NET 5 device, and at present
users return to the office to upload and download data by logging into the
main SQL server. We will shortly need to accommodate users accessing the
server remotely (from outside WiFi range) . What possibilities are there for
this? I have looked at literature, and as far as I can see, I have 2
possibilities - GPS and internet. Our handheld device has an optional GPS
module, but is it possible to connect the CE.NET device directly to the
office network using a combination of the existing 802.11b module in the
device, a wireless broadband router and VPN, or use an ftp site to transfer
data. I can see these options being easier to implement and cheaper (which
is the most important) than GPS. What hardware/software would I need for any
of these options? I am completely new to this area, so any help would be
appreciated. Thanks in advance.
Andy Baker Tag: listview vertical scroll bar sizing Tag: 78725
Socket restart issue
Hi All,
I am working on a CF 2.0 C# application for windows CE 5.0 device. My
application has a socket server feature in it and we have a Flash
application as a socket client.
The Flash client connects to the C# server and data flows between
them. At some point in time, the C# app has to close the Flash movie
and restart it at a later point in time. Here lies the issue. When the
C# app relaunches the swf, the swf starts looking for the server. But
the server stops listening to clients any more. I tried shutting down
and closing the socket object and creating that object (with the same
name) again and start listening, but it gave me a socket exception. Is
it not legal to recreate the socket object with the same name? How
else can I go about it? I cannot use new names each time I create
socket object. Also, I cannot use different IP address or port numbers
as they are hard-coded in Flash.
Thanks,
Krupa Tag: listview vertical scroll bar sizing Tag: 78722
Connecting PDA/Phone to Web Services using SSL?
I am using the following code to make a connection to a remote web service
running on my windows 2003 server. The server is in a domain using
Certificate Services. I have assigned a certificate to the default web site
and configured it. I can connect to the web service using IE, but when
trying to make a web connection via my application, I get various errors. I
can't seem to make it work. Here is a similar example to my code:
service.Url = @"https://" + Server + @"/WebService1/WebService1.asmx";
System.Net.NetworkCredential NC = new NetworkCredential();
ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();
NC.UserName = username;
NC.Password = password;
NC.Domain = domain;
service.Credentials = NC;
try
{
if (service.IsConnected())
{
return true;
}
else
{
return false;
}
}
catch(Exception except)
{
MessageBox.Show(except.Message);
}
return false;
When I am not using https, things connect fine. When I use https, I get
"Unable to read data from the network connection", inner exception is "the
remote certificate failed validation procedure".
Is there something I'm doing wrong, or is this simply not supported with
Windows Mobile?
I can't seem to find any clear answers out there. I have added the root
certificate to my mobile device store and it doesnt change the error
returned. Can anyone tell me how to make it work securly? I need to pass
admin credentials around with other various sensitive data and I need a
secure connection from the mobile device. Microsoft is doing it with
Outlook, so you would think it should work.
Thanks in advance,
Nick Tag: listview vertical scroll bar sizing Tag: 78721
HttpWebRequest Accept-Encoding: gzip Header
Hi,
I've developed a solution to call a webservice via HTTPWebRequest
The IIS is configured to allow compression (gzip).
The client application add to the request header the accept-
encoding:gzip
request.AllowWriteStreamBuffering = true;
request.SendChunked = false;
request.KeepAlive = true;
request.Method = "POST";
// tell the HTTP server that the client accept compressed
data
request.Headers.Add("Accept-Encoding: gzipr\n");
I've tested with success the code on my laptop, but on my pocket Pc
this does not work. I mean, i can successfully call the webservice but
i never receive the contents compressed.
In order to demystify this issue I've placed an http sniffer and came
to the conclusion that when i run the code into my laptop the header
accept-encoding is sent and from Pocket PC is not (this way the IIS
cant know if the client allows compression).
Investigating a little more i did the following:
request.Headers.Add("Accept-Encoding: gzipr\n");
request.Headers.Add("TestHeader: okr\n");
Running this code in pocket PC i saw that he sends the "TestHeader"
Header. He only omits the Accept-Encoding. Why is that?
Note: This behaviour occurs on Compact Framework 1.1 and 2.0; on
pocket pc 2003 mobile edition and on WinCE 5.0
What is happening? Can you help me?
Thanx Tag: listview vertical scroll bar sizing Tag: 78719
FTP FtpFindFile
Hello,
I work under window ce.net 5.0(C#) with the Wininet.dll librairy for the
FTP.
I want have the files list of a FTP directory.
I tried the "FtpFindFirstFile" function but it blocks my application.
Have you got some informations on this problem?
Have you got an example to list a directory?
Best regards Tag: listview vertical scroll bar sizing Tag: 78704
CameraCaptureDialog only records .wmv, not .mp4
Using: WM5 SP, .NetCF2
Using the regular camera My phone is capable of recording .mp4 movies,
but somehow the CameraCaptureDialog only records .wmv movies. I've
tried every variation of CameraCaptureDialog.Mode and
CameraCaptureDialog.VideoTypes without any luck. Bug? Tag: listview vertical scroll bar sizing Tag: 78702
Socketclient connection problems
I am working on the new HTC P3600.
In my VB (2005) project I am using the socketclient component to connect to
the server via UMTS connection.
It takes around 50-55 sec just to connect to the socket on the server and
then the rest of the communication is done quickly.
On the older model the S200, which had EDGE connection, to connect to the
socket server took only 1-2 sec.
I have also tested this odd behaviour with some other devices either
connected with via GPRS or EDGE and everything is working perfectly.
Where is the problem, the UMTS network or the socket component?
Thx, Dule Tag: listview vertical scroll bar sizing Tag: 78699
Passing string from VB to VC dll
I am working on the new HTC P3600.
In my VB (2005) project I am using the socketclient component to connect to
the server via UMTS connection.
It takes around 50-55 sec just to connect to the socket on the server and
then the rest of the communication is done quickly.
On the older model the S200, which had EDGE connection, to connect to the
socket server took only 1-2 sec.
I have also tested this odd behaviour with some other devices either
connected with via GPRS or EDGE and everything is working perfectly.
Where is the problem, the UMTS connection or the socket component?
Thx, Dule Tag: listview vertical scroll bar sizing Tag: 78697
voice recording in pocket pc using compact framework
hi friends
can u plz provide some source code or idea how we can achieve the
voice recording in ppc.
regards
aruj Tag: listview vertical scroll bar sizing Tag: 78695
Selectively italicizing ComboBox items
I'm working on my very first Windows Mobile project.
I need to selectively set the text of certain items within a ComboBox
to be displayed in italics. I read up on ower draw for ComboBoxes only
to learn that it's not supported in .Net compact framework.
After extensive searching on MSDN, newsgroups, and the web I'm still
not entirely sure how best to approach this. I'd prefer to customize/
override/handle events on the existing ComboBox rather than create a
custom control from scratch.
I've done a bit with customizing existing controls on the desktop by
handling OnPaint and such. Can someone explain the best mechanism to
accomplish what I need to do and give me a push in the right
direction? I think I can take it from there.
Thanks in advance.
Mike Karlesky Tag: listview vertical scroll bar sizing Tag: 78692
log execption and call stack
hi.
using framework 1.1
is there way to log exception with call stack ? or at least the last method
where the exception accured ?
(without loggin all methods).
thanking in advance. Tag: listview vertical scroll bar sizing Tag: 78689
DLLImport with relative Folder
Hi Guys,
I want to import some function implemented by C++;
I have built my those function under VC++ IDE,
I have created a DLL Folder on my DOTNET project,and added my DLL file
into this folder.
When I do deploy my Project on Simulator,I have found that
My main Entry file is deployed with different loction with my DLL location,
let's say:
Program Files --mysolution--Main Entry File
|
---DLL---mydll.dll File
So when Main Entry call some function implemented by dll files, it can not
find dll file.
Since my DLLImport["mydll.dll",EntryPoint="EntryPoint"],I know the reason
that is is
because I dont write the correct path.
Question:
Can I write relative path on DLLImport or is it to be absolute file path?
I prefer to relative path than absolute path, since it will make me feel
flexible!
If I can write relative path, how to write,I have googled it, I only find
some absolute path writing.:(
Sorry, I am totally new dotnet user.
Thanks Tag: listview vertical scroll bar sizing Tag: 78662
Serial Port Issues
Hi NG,
I've recently taken on the task of creating some custom software for
a
Treo 750v. The Treo has a working serial port (tested with a
terminal
emulator) and is running Windows Mobile 5.0 with Compact Framework
2.0
installed.
Lets start off with some background first....
For my first attempt, I attempted using the emulator, and the first
issue I encountered was that I could not receive any data on the
serial
port (BytesToRead property was always 0, and yes I bound the emulator
comport to a real comport in the settings). So, for the heck of it I
compiled the same code, and ran it as a standalone app on windows XP.
Everything worked great! So I finished developing the app, running
into
many minor issues, one of which was:
serial.write(chr(data).toString) has a TX parity error 40% of the
time.
Switching to a byte array solved it (don't know why), and I went
along
my merry way.
Anyway, the app is finished, and ready to be installed on the
handheld
device. I installed it, it fired up no problem, then as soon as
communication begins I'm bombarded with frame error after frame
error.
Obviously it has to do with it being run on a handheld, and
unfortunately I don't have another model handheld to test on. Anyone
have any similar issues?
-Thanks Tag: listview vertical scroll bar sizing Tag: 78658
Equivalent of DAY() function
Hi,
What is the equivalent of DAY(), MONTH(), YEAR() function of SQLServer in
SQLServerCE
Thanks in advance,
Catalin Tag: listview vertical scroll bar sizing Tag: 78648
Implementing SuspendLayout in CF 1.0
Hi,
I have a 'core' code that runs in the main thread and it needs to be
run without the other threads able to invoke their methods.
Currently other threads are able to perform invoke since the 'core'
code is using GUI methods such as Form.Hide()
Using lock won't help here because it's not practicle that all the
other threads will try to access the lock object before invoking
(Since these are services for the application it will be a 'dirty
code' to do this)
What I'm asking is if theres an option/possiblity of implement/rewrite
the suspend/resume layout methods that are not supported in the CF
1.0?
I know the methods are supported in CF 2.0, but I can't migrate the
code to CF 2.0, yet. And if it is supported in CF 2.0 doesn't it mean
that it IS possible to find an API function that does that?
Thanks, Tomer. Tag: listview vertical scroll bar sizing Tag: 78646
Convert PPC project to WinCE Autres options
Hi,
I have developped a PPC application, and now I want to deploy it into
WinCE.net device.
What is the best way to convert a PPC project to a WinCE project with
the samed source code? Is it possible to share code source?
Thanks for yours answers ? Tag: listview vertical scroll bar sizing Tag: 78643
ANN: SDK for Micro Framework is now available
Not 'Compact', but ...
PR: Microsoft .NET Micro Framework Is Now Available
http://www.microsoft.com/presspass/press/2007/feb07/02-13NETMFReleasePR.mspx
Download:
http://www.microsoft.com/downloads/details.aspx?familyid=32f5df20-6c95-4fe8-a76c-0ed56a839ad2
MSDN:
http://msdn2.microsoft.com/en-us/embedded/bb267253.aspx
What is .NET Micro Framework?
http://msdn2.microsoft.com/en-us/embedded/bb278106.aspx
FAQ:
http://msdn2.microsoft.com/en-us/embedded/bb267264.aspx
Newsgroup:
microsoft.public.dotnet.framework.microframework
--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.cetus-links.org/oo_dotnet.html - http://dnetmaster.net/ Tag: listview vertical scroll bar sizing Tag: 78640
how to activate an application not a form
Hi,
How do i activate my application? I used GetForegroundWindow(),
CreateProcess() , but nothing works fine. I'm only able to activate
the current form. But not the application as a whole.
To give in detail, my app contains multiple forms, like form1
creates form2, form2 inturn creates form3. Suppose now form3 is the
current active form and my app goes background as i click on 'today'
item from 'Start'. Now if CreateProcess() or GetForegroundWindow() is
called, it displays form3. Its fine until that. But as i close
form3(), this should show up form2. But it does'nt. It just shows
today screen, no form.
What i want exactly is when i activate a form in my app from
settings->memory, it works just as fine as the application was never
put in background. I want to acheive the same.
PLZ suggest.
Thanks,
Hari. Tag: listview vertical scroll bar sizing Tag: 78639
WinCE 5 andinserting data to MSDE table
Hi,
I ave problem with inserting data to MSDE from device with WinCE 5 and
NetCF 2.
Problem is that WinCE has no Polish localization. I set database to
Latin1_General_BIN so I can work with SQL. I have table witn 3 columns
which are nchar, nvarchar and ntext type (called a, b and c).
When I execute command (data with Polish signs):
insert into table(a, b, c) values('³óê±¶¿¼æ', '³óê±¶¿¼æ', '³óê±¶¿¼æ')
In database i get:
a = 'lóeaszzc'
b = 'lóeaszzc'
c = 'lóeaszzc'
How can I resolve this problem? What I must set in MSDE and in terminal
application to insert proper row?
--
Pozdrawiam,
Klaudiusz Tag: listview vertical scroll bar sizing Tag: 78634
WinCE 5 and selecting data from MSDE
Hi,
I ave problem with inserting data to MSDE from device with WinCE 5 and
NetCF 2.
Problem is that WinCE has no Polish localization. I set database to
Latin1_General_BIN so I can work with SQL. I have table witn 3 columns
which are nchar, nvarchar and ntext type (called a, b and c).
When I execute command (data with Polish signs):
insert into table(a, b, c) values('³óê±¶¿¼æ', '³óê±¶¿¼æ', '³óê±¶¿¼æ')
In database i get:
a = 'lóeaszzc'
b = 'lóeaszzc'
c = 'lóeaszzc'
How can I resolve this problem? What I must set in MSDE and in terminal
application to insert proper row?
--
Pozdrawiam,
Klaudiusz Tag: listview vertical scroll bar sizing Tag: 78633
ANN: Reminder: MVP-hosted Device AppDev Chat tomorrow
Just a reminder that MVPs will be hosting an online chat tomorrow concerning
Device Application Development with Visual Studio 2005.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Title: MVP chat: Device Application Development with Visual Studio 2005
Chat Date: February 13th
10:00am - 11:00am Pacific Time
Please join us for this live online chat with some of our Device Application
Development MVPs! You've seen them in the newsgroups, you've heard them
speaking at events, you've read their technical articles and books, so come
and chat with them! This chat will cover the .NET Compact Framework and the
Smart Device Programming features of Visual Studio. If you target your
applications for Windows Mobile or Windows Embedded devices, please attend
and feel free to bring along your Smart Device Framework questions also as
OpenNETCF will be well represented in this chat.
To join this chat, please log on via the main MSDN chat page at:
http://msdn.microsoft.com/chats
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--
--
Thanks!
Michael Fosmire
MVP Lead, Device Application Development
This posting is provided AS IS with no warranties, and confers no rights. Tag: listview vertical scroll bar sizing Tag: 78629
Pocket outlook mobile 5
This email gets added to the calendar but not sent any idea why ?
Thanks in advance
Dim outlook As New Microsoft.WindowsMobile.PocketOutlook.OutlookSession
Dim ma As New Microsoft.WindowsMobile.PocketOutlook.Appointment()
ma.Subject = Subject
ma.Recipients.Add(New
Microsoft.WindowsMobile.PocketOutlook.Recipient(UserName, Usermail))
ma.Start = StartDate
ma.End = EndDate
ma.Body = MsgBody
ma.Duration = New TimeSpan(1)
outlook.Appointments.Items.Add(ma)
ma.Update()
ma.Send()
VS 2203 SP1
Vb.net Tag: listview vertical scroll bar sizing Tag: 78627
performance profiling tool for Windows Mobile?
Hello everyone,
Are there any performance profiling tool for Windows Mobile? Either for
Windows Mobile 2003 or for Windows Mobile 2005 is ok (either simulator or
real device is ok). Any reference quick start turorials?
I simply want to generate a result like gprof generated on Linux, like the
percentage of each function consumed (and sorted from the most time consuming
function to the least time consuming function) and the related consumed time
stamp.
thanks in advance,
George Tag: listview vertical scroll bar sizing Tag: 78613
Visual Inheritance in User Control
I am creating a CF application using VB.Net 2.0 and VS2005.
I am trying to create a heirarchy of controls to give my application a
common look and feel.
Here is what I have so far:
public class ctrlBase inherits UserControl
public class tabBase inherits ctrlBase
public class pageMain inherits tabBase
When working with tabBase, I can correctly see the formatting and
controls on ctrlBase, and then add controls that should be accessable
to all decendants to tabBase. However, when I go into the designer
for pageMain, instead of seeing the controls from tabBase, I am again
presented with ctrlBase and its controls.
Is there some setting I need to make to allow inheritance deeper than
one level?
I appreciate any help you can offer.
Mike Tag: listview vertical scroll bar sizing Tag: 78612
.NET 2.0 WebService
Hi,
We're migrating our PocketPC application frrom Compact Framwork.NET
1.1 to 2.0 but are experiencing a "Timeout" error with one of our web
methods. From our testing we do not think it is anything to do with a
timeout but rather the size of one of the parameters. The paremeter
is a string of apporx 48k. which we pass in the web method and get the
error (there is very little processing on the string by the server).
However if we reduce the size of this parameter by half the call
succeeds !
We have no problems on CF 1.1
Are there any settings/limits on the PDA side which could cause this
problem especially differences between .NET 1.1 and 2.0 ?
Any help appreciated
Thanks
Tom Tag: listview vertical scroll bar sizing Tag: 78610
Adding a button to file explorer
Hi,
I'd like to add a button in file explorer right next to the directory
name. This button should also run a specified program and send it the
current path.
Thanks for any help in advance... Tag: listview vertical scroll bar sizing Tag: 78609
PDA
hi there,
i cant get it to connect, i added the reference to
System.Data.SQLServerCE.dll, and using the following code (IP is pinged and
working okay)
------------
string DATABASE_CONN = "Data Source = \\\\192.168.1.107\\My
Documents\\OrdersDB.sdf";
SqlCeConnection conn = new SqlCeConnection(DATABASE_CONN);
conn.Open();
------------
any help appreciated.
thanks, Tag: listview vertical scroll bar sizing Tag: 78603
generate performance statistics (*.stat file)
Hi all,
I am trying to generate performance statistics for a .NET CompactFramework
application.
I am doing steps explained in
http://msdn2.microsoft.com/en-us/library/ms172526(VS.80).aspx
I only get a file called <MyApp>.stat but it has not any result.
Am i doing any wrong? What can be the problem?
Thanks for your help. Tag: listview vertical scroll bar sizing Tag: 78598
Mouse Capture
Hi,
I have code that "pops up" a listbox control. It's a child of my topmost
form, and appears on top of other controls. I would like to hide the listbox
when the user taps on an item in the list (on MouseUp), or taps outside the
listbox (on MouseDown).
Of couse, ListBox doesn't support the mouse methods. Setting Capture=true
and attaching a MouseDown delegate to the main form only works to a point (if
the user taps in another control, or on the menu bar, there's no
notification).
I wrote a native DLL that calls SetWindowsHookEx and passes mouse messages
to a managed MessageWindow. It turns out that mouse hooks are not implemented
in WinCE.
Am I missing something, or have I done something wrong? I see that the
ComboBox drop-down list manages this, as does the SysDateTimePick32 control.
It looks like OpenNETCF ApplicationEx class would allow me to create an
application-wide message filter for the lifetime of the ListBox. Could
someone confirm that this will pony up those pesky mouse messages?
--
David Tag: listview vertical scroll bar sizing Tag: 78597
Drop GPRS connection
Hi, I'm new in CF.
Is there a way for drop a GPRS connection (Vb.,net or C#)?
Thanks Tag: listview vertical scroll bar sizing Tag: 78587
Writing download program for mc1000 / mc3000
Hi
I need to write software for a symbol mc1000 or a mc3000 barcode
scanner. This program should capture all the barcodes that was scanned
by the scanner and store it in a database on the scanner itself, and
then later on the information needs to be transferred from the
scanners's db to a pc into a text file. I want to use visual studio
2005 for this.
Is this possible
thanks
Marius Tag: listview vertical scroll bar sizing Tag: 78580
Database engine to use activesync to sync DB's with desktop version
Hi
I'm looking to find a Database engine to use activesync to sync DB's with
desktop version.
I have a desktop version of software, which I want to develop a PDA version
of also. I want to then be able to Sync the data between both of the apps,
preferably via ActveSync.
I want to avoid using the replications offered by SQL Server, as this is to
be a lightweight application, and the desktop user should not need to enable
replication via IIS.
Is there a component out there that can offer this?? Any links to examples
appreciated.
Thanks Tag: listview vertical scroll bar sizing Tag: 78579
using the WindowMediaPlayer object on smartphone freezes application
Hello all,
I have made a .NET compact framework application for smartphone
devices which uses the WindowsMediaPlayer object to play a mp3 file.
Everything works fine until I call Application.Exit(). Then the
application won't exit completely and remains hanged, although in
TaskManager it doesn't show up anymore. This happens only when I use
the WindowsMediaPl;ayer object. Does anyone have any hints on what I
may be doing wrong?
Thanks in advance! Tag: listview vertical scroll bar sizing Tag: 78578
MDB or SDF?? Access or SQL Server Compact Edition??
Hi
I'm looking to find a debate / discussion on the merits of coding a .NET
application with either MDB or SDF files?? (ie. Access versus SQL Server
Compact Edition)
I guess the official line would be that SDF files should be used; but what
advantages does each have over the other??
Is there a MS paper discussing this?
Thanks Tag: listview vertical scroll bar sizing Tag: 78567
MDB or SDF?? Access or SQL Server Compact Edition???
Hi
I'm looking to find a debate / discussion on the merits of coding a .NET
application with either MDB or SDF files?? (ie. Access versus SQL Server
Compact Edition)
I guess the official line would be that SDF files should be used; but what
advantages does each have over the other??
Is there a MS paper discussing this?
Thanks Tag: listview vertical scroll bar sizing Tag: 78566
Binary storage
Hi all
I am currently using SQLite as my database, which I found to be much faster
than SQL CE, however I still require faster binary storage.
My database consists only of a single table
create table Instances (
Oid INT Primary Key,
InstanceType Text,
InstanceData BLOB
);
create index InstancesInstanceTypeIndex on Instances(InstanceType);
I serialise / derserialise my objects myself and store my business object ID
(int) in Oid, the Type.FullName in InstanceType, and the object's serialised
data in InstanceData. My requirements are
1: Add a new record
2: Update a record by OID
3: Get a record by OID
4: Get a list of OID with a specific class name "InstanceType"
5: Get the highest OID in the database
I might need to remove a record in the future, but at the moment I don't
need to. The InstanceData consists of variable sized data.
I am wondering:
A: Is there an embedded DB for CF that is faster than SQLite?
B: Is there a non-DB way (single file) that I could achieve this which would
be faster?
Any help would be appreciated. My XML->DB import routine is taking an hour
and this is far too long.
Pete Tag: listview vertical scroll bar sizing Tag: 78564
How to set the speed dial option to a contact
Hi All, i have a problem of assigning the speed dial to a particular
contact no in Windows Mobile 5.0. i have not seen the speed dial
function in Windowsmobile.telephony etc. if anyone could tell me the
function which will do that option, would be appreciated greatly.
Thanks in Advance
stallion Tag: listview vertical scroll bar sizing Tag: 78563
System.Transactions in Compact Framework
I'm trying to use the .Net 2.0 System.Transactions namespace, but
Visual Studio isn't finding it.
The Microsoft page on the TransactionScope object seems to suggest
that it does exist in CF 2.0 but I can't find it or the assembly dll.
http://msdn2.microsoft.com/en-us/library/system.transactions.transactionscope.aspx
Any ideas or alternative solutions?
thanks
Graham Tag: listview vertical scroll bar sizing Tag: 78558
Pointer to String in VB2005
I'm trying to load this structure for a call to DeviceIoControl:
typedef struct _NDISUIO_QUERY_OID {
NDIS_OID Oid;
PTCHAR ptcDeviceName;
UCHAR Data[sizeof(ULONG)];
} NDISUIO_QUERY_OID, *PNDISUIO_QUERY_OID;
I created the equivalent in VB:
<StructLayout(LayoutKind.Sequential)> _
Public Class NDISUIO_QUERY_OID ' nuiouser.h
Public Oid As Int32
Public ptcDeviceName As IntPtr
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=4)> _
Public Data As String
End Class
What I need to proceed is: How do I get the pointer to my DeviceName string
to plug into ptcDeviceName? If it was C, I could just do ptcDeviceName =
&DeviceName -- I don't know how to do this in VB.
Thanks for any help,
Steve Tag: listview vertical scroll bar sizing Tag: 78547
Problem with mainMenu display
Hi,
I have a program, in which the first form is an empty form with no
components. I use this form in the Application.Run(). In this Form, on
the activation event, i check for a value in a database and according
open either of the FormA or FormB. Both these forms contain various
fields like textboxes, buttons, etc and the mainmenu. When i try to
load either of this form on the Activation event of the initial start
form using the following sequence of commands
FormA fa = new FormA();
fa.Visible=true;
this.Hide();
the new form loads, however the mainmenu is not displayed properly, ie
the buttons which are actually present in this Form dosent show up.
However if the start by load either of these forms directly, ie by
using Application.Run() on them (FormA or FormB), they are displayed
perfectly, with all the components and the mainmennu buttons. What
could be the error in my program flow?
I am using PPC 2003 2nd edition phone.
Thanks and regards,
Allen Tag: listview vertical scroll bar sizing Tag: 78541
I can't debug WM5
Hi group
I had a very good dev env, but my computer crash, and i have all
reinstalled.
Now I have visual studio 2005 Std Ed, SP1, with WM5 PPC SDK, WM5
smartphone SDK. I have ActiveSnc 4.2.
I can debug (using the pause button), and explore all my variables,
but my break point are allways disabled with the yellow '!'.
I think that's all i need but i can't get the breakpoint. I have
search every where the lasts updates, SP and so on. But still not have
debug on PocketPC 2005.
What i have forget ?
Please help
Thank you all for this good job.
ROM Tag: listview vertical scroll bar sizing Tag: 78540
How to disable the default phone dialer
Hi
Please can any one tell me how to disable the default phone dialer in
windows mobile 5.0.
Thanks in Advance
Raghunath Tag: listview vertical scroll bar sizing Tag: 78533
Ancora problemi IE7
Lo so che di post così ce ne saranno a dozzine, ma vi espongo lo stesso il
mio problema chiedendo magari qualche spiegazione.
Ho sempre usato IE6 per poter navigare tranquillamente sui siti Microsoft
dato che a altri browser sono un po' indigesti (non sto a polemizzare su chi
ha ragione).
Qualche giorno fa ho voluto installare IE7, tutto è filato liscio e in pochi
minuti ho avuto il mio bel browser fiammante :)
Però da quel momento IE non fa altro che lamentarsi su gran parte degli
stessi siti *Microsoft* che prima visitavo!
Un esempio su tutti: http://v4.windowsupdate.microsoft.com/en/default.asp
IE7 mi dice che le protezioni non permettono di utilizzare i controlli
ActiveX.
Ho cercato in rete tutti i modi di convincerlo: aggiunto il sito tra quelli
attendibili, spuntato tutte le caselle che riguardavano i controlli
ActiveX... almeno IE6 diceva "oh! va che qui c'è 'sto controllo, lo eseguo
lo stesso?" adesso ho solo una pagina bianca :(
Poi non capisco il motivo di avere un'impostazione della protezione per
l'area internet e per i siti attendibili/con restrizione... i siti non sono
in internet??? :)
Ciao Tag: listview vertical scroll bar sizing Tag: 78531
Custom column formatting [C#, CF 2.0 SP 1]
Hi there,
I'm having some troubles properly formatting strings in a DataGrid
component. The situation is as follows. My datatable contains status
information in numeric form. I would like to present this information in
the form of a short word (e.g. 'new') in a column in a datagrid that is
bound to the datatable. I'm planning to make this fancier in the future,
but for now it'll suffice.
Looking at the API I was unable to find a way to simply "inject" a custom
formatter delegate or object. Somewhat desperate I turned to the heavy-duty
solution of implementing my own column style which overloads the Paint
method.
The code is heavily based on an example I found at:
http://blogs.msdn.com/netcfteam/archive/2006/04/25/583542.aspx
The relevant code looks like this:
protected override void Paint(Graphics g, Rectangle bounds,
CurrencyManager source, int rowNum,
Brush backBrush, Brush foreBrush, bool alignToRight)
{
DrawBackground(g, bounds, rowNum, backBrush);
bounds.Inflate(-2, -2);
RectangleF textBounds = new RectangleF(bounds.X, bounds.Y,
bounds.Width, bounds.Height);
object cellData = PropertyDescriptor.GetValue(source.List[rowNum]);
Color foreColor = owner.ForeColor;
string s = FormatText(cellData, ref foreColor);
if (foreColor != owner.ForeColor)
foreBrush = new SolidBrush(foreColor);
//MessageBox.Show(string.Format(
// "calling DrawSting: s = {0}, owner.Font = {1}, foreBrush = {2},
textBounds = {3}, fmt = {4}",
// s, owner.Font, foreBrush, textBounds, fmt));
g.DrawString(s, owner.Font, foreBrush, textBounds, fmt);
}
protected virtual void DrawBackground(Graphics g, Rectangle bounds,
int rowNum, Brush backBrush)
{
//if (alternatingBrush != null && ((rowNum & 1) == 0))
// backBrush = alternatingBrush;
g.FillRectangle(backBrush, bounds);
}
protected virtual string FormatText(object cellData, ref Color paintColor)
{
return cellData == null ? NullText : cellData.ToString();
}
The FormatText is overloaded to provide more sophisticated translation, I'm
fully aware I don't need a custom formatter if the translation only
requires ToString(). :-)
Unfortunately, this code does not work. In fact, not even the MessageBox is
shown (if I uncomment those lines). All I get in the designated graphics
canvas is a diagonally drawn cross. I checked all the parameters passed to
DrawString for equality to null, but all look fine.
Does anyone have an idea why this code doesn't work? Even better: is there a
simpler way to provide custom formatting to an existing column style? It
would be nice if I could change the colour as well, but a simple
int->string translation would be a step in the right direction.
Niels Tag: listview vertical scroll bar sizing Tag: 78530
Radio buttons do not maintain mutually exclusive if a label is in the panel
Hi.
Can anyone shed a clue on this?
If i have 2 panels both with 2 radio buttons. One of them containing
a label inside the panel, and one does not. When selecting the radio
buttons, teh one with the label , will eventually have both radio
buttons selected, and thus is no longer mutually exclusive. The one
without a label seems to work normally.
Thanks,
Peter Tag: listview vertical scroll bar sizing Tag: 78529
Peghelp.exe not available
Hi, my application show help files using PegHelp application.
Unfortunately on one device this application is not available. Is it
possible to install it in some way ?
I've tried to copy from another device but it's not possible to copy system
files.
What can I do ?
Thank you in advance.
Keven Corazza Tag: listview vertical scroll bar sizing Tag: 78525
How automatically log out users after a configurable time? WM5.0
Hi all,
My program need to automatically log out users after a configurable time
that users keep having no actions.
I'm new in CF application.How to accomplish it?
Any ideas will be appreciated.
Best Regards,
Alan Tag: listview vertical scroll bar sizing Tag: 78523
Problem with SqlTypes.SqlBinary declaration in VS2005/CF2/WM5
I'm working my way thru upgrading our codebase and have come across an
odd one!
I have a method that is returning a variable of type SqlBinary but
gives the following compilation error...
Error 3 The type 'System.Data.SqlTypes.SqlBinary' exists in both 'c:
\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK
\CompactFramework\2.0\v2.0\WindowsCE\System.Data.dll' and 'c:\Program
Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile
\v2.0\System.Data.Common.dll'
This is a psuedo-snippet of the code...
using System;
using System.Data;
using System.Data.SqlTypes;
using System.IO;
namespace TimeDrive
{
public class FluxCapacitor
{
public SqlBinary StarChartData(string filename)
{
}
}
}
I've tried declaring the return var as
'system.data.sqltypes.sqlbinary' and also removing the 'using
system.data.sqltypes' line, but neither resolve the error.
Chris Tag: listview vertical scroll bar sizing Tag: 78520
Is there anything I do to adjust the width of the vertical scroll bar of a
listview control in the CF?