code crashes emulator
Hi,
I am making an async web service call and a progress bar that just loops
until the call is complete. Before I make the call I set a bool var to
false I the invoke the progress bar and while this var is false the bar
will continue to loop. When the call completes this var is set to true and
the progress bar is stopped and hidden. The probelm is that sometime it
crashes the emulator, however it has not yet crashed an actual pocket pc
device. As I am dealing with more than one thread I am using the Invoke
methods. The key code is included below:
private void btnDownloadSchedule_Click(object sender, System.EventArgs e)
{
this.btnDownloadSchedule.Enabled = false;
this.ShowProgressBar();
this.SetGotScheduleToFalse();
this.wsSchedule = new
Heat.IntelligentScheduler.Pda.App.wsHeatSchedule.Schedule();
this.wsSchedule.BeginGetSchedule(this.mScheduling.EngineerId,
this.GetDate().ToShortDateString(), wsHeatSchedule.JobPriority.All, new
AsyncCallback(ScheduleCallback), null);
}
private void ScheduleCallback(IAsyncResult iarSchedule)
{
try
{
this.wsSchedule.EndGetSchedule(iarSchedule, out this.xnHigh, out
this.xnAM, out this.xnPM);
this.mScheduling.AddScheduleData(this.xnHigh, JobPriority.All,
this.GetDate());
this.wsSchedule.Abort();
this.pbStatus.Invoke(new EventHandler(this.SetProgressMax));
this.SetGotScheduleToTrue();
this.HideProgressBar();
this.btnDownloadSchedule.Enabled = true;
}
catch(Exception ex)
{
MessageBoxes.ErrorMessageBox(ex.ToString(), "Here 2");
/*if(MessageBoxes.QuestionMessageBox("There ws a problem fulfilling your
last request, would you like to try again?", "Communication Failure : " +
ex.ToString()) == DialogResult.Yes)
{
//this.GetSchedule(DateTime.Parse(this.cboYear.SelectedValue.ToString()
+ "/" + this.cboMonth.SelectedValue.ToString() + "/" +
this.cboDay.SelectedValue.ToString()));
}*/
}
}
private DateTime GetDate()
{
return DateTime.Parse(this.cboYear.SelectedValue.ToString() + "/" +
this.cboMonth.SelectedValue.ToString() + "/" +
this.cboDay.SelectedValue.ToString());
}
public void UpdateProgressBar(object sender, EventArgs e)
{
while(!this.bolGotSchedule)
{
if(this.pbStatus.Value == this.pbStatus.Maximum)
{
this.pbStatus.Value = this.pbStatus.Minimum;
}
this.pbStatus.Value += 5;
Application.DoEvents();
}
}
public void SetProgressMax(object sender, EventArgs e)
{
this.pbStatus.Value = this.pbStatus.Maximum;
Application.DoEvents();
}
public void ShowProgressBar()
{
this.pbStatus.Invoke(new EventHandler(ShowProgressBar));
}
public void ShowProgressBar(object sender, EventArgs e)
{
this.pbStatus.Visible = true;
}
public void HideProgressBar()
{
this.pbStatus.Invoke(new EventHandler(HideProgressBar));
}
public void HideProgressBar(object sender, EventArgs e)
{
this.pbStatus.Visible = false;
}
public void SetGotScheduleToTrue()
{
this.Invoke(new EventHandler(SetGotScheduleToTrue));
}
public void SetGotScheduleToTrue(object sender, EventArgs e)
{
this.bolGotSchedule = true;
}
public void SetGotScheduleToFalse()
{
this.Invoke(new EventHandler(SetGotScheduleToFalse));
}
Although it has not crashed any devices, the app is still in development and
has not run that much on real devices. At the moment I think it is a glitch
with the emulator, but I would appreciate any feedback on the code.
Mark Tag: 3rd party controls (or source) for CF Tag: 30961
Why use Prepare() if this MS BUG exists ?
Hi there,
I recently came across a SQL CE BUG, which is documented by Microsoft
http://support.microsoft.com/default.aspx?scid=kb;EN-US;824462
The Resolution of this requires that I call the Dispose method for the
SqlCeCommand instances used with the SqlCeDataAdapter. If I use this
resolution my code looks like the following:
SqlCeCommand cmd = null;
protected SqlCeCommand GetMyCommand()
{
if (cmd == null)
{
cmd = new SqlCeCommand();
cmd.CommandText = "SELECT * FROM Table";
cmd.Connection = mySQLConnection;
try
{
cmd.Connection.Open();
cmd.Prepare();
}
Catch {...}
finally
{
cmd.Connection.Close();
}
}
return cmd;
}
mySqlAdapter.SelectCommand = GetMyCommand();
try
{
mySqlAdapter.Fill(...)
}
catch {...}
finally
{
if (sqlAdapter.SelectCommand != null)
sqlAdapter.SelectCommand.Dispose();
}
Here's my question.....
If I need to Dispose of the cmd after I use it, then if I use it again
I need to re-initialise it, which means I need to create the cmd each
time as follows:
protected SqlCeCommand GetMyCommand()
{
SqlCeCommand cmd = new SqlCeCommand()
cmd = new SqlCeCommand();
cmd.CommandText = "SELECT * FROM Table";
cmd.Connection = mySQLConnection;
......
}
Does this mean that there is no point in calling Prepare(), as I
thought
the point of Prepare() was you call it once to compile the cmd once.
Any
insight is much appreciated. Tag: 3rd party controls (or source) for CF Tag: 30959
Rijndael AES encryption
Hi,
Anyone have any suggestions for implementing Rijndael AES encryption in the
CF?
System.Security.Cryptography.Rijndael is not supported nor is AES available
in the CE crypto library. It has to be AES since it needs to work with an
existing system. It also has to support CipherMode.ECB
The code I use on the deskop is below.
Thanks,
Dave
Public Function EncryptString(ByRef inStr As String, ByVal HashString As
String)
Dim RijndaelObj As New RijndaelManaged()
Dim RijndaelEncObj As ICryptoTransform, MD5Obj As New
MD5CryptoServiceProvider()
Dim HashedString As Byte(), EncryptedData As Byte(), DecryptedData As
Byte()
Dim StringToHash As Byte() = New ASCIIEncoding().GetBytes(HashString)
Dim DataToEncrypt As Byte() = New ASCIIEncoding().GetBytes(inStr)
RijndaelObj.BlockSize = 128
RijndaelObj.KeySize = 128
RijndaelObj.Mode = CipherMode.ECB
RijndaelObj.Padding = PaddingMode.Zeros
RijndaelObj.Key = MD5Obj.ComputeHash(StringToHash)
RijndaelEncObj = RijndaelObj.CreateEncryptor()
EncryptedData = RijndaelEncObj.TransformFinalBlock(DataToEncrypt, 0,
DataToEncrypt.Length)
If EncryptedData.Length > 0 Then EncryptString =
Convert.ToBase64String(EncryptedData)
End Function Tag: 3rd party controls (or source) for CF Tag: 30954
retrieving deviceid with C#
Hallo,
how can i retrieve the deviceid of a handheld at the CF with C# ? Tag: 3rd party controls (or source) for CF Tag: 30951
Deploy - nonCAB file via MSI
I have my MSI file created and working properly. It
installs My App, SQL Client, and SQLCE Server programs on
the PocketPC.
The issues I'm running into is - how do I distribute the
database that I have created (.sdf file) on to the users
Pocket PC. I use this in My App. Calling a pre-populated
database.
I would like to send it to the My Documents Directory of
the PocketPC - but the path it gets to the PocketPC is not
really important. What is more important - is that I just
get it on to the PocketPC - with very little user
intervention (ie- if it could be part of the MSI setup
wizard - that is what I'm shooting for).
thanks for any advice. Tag: 3rd party controls (or source) for CF Tag: 30940
is it possible to receive event raised from C++ dll in VB .NET?
I am forced to create a dll driver in eVC++, but the application in VB .NET.
The application is expected to receive message from the dll, instead of
doing a polling, I am wondering if it is possible to create an event in
the dll and set the event whenever there is message available to the
VB application. Can anyone tell me if this is feasible? And how the event
being linked between the DLL and the VB application?
Thanks.
Carl Tag: 3rd party controls (or source) for CF Tag: 30936
OpenNETCF Controls in the VS toolbox
Hi all
there was a thread earlier about adding the OpenNETCFcontrols to the VS
toolbox. I actually tried adding the dlls to the toolbox but i always get
this error:
---------------------------
Microsoft Development Environment
---------------------------
Insufficient state to deserialize the object. More information is needed.
---------------------------
OK
---------------------------
what might the problem be?
I am using Windows Server 2003 + VS.Net 2003
thanks
mustafa Tag: 3rd party controls (or source) for CF Tag: 30935
get same hash string from .NET and java?
Hello All,
Is it possible to get the same hashed string on .NET and Java using the
same hashing algorithm (e.g. MD5, SHA)??
On .NET side, the token is generated using the following code:
Private Function HashEncrypt(ByVal strInput as String) As String
Dim bytHash as Byte()
Dim uEncode As New System.Text.UnicodeEncoding
' - - - STORE THE SOURCE STRING INTO A BYTE ARRAY - - -
Dim bytSource() As Byte = uEncode.GetBytes(strInput)
Dim SHA1 As New System.Security.Cryptography.SHA1CryptoServiceProvider
' - - - CREATE THE HASH - - -
bytHash = SHA1.ComputeHash(bytSource)
' - - - RETURN AS A BASE64 ENCODED STRING - - -
Return Convert.ToBase64String(bytHash)
End Function
On the java side, the token is generated as follow:
MessageDigest _digester = null;
_digester = MessageDigest.getInstance("SHA1");
_digester.reset();
byte[] utf8 = _msg.getBytes("UTF-8");
_digester.update(utf8);
byte[] _tokenBytes = _digester.digest();
String s = new sun.misc.BASE64Encoder().encode(_tokenBytes);
Thanks for your help!
Grace
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: 3rd party controls (or source) for CF Tag: 30933
form on task bar in CE
I have an app for pocketpc and am trying to get it to run on Windows
CE.NET... Everything works ok except for the times where I have 2 forms
loaded.. 1 is shown with .ShowDialog()... the problem is that the user can
tap the first form in the task bar on CE where they could not see that it
was loaded on PocketPC.
How can i hide this from the user... Idealy there would be a form property
to not show in the task bar but that does not seem to be available in the
CompactFramework.
Thanks in advance.
--
Tommy Tag: 3rd party controls (or source) for CF Tag: 30925
Progress Bar Related.
Hi,
In the constructor of my main form class, (which is called by
Application.Run(MainClass) in main) I have InitializeComponent and to add to
it some heavy work to do. Also I want to show the progress bar of that heavy
work on to my UI. But I cannot show it since my UI is still not done. Also I
tried writing the "Heavy work" into some thread, but its also of no use
since the heavy work is blocking the UI, (i really donno why and which is
actually against the use of threads)
Can you suggest something as to how should i handle the thing.
Amit. Tag: 3rd party controls (or source) for CF Tag: 30923
OpenNetCF Registry problem.
Hi,
I am using the OpenNetCF Registry.cs. I have to store two types of values
into the registry. A string type and other Int type. I am successfully able
to write string values into the registry. But when I try to write an
interger into the registry it gives me some InvalidCast Exception.
I will tell you the steps, sorry i cant be exact because i am mailing from
my house and not from my work place.
1) CreateRegistryKey: This returns object of RegistryKey
2) RegistryKey.SetValue("KeyName" , intValue);
3) RegistryKey.Close();
I donno if I am missing something. But I am not able to overcome this error.
Any suggestions are welcomed.
thanks a lot in advance.
Amit. Tag: 3rd party controls (or source) for CF Tag: 30921
.NET compact framework sdk
Hi,
Is there a sdk for .NET compact framework. Plz tell me where I can download it.
Thanks a lot,
Chamal. Tag: 3rd party controls (or source) for CF Tag: 30920
CAB dependencies (maybe OpenNETCF specific)
I just upgraded to v1.1 of the OpenNETCF framework and now the CAB files
for my project seem to have a dependency for the wrong platform in them.
What happens is when I run the cab file to install my application, I get a
warning telling me that OpenNETCF.SDF.ppc3.ARMV4.cab is required. The
trouble is, I'm running on Pocket PC 2003 - so I think it should be
requiring OpenNETCF.SDF.wce4.ARMV4.cab.
Can anyone shed any light on this, or possibly explain how CAB files get
their dependencies built into them - I mean how does it even know that I
need OpenNETCF at all?
Thanks,
Richard. Tag: 3rd party controls (or source) for CF Tag: 30910
Background image on form
I have this error:
An unhandled exception of type 'System.NullReferenceException' occurred in
System.Drawing.dll
Why???
Thanks
Damiano Tag: 3rd party controls (or source) for CF Tag: 30906
order of CAB auto-installation
is there a way to decide the order of CAB auto-installation?
i have 3 CABs for my application: the app's cab, the SQLCE cab and CF cab...
but... pocket pc decide to install app's CAB first, and it fails!
any suggestions?
tx
MAtteo GAbella Tag: 3rd party controls (or source) for CF Tag: 30905
non-graphics application
Is it possible open a form in a "non-graphics application" ?
thanks
Damiano Tag: 3rd party controls (or source) for CF Tag: 30902
Handling a change in Height
Hi,
I am dynamically adding a series of custom labels (inherieted from the
label) controls that respond to the click event. When this event fires the
height of the label is doubled to allow more data to be displayed. However
when I do this I was the rest of the controls to move down. How should I go
about this?
Mark Tag: 3rd party controls (or source) for CF Tag: 30899
Shared folders with the network?
Hello
I would know if is possible to share folders on a windows ce based
device and access them through the network (so not with USB) from a
desktop PC. I think it should be possible also with ActiveSync but it
displays the message "network connections are disabled". Practically I
would get/put files from/to the device when its is connected to the
network and I would avoid the use of a FTP server on the device. Can
anyone help me?
Thanks in advance
Gianco Tag: 3rd party controls (or source) for CF Tag: 30893
surviving a cold reboot...
[Environment]
I'm developing an application for a Symbol MC9000-k, running Windows Mobile 2003, using c# and VS.Net 2003. I've also used OpenNetCF for some development, and have a PC app that uses ActiveSync to down/upload data to/from the scanner.
[Question]
It's quite simple, the client will have no GPO rights (or clue) on how to reinstall my application onto one of these scanners. If the battery runs dry (and so does the backup), or the user has to do a cold-reboot, the applicatin folder, and all the libraries that were deployed disappear. How can I get my .Net CF app back onto the scanner next time it is docked?
I'm assuming that if I install the app into non-volatile memory, it still won't work as all the libraries it uses won't be registered etc.
Is there a way to (for example) take a snapshot of the scanner build as I like it, and every download that is performed from the PC checks the build integrity and copies across a new partition (or updates the current partition) so that the user can easily carry on using the application? Tag: 3rd party controls (or source) for CF Tag: 30892
Accessing SIM card from C#
Hi All,
the following article talks about how to get info from the SIM card. I
downloaded the sample, used the Phone.cs in an application, and everytime i
try to access the card i get "Can't read the service provider"
here's the code i am using:
using Microsoft.Wireless;
//application inits etc
private void button1_Click(object sender, System.EventArgs e)
{
string szOwnerNumber = "";
try
{
szOwnerNumber =
Microsoft.Wireless.Sim.GetServiceProvider();//Microsoft.Wireless.Sim.GetPhon
eNumber().ToString();
textBox1.Text = szOwnerNumber;
}
catch (Exception exp)
{
textBox1.Text = exp.Message;
}
}
is there something that i am missing or something?
I am using T-Mobile XDA-I upgraded to Windows Mobile 2003 (T-Mobile build)
thanks
mustafa Tag: 3rd party controls (or source) for CF Tag: 30891
What are GAC dlls?
This might be a basic question however, I am trying to figure out what GAC_
dlls are. I am having problems with an application running on one device
and not on another and it appears one is missing GAC_ files. Tag: 3rd party controls (or source) for CF Tag: 30886
connection problem
i am trying to connect a database on sql server ce:
connString = "Provider=Microsoft.SQLServer.OLEDB.CE.1.0; Data Source=\\My
Documents\\test.sdf";
conn = new SqlCeConnection(connString);
i got following error:
"Unknown connection option in connection string: provider"
what is the problem here? Tag: 3rd party controls (or source) for CF Tag: 30882
couple Input Panel Questions
Hi,
I'm implementing an InputPanel in one of my Smart Device projects.
I want to be ablt for an user to select a letter with the InputPanel.
I placed one in my project (with a mainmenu) and its always visible, so no
problem there. I placed a button in my form, my intention was to press the
buton and then the InputPanel would expand automatically. I tried using
InputPanel1.Enabled = true;
but that aint doing nothing really... Any idea how to implement this ?
Second question :
About the letter that is selectd. What method or exception can I use to
capture the letter that the user has selected on the SIP ?
Thanx... Tag: 3rd party controls (or source) for CF Tag: 30879
DataGrid
Is it possible to popultate a dataGrid from two databases(.sdf)?
For example, I populate the grid when it loads with some default information from DB1. I then want to update a number of the zero index cells to values based on the results from a table in DB2?
Can it be done? How?
Marc Tag: 3rd party controls (or source) for CF Tag: 30877
Debug Class ????
Hello,
I'd like to be able to get some info about the performance of an application
I wrote. I have an application which sends an sql query to a database,
places the results in a datatable, sends this datatable to another form
which then writes a part of the datatable in a treeview. Now I'd like to
know how much time evry operation takes and place this info or on screen or
in a log file...
I've been looking around and saw there is a Debug class, only I cant seem to
fully comprehend if this class is suitable form what I want to do, and if so
which members I should be using ?
Thanx... Tag: 3rd party controls (or source) for CF Tag: 30876
how to convert a UTF8 string to Unicode with C#
Dear all,
I use streamreader to read a file line by line. However, both UTF8 and
Unicode exists in each line. Is there a way to convert a substring's encoding of a string there is came from streamreader? Here is my code:
private String searchChapter(string book, string chap, string filePath)
{
String Chapter = "";
try
{
// Create an instance of StreamReader to read from a file.
// The using statement also closes the StreamReader.
using (StreamReader sr = new StreamReader(filePath))
{
// Read and display lines from the file until the end of
// the file is reached.
int colonIdx;
String line;
bool isFound = false;
//testing
Chapter = sr.CurrentEncoding.ToString() + "\r\n\r\n";
while ((line = sr.ReadLine()) != null)
{
//Console.WriteLine(line);
colonIdx = line.IndexOf(":");
if (line.Substring(0,3) == book && line.Substring(4,colonIdx - 4) == chap)
{
isFound = true;
}
Chapter = Chapter + line + "\r\n\r\n";
}
else if (isFound == true) break;
}
}
return Chapter;
}
catch (Exception e)
{
// Let the user know what went wrong.
Console.WriteLine("The file could not be read:");
Console.WriteLine(e.Message);
return Chapter;
} Tag: 3rd party controls (or source) for CF Tag: 30872
How do i link in a specific built in Task into my App?
I am trying to associate one of the built in tasks on Pocket PC with numerous individuals within my application, but I cannot seem to find a way to associate a specific task with an individual. i.e. within my application if I only want to veiw tasks associated with individual 'A' how can I extract just the tasks associated with them from the main task list?
Any suggestions would be very welcome Tag: 3rd party controls (or source) for CF Tag: 30868
MSI - CEMGR Opens but no install
I read the popular MSDN article about creating an MSI file
for installation/distribution via ActiveSync. I have been
successful in creating an MSI file. When I install the
file - the CABs are copied to my PC - and CEAPPMGR.EXE
launches - displaying the programs loaded on my Pocket
PC. However - I'm never prompted to add the new program.
It does not appear on the list of programs to install.
I think it has something to do with the setup.ini file -
although I feel that I've looked over that in detail.
Any suggestions why CDAPPMGR lauches but does not install
my file/application/cab?
thanks. Tag: 3rd party controls (or source) for CF Tag: 30866
Parse event for databound controls in CF
Hi all,
I have a textbox bound to a nullable field in a DataTable,
and capture the parse event in a fairly standard way to allow for null
values:
private void newBinding_Parse(object sender, ConvertEventArgs e)
{
if (e.Value.ToString() == string.Empty)
{
e.Value = DBNull.Value;
}
}
This appears to work fine for standard windows forms but in the compact
framework, the original value of the field keeps appearing everytime the
user attempts to set the textbox to an empty string. I know the event
handler is definitely being called (from step through debugging) and the
event argument value is being set to DBNull but somewhere between that and
setting the actual value on the bound DataTable, it reverts back to the
original value.
Anyone have any ideas as to what I am missing?
Thanks in advance,
Minh Tag: 3rd party controls (or source) for CF Tag: 30863
Drag & Drop in CF
Does the compact framework support Drag & Drop? I can't imagine this environment not supporting it, but I can't find the drag & drop properties, events, and methods for the CF controls.
Thanks
Mike Tag: 3rd party controls (or source) for CF Tag: 30859
Beginner Connecting Two PPc's question - Please Help Me
I have multiple ppc's connected via wifi to a lan.I also have regular PC's on the same network, but these are connected with cables. This network is completely cut off from outside sources. The regular PC's have static IP addresses while the PPC's are dynamic. I want to write a small program that will allow the ppc's to see a list of ppc's currently connected, and then to click on one of them and to browse and transfer files off each other from a set "shared" folder. But I want it to work like this: When a ppc connects, it is to send its new IP address to "server pc" that keeps track of the current IP addresses the PPC's have. It will then send the current IP addresses of the other connected PPC's to the unit, which will then when it attempts to click on a particular unit on his screen will set up a Direct Connection thr the LAN, bypassing the "server pc". All I want the "server pc" to be used for is just to keep track and send out the current IPs. You could say that I want to sort of model this after Iâ??M programs.
Can you please tell me how would i go about this, I am pretty much a newbie regarding programing, so if you could please explain to me all of the steps required clearly. Also which language would be the best to use for this.
Thank you
ChinWan Tag: 3rd party controls (or source) for CF Tag: 30852
ANN: Chat begins in 5 minutes
Just a reminder that a chat with the MS dev teams starts in 5 minutes. The
topic is ".NET Compact Framework and Smart Device Programming"
http://communities2.microsoft.com/home/chatroom.aspx?siteid=34000070
--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com Tag: 3rd party controls (or source) for CF Tag: 30850
I don't want the a popup window occupy the entire screen.
Hi,
I want to popup a window to let use input some information, and I want this
popup windows has the behavior that is same as the normal Windows dialogbox,
don't want to popup window to occupy the entire screen.
wifiOrder.loginFrm frmLogin = new loginFrm();
frmLogin.Show(); // or ShowDialog() is the same.
how to do it?
Thank you very much! Tag: 3rd party controls (or source) for CF Tag: 30840
Resumable HTTP downloads?
I'm trying to write an auto-update application. I followed Alex's example
of doing an HTTP download to obtain the new files that need to be
installed.
This works fine, but I would really like to make the downloads
resumable. Are there any 3rd party components out there that offer either
resumable HTTP downloads?
Thanks,
Richard. Tag: 3rd party controls (or source) for CF Tag: 30830
Missing WinMsg of OpenNETCF Application Ex
hi all,
I try to use OpenNETCF.ApplicationEx to trap message but they inform
to miss WinMsg, although I download all project OpenNETCF.Drawing,
OpenNETCF, OpenNETCF.Windows.Forms, etc... when compiling it still
informs WinMsg not defined.
Is there any idea?
K Tag: 3rd party controls (or source) for CF Tag: 30816
asp.net and body-tag
hello,
i want to create the background-color of my aspx-site dynamically
could i use a existing class or control to realize that, or i have to
use "<% =variable %>"
thanks for answering
regards
Rasta
----------------------------------------
HangulHanjaFastConversion-Eigenschaft
True if Microsoft Word automatically converts a word with
only one suggestion during conversion between hangul
and hanja. Read/write Boolean.
----------------------------------------
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: 3rd party controls (or source) for CF Tag: 30810
Listview item index selected ?
Hi,
how can I know the listviewitem index is selected in a listview?
Thanks in advance Tag: 3rd party controls (or source) for CF Tag: 30803
Dataset question
Hi,
I've got the following problem :
I made an api which is referenced by program1. In this API i have a method
(called Retrieve) in which I create a Dataset and fill a DataTable with data
out of a DataBase. This method returns the DataSet. While calling this
DataSet I allso supply two integer values (for search purposes in the
sql-query in the method).
My problem now is that when I call this method in program1 and try to assign
the returned value (thus de Dataset) I get the following error :
An object reference is required for the nonstatic field, method, or property
'Dictionarytest1.peccAttributeValues.Retrieve(int, int)'
I use this code for assigning :
DataSet myDataSet =
Dictionarytest1.peccAttributeValues.Retrieve(AttributeId, Level);
Like i've allways did when I assign like an integer or whatever...
Any idea what the problem is about ? Or if its better to implement something
else ?
If it's helpful I can always post some code... Tag: 3rd party controls (or source) for CF Tag: 30802
ContextMenu and OnMouseDown in custom control
Hi,
I am stuck with the following problem:
I created my very own ListView type of control for the Pocket PC. I did
override OnMouseDown in order to select the tapped item. Basically this
works.
However, as soon as a ContextMenu is attached to my control the OnMouseDown
is no longer fired when tapped, but only when the stylus is removed (i.e.
when I would expect OnMouseUp to be fired). Even worse, it is not fired at
all when the stylus is held down and the ContextMenu actually pops up.
This behaviour leads to the problem, that I do not have a chance to actually
select the item that is underneath the popped up ContextMenu.
I also tried to select the item in the Popup event of the ContextMenu, but
Control.MousePosition does not return the position actually tapped (it
returns the last position that was tapped). Thus, I have no chance to really
determine where the user tapped on the display.
Any ideas?
Andreas Tag: 3rd party controls (or source) for CF Tag: 30800
Fix Row height in a Datagrid
Hi everybody,
I've a little question : is it possible to fix the row height in a datagrid
?
When my app is running, if I "click" between 2 rows and move the pointer, it
modifies the height of the row and I would prefer to keep this fixed.
Is it possible and how ? I can't find any property for that.
Thanks,
Thomas. Tag: 3rd party controls (or source) for CF Tag: 30794
XML Encrypting/ Compression
Hello,
We are developing a CF application that uses a web service to return xml. Does anyone know of a tool that can compress, encrypt and encode the xml so that it can be sent via a web service, and then decompressed, decrypted and decoded at the client app?
There seem to be plenty of components that either compress, encrypt, or encode but not one that does all three.
Thanks in advance,
Simon Tag: 3rd party controls (or source) for CF Tag: 30793
MissingMethodException w/ SqlConnection
Hey,
I'm getting a MissingMethodException when I call Open() on a SqlConnection -- but only on my WindowsCE device. The program runs fine in the pocketPC emulator and the same code also works fine on the PC.
So -- how do I ensure that the System.Data.SqlClient library is being copied on the device correctly? I set the reference to copy locally and I can see it there...
ideas?
- Zack
P.S. One thing worries me and is a half-related question:
I can only deploy my project to the Windows CE device if I tell VisualStudio to deploy to a PocketPC device. If I specify the WindowsCE device the deploy halts when trying to send the first file. Why does VS only want to deploy my program as a PPC? And why does the WindowsCE device accept the PPC version? thoughts? Tag: 3rd party controls (or source) for CF Tag: 30790
thread
is it possible to create a background thread and from this launch the form
every N hours????
If it is, how I can do this???
thanks
Damiano Tag: 3rd party controls (or source) for CF Tag: 30789
Windows.Forms Issue (compact framework)
I have a form (form1) that I call another form (form2) from, using
.ShowDialog (modul). I disable form1 (.Enabled = False), once the user is
finished with form2 (checked a few check boxes, and clicked a button) the
Disposing event of Form2 is fired (on form1) and I re-enable(.Enabled =
True) Form1.
This all work fine. However! Form1 is minimized in the Taskbar, and will
only show if I click on it.
Anybody anay ideas?
Tried These.....
.ShowDialog()
.Show()
.Focus
.BringToFront
.SetWindowState
--
Regards
Brett Miller Tag: 3rd party controls (or source) for CF Tag: 30783
Many of the controls in the CF are limited so I'm looking for 3rd party
controls or source code. Anyone know what is available?
"Joanne" <jimpierce@mobiledynamo.com> wrote in message
news:u4Iwm1qZEHA.228@TK2MSFTNGP10.phx.gbl...
> Many of the controls in the CF are limited so I'm looking for 3rd party
> controls or source code. Anyone know what is available?
>
> Thanks.
>
>
"Joanne" <jimpierce@mobiledynamo.com> wrote in message
news:u4Iwm1qZEHA.228@TK2MSFTNGP10.phx.gbl...
> Many of the controls in the CF are limited so I'm looking for 3rd party
> controls or source code. Anyone know what is available?
>
> Thanks.
>
>