3 Webservice Calls
All,
I have an app written in VB.NET for CF which is running on Smartphone
2003. I have function which uses webservices to upload user details to
the server. All this works fine for the first two calls but on the 3rd
things start to slow down starts to rak 20 seconds compared to 5.
I am using the emulator test all this so I am unclear as to whether
the Emulator simulates low memory conditions which is what i think the
problem is! Has anyone got any pointers on this problem?
Dave Hanson Tag: App Mgr and version Tag: 10767
Slow response button selection
I have a main form that has several buttons that will go to one of
several other forms when button is selected (I have button as well as
selection in MainMenu control). It seems there is a 4-5 second delay
between when I select a button and the code that executes the
form.show() command after the button button_click event (timed in
debug mode with breakpoint). Does anyone know why or how to correct a
long delay between when the button is selected and the action (click)
event is recognized? Tag: App Mgr and version Tag: 10765
Slowness of XmlDocument Class
I'm working with the compact framework and trying to write a program that
will roll through a xml document and display the information in a listbox,
but after I open a file with a OpenFileDialog it takes up to 15 seconds to
load the file into the XmlDocument. Any Ideas on how to speed the code up.
My xml file is around 200k. Here is a sample of the code that i'm using.
lstCaches.Items.Clear();
OpenFileDialog GetGPX = new OpenFileDialog();
GetGPX.Filter = "GPX files (*.GPX)|*.gpx|All files (*.*)|*.*";
GetGPX.ShowDialog();
FileName = GetGPX.FileName;
if(FileName != "")
{
XmlDocument GpxDoc = new XmlDocument();
GpxDoc.Load(GetGPX.FileName);
}
Thanks,
Justin Tag: App Mgr and version Tag: 10764
Override Windows Message from Voice Recorder
I'm calling the voice recorder using SendMessage instead of having the user
use the actual voice control. I can get it to record no problem. However,
if the user touches anywhere on the screen and any control gets focus, it
stops the recorder.
Now, I'm trying to trap the message from the MessageWindow, but by the time
it hits my WndProc override, it's already stopped recording. Also it looks
like the message in my MessageWindow is GotFocus on the form for instance.
I've been working on this and scoured the internet and every resource I
have. Does anyone know how I can simulate modal behavior/ stop the
voicerecorder from stopping until they hit one of my buttons ?
TIA,
Bill Tag: App Mgr and version Tag: 10762
A Way to specify a port on WebRequest.Create()?
Hi,
I am trying to POST XML data to my web server via HTTPS and port 5000. I am
specifying the port number on a WebRequest.Create call as code below. From
what I am seeing, this does not seem to be working. Can I specify a port
number on the WebRequest.Create() call? If so, is my syntax correct?
Thank you.
Young.
HttpWebRequest req =
(HttpWebRequest)WebRequest.Create(https://myserver:5000);
req.Method = "POST";
req.ContentType = "text/xml";
req.Headers.Add("Cookie: SMCHALLENGE=YES");
req.Headers.Add("Authorization: Basic " + authStr);
byte[] encodedBytes = Encoding.UTF8.GetBytes(deliveryPackage.Payload);
req.ContentLength = encodedBytes.Length;
requestStream = req.GetRequestStream(); Tag: App Mgr and version Tag: 10761
SQLCE Insert Bug Found?
Maybe this is already a know issue. I insert a lot of data into a SQLCE
database from a remote SQL database using a prepared insert statement,
basically imitating an RDA Pull. It seems to work well, but when I look at
the SQLCE database, the first row of the table has no values for any string
datatype. In other words, all the rows come back fine, except for the first
row returned, where then any string value is empty. Numeric data types are
fine. I've checked all the tables I use this method on and this error
happens everywhere, any string value has an empty value in its first row,
all subsequent rows are fine. I've stepped through the insert statement,
and it seems that the data is being passed OK. Below is the code, please
let me know if this is some kind of error, or if its just me.
Thanks,
Joe
'create table
g_sqlCommand.CommandText = "CREATE TABLE table_unit ("
g_sqlCommand.CommandText = g_sqlCommand.CommandText & "table_id_pk smallint
NOT NULL ,"
g_sqlCommand.CommandText = g_sqlCommand.CommandText & "table_name nvarchar
(12) NOT NULL) "
g_sqlCommand.ExecuteNonQuery()
'creat prepared statement
cmd.Parameters.Clear()
cmd.CommandText = "insert into table_unit (table_id_pk, table_name)
values(?,?);"
cmd.Parameters.Add("p1", SqlDbType.SmallInt)
cmd.Parameters.Add("p2", SqlDbType.NVarChar)
cmd.Prepare()
'do inserts
Me.m_sqlCommand.CommandText = "Select table_id_pk, table_name from
table_unit;"
sqlreader = Me.m_sqlCommand.ExecuteReader
While sqlreader.Read
cmd.Parameters("p1").Value = sqlreader.GetInt16(0)
cmd.Parameters("p2").Value = sqlreader.GetString(1)
cmd.ExecuteNonQuery()
End While
--
Joe Handelsman
Technical Manager
CSI
773.732.5309 Tag: App Mgr and version Tag: 10756
Which version of SDK to use?
I have VS.Net 2003 and I want to write applications to HP
Jornada 720s that run Windows CE 3.0. Can I use VB.Net to
write the applications for them or do I need to use the
embedded VB toolkit? Or maybe the Pocket PC 2002 SDK or
maybe even the Pocket PC 2003 SDK? I'm new to mobile
devices and don't have a clue on where to start. I would
greatly appreciate any help offered.
Dave Tag: App Mgr and version Tag: 10750
howto add solid line to border of a panel
I'm using a panel as a pop up dialog...but it displays the pop up without a
border...I can't figure out how to add a nice solid border to it. Tag: App Mgr and version Tag: 10749
Playing a Sound
I'm using a PDA with Pocket PC programming in VB.NET. I
want to play a sound when a particular event happens in my
program. I've gotten a couple of examples that only work
on a full Windows system with full .NET framework. Any
examples on how to do this with Pocket PC and the
compact .NET Framework?
Any help would be greatly appreciated!!!
-Lee Tag: App Mgr and version Tag: 10743
Combo boxes
I am sorry if this has been wrtten before but I have been
stuck on this for almost a day. I am trying to manually
add entries to a combo through code with a valuemember
and a displaymember. Here is what I have. I need to
know how to read the valuemember and how to change the
value of the combo based on the drop down. Current Code
is below:
Thanks,
Aaron
Dim c As New ComboItem
c = New ComboItem
c.Value = "00"
c.Display = "00"
Me.cmbDepartFromMinutes.Items.Add(c)
Me.cmbArrMin.Items.Add(c)
Me.cmdDepMin.Items.Add(c)
c = New ComboItem
c.Value = "15"
c.Display = "15"
Me.cmbDepartFromMinutes.Items.Add(c)
Me.cmbArrMin.Items.Add(c)
Me.cmdDepMin.Items.Add(c)
to set:
Me.cmdDepMin.SelectedValue = "15"
Public Class ComboItem
Private sDisplay As String
Private sValue As String
Public Property Display() As String
Get
Return sDisplay
End Get
Set(ByVal Value As String)
sDisplay = Value
End Set
End Property
Public Property Value() As String
Get
Return sValue
End Get
Set(ByVal Value As String)
sValue = Value
End Set
End Property
Public Overrides Function ToString() As String
Return Display
End Function
End Class Tag: App Mgr and version Tag: 10737
.NET Compact Framework Redistributable Question
I found this link at the Microsoft web site for SQL Server CE:
http://www.microsoft.com/downloads/details.aspx?FamilyID=c15502dc-c5b5-42b4-b96e-08338c8d1d47&DisplayLang=en
A note at the bottom of the above link states:
>This SQL Server CE download package is to be used in building
unmanaged (non .NET Compact Framework based applications) with the
eMbedded Visual Tools. It installs the server and developer components
on your development computer. A package designed to work with managed
code applications will be released together with the availability of
the .NET Compact Framework.
I installed .NET Compact Framework SP1 redistributable but it does not
have System.Data.Common.dll or SqlServerCe .NET Data Provider.
The only way to get these binaries right now is from Visual Studio
.NET 2003.
Is there going to be SP2 redistributable that includes the SqlServerCe
.NET provider as part of the .NET Compact Framework redistributable?
If not, where can I get a redistributable of the SqlServerCe .NET Data
Provider
other than Visual Studio .NET 2003?? Thanks.
Wil Tag: App Mgr and version Tag: 10730
Control.Invoke lazy invocation
I am using the Control.Invoke method with the Compact Framework.
And appears the my delagate takes so much time to be invoked!
I've noted that when I closes the dialogbox, it goes!
Any help please?
---
Rafael Pivato Tag: App Mgr and version Tag: 10724
Sample code for Power Notifications
Hi,
I need to trap the Power related events (On/Off/Suspend
etc) of a handheld device in my application. Can someone
please point me to a sample implementation of the same.
I'm using VB.NET (VS.NET 2003), and the handheld device
has WIndows Ce.Net 4.01 Build 908.
Thanks. Tag: App Mgr and version Tag: 10715
Where is: NET Compact Framework Service Pack 2 ???
This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C3989B.DB819000
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Where is: NET Compact Framework Service Pack 2 ???
The link from : http://www.develop.com/compactframework/ Results in an =
error from Microsoft.
Kindest Regards,
Cindy Cruciger
ccruciger@herald.com
------=_NextPart_000_0008_01C3989B.DB819000
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2><FONT size=3D1>
<P>Where is: NET Compact Framework Service Pack 2 ???</P>
<P> </P>
<P><FONT size=3D2>The link from : <A=20
href=3D"http://www.develop.com/compactframework/">http://www.develop.com/=
compactframework/</A> =20
Results in an error from Microsoft.</FONT></P>
<P><FONT size=3D2></FONT> </P>
<P><FONT size=3D2>Kindest Regards,</FONT></P>
<P><FONT size=3D2></FONT> </P>
<P><FONT size=3D2>Cindy Cruciger</FONT></P>
<P><FONT size=3D2>ccruciger@herald.com</FONT></P></FONT></FONT><FONT =
face=3DArial=20
size=3D2><STRONG><U><FONT=20
color=3D#44887b></FONT></U></STRONG></FONT></DIV></BODY></HTML>
------=_NextPart_000_0008_01C3989B.DB819000-- Tag: App Mgr and version Tag: 10712
problem: building and lauching Compact Framework apps on laptop
Greetings
Hope anyone can help me on this problem.
I've installed VS.NET 2003 on my laptop computer to develop Pocket PC
applications using .NET Compact Framework, but when I lauch the
application on emulator, nothing appens; only the exe file is copied to
emulator but the application does not appear (it is not lauched). This
is odd. Any sugestions?
Thanks.
Sérgio Tag: App Mgr and version Tag: 10711
WinCEApi.txt
Hi,
Can someone please give me pointers, as to where I can
find the winCeApi.txt file. I want to have a look at all
the functions that are present in the Windows CE api.
Thanks. Tag: App Mgr and version Tag: 10706
Memory Card with SQL Server CE.
I need to open a database .sdf from a CF Card. How i can define the
directory for the open command in VB.NET ?
Thanks,
Leonardo Castillo Tag: App Mgr and version Tag: 10702
Pocket Access ??
Hi,
Has anyone worked with pocket access with the compact
framework.
Is there a way to connect to an access database directly ?
Thnks
Sandeep Tag: App Mgr and version Tag: 10698
A few questions from a newbie
I have a few quick questions, all help is greatly
appreciated.
1) When I grab a datetime field from my SQL7.0 server and
import into my SQLCE it changes the time based on the
timezone. While this is very cool, I don't always want
it, how can I turn it off??
2) I want to hide columns in a datagrid. Other than
setting the column width to 0 is there another way??
3) I am capturing signatures. I bought a tool that saves
it as a .bmp but I need it as a .jpg. How can I convert
it??
Thanks!!
Aaron
---remove-aaron~at~securityone.com--- Tag: App Mgr and version Tag: 10682
Parallel port communications
Hi,
I need to access a device connected to the parallel port
(read&write). Can I do that by pinvoking coredll.dll or
should I use parallel.dll ?
If you have a tip for another way to do this, please tell
me. :)
best regards,
Per Tag: App Mgr and version Tag: 10679
Virtual File Win CE
Hi all
Where can i get some stuff related to virtual file system in Wince.I wanted
to program in Wince not in PPC sdk.
If u know any please help me out.
Regards
Suri :-) Tag: App Mgr and version Tag: 10678
LScript Testing
Does anyone know where I can download that LScript application for
testing my applications? I saw this application in one of Microsoft's
video presentations, but I have not been able to find the application
anywhere! Thanks in advance!
Thanks,
Page Brooks Tag: App Mgr and version Tag: 10670
.Net Data Conversioncharacter to ANSI value
Hey all
Have been unable to find the answer I'm looking for, as everyone seems
to want to convert codes to letters, not the other way round.
Am trying to work out how to do in VB.Net the equivient of ASC("S") in VB6.
Fiddled with the Encode and Convert stuff, but to no avail. Any info
apprieciated.
Paul Tag: App Mgr and version Tag: 10669
my shortcut on PDA's desktop
Hello
Is it possible to put shortcut on PDA's desktop like
Tasks, Calendar, Inbox etc.
Thanks
Jacek Tag: App Mgr and version Tag: 10666
Change TextBox Color
Hi,
I have a TextBox with attribute ReadOnly set to true. As usual the
textbox color turn grey. Is it somehow possible to change that
behaviour? I want the color white instead. Using the ForeColor and
BackColor property does not change the textbox' color.
Thanks
Andreas Tag: App Mgr and version Tag: 10665
I need a tool to view network traffic
Hello all,
I am having a problem with one of my desktop applications and was wondering
if any of you know of a good tool I can use to monitor traffic in and out of
my network card?
this is a urgent problem.
regards,
Jay Tag: App Mgr and version Tag: 10664
soapExtension problem
on the full framework:
i can add SoapHeaders to the message.Headers collection in BeforeSerialize,
and then they will be serialized to the stream in AfterSerialize.
(in AfterSerialize, I have to do Copy(newStream, oldStream) when doing
this).
this same behavior is not working for me on .NETcf.
any tricks to get this to work?
because i'd rather work with typed object during BeforeSerialize,
then writing out raw Xml during AfterSerialize.
Thanks
casey Tag: App Mgr and version Tag: 10663
Get serial number of storage card
Hello everybody,
i'm currently developing a small application using CF C#
and P/Invoke.
There is one thing I can't put to work: I want to read the
serial
number of an installed storage card (SD-Card) by using
DeviceIoControl and IOCTL_DISK_GET_STORAGEID. Actually I
don't find
any sample on how to use the DeviveIoControl Method from
managed code.
Does anybody have an idea on where to start or a working
sample?
Any help is greatly appreiated.
Thanks in advance.
Christian Tag: App Mgr and version Tag: 10662
P/Invoke and ListView
Hi,
Ive got a piece of code that sets gridlines to a listview.
However I only want the horizontal lines appearing and
not the vertical. Does anyone know how to change the code
for this to happen?
Heres the code:
Public Class Helper
Public Sub New()
End Sub
Private Const LVM_GETEXTENDEDLISTVIEWSTYLE As Integer
= &H1037
Private Const LVM_SETEXTENDEDLISTVIEWSTYLE As Integer
= &H1036
Private Const LVS_EX_GRIDLINES As Integer = &H1
Private Declare Function SendMessage Lib "coredll.dll"
Alias "SendMessageW" (ByVal hWnd As Integer, ByVal wMsg
As Integer, ByVal wParam As Integer, ByVal lParam As
Integer) As Integer
Private Declare Function GetFocus Lib "coredll.dll" ()
As Integer
Public Shared Sub SetGridLines(ByVal lvw As
System.Windows.Forms.ListView)
lvw.Focus()
Dim hWnd As Integer = GetFocus()
Dim extendedStyle As Integer =
SendMessage(hWnd, LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0)
extendedStyle = extendedStyle Or LVS_EX_GRIDLINES
SendMessage(hWnd, LVM_SETEXTENDEDLISTVIEWSTYLE, 0,
extendedStyle)
Frm2.ListView1.Invalidate()
End Sub
End Class
Thanks in advance. Tag: App Mgr and version Tag: 10658
Imagelist and picturebox
I am trying to change my image in a picturebox by using images from an
imagelist.
I have tried
Dim Image1 As Image = ImageList1.Images(intIcon)
Me.pbLocation.Image = Image1
Image1.Dispose()
Without any luck, the code doesn't give an error and it doesn't update
the image in the picturebox, and the picturebox has repaint problem
after I load a new form and top of it and close it. Tag: App Mgr and version Tag: 10651
Getting values from datagrid
How can I get the values displayed on a datagrid? Imagine I've loaded a list
of names on it and I want to get the value showed in the current cell, and
show it in a MessageBox. How to do it?
Regards,
Diego F. Tag: App Mgr and version Tag: 10648
how to enable activex on compact framework
hi,
i am currently developing an activex control in c# which should be displayed
on windows ce.net 4.1 internet explorer,
the control works fine when displaying on my desktop, but when it comes to
the compact framework it won't display at all.
the only thing i see is a "broken image" in the website. now my question is
what do i have to do to make it work, is there any kind of registering
procedure i should take into account? any ideas will be appreciated.
thanks a million in advance.
oliver Tag: App Mgr and version Tag: 10645
Designing Forms not inheriting directly from System.Windows.Forms.Form
I am currently working with Forms in the CompactFramework. The designer
cannot open Forms that inherit from anything other than
System.Windows.Forms.Form.
I would like to catch the opening of Forms in the designer and change their
base class from the custom one to System.Windows.Forms.Form.
Any ideas on how i could do this?
I thought about trying this
#if NETCFDESIGNTIME == true
public class ListControlTest : System.Windows.Forms.Form
#else
public class ListControlTest : Charteris.Mobile.PooledForm
#endif
but that does not work
Thanks
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003 Tag: App Mgr and version Tag: 10638
DataGrid
Hi to all,
I have a general question:
I use .Net 2003 enterprose edition and C# to implement an
aplication for a pocket PC
is it possible, that I can't use DataGrid and the method
SetDataBinding for an application running on a pocket pc?
I used the same code (comming from MSDN help-file) in an
application for pocket pc and in a windows application!
On windows forms it works fine and in the pocket pc
application, I get some errors, that the method can't be
found.
thanks for help Tag: App Mgr and version Tag: 10635
DoubleClick in TreeView
Hello all,
does anybody know how to handle the DoubleClick in a
TreeView ?
Is there another way than to handle the Click event
twice ?
Thanks. Tag: App Mgr and version Tag: 10632
Multiple Forms
I am in the process of learing .NET, particularly .NET
compact framework, so excuse me if this is obvious.... I
have a PPC application that I am developing that
currently has approximately 12 forms. I noticed that
upon deployment that navigation among/between the forms
can tend to be rather slow. My question is what is the
best way to navigate between forms in a mutliple form
application? Currently, I use the following method to
open new forms...As an example...
Dim frmMainMenu as New frmMainMenu
frmMainMenu.ShowDialog()
Is there a better way? I have seen discussion about
using panels and showing/hiding them but that seems like
it may be laborious, especially when you have up to 12
forms? Any recomendations/comments would be greatly
appreciated.
Thanks! Tag: App Mgr and version Tag: 10630
Microsoft.WindowsCE.Forms docs download available
In Microsoft Visual Studio .NET 2003, the Microsoft.WindowsCE.Forms
namespace is not in the class library reference, but there was abbreviated
"reference" documentation in the .NET Compact Framework topics under Smart
Device Projects in the Visual Studio .NET node.
In the October 2003 MSDN Library, there is no documentation for the
namespace. Until future releases correct this problem, you can download a
compiled help file (.chm file) of the namespace from the .NET Compact
Framework QuickStarts:
http://samples.gotdotnet.com/quickstart/CompactFramework/
Click "Microsoft.WindowsCE.Forms temporary documentation" in the Getting
Started section to download the file.
The direct URL to the file is:
http://download.microsoft.com/download/2/6/c/26c60617-6078-44fd-9f07-2841301
a8d1a/fx_mwcef.chm
This namespace contains the InputPanel, MessageWindow, and Message classes.
Note that the code examples in the chm file are the same as the "Using the
MessageWindow Class" and "Using the InputPanel Component" QuickStarts on
the Web.
Hopefully this fills the temporary hole we have in the docs for this
namespace - sorry for the inconvenience this has caused.
- Bruce Hamilton
.NET Compact Framework User Education
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm. Tag: App Mgr and version Tag: 10626
Smartphone QuickStarts Available!
Just released on http://samples.gotdotnet.com/quickstart/CompactFramework/
are two QuickStarts specific to the Smartphone. In the "Smartphone
Specific" section are these two QuickStarts:
- Using Smartphone Back and Soft Keys
Provides an overview of using the soft keys and the back key in Smartphone
applications. You can provide your own functionality for soft keys as well
as for the back key. Great for game developers!
- Using Smartphone Menus
Provides an overview of using menus in Smartphone applications. There are
some restrictions about using the MainMenu and MenuItem components that you
should know about.
We hope these QuickStarts help to clear up some confusion in these areas
and help you to build robust Smartphone applications.
- Bruce Hamilton Tag: App Mgr and version Tag: 10624
exception handled silently
I was inadvertently accessing a null object in a function called from
the keyup event handler in a form and I was surprised to find that
the application returned control to the form without any interruption,
as if there were a try/catch somewhere catching the exception and
ignoring it. When run in the debugger, as soon a I step through the
offending line of code, I'm back in the form (which BTW is displayed
using ShowDialog and is invoked from a static function in the form
class.
I've searched for a try/catch but can't find one anywhere. Why is
this exception not bubbling all the way up to the default handler?
--Houston Tag: App Mgr and version Tag: 10618
Managed to unmanaged TCHAR *
hello,
I'm trying to invoke a function written in C that takes a
(TCHAR *) filename (which will convert to char * and use
fopen). In my managed code I have a String that I call
ToCharArray() on to get a unicode character array. I try
passing a reference to the first character into my dll
function, but it seems to throw a native exception. What
am I supposed to use in .NET CF? Thanks Tag: App Mgr and version Tag: 10608
my forms turned into classes.......
Hi all,
I was working fine with a bunch of forms when suddenly ALL my forms turned
into VB classes...any ideas why? Therefore, I cannot display them in design
mode. What can I do to get them back? Both files, the vb and the resx are in
the working directory, and a check on the source code of my vb files, still
displays the region for the Form definition "Windows Form Designer generated
code"
Any ideas why???? and how can I avoid this again?
BTW. I'm working with .NET 2003 and the Framework 1.1 Tag: App Mgr and version Tag: 10604
resco advancedlist speedup
(i use the advancedlist in the completely 'manual' mode, performance when
databound seems to be better)
getting or setting an item is dog slow, i ended up writing these to speed it
up
Public Function ListItemGet(ByVal row As Resco.Controls.Row, ByVal cellname
As String) As Object
Dim objarr(row.FieldCount) As Object
row.GetData(objarr)
Return objarr(row.FieldNames.GetOrdinal(cellname))
End Function
Public Sub ListItemSet(ByVal list As Resco.Controls.AdvancedList, ByVal row
As Resco.Controls.Row, ByVal cellname As String, ByVal data As Object)
list.BeginInit()
Dim objarr(row.FieldCount) As Object
row.GetData(objarr)
objarr(row.FieldNames.GetOrdinal(cellname)) = data
row.SetData(objarr)
list.EndInit()
End Sub
when initing a row it's even better of course if you can put all your objets
in an array and then do one setdata at the end
the difference is quite astounding Tag: App Mgr and version Tag: 10598
ADO.NET binding problem...
hi,
im having a problem commiting edits to my database. in the form load i
select the record to edit. i bind my text controls. then after i manually
edit my text in the text boxes i press the save button. the edits dont take.
when i click the save button i tell the dataset to accept changes from the
bound controls then call the update command. however, none of the changes
take. the bound text boxes do show the data for the row before editing so
they are bound but after i edit the text and click the save button no errors
and no changes occur. have i left something out?
any ideas?
---form load
dsDataSet = new DataSet();
daDataAdapter = new AsaDataAdapter("SELECT PK, Destination, Contain, Code
FROM items WHERE PK = " + mPKID.ToString() , conn);
daDataAdapter.Fill(dsDataSet, "items");
CboDestination.DataSource = dsDataSet.Tables["items"];
CboDestination.DisplayMember = "Destination";
//textBoxes - Simple Binding:
TxtContains.DataBindings.Add("Text",dsDataSet.Tables["items"],"Contain");
TxtBarcode.DataBindings.Add("Text",dsDataSet.Tables["items"],"Code");
---save button click
dsDataSet.Tables["items"].AcceptChanges();
daDataAdapter.UpdateCommand = new AsaCommand("UPDATE items SET PK = @PK,
Destination = @Destination, Contain = @Contain, Code = @Code, Timestamp =
@Timestamp WHERE PK = @PK", conn);
daDataAdapter.UpdateCommand.Parameters.Add("@PK",AsaDbType.Integer);
daDataAdapter.UpdateCommand.Parameters.Add("@Destination",AsaDbType.Char);
daDataAdapter.UpdateCommand.Parameters.Add("@Contain",AsaDbType.Float);
daDataAdapter.UpdateCommand.Parameters.Add("@Code",AsaDbType.Integer);
daDataAdapter.UpdateCommand.Parameters.Add("@TimeStamp",AsaDbType.TimeStamp)
;
daDataAdapter.Update(dsDataSet,"items"); Tag: App Mgr and version Tag: 10597
No Exit in menu requirement.
I believe I unsderstand the value of not having a way
to "Exit" the app but really just a way to send it to the
background and have the operating system close the app
when it needs resources. However, how is this problem
resolved:
We run our application. We press the "Home" button in the
middle of the app. The application loses focus and
disapears. At that time we deceide we no longer what this
application so we go to the Settings menu and Select
Remove Programs and uninstall the app. Works fine.
But now we see two problems. One the application now
automatically comes back into focus (why?), and ofcourse
if we try to work with it fails.
In addition, after uninstalling the app, our application
icon on the task bar is no longer our nice pretty icon
but a default windows file icon. When we click on it we
get an "Error opening the Shortcut or Location the target
filename".
How do we resolve these two issues?
Thank you Tag: App Mgr and version Tag: 10596
Slow application start time after losing focus.
If we close/minimaze our application using the Home
button, and then we restart/maximaze the application by
selecting it on the TopBar of the phone's main screen the
application takes a long time to "reload".
What affects this reload time? We are not doing anything
on OnGotFocus(). It apears that it takes a long time even
before it gets to any of our code. Any ideas? How can we
speed this process up? Is this a Compact Framework issue?
Thanks Tag: App Mgr and version Tag: 10594
No-touch deployment using the .Net Compact Framework
I am researching building a pocket PC application using the .NET
Compact framework and we want to deploy our solution using the easiest
means possible. I have read several postings that the Compact
Framework does not support no-touch deployment, so I was wondering if
anyone had any workarounds or solutions that are similar to the
no-touch deployment?
Thanks in advance,
Abram Tag: App Mgr and version Tag: 10593
howto display small window in my app.
I would like to display a small window in my application, so that the user
can still see the full window in the background, the one that call my small
window to enter a value for some calculation.
Once the user enters the value in the small window, this one will disappear
and display the original full window that called the small one, very similar
to a MessageBox, that displays in a small window.
Can I do this?? Tag: App Mgr and version Tag: 10582
Hi,
Is there a way you can tell what version of the
Application Manager is installed on your system?