webresponse
Hi friends,
I have a question on why webresponse() is taking 5 seconds to fetch the
data.
This is my code.
Dim req As WebRequest = WebRequest.Create(reportCall)
Dim resp As WebResponse = req.GetResponse()
my report call is "http:\\localhost\\.asp?xsl"
everything is okay but when it comes to "req.GetResponse()" it takes 5
seconds to read the URL?
Could somebody tell me how do i make it fast. thanks Tag: PerformClick for Button in Compact Framework Tag: 49856
Loading pictures from storage
I have a program that uses many copies of the same picture. However, it
seems that each picturebox keeps it's own copy. How can I load the picture
at runtime from the flash disk? The PictureBox control does not seem to
have this feature. Tag: PerformClick for Button in Compact Framework Tag: 49855
Network Logon
I am converting an application from Windows CE 3.0 written in EVC++3.0 to a
Windows Mobile 2003 device using C# and the compact framework. In the
application I copy files from a network share onto the mobile device. On the
3.0 device I was able to enter the logon credentials from a control panel
applet prior to giving the device to the users, thus eliminating the network
logon prompt during program execution. On the WM2003 device there does not
appear to be an equivalent control panel applet to enter the logon
credentials so my users are forced to enter a logon, password and domain the
first time the program tries to copy files. Do you know a way of
pre-configuring the network credentials and/or where they are stored on the
system once they are entered on the WM2003 device? They do not appear to be
in the registry. Tag: PerformClick for Button in Compact Framework Tag: 49854
WebBrowser control - get Forms input / posts
With .Document and some of the events missing in the current version, how
should I go about gathering user form data after stuffing .DocumentText
without a real post-back (i want to keep everything local).
Cheers,
Rob Tag: PerformClick for Button in Compact Framework Tag: 49852
Can't deploy .net app
Hi
I am using this smartphone device;
http://www.microsoft.com/windowsmobile/devices/devicedisplay.aspx?module=deviceDisplay;Smartphone;emea;191. I
am having problem deploying smartphone app from vs 2005. The error I get is
that this version of activesync is not supported. I have downloaded and
installed version 3.8 but still get the same error. I was not able to deploy
using vs 2003 as well. The device works well otherwise and syncs fine with
outlook via activesync. I am using Norton Internet Security 2004, in case
that has any effect.
How can I deploy my smartphone app to the SDA device?
Thanks
Regards Tag: PerformClick for Button in Compact Framework Tag: 49851
Effect of changing computer name on Connection when debugging app
I developled a PocketPc App last year and another group in our company wanted
to use it. I was charged with the task of creating a slimmed down image of
our solution so they would have a head start. When I went to debug the app I
started getting connection errors and I started trying to find things in
various forums to give me an idea of what to do to fix it. One thing led me
to the Windows/NETCFKeys on my mobile device. I realized that there is are 2
files: Administrator.FSDSBrooksR and a BrooksR.FSBBrooksR. We recently
changed our computer names when we upgraded to XP and my computer name was
changed from FSBBrooksR to FSDSBrooksR. Should I delete the reference to
FSBBrooksR and will Visual Studio create a new one when I try to debug it?
Is this causing or likely causing my connection problem?
Thanks
Robert Tag: PerformClick for Button in Compact Framework Tag: 49842
[C#] API to start and stop modem
Hi,
I'd like to know if there is an API to start and stop a modem on a PDA ?
Thanks.
Best regards Tag: PerformClick for Button in Compact Framework Tag: 49841
Problem with Message Box from Thread
I'm trying to show a message box from a thread I'm running. Every time it
executes, it takes me back to the main main screen without showing up. Here
is what I'm doing:
Starting a main window
Starting a 2nd window (2ndwindow.show) that in turn starts a background
thread when a button on it is pressed.
I'm calling a routine in the 2nd Window from the background thread using a
delegate. This works fine if I just have this routine update a textbox in
the 2nd Window but if I try to have it show a message box, I fail. It looks
like the message box quickly pops up and then I go back to my main screen.
Any ideas of how to handle this?
--
Thanks
RonF Tag: PerformClick for Button in Compact Framework Tag: 49838
Convert PPC project to WinCE
I have a project with a lot of Forms for PPC.
When i connect to a WinCE.Net devices it does not reconnize the installed
compact framework and copies a lot of DLL.
Is there a way to convert to a generic Wince project?
I create a new wince project ana added all forma, but it loose a lot of
custom controls.
Thanks Tag: PerformClick for Button in Compact Framework Tag: 49833
Weird toolbar problem...
I'm having a weird toolbar problem.
The issue is that I've got this toolbar which call "this.Close()" on my
Form, by some obscure reasons I need to press the toolbar TWICE before
the form actually CLOSES...
I have stepped through the code and verified that the code is actually
CALLED but still the Form isn't being closed...
The form is being showed with ShowDialog() and it doesn't contain alot
of fancy stuff.
I've got one custom DataGrid control in it, but that DataGrid works
perfect in other forms.
I'm using the OpenNETCF/SDF in my app and I've optimized the
InitializeControls with the "rules" to make it faster. (setting Parent
property instead of adding the controls, loading controls top-down
style etc...)
Form is localized for two languages but I've handremoved everything in
both resx files and InitializeControls which don't have anything thing
to do with "text" properties (optimization)
It seems to me as if the "Close" method on the form is somehow
"broken"...??
Appreciate any suggestions...
I can submit code, but it's gonna be LONG... (650 lines...)
Also I've got lots of forms in my app, many which are way more
"advanced" then this one, many ofo the also "optimized" but they all
seem to function perfect except this one though...
Regards
Thomas Hansen Tag: PerformClick for Button in Compact Framework Tag: 49830
Toolbox Icon for CustomControl
Hello,
I have written a custom-control for SmartDeviceApplications.
Now I will set a specific ToolboxIcon if my custom-control is added to
the VS.Net-ToolBox.
Is it possible to change the appearance of the ToolBoxIcon for my
custom-control??????
Thanks Tag: PerformClick for Button in Compact Framework Tag: 49829
Main not called
Hi!
I have a problem with a .NET app that fails to start for some unknown
reason. The Main method is not called at all, which -- needless to say --
prevents the app from starting.
Any ideas why the Main-method isn't called?
Thanks in advance,
Nille Tag: PerformClick for Button in Compact Framework Tag: 49822
Long or Short HW-buttons pressing
Hi.
Can I found out what kind of pressing user made over Hardware buttons of PDA?
Short press, or Long press...
Thx.
K. Tag: PerformClick for Button in Compact Framework Tag: 49815
Install .net CF 2 beta on Windows CE 4.1?
Hi,
I have a Casio Windows CE device, running Windows CE 4.1, and would like to
install .net CF 2 beta on it. Is this actually possible? Executing the .cab
file on the device installs CF2 beta, but "cgacutil.exe" still shows
1.0.4292.00 as the CF version. I can't deploy from VS2005 either, since
there's just a "Windows CE 5.0 device" but no Win CE 4.1.
Thanks for any help..
Kind regards,
Roland Tag: PerformClick for Button in Compact Framework Tag: 49811
GPRS log API ?
Hi,
Is available API to get GPRS log (in/out bytes transmited) from WM 2003
Phone Edition?
Any ideas?
10x
Regards
Tihomir Ignatov Tag: PerformClick for Button in Compact Framework Tag: 49808
Voice Recorder
Hi all,
I'm looking for a way how can I embed standard PPC VoiceRecorder into
my application. I've found one from OpenNETCF but it works really
strange - is it possible to embed it not like a window but like a
control?
Thanks in advance,
Hanz Tag: PerformClick for Button in Compact Framework Tag: 49804
How to simulate Wrap in NumericUpDown control
Hi All,
I have a Pocket PC appln. with compact framework 1.0,
I want to wrap the values when value reaches the max. like DomainUpDown
control in NumericUpDown control
Any there to help me out.
rrgds,
Vinay Tag: PerformClick for Button in Compact Framework Tag: 49803
using protected methods in compact framework
I have managed to use the protected methods in the .net framework.. however i
need to use the protected method ".Client". so as to get the local endpoint
of the current connected socket.
this is the code
public class MyderivedTcpClient : TcpClient
{
// Constructor for the derived class.
public MyderivedTcpClient() : base ()
{
}
public String getAddress()
{
// Calls the protected 'Client' property belonging to the TcpClient base
class.
Socket s = this.Client;
return ((IPEndPoint)s.LocalEndPoint).ToString();
}
}
What solution could you suggest??
Thanks and regards
Thomas Engerer Tag: PerformClick for Button in Compact Framework Tag: 49802
Can I write to an embedded resource text file
If I include a text file as an embedded resource, can I write new data to
the file and will that data be saved between shutdown and startup?
If so, what tools should I focus my attention on for writing to the file?
If not, can I copy the embedded file to a directory on the device and write
to it there? I have been trying the system.io.file.copy function but have
not figure how to identify the embedded file as the item to copy.
James Tag: PerformClick for Button in Compact Framework Tag: 49794
What si the best way to store a variable value between program shutdowns
I need to store a user entered value such that I still have it after
shutting down the program and running it again. In my old eVb version
I stored the value in a text file and just read it out again on startup
of the program. Is there a better way in VB.NET?
James Tag: PerformClick for Button in Compact Framework Tag: 49787
How do you increment your build numbers?
Hi,
I have always wondered how one goes about counting what number their
build is on for just a program? For instance how does a company know
that widget.exe is at version 3.0.1.2.2 so they can release it
properly? Tag: PerformClick for Button in Compact Framework Tag: 49786
How do i copy a file from an embedded file to the file system
I have a text file inlcuded as an embedded file. I want to copy it to
the device file system for manipulation. I tried the following:
System.IO.File.Copy(SourceFile, DestinationFile)
where SourceFile =
System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceStream("namespace.filename.txt"
and DestinationFile = "\My Document\Docfolder\filename.txt"
I get an error: "Value of System.IO.Stream can not be converted to
string" on the SourceFile.
What would be the correct syntax to copy from an embeeded file to the
file system?
James Tag: PerformClick for Button in Compact Framework Tag: 49785
Deploying to device
I have a smart device application written with VB .NET 2003. I am ready to
deploy the project to my devices. What is the best way to do this? I need to
be able to deploy to Pocket PC and Windows CE .NET devices (and anything
new).
Thanks
Nancy Tag: PerformClick for Button in Compact Framework Tag: 49782
Binary Serialization of decimal types
I'm working on an application where we need to persist
decimal values on a PocketPC device, but the Compact
Framework doesn't support decimal types in the BinaryWriter/
BinaryReader classes, or even in the BitConverter class.
Is there some nice, happy way to convert a decimal into
it's byte array equivalent through the framework?
At the moment, I'm accomplishing the task by using some
unsafe code that looks like this:
public byte[] Serialize( decimal d ) {
byte[] data = new byte[16]; // decimals being 16 bytes
fixed( byte *ptr = data ) {
*(decimal *)ptr = d;
}
return data;
}
Deserialization works almost exactly the same way.
Is there a better way to do this conversion, and are there
any problems with this particular method of doing the
conversion? I really don't understand why every type but
decimal is supported throughout the Compact Framework.
Thanks much,
Chris Tag: PerformClick for Button in Compact Framework Tag: 49781
Different framework versions of mscorlib when creating a dll
When I created a dll to be used in multiple, the IDE selected the mscorlib
file from the latest version of the full framework
(F:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll).
However, the class library will be used in the CompactFramework, and the
main project I created there references F:\Program Files\Microsoft Visual
Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\mscorlib.dll. Here
I have v1.0.5.
Was there an upgrade to the CompactFrameworkSDK to v.1.1 or what am I not
understanding here? In any event, how do I redirect the reference to
mscorlib in the DLL and thus ensure that any DLL files I create will
initially reference the proper mscorlib for CF? Tag: PerformClick for Button in Compact Framework Tag: 49777
webservice call hanging after called twice ??
here is what I did at the client (running on PocketPC 2003).
....
Service1.start() // initiate an Object X , one-time action
...
Response = Service1.process(Request) // access/modify the Object X, maybe
called multiple times.
........
The problem: I can do "Service1.process(Request)" correctly at 1st and 2nd
call, but then hang on the 3rd call. When time out, returns nothing.
This client works fine on non-CF with the same web service.
I did not use sessions, just store the object in the Application, and
retrieve when needed.
Appreciate your help! Tag: PerformClick for Button in Compact Framework Tag: 49773
[C#] How can I clear Messages Queue ?
Hi,
I'd like to clear only the messages queue. Not with DoEvents.
I found this :
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/3d9f996ba3a110d1/84c1ea607ae6b0b5?q=PeekMessage&rnum=1#84c1ea607ae6b0b5
But I don't know how I can use it.
Somebody could help me ?
Do you have a function which clear up the message queue or a link ?
Thanks.
Best Regards Tag: PerformClick for Button in Compact Framework Tag: 49761
another question - GetCurrentDirectory
Hello again,
does anyone know why System.IO.Directory.GetCurrentDirectory() end in an
"Unsupported Exception" in Windows CE .NET 4.1 Emulator?
Thanks
Matthias Tag: PerformClick for Button in Compact Framework Tag: 49757
Changing the company name...
Hi,
I can't find a way to change the company name of my .NET VS 2003 C# project.
I have edited the AssemblyInfo.cs file, but it does no effect. I have also
tried to find .INF files as it was adviced in previous topics, but I could
not find any. When I open my CAB file, there are only files with extensions
.000, .001...
Thanks, Tag: PerformClick for Button in Compact Framework Tag: 49747
Anchor
Hello,
under standard .NET Framwork each element in a form can have an anchor
property that describes the behaviour of the element when the main form is
resized. In Compact Framework this property does not seem to be supported.
Is their any way to realize that without building an own resize event
handler which adjusts the elements?
Thanks
Matthias Tag: PerformClick for Button in Compact Framework Tag: 49746
VS.Net 2003 and CF SP3
Hardware : Symbol PPT 8800 running CE .NET 4.1
I have a written an application for the above mentioned device and have
noticed that some of the problems I was experiencing have been resolved in
SP3. When I install SP3 onto the device my application will no longer run, I
am getting
Could not load type System.Windows.Forms.DialogResult from assembly
System.Windows.Forms, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089.
When I try to debug the app, i get various exceptions being thrown from
Typeload to XMLDocument. These exceptions are thrown as soon as the app is
launched, which does help me to determine what is raising them.
Any ideas? Tag: PerformClick for Button in Compact Framework Tag: 49744
Custom commandbar/toolbar
Hi everyone
I am currently working on a project where one of the requirements is to have
a toolbar but all the buttons in the toolbar must be big dump your finger on
type of buttons like in Tom Tom navigator, the buttons will be made up of a
32x32 picture plus text.
So what I am looking to be able to do is create a toolbar that could be
docked at the bottom of the screen but would also be able to have a custom
button to bring up the input panel or change the input method like the
normal toolbar. If I was to have the standard toolbar at the bottom of the
screen and just position my toolbar on top of that it would take up to much
real estate.
Is what I am looking to do possible? I found a post on Google groups from
2003 by Alex Yakhnin about a commandbar control he was developing but I can
not find anymore information about it.
I would appreciate any help/adivce on this matter.
Thanks
Dan Tag: PerformClick for Button in Compact Framework Tag: 49742
Marshal.SizeOf
Hello!
I'm having problems with getting the size of my own class. The exception I
get is:
Type SocketProtocol.Inparameters can not be marshaled as an unmanaged
structure; no meaningful size or offset can be computed
The class looks like this:
public class Inparameters
{
public enum SyncType
{
Full,
Simple
}
public string id2;
public string id;
public SyncType synctype;
}
Inparameters inparameter = new Inparameters();
inparameter.id = textBox2.Text;
inparameter.synctype = SocketProtocol.Inparameters.SyncType.Full;
int a = Marshal.SizeOf(inparameter);
It's when I call the last line I receive the exception
What am I doing wrong?
Thanks
Linus Tag: PerformClick for Button in Compact Framework Tag: 49737
Image Transparency
Hello,
my first tries with beta 2 of the cf and vs showed all images without a
transparent background but with black color instead. I tried to load an icon
file or a png file to a picturebox. During design time everything works
fine. But after deploying the files to the emulator the transparent pixels
are exchanged with black ones.
Thanks for help
Thomas Tag: PerformClick for Button in Compact Framework Tag: 49735
How to applied the "Updater Application Block" ?
Have anyone be familiar with or successfully applied the "Updater Application
Block -
Version 2.0" pattern for a WinForm application? Please tell me some
examples.Thanks. Tag: PerformClick for Button in Compact Framework Tag: 49732
Mobile/Collaborative App Framework Released
Network Improv (Boston, MA) has just released a prototype of a new
application framework that runs directly from a USB flash drive on PCs,
and will soon run on handhelds. We'd very much appreciate developer
feedback...
airWRX is an app framework that turns its host and other nearby PCs
into a multi-screen, web-like work environment. airWRX turns your flash
drive or handheld into a mobile application server, and any available
PCs into your personal workspace.
The framework is lightweight, extensible, and includes full source
code. Our goal is to enable developers to create sophisticated mobile
and collaborative applications that unify PCs and data like no tools
before have.=20
http://networkimprov.net/airwr=ADx/ Tag: PerformClick for Button in Compact Framework Tag: 49725
Audio Capture on Pocket PC 2003
Hi,
I would like to capture audio, encode it, and stream it from one Ipaq to
another (pocket pc 2003). I have 3 questions relative to this problem.
1) I could not find any information about Audio Capture in my MSDN. What is
the simplest way to get the audio samples ? (i am working in C#, CF 1.0 SP3)
2) Is it possible to encode the audio samples using microsoft APIs ? if not,
do you know any third party APIs I should consider?
3) Do you think it would be a benefit to upgrade to .NET VS 2005 and Compact
Framework 2.0 Beta when it comes out next week ? I heard CF2.0 supports a
few functions of directX, that could be useful for audio capture?
Thanks a lot!
Lionel Reyero Tag: PerformClick for Button in Compact Framework Tag: 49723
Newbie, Device Resoltion and App Resize
Hello,
can somebody tell me how (under Windows CE .NET) the device resolution can
be determined and how my own form can be maximized to that?
Thanks
Matthias Tag: PerformClick for Button in Compact Framework Tag: 49721
How to change the text size in textbox?
I want to change the text size using listbox component and use select case
function.
How can I do that? Tag: PerformClick for Button in Compact Framework Tag: 49716
Killing process
Hi,
I just created my first vb.net pocket pc application - that consists of a
main dialog and an additional dialog that is defined globally like this:
Dim x as New MyTestDialog
As the dialog's constructor takes a lot of time to do all that is necessary,
it is called only one time when the process starts - and I just call
ShowDialog any time I need to display it to the user.
But, when the application is closed by the user - the process somehow seems
to remain active (as e.g. the executable is not deletable, the Form_load
handler of the main form is not called again,...). I tried to Dispose() the
additional form - but nethertheless the problem remains.
As the .net compact framework does not contain a Process class - can anyone
tell me how I can just kill myself (my own process)?
Thanks
Andreas Tag: PerformClick for Button in Compact Framework Tag: 49713
Loading XML wit ISO-8859-1 (German Umlaute)
Hello,
i try to load a xml file with iso-8859-1 on an Pocket PC with German Windows
CE 3.0. I got the xmlexception which says this encoding is not supported! But
i need it because of the German Umlaute (äüö) and the "�". I can not use
UTF-8, then the XML file ist not wellformed .
Any Help ?
Thanks
Martin Tag: PerformClick for Button in Compact Framework Tag: 49712
replacement for C++ function 'modf'
hi, I was using the following function in a C++ program. I am now "porting"
it to C# and I can not find an equivalent to: modf function. As described
below.
double modf ( double x , double * ipart );
Split floating-point value into fractional and integer parts.
Breaks x in two parts: the integer (stored in location pointed by ipart)
and the fraction (return value).
So does any know of a function that i can use to find the fractional and
integer parts of a floating-point value?
thanks
--
Maria Cruz
MTC Technologies.com Tag: PerformClick for Button in Compact Framework Tag: 49709
ScreenShot on VGA device?
hi,
i'm using some functions to get a screenshot in C# (something i've found
on opennetcf). This is working fine on a QVGA-device
But on a VGA-Device i only get a QVGA-ScreenShot (very poor quality of
the screen). Why is that?
Is there a chance to get a VGA screenshot on such devices without using
external tweaks that puts the device in "RealVGA"-Mode?
Thanks a lot
Boris Tag: PerformClick for Button in Compact Framework Tag: 49707
Get computer name
Hi,
how can I get the pocket pc's computer name in .net code?
Thanks
Peter Tag: PerformClick for Button in Compact Framework Tag: 49703
ActiveSync question
HI,
I just wrote my first .net compact application that in the end creates a
file with information int the \My Document\ folder of the pocket pc and is
synchronized with ActiveSync.
Unfortunately, ActiveSync does not give me the opportunity to change the
synchronized folder on the desktop (or am I wrong?) - nethertheless the file
needs to be copied to a different location (on a fileserver). Is there any
way to let activesync run e.g. a batch/script file after every activesync?
Thanks
Peter Tag: PerformClick for Button in Compact Framework Tag: 49702
Does InputPanel work properly on windowce.net devices ?
hi all,
I noticed that InputPanel is throwing a NotSupportedException on the
emulator but not on the device. However I noticed that a general method
that I used on Pocket PC witch resize the scrollbar according to the
InputPanel state, isn't working properly. And since i m not able yet to
debug on the device (troubleshooting), I wanted to ask if there are well
known problems about using the InputPanel with windowce.net
Anyway, the reason why i want to use an input panel is because on one of
the screens, there are textboxes on the bottom of the form that are
being hidden by the keybaord, when the keyboard pops up. Is there a
solution for that (other than changing the design of course ? -) )
thx
*** Sent via Developersdex http://www.developersdex.com *** Tag: PerformClick for Button in Compact Framework Tag: 49699
Changing AssemblyVersion causes TypeLoadException
Dear all,
I uses VB.net to create an application for WinCE 4.2. I've a "abc.dll"
assemblyVersion 1.0, and a "app.exe". Initially, I've compiled my
app.exe with abc.dll (version 1.0). Later, I've fixed some bugs in my
abc.dll and I changed the version to 2.0. I've then copied and pasted
my abc.dll into my WinCE 4.2's application folder; but when I run my
app.exe I got prompted with TypeLoadException error.
Can anyone please advice how I can fix this while still letting me to
use AssemblyVersion to maintain my versioning scheme?
Thanks.
--Simon Teng Tag: PerformClick for Button in Compact Framework Tag: 49697
Is there a way tom accomplish the PerformClick() method in Compact
Framework? It works fine in Win32 but not where I need it, in Compact
Framework.
"Ed Debrot" <debrot@addsys.com> wrote in message
news:%23B7wy2pSFHA.2996@TK2MSFTNGP15.phx.gbl...
>
> Is there a way tom accomplish the PerformClick() method in Compact
> Framework? It works fine in Win32 but not where I need it, in Compact
> Framework.
>
> thanks...
>
>