Play wav from embedded file
Hi there,
Searched the archives on this but still can't find a solid answer.
I've managed to display a bitmap from an embedded file, however i can't seem
to figure how to play a wav file from an embedded file.
Any help would be greatly appreciated.
Thanks Tag: Bluetooth Service Tag: 49985
Bluetooth
Hello,
after I start "Bluetooth Connection" in the Control Panel, Windows tries to
initialise wireless systems und looks for wireless devices. Can I make this
automaticaly, maybe with a C# application? If yes, whats the name of the
classes, has somebody an example?
Giovanni
thanx Tag: Bluetooth Service Tag: 49982
NumericUpDown_TextChanged and _KeyPress events never fires
I am trying to stop users from typing in non-numeric characters into the
NumericUpDown control in both above mentioned events, for example"
Private Sub updQt_TextChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles updQt.TextChanged
if Not IsNumeric (updQt.Text) then updQt.Text = ""
End Sub
But when I used the on-screen keyboard typing in letters the event did not
never fire at all. The same happened in the KeyPress event.
Any ideas or better way to accomplish that? Tag: Bluetooth Service Tag: 49978
Cannot step into unmanaged code from managed code
I have a project with an unmanaged ATL Smart Device project and a .NET CF
PocketPC 2003 SE application.
I cannot step into my unmanaged COM object's code from the .NET application.
Is managed-to-unmanaged debugging supported or not with Visual Studio .NET
Beta2?
Thanks. Tag: Bluetooth Service Tag: 49976
Does CompactFramework function in PC based Windows environment?
1. Does CompactFramework work on PC? IE Can I use the compactframework in
place of the standard framework to allow my packages to be more accessible
to PC users whoe download them via dialup?
2. Does Compact Framework ship with VB7 .NET 2003 "Standard" or is there a
patch/download I can get from Microsoft?
3. If yes to all of the above, what are the pros and cons of migrating
software development from VB6 to VB7 under the .NET compactframework?
Thanks in Advance...
--
Timothy Casey GPEMC! >> 11950 is the number@fieldcraft.biz 2email
Terms & conditions apply. See www.fieldcraft.biz/GPEMC
Discover the most advanced speed comprehension application at:
www.fieldcraft.biz/shop <BRef http://www.fieldcraft.biz/ki.htm > Tag: Bluetooth Service Tag: 49974
DLL "Registration" in .NetCF?
I have a legacy C++ dll that I P/Invoke into from a C# app. If I package it
up into my installer cab and deploy it to /Windows, then immediately run the
installed app, I get a MissingMethodException as though the dll is not there
(but I see it). If I copy it to my app's directory I get the same behavior
until I soft-reset.
If I soft-reset, it seems to then work MOST of the time. But then about 15%
of the time, I get it again. Soft reset helps again. So it's not just a
matter of how the cab installer puts the dll file into /Windows, it kind of
disappears during normal use somehow.
Is there any sort of "dll registration" step that is required on PPC to make
WindowsCE not forget about this dll? I thought just putting it in /Windows
was all you need. My dllimport just gives the name of the dll, should I
specify a fully qualified path, and would that make things better? In
testing this all works great but with extended use of an hour or so,
sometimes less, suddenly I can't p/invoke any more and get the MMEx.
--
Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625 Tag: Bluetooth Service Tag: 49971
NETCF V1 SP3 Developer is available for download.
SP3 Developer redist can be downloaded from this location:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=7bf3
13b9-71ed-4e15-ad6e-315dae6faf9f
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights. Tag: Bluetooth Service Tag: 49968
Calendar alarm
Has anyone implemented an alarm like the one used with WindowsMobile
Calendar? I'm writing a program (C#) that allows a user to set
a date and time for meetings, appointments, etc. and have a MessageBox
pop-up when the set dateTime occurs. I don't even know where
to begin and am looking for a point in the right direction. The app is C#
compact framework and the dateTime object is stored in a
SQLCE database.
Any help would be greatly appreciated.
Thank you
Jeff Tag: Bluetooth Service Tag: 49965
how to create an installation package for pocketpc in visualstudio
I have a pocket pc project developed in visual studio.net. How do I create an
installation package so that user can run a setup.exe from desktop and
install it on to the pocketpc. Earlier, in eVB it was easy. But for the .net
version I couldn't find anywhere on how to do it?
Any help is greatly appreciated
Thanks,
Ganesh Tag: Bluetooth Service Tag: 49964
Compact framerk, multithreading Invoke problem
I found very good article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dntake/html/yctiwy_multithreadingandui.asp
But they can use BeginInvoke and invoke with 2 parameters, but my visual studio
don't allow to do that, even it can't find BeginInvoke method. Maybe somebody
know how it should works?
Thanks a lot for any help
--
Piotrek "Alchemik" gg:183441 kilobyte[at]tlen[dot]pl
/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\/o|o\
"I am not in this world to live up to other people's expectations, nor
do I feel that the world must live up to mine." /Fritz Perls Tag: Bluetooth Service Tag: 49954
Problem with adding items to a listview in code
I have a listview object on a form. I read lines out of a text file and
want to add them to the listview.
I used the following code. The problem I run into is that while the help
file tells me to put a string in the lvwobject.items.add(string,0) when I
actually do it, the code widow tells me I have to put a listviewitem in the
items.add line. So what is the right way to add the text to the listview?
Dim ExpDate As String
Dim Expense As String
Dim Amt As String
Dim Pmt As String
Dim objListItem As ListViewItem
objListItem = lvwExpenses.Items.Add(ExpDate, 0)
objListItem.SubItems.Add(Expense)
objListItem.SubItems.Add(Amt)
objListItem.SubItems.Add(Pmt)
James Lysaght Tag: Bluetooth Service Tag: 49953
playing wav file in chunks
I have a wav file on my smartphone(windows mobile) and I want to play
it in chunks.I am able to play complete file from bytearray using
Coredll method:
WCE_PlaySoundBytes (byte[] szSound, IntPtr hMod, int flags)
My requirement is that I made a bytearray of some length(lets say
100000 bytes) of wave file and then play it and then make byte array
of some length (lets say 100000 bytes) for playing next part of wav
file and so on until i reach total length of wave file.
I know that there are some header information associated with header
file so
I am confused that how I can make bytearray such that I can add header
information every time.In other words how I ensure that everytime byte
array contains playable array and then can call
WCE_PlaySoundBytes (byte[] szSound, IntPtr hMod, int flags)
I am using Visual Studio.NET IDE and using C#.
Thanks in Advance
Anurag Tag: Bluetooth Service Tag: 49947
Emulator (PocketPC 2003 SE) Networking in VS 2005
Hi folks,
I'm using VS 2005 Beta2 and am trying to
use the PocketPC 2003 SE emulator.
The emulator comes up fine, but whenever
I try to connect to the Internet from the emulator,
I see the following error dialog:
Cannot Connect
Unable to connect: You have no modem entries
created, and no network card present.
How can I configure the emulator so that when I
launch it from VS 2005, it has the proper network
cards in it?
Regards,
Rajesh Tag: Bluetooth Service Tag: 49941
Error sending sms.
When I try to send an sms with OpenNETCF.Phone.Sms with the code:
Sms s = new Sms(SmsMode.Send);
SmsAddress sa = new SmsAddress("+4512345678");
sa.Type = SmsAddress.AddressType.International;
s.SendMessage(sa, "Test.");
I get an ExternalException("Error sending message") because SmsSendMessage
returns -2113928700.
I can send sms's the regular way without problems.
Can anybody help me, please?
Thanks in advance,
Per Rasmussen. Tag: Bluetooth Service Tag: 49940
Error when sending sms.
When I try to send an sms with OpenNETCF.Phone.Sms with the code:
Sms s = new Sms(SmsMode.Send);
SmsAddress sa = new SmsAddress("+4520223077");
sa.Type = SmsAddress.AddressType.International;
s.SendMessage(sa, "Test.");
I get an ExternalException("Error sending message") because SmsSendMessage
returns -2113928700.
I can send sms's the regular way without problems.
Can anybody help me, please?
Thanks in advance,
Per Rasmussen. Tag: Bluetooth Service Tag: 49938
Weird If/Then Ghost..Needs messagebox.show to activate
I just started having the strangest problems with 2 of my If Then
statements. They are pretty basic and have been working for months,
but this week they stopped "DOING" stuff unless I preceed each one with
a messagebox.show statement! :? If I insert a messagebox before the
following code, it runs flawlessly. Remove the messagebox and it fails
with a sql error due to it not closing the database as seen in the
second part of the if/then....
Example:
If strName <> "" Then
MenuItem1.Enabled = False
MenuItem11.Enabled = False
pnlCheck.Location = New Point(0, 0)
pnlCheck.Visible = True
pnlCheck.BringToFront()
Else
cn.Close()
LoadTree()
DTR2.Close()
End If
The code above does NOT run the first part of the if statement unless I
preceed it with a messagebox.show. I spent all day Monday coding
around one of these if then statements and now this one has popped up.
I have tried all sorts of "silent" ways to get past this that wouldn't
involve a messagebox.show such as setting hidden labels to the
variables, and goofy stuff like disabling hidden textboxes, etc. but
nothing except for a messagebox seems to make the If/Then statement
run.
Weird stuff? Or...? Tag: Bluetooth Service Tag: 49934
Dynamic invoke
Hi
I want to instanciate an object from a string. There is a default
constructor (no parameters).
I can easily get the Type object (it is working), but when I invoke the
"new" member, I get a "NotSupportedException".
Why does it not work ?
Type t = _assembly.GetType(
"MyClass"
); // This works, the debugger show me the instance of my type object
MyClass obj = (MyClass)t.InvokeMember(
"new",
BindingFlags.CreateInstance,
null,
null,
null
); // Throw the NotSupportedException
Thanks,
Steve Tag: Bluetooth Service Tag: 49927
Supporting an application in production...
The application that I'm working on is not targeted to go to production
until December of this year, but i was talking with some colleagues and
wondering if there is a problem in the field what are some of the best ways
to support the device...
I've thought about getting a copy of their sqlce DB and running my
application hitting their data, or writing some log files/log tables when
things go wrong...
What are you some of you guys solution for supporting your application in
production when something goes wrong? Tag: Bluetooth Service Tag: 49926
Full duplex audio with the Waveform Audio Interface
Hello,
I am developping a VoIP application between Ipaq. I use the Waveform Audio
Interface to capture and play audio.
(See the MSDN example, it is the best on audio capture and playback on .NET
http://msdn.microsoft.com/mobility/default.aspx?pull=/library/en-us/dnnetcomp/html/waveinout.asp
You can download the sample code, it is much easier to modify than OpenNETCF).
I would like to make my application full duplex,(capture,stream and play the
sound simultaneously on the 2 ipaqs)).
Problem:
I get an error when I try to record sound while playing sound.
Does the problem come from my ipaq ? (I use Ipaq rx3715). Or is it a
limitation of the Waveform Audio Interface ?
Thank you,
Lionel Reyero Tag: Bluetooth Service Tag: 49918
MSDN Form Load Performance Enhancement...
I read this article on msdn that sounds great and makes sense about how the
designer by default does things a certain way for adding controls to the
form...And that there is a better way to do
me.control.controls.add(me.othercontrol)
you can do me.othercontrol.parent = me.control
However, everytime that I go back to the designer it changes the code that I
had changed in InitializeComponent.
Is there a way to make this not happen? Thanks
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/dhtml_node_entry.asp Tag: Bluetooth Service Tag: 49915
SendMessage not working?
Hi,
Starting with a clean smartphone project, I have the main form with a
textbox in it called textBox1. I'm trying to add text to it using
SendMessage (to avoid that annoying flicker). Here are the pinvokes...
const uint EM_REPLACESEL = 0xc2;
[DllImport("coredll")]
extern static IntPtr GetCapture();
[DllImport("coredll")]
extern static int SendMessage(IntPtr hWnd, uint Msg, bool WParam,
string LParam);
Here's the code that should update the textbox:
textBox1.Capture = true;
IntPtr hWnd = GetCapture();
textBox1.Capture = false;
SendMessage(hWnd, EM_REPLACESEL, false, "hello");
I successfully get a handle on the text box, but the word "hello"
doesn't appear in the text box. Any ideas what I'm doing wrong here?
TIA
Mark Tag: Bluetooth Service Tag: 49913
Few easy questions...
Hi there,
Few questions i'm not sure about.
1) Any examples of using embedded resources, ie. i need to show a .jpg image
in a picturebox and i need to play a .wav file as well, i have this working
with player.play(fs) but i'd like to do this with embedded resource.
2) I have a setup file which deploys all the relevant .cab files, however
i'm struggling to deploy any other files i might want to add.. ie.
readme.txt..etc
3) Is there no latest cf.net redistributable that is in one .cab file, or do
i have to create one .msi file for all my cabs and then get the user to run
the CF.Net ServicePack 3 msi afterwards? (seems a bit of a pain)
Thanks for the help.
Rob Tag: Bluetooth Service Tag: 49911
Error: Cannot establish a connection.
To anyone having trouble trying to deploy their app to the pocket pc device.
We kept getting the "Error: Cannot establish a connection. Be sure the
device is physically connected to the development computer." We worked with
someone from Microsoft and I thought I'd post the steps so someone else might
benefit.
STEP 1
Run Repair on Visual Studio .Net. Put your disk for Visual Studio .Net
Enterprise in the drive. Go to Add/Remove Programs, select Microsoft Visual
Studio .Net Enterprise, Pick Option 2 Visual Studio.Net Repair. It will run
the repair processes and should take about 2 hours.
STEP 2
Download the PocketPC 2003 SDK from Microsoft's website: Microsoft Pocket PC
2003 SDK.msi. It should be around 84MB. It takes about 5 minutes to install.
STEP 3
Copy the DelCryptoKey for your type of device to your PDA. It should be in
this directory:
C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\WinCE
Utilities\DelCryptoKey
After copying it to your PDA, run it.
STEP 4
On your laptop or desktop, run the DelDesktopCryptKey.
C:\Program Files\Microsoft Visual Studio .NET 2003\CompactFrameworkSDK\WinCE
Utilities\DelDesktopCryptKey
Now launch Visual Studio and see if this resolves your connection issue. It
worked for 3 of our desktops that were having trouble after we had upgraded
our systems to Windows XP. We had done PocketPC development on these same
machines with Windows 2000 but when we upgraded we started getting the error.
Hope this helps! Tag: Bluetooth Service Tag: 49909
downloading and saving an image <img> from html
If I have an HTML image tag <img src="images/button.gif" ... > and i resolve
the full path how can i download the image to save it locally? is this
posible in the CF with C#?
thank you Tag: Bluetooth Service Tag: 49905
Environment variable for Deployment Device?
Hi,
I'm using a eVC++ dll in my .NETCF project. I would like to automate
the build so that the correct dll is copied to the output folder
depending on what deployment device is currently being build.
For example, if the deployment device is .NET Emulator, then the Win32
emulator dll would be copied, otherwise if my ARM device is being
build, the ARM dll would be copied.
I'm assuming there is no such variable.
Is there anyway I could use a dumpbin or something similar to figure
out the cpu type of the binary? I could then parse the output.
Thanks. Tag: Bluetooth Service Tag: 49901
Connection Manager-like component
Hi
I am looking for a component that provides connections (GPRS/WiFi/...) from
applications on a PDA (PocketPC) to a server running webservices.
I have found www.BroadBeam.com and they have some interesting products, but
is there anyone else on the market? Or would I/we (the company i work for)
be better off with a DIY solution?
- patrick Tag: Bluetooth Service Tag: 49893
how to mimimize Datagrid column width
Hi
I have a PC appln with CF 1.0,
I have attached an arraylist to a datagrid,
now i want to control the width of the some of the columns of the grid.
How do i achive that..?
rgds,
Vinay Tag: Bluetooth Service Tag: 49892
PDA database is enlarged remarkably.
Hi all,
We encouter the problem that some of pda database from end user are
enlarged remarkbly from ~ 70 MBs up to 100 MBs. We've tried to compact
and it becomes smaller of 67 MBs. Thus we have a couple of questions:
- Why have only around 3, 4 pda per 100 pda encountered this problem?
It should be happened for all pda?
- Can we avoid the database increasing so that we do not need to
compact DB?
Thanks in advance,
KNC Tag: Bluetooth Service Tag: 49890
Autosize Columns in a datagrid
Hi,
I'm looking for a way to resize all columns in a datagrid after populating
it with DataRow objects, depending on the maximum size of the strings
in the textbox cells.
I tried a run through all the cells and measure with graphics.MeasureString(),
but got wrong results.
Anyone out there having a clue?
Michael. Tag: Bluetooth Service Tag: 49885
store personal information
What would be the best format to use to store personal information on the
SmartPhone, from the point of view of ease to read/write/security? Tag: Bluetooth Service Tag: 49884
Label Backcolor ?
Not entirely sure what's going on, but this was definiately working the other
day..
I could simply (in page load) set my label backcolors like:
label1.BackColor = Color.Gray;
For some reason it completely ignores it now.
any ideas why this would suddenly stop working? (it's not just one page is
all of them) Tag: Bluetooth Service Tag: 49883
DLL Problems w/ Compact Framework
I have some C# code which I would like to be able to call from a Visual
Basic appication. Both the C# and VB applications are written for the .NET
Compact Framework. I compiled the C# stuff as a DLL by creating a new C#
project as a "Class Library", and then copied the code over. Everything
compiles just fine.
However, when I include the DLL in my VB application, I get the error:
Error: The dependency 'mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in project 'VBReceiveSMS' cannot be copied
to the run directory because it would conflict with dependency 'mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
I read in another thread that this means that I'm using code for both the
regular .NET Framework and the .NET Compact Framework (see
http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-compact-
framework/10974/mscorlib-Error). Is this true? Is there any way in which I
can compile my C# stuff as a DLL and run in VB using the .NET CF? Thanks!
--
Message posted via http://www.dotnetmonster.com Tag: Bluetooth Service Tag: 49878
Importing XML - Need some help please
I am having a problem pulling in XML data into a PPC Compact .NET app and
saving it to a SQL CE .SDF file. I get an error message that is simply the
name of the first column. I have checked everything I can think of to no
avail.
My steps in the code:
- Create a connection to the SQL CE .SDF file
- Create a command for table direct access to the main table
- Create a data adapter from the command
- Create a data set
- Read in the XML schema from the XML schema file I created on the desktop
- Create a command for an insert and store it to the data adapter insert
command
- Add all the necessary parameters using the correct data types
- Do a DataAdapter.Update(DataSet, "Table")
On this command is where I get my exception. The message is simply the name
of the first column.
What am I doing wrong???????
---------------------------------------------------------------------------------------
Here is the code. I stripped out all the error checking and such. Also, note
I am reusing the Command object and just reseting the properties to what I
need.
cn = New SqlCeConnection("Data Source=\My Documents\emsw.sdf;Password=")
cn.Open()
cmd = cn.CreateCommand
cmd.CommandText = "People"
cmd.CommandType = CommandType.TableDirect
daPeople = New SqlCeDataAdapter(cmd)
Dim ds As New DataSet("LoadTables")
ds.ReadXmlSchema(DataSchema)
cmd.CommandType = CommandType.Text
cmd.CommandText = "INSERT INTO people " & _
"(RegistrationNumber, LastName, FirstName, MiddleInitial, LocalUnion, "
& _
" Address, State, ZipCode, PhoneNumber) " & _
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"
cmd.Parameters.Add("RegistrationNumber", SqlDbType.Int)
cmd.Parameters.Add("LastName", SqlDbType.NChar)
cmd.Parameters.Add("FirstName", SqlDbType.NChar)
cmd.Parameters.Add("MiddleInitial", SqlDbType.NChar)
cmd.Parameters.Add("LocalUnion", SqlDbType.Int)
cmd.Parameters.Add("Address", SqlDbType.NChar)
cmd.Parameters.Add("State", SqlDbType.NChar)
cmd.Parameters.Add("ZipCode", SqlDbType.Int)
cmd.Parameters.Add("PhoneNumber", SqlDbType.NChar)
daPeople.InsertCommand = cmd
daPeople.Update(ds, "People") <----------------------- Error happens
here
ds.Tables("People").AcceptChanges() Tag: Bluetooth Service Tag: 49874
I have to admit I like VB.NET
I really resisted the move from eVB to VB.NET but now that I am about ready
to deploy my new upgraded program I have to admit it. I like this VB.NET.
My new version is much more efficiently programmed thanks to some very
useful tools in VB.NET. It requires over 50% less memory on my device and
runs quicker and smoother. I'm impressed, and I am not easily impressed.
James Lysaght Tag: Bluetooth Service Tag: 49870
need for control invoke
Hi,
I am well aware of the need to invoke gui stuff from threads other than the
GUI thread but reading some other post tonight the thread seemed to suggest
that this was not neccessary for MessageBox.Show. Is this the case? I have
always done the invoking for MessageBoxes, maybe this was wrong of me. If so
why?
Cheers Tag: Bluetooth Service Tag: 49869
download images from web page using C# and CF?
hi
I need to download images from a web page that i visit using the browser
control. How can I download images form the web page that the html
referrences? Can this be done in the CF?
thanks Tag: Bluetooth Service Tag: 49868
Problem with Beta 2
When I try to run the newly installed Beta 2of the CF I get a message
"Error: This saved state file is from another version of the emulator
and is not compatible with the current emulator"
What have I to delete to erase the formerly saved emulator state?
--
Sleepless in Berlin
W. Schwenkner Tag: Bluetooth Service Tag: 49867
Databiinding to Combobox
I am using Databinding to fill a Combobox Display and Value members with
info from a table.
My problem (below code) happens twice. I call the following code once when
the form loads.
Form description:
Combobox loads with form (and after SQLCE sync) from .sdf file
Treeview populates based on item selected from combobox.
more happens after this, but I'm confident I have that handled.
------------ Code -------------------
cmbLot.Items.Clear();
string cmbstr = "SELECT ColOne + ' - ' + ColTwo as Display, PK FROM TableOne
ORDER BY Display";
try
{
SqlCeConnection connCE = new SqlCeConnection("Data Source=" +
strCEDatafile);
SqlCeDataAdapter daNames = new SqlCeDataAdapter(cmbstr, connCE);
try
{
DataSet dsConnect = new DataSet();
DataTable Combo = new DataTable("Combo");
connCE.Open();
dsConnect.Tables.Add(Combo);
daNames .Fill(dsConnect, "Combo");
cmbLot.DataBindings.Add("SelectedItem", Combo, "Display");
cmbLot.DataBindings.Add("SelectedValue", Combo, "PK");
cmbLot.DataSource = Combo;
cmbLot.DisplayMember = "LotNum";
cmbLot.ValueMember = "PK";
connCE.Close();
}
catch(SqlCeException sqlex)
{
string sqlCEerror = sqlex.Message.ToString();
}
}
catch (Exception ex)
{
clsErrors.WriteEx(ex);
MessageBox.Show("Error reading data file.\nContact Helpdesk", "Combobox
Error");
}
------------ Code -------------------
Then I am waiting for the user to select from the items that populate this
Combobox. The problem is that while loading this the OnSelectedIndexChanged
event fires 4 times (index of 0). (I'm loading 23 items in my test
environment). Then..... once I select an item, it fires multiple times
again. This causes problems with the code I want to run when a new item is
selected. It runs once ok, but it runs 4 times. Its almost like it is
reloading the databinding every time I fire any event on the form.
I've traced the event, the "index" change is first, the selected index, then
0, then the selected index, then 0 again.
I have used dynamic fills on comboboxes without problems before, but not
databinding.
TIA for any help
Z Tag: Bluetooth Service Tag: 49865
PerformClick for Button in Compact Framework
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... Tag: Bluetooth Service Tag: 49858
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: Bluetooth Service 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: Bluetooth Service 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: Bluetooth Service 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: Bluetooth Service 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: Bluetooth Service 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: Bluetooth Service 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: Bluetooth Service 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: Bluetooth Service 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: Bluetooth Service 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: Bluetooth Service Tag: 49830
I create a ActiveSync via BlueTooth on my PPC, and connect is OK. How can I
start(or trigger) the service in my C# PPC application(I want to send data
via ActiveSync)?