Opening forms in designer is slow with Visual Studio .NET 2005
I converted a VS .Net 2003 CF project to VS. Net 2005 keeping the target
version as CF1.0. After that when I tried to open any form in my project in
the form designer it takes 10-20 seconds where as in VS2003 it will open
immediately. Also I noticed the forms that has lot of controls take long to
load. Can anybody tell me why this behavior is and any possible resolutions?
PS: If I open a code file (such as a class defnition), it does not have any
problem. Tag: Vs2005 Tag: 62903
How to detect whether Panel got scrollbar ?
Hi,
I have a listview inside a panel and i want to know how to dectect whether
the autoscrollbar of the panel has been activated? The reason is that i need
to resize the column of the listview if the panel scrollbar is visible.
Regards,
Dylas Tag: Vs2005 Tag: 62902
Error message - installing .NET CF 2.0 on device (CE .NET 4.20)
Greetings,
I am trying to deploy a VS 2005 Pocket PC app to the above mentioned
handheld (a PSC Falcon 5500). I dragged my CAB file over to the device, and
installed it, however the app will not run. I receive a brief hourglass,
then nothing happens.
I figured it might be that the device probably doesn't have the Compact
Framework 2.0 on it. I found the C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\CompactFramework\netcfsetupv2.msi file, ran it, went to Modify,
selected to install Deployment, and I get the following error:
(caption) "Invalid Windows CE Setup Files"
(message) "Application Manager cannot install this application on your
mobile device due to an invalid setup file. Reinstall and try again."
I'd appreciate any help.
Thanks!
Dan Tag: Vs2005 Tag: 62895
EndCurrentEdit called automatically
I've found this topic "Trying to understand when EndCurrentEdit gets
automatically called" but no one answered it yet.
I'm in the same trouble - EndCurrentEdit is getting called automatically
when I set ((DataRowView) BM)["column"] = some_value;
Does anybody how to avoid the automatic call?
Thanks for any advice Milan Tag: Vs2005 Tag: 62893
Could not create type instance
I am trying to use the Configuration class from OpenNETCF, and get the
following exception :
"An unhandled exception of type
'OpenNETCF.Configuration.ConfigurationException' occurred in
OpenNETCF.dll
Additional information: Could not create type instance"
Code looks like ;
downloadPath =
OpenNETCF.Configuration.ConfigurationSettings.AppSettings["ServerDownloadPath"];
Anywhere to being solving this? I have verified the OPENNETCF
assemblies are "CopyLocal" and are getting copied to the Mobile Device.
TIA,
Brian Tag: Vs2005 Tag: 62891
Wireless Access Point
Hi guys, this post is actually for the big framework (XP), but I am having
problems getting a solution and the nature of this newsgroup is such that
hopefully someone did this, or it works the same for the CF and the big one.
I must get the Signal Strength of the CONNECTED Wireless Access Point.
I can use WMI and select "MSNDis_80211_BSSIList", giving me the Wireless
Network Card.
From here I get a list (using "Ndis80211BSSIList" properties) of available
Access Points and their signal strengths.
1. Problem is, I don't know which one in the list I am connected to.
2. If there is another method to determine this, I will be grateful too.
Thanks. Tag: Vs2005 Tag: 62889
Problem with path when deploying app
In the <ProjectName> Properties\Device\Output file folder I specify
path where I want my app to reside on my Pocket PC. When I deploy th
app from the Visual Studio .NET (using F5), it runs on the device unde
the specified directory, but after I create a cab file and deploy it t
the device, the app gets always installed under \Progra
Files\<ProjectName> folder.
Q1: Why is my output file folder disregarded?
Q2: Is there a way to get rid of the <ProjectName> folder and put th
executable under the path I want?
Q3: The app gets installed as "My Company <ProjectName>" - How t
replace "My Company" with my text?
Thank you for your help
--
eve
-----------------------------------------------------------------------
evew's Profile: http://www.hightechtalks.com/m51
View this thread: http://www.hightechtalks.com/t231112 Tag: Vs2005 Tag: 62883
Arrow Keys and Tabbing for WM5 using .NET CF 2.0
I am writing test applications with VS 2005 for the WM5 and have a questions
about the tabbing behavior related to the arrow keys.
When I have a MFC Smart Device application, using the arrow keys take the
focus to the
next control just as if a user tabbed.
(Note: I have the WM5 SDK Installed)
But when I have a .NET CF 2.0 application, the arrows keys don't take the
user to the next control. The controls have the Tab Stop and Tab Index
properties set properly. Is there something special needed to have the
arrow keys behave like the user is tabbing? Shouldn't this have been
automatic like the managed code's controls? Tag: Vs2005 Tag: 62882
DIALUP RAS
Hi group,
Has someone an implementation of the RAS API in VB.NET (compact framework)
Know I 'm using a third party dll (unmaneged) to control this.
When I use the DialUp function from the third party vendor to set up a
connection with, let's say, "My connection", I can't use "My connection"
from within windows Mobile any more.
My goal is to set up a dialup connection with "My connection" from within
VB.NET in a way that I can use the same "My connection" in Windows...
A working RAS API in VB would be excellent....
A good connection manger to establish and maintain a GPRS connection on CE
and Mobile 2003 would beo nice too.
Some help would be greatly appreciated.
Best regards,
Mobile boy Tag: Vs2005 Tag: 62881
complicated P/Invoke and marshaling
hi all!
i have a c++ function, wich has to be invoked from c#.
c++ function looks like that:
uint Function(const Request* a, uint max, Result** b, const Result *c,
uint* d, void *cb)
typedef struct{
uint a,
wchar_t b,
Position p,
Position* p,
uint *c
}Request;
typedef struct{
uint a,
uint b
}Position;
1. how do i declare that function?
2. how do i declare the structs?
3. the other question is how i use the declared function?
i need to declare struct Request and pass a reference to a struct as
first parameter. the third parameter expects a reference to the pointer
to the struct. How can i solve that?
thanx in advance Tag: Vs2005 Tag: 62880
[C#] How Can I read message in an email account ?
Hi,
I'd like to get all messages in an email account with pop3.
But I don't find a free library to do it. Only not free version.
Somebody can give me a link to a free pop3 library ?
I work with pocket pc 2003 et Windows CE 4.2
Thanks.
Best Regards
Fred Tag: Vs2005 Tag: 62869
Issuing during exporting
hello,
I am building an application for a pocket pc in which there need to be
facility to associates data with pictures. Now I need to sync this data on
the handheld to a desktop application programatically.
What i hav done I am exporting the data into an xml file using
ds.writexml()
function. AT the same time i am reading images data into binary array and
inserting this into the datatable of the dataset before writing it into xml.
By this way i have my data and image data both in the xml file. Now i
transfer this xml file to the desktop. In my desktop application i have an
import utility that reads the dataset created from this imported file
insertes the datainto the databse. Now I want to read the images that are in
the text form in the column. I want them to be conveted into byte array so
that i can write them with bianry reader.
Please can anyone help me out in this case. It is very urgent.
Thanks in advance
Sunil
--
Sunil Pandita
Software Engineer
(OTS Solutions Pvt. Ltd. ) Tag: Vs2005 Tag: 62868
VS2005->netCF1.4=Object reference not set to an instance of an obj
Hi all,
I have following error 'Object reference not set to an instance of an
object' during installation of OpennetCF 1.4 Smart Device Frameworf (then a
rollback is done).
Visual Studio 2005 Trial edition is correctly installed (on WinXP SP2).
I have installed SDFLibrary.msi too without problem.
I tried OpennetCF 1.4 installation with SDFSetup14.msi.
I have found this article
http://support.microsoft.com/default.aspx?scid=kb;en-us;889531
which looks like same kind of problem.
Does anybody have some idea about this installation trouble ?
Thank you to help me.
WinDevAlex.
Details about Visual Studio 2005 (180 days Trial edition) :
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Enterprise
Microsoft Visual Basic 2005 77718-204-0000007-41307
Microsoft Visual Basic 2005
Microsoft Visual C# 2005 77718-204-0000007-41307
Microsoft Visual C# 2005
Microsoft Visual C++ 2005 77718-204-0000007-41307
Microsoft Visual C++ 2005
Microsoft Visual J# 2005 77718-204-0000007-41307
Microsoft Visual J# 2005
Microsoft Visual Studio Tools for Office 77718-204-0000007-41307
Microsoft Visual Studio Tools for the Microsoft Office System
Microsoft Visual Web Developer 2005 77718-204-0000007-41307
Microsoft Visual Web Developer 2005
Visual Studio 2005 Team Edition for Architects 77718-204-0000007-41307
Microsoft Visual Studio 2005 Team Edition for Software Architects
Visual Studio 2005 Team Edition for Developers 77718-204-0000007-41307
Microsoft Visual Studio 2005 Team Edition for Software Developers
Visual Studio 2005 Team Edition for Testers 77718-204-0000007-41307
Microsoft Visual Studio 2005 Team Edition for Software Testers
Crystal Reports AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005 Tag: Vs2005 Tag: 62862
wm5 devices with cf 2.0?
Hi,
Currently WM 5 devices are shipping with .NET CF 1.0 SP3 as the embedded
.NET framework version.
Is there a possibility that future wm 5 devices will ship with .net cf 2.0?
And what are the prospects of this happening in near future? Tag: Vs2005 Tag: 62854
Bluetooth Profiles
Hi!
I would like to provide a framework which consists of the implementation of
all Bluetooth Profiles in .NET.
How can i write this? Tag: Vs2005 Tag: 62852
SqlCeResultset Sensitivity ?
Hi,
I'm using SqlCeResultSets with SQL Mobile. I have a none updatable
SqlCeResultSet that has inner joins. The resultset comes back as insensitive
but I need it to be sensitive. Can create a resultset from sql that has
inner join and is sensitive? I don't care if its not updatable but i do want
it to be sensitive
Thanks Tag: Vs2005 Tag: 62848
Raw IR
I have an app. using RAW IR that works fine on most PPC. But I can't
get it to work on a new HP hx2490. I wrote a different app to capture
IR data. And when I use that I get 3 hex 0xFF during the communication
instead of the data. If I use the HP hx2490 to capture IR all I get is
a hex 0x0F.
The IR does work to send files and contacts.
HP support doesn't have any ideas.
Has anyone used raw IR on the HP hx2490?
Is COM2 the correct port?
Thanks in advance. Tag: Vs2005 Tag: 62837
NumericUpdDown Overflow BUG!???!
I have a form with a NumericUpDown control, a ToolBar and an InputPanel.
The NumricUpDown is initialized as follows:
form.MinimizeBox = false;
nud.Minimum = 0;
nud.Maximum = 1000000;
When I call the form, it is constructed from an static method (singleton
form) and I call it as follows:
int i = 50000;
decimal d = Convert.ToDecimal(i);
nud.Value = d; // set NumericUpDown control value to 50000
form.ShowDialog(); // User can set the value to 50000 or some other number
int ii = Convert.ToInt32(nud.Value); // I get the wrong value --- negative
amount
MessageBox.Show(ii.ToString());
The problem is the value I get after the user has used the InputPanel to
changed the value, I get a negative amount, as if it were overflowing.
Could someonw help me confirm my bug, or am I seeing double!
Thanks,
--Ader. Tag: Vs2005 Tag: 62836
CF 2.0 Mac Address
Is there a way to get the Mac Address with the new 2.0 cf? I have looked and
haven't been able to figure it out, not sure if there is managed code to
access this or not. I know there are OPENNETCF methods etc, but I was hoping
there was a way to do it with Microsoft's Classes.
Thanks,
Chris Tag: Vs2005 Tag: 62829
Method not found: Dispose System.Data.Common.DbTransaction.
Hi,
I received the exception :
"Method not found: Dispose System.Data.Common.DbTransaction."
when I execute a Transaction.Commit();
Have anybody received this error ?
I'm using Visual Studio 2005 RC
Julio Tsukamoto Tag: Vs2005 Tag: 62828
Visual Studio 2005 : "No such interface supported"
I just received my Visual Studio 2005 and I have an empty pocket pc
solution that im trying to run. Whenever I attempt to deploy I get a
small messagebox that says "No such interface supported".
When i try to import my application, I get the same error if I try to
deply. If i try to perform a build, I get the following monstrosity
Warning 1 An internal error occurred in PlatformVerificationTask.
System.IO.FileNotFoundException: Could not load file or assembly
'System.PocketPC.asmmeta, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system
cannot find the file specified.
File name: 'System.PocketPC.asmmeta, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Signature._GetSignature(SignatureStruct& signature, Void*
pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr
declaringTypeHandle)
at System.Signature.GetSignature(SignatureStruct& signature, Void*
pCorSig, Int32 cCorSig, RuntimeFieldHandle fieldHandle,
RuntimeMethodHandle methodHandle, RuntimeTypeHandle
declaringTypeHandle)
at System.Signature..ctor(RuntimeMethodHandle methodHandle,
RuntimeTypeHandle declaringTypeHandle)
at System.Reflection.RuntimeMethodInfo.get_Signature()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at
Microsoft.CompactFramework.Build.MethodDescriptor.MethodBaseMatch(MethodBase
a)
at
Microsoft.CompactFramework.Build.MethodDescriptor.MethodInfoMatch(MethodInfo
a)
at
Microsoft.CompactFramework.Build.MethodDescriptor.MethodMatch(Object
obj)
at
Microsoft.CompactFramework.Build.MetadataService.GetMethodAttributes(String
instanceType, MethodDescriptor methodDesc)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationRule.VisitExpressionStatement(ExpressionStatement
statement)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitStatementList(StatementList
statements)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitBlock(Block
block)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitStatementList(StatementList
statements)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitBlock(Block
block)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitMethod(Method
method)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitMemberList(MemberList
members)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitTypeNode(TypeNode
typeNode)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitClass(Class
Class)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitTypeNodeList(TypeNodeList
types)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitModule(Module
module)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitAssembly(AssemblyNode
assembly)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationTask.Execute()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind
failure logging.
To turn this feature off, remove the registry value
[HKLM\Software\Microsoft\Fusion!EnableLog].
EpocHost
Does anyone know whats going on here ?
desperately seeking help!
thanks in advance
Taha. Tag: Vs2005 Tag: 62820
first time user of bluetooth - question?
Hi there,
This is what i'm trying to achieve:
I have a PDA enabled bluetooth, and mobile phone with bluetooth enabled.
What i ideally want to do is to press a button on my form, and
programatically connect to the internet, via the bluetooth connection
between the pda and mobile (eg. via GPRS on mobile.)
Can anyone point me in the right direction, and also if i should use the
32feet.net library in order to achieve this?
Any small code example appreciated as this is first bluetooth attempt for
me.
thanks,
Paul Tag: Vs2005 Tag: 62817
Performance worrying problem - Bad architecture maybe
Hi guys,
I've got a very worrying problem in my CF 2.0 application. I don't know
the exact reason for so poor performance, sometimes combined with
"OutOfMemoryException" messages. Could be a bad architecture design
problem.
Ths is my actual scenario:
The application has got near 25 forms and I have one MasterForm from
which the rest of the forms inherit. This MasterForm contains basically
icons and some static variables I use for different purposes inside all
forms of my application.
I call the first form of my application "MainForm". Here we have three
very different choices (imagine three buttons).
When any button is clicked, I always open corresponding form with
ShowDialog() method. Each choice can simultaneously open 5/6 forms
maximum by using ShowDialog(). Therefore, I understand 5/6 forms are
opened in memory sametime. Correct me if I'm wrong please.
Imagine that I choose a button and navigate and navigate and.....I
finally have 5/6 forms opened with ShowDialog(). When I close the
actual modal form (fifth or sixth form), I use the simple this.Close()
and sometimes also return a DialogResult value. If the previous form
must perform an specific action, I use static variables of the previous
form, which I activate from the actual modal form.
In the previous form, I capture Activate event and do the correct
action if the corresponding static variable has been activated. An
example would be to save something and when returning to the previous
form, refreshing the screen with the newly saved data. This means a new
database access. This could be the main bottleneck of the application.
The operations are against SQL Mobile 2005 database. I always access
database to retrieve
latest data, don't use caching at all.
With this scenario, all I can tell you is that sometimes application
seems not to response, and ultimately, if you stress it hard,
"OutOfMemoryException" occurs and new data is not refreshed in the
screen. Suddenly data is "lost", and if you close the from and open it
again, data appears again......in one word: desperating!
I would like to hear any suggestion for a better performance please. It
really hurries me. My project is becoming more and more complex and I
think now, I've got the last chance to reorient or redesign its
architecture. 2006 could be too late.
Specially advices related to the way of opening/closing forms and
database accessing and caching.
Thanks very much. Regards. Tag: Vs2005 Tag: 62815
Components on the PocketPC
Hello,
I'm starting to write for the Pocket PC. My first task is to translate
my current Windows components to Pocket components. Right on the
start, I can't reference a Windows component in my Pocket project, as
VS2005 is telling me.
My question: is it possible to have a common component project so that
I don't need two versions of the same code (one for the Windows, on for
the Pocket) ? For example, if I need to update the component, I don't
want to end up updating two times in two components that contains the
same code. I thought code re-use would be great since we're in .Net.
But it seems that the compact framework is not so close to the Windows
framework.
Thanks for the info,
Neb Tag: Vs2005 Tag: 62809
HTTPS bug with web services in .NET CF v2.0?
Hello all,
I am writing a .NET Compact Framework v2.0 application which
communicates with a back-end system via a web service, using HTTPS for
transport. I am experiencing a problem where the first 256 characters
of the request are mysteriously cropped from the message before they
arrive at the server side. If I make the request over HTTP, it is
received correctly, so it only seems to be HTTPS which is causing the
problem. If I import the web reference into a desktop .NET Framework
application and call it from there over HTTPS it also works fine, I
have tried it using Apache Axis with Java as well which worked fine. As
such, the problem seems limited to the .NET Compact Framework. I am
about to try it with a v1.0 Compact Framework program to see whether
this is something that has been introduced since then.
Has anyone else come across a similar problem? Is it a known bug? If
so, are there any workarounds?
Thanks in advance,
Iain McGinniss Tag: Vs2005 Tag: 62804
Strange bug in "Smart Device Authentication Utility"
I'm trying to connect to my device using Smart Device Authentication
Utility. I launch the sdauthutildevice.exe on the device, select the
correct network device and start.
On the PC i launch Smart Device Authentication Utility and enters the
device ip address.
I click on "Set up device" and Smart Device Authentication Utility
displays a fairly large, completely blank message-box. Not even the
"OK" button has a caption! Anyway, after klicking the blank button on
the messagebox the Smart Device Authentication Utility status says
"connected". However, I cannot connect to the device, and checking the
processes running on the device i do not see ConnmanClient.exe process.
I'm running Windows XP Pro SP2 (Swedish), VS2003, Windows CE .NET
Utilities v1.1 for Visual Studio .NET 2003, Xscale/pxa270, Windows CE
5.0 with all QFE:s up and until Q3 2005.
Any ideas? Tag: Vs2005 Tag: 62802
HTTPS bug with web services in .NET CF v2.0?
Hello all,
I am writing a .NET Compact Framework v2.0 application which
communicates with a back-end system via a web service, using HTTPS for
transport. I am experiencing a problem where the first 256 characters
of the request are mysteriously cropped from the message before they
arrive at the server side. If I make the request over HTTP, it is
received correctly, so it only seems to be HTTPS which is causing the
problem. If I import the web reference into a desktop .NET Framework
application and call it from there over HTTPS it also works fine, I
have tried it using Apache Axis with Java as well which worked fine. As
such, the problem seems limited to the .NET Compact Framework. I am
about to try it with a v1.0 Compact Framework program to see whether
this is something that has been introduced since then.
Has anyone else come across a similar problem? Is it a known bug? If
so, are there any workarounds?
Thanks in advance,
Iain McGinniss Tag: Vs2005 Tag: 62800
Problem using the P/Invoke to run WAV
Hello All,
I am using the P/Invoke library sample which is explained in the MSDN, this
is the code i write to play a WAV file:
WaveOut wo = new WaveOut();
wo.Play(@"\Program Files\SoundPlayer\REVEILLE.wav" , 512 * 1024, 0xffff,
0xffff);
but it doesnt run anything,
could anyone help me please.
notes: i am using VS 2005 CF 2.0
Thanks in advance
Regards
Tamer Hesham Tag: Vs2005 Tag: 62799
Can not enter national characters in PocketPC Phone Emulator
Hi!
I've changed the nationalsettings within the emulator from us/english to
swedish and also looked in nationalsettings on my host computer för
charactersets not supported by unicode, but I still can't enter the swedish
characters åäö in my applications or in the standard applications in the
pocketpc emulator.
Does anyone know how to set up these things? Tag: Vs2005 Tag: 62798
CF1.0 to CF2.0 problem after conversion
I am trying to convert an existing VS2003 .Net CF - C# app into VS2005 and
get the following error. I have verified that the file exists and is
referenced but I still get this error. I have a feeling this has to do with
the VS2005 beta2 screwing up my system (I'm now running the VS2005 release).
Any ideas would be greatly appreciated.
thanks.
Error 1 Metadata file 'c:\Program Files\Microsoft Visual Studio
8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\Microsoft.WindowsCE.F
orms.dll' could not be opened -- 'Version 2.0 is not a compatible version.'
C:\ADD_Sys\hhdel\Projects\DotNet\RavenWinCE.root\RavenWinCE\Raven\CSC Raven Tag: Vs2005 Tag: 62797
Can't get rid of that task bar
Playing around with having a kiosk mode application on Pocket-PC, I always
end up with the task bar doesn't hide and is always on top.
I'm working with Visual Studio 8, C# and .NET 2.0. For testing I have a
Symbol PT-8800 and the emulated Pocket PC 2003.
First I've tried to maximize my form with code like this:
private void Form1_Load(object sender, System.EventArgs e)
{
// menu = null;
FormBorderStyle = FormBorderStyle.None;
WindowState = FormWindowState.Maximized;
}
Maximize does work, but the taskbar is not covered. It's hiding the top of
my form.
Next I've found that example code which is working with SHFullScreen().
Which hides the start icon with SHFS_HIDESTARTICON for some time, but
SHFS_HIDETASKBAR doesn't work. The input options menu on the right bottom
disappears too but only when SHFS_HIDETASKBAR is set, on the other hand
SHFS_HIDESIPBUTTON is ignored too. But anyway SHFullScreen is not the
solution I'm looking for, first it's not .NET (so far as I understand) and
second it will not work on CE Clients. Latter I cannot verify, 'cause "CE
4.2" will not work with .NET 2.0 and I don't have a "CE 5" emulation, but
that's another story.
So, how do I get a kiosk mode application in pure .NET and C#?
Erwin Tag: Vs2005 Tag: 62796
Problem with Databinding
Hi:
I have a winform with several tabs and controls in each one.
I build databinding:
Me.txtMarca.DataBindings.Add("Text", dtFhipec, "timbrado")
Me.oBMB = Me.BindingContext(dtFhipec)
dtFhipec is a Datatable, and oBMB is a property BindingManagerBase.
I delete last row, as following:
Me.oBMB.CancelCurrentEdit()
Me.oBMB.RemoveAt(Me.oBMB.Position)
Me.daFhipec.Update(Me.dsFhipec, "Fhipec")
Me.oBMB.EndCurrentEdit()
However, controls in form have sames values as before deleted row.
Regards. Tag: Vs2005 Tag: 62795
Any Windows CE devices that can replace PLCs?
Does anyone know if there are any companies producing stand-alone
Windows CE based "controllers" used for industrial applications? More
specifically, what I am looking for is a unit that contains the Windows
CE OS with possible support for CE .NET and the following:
* analog / digital inputs / outputs
* a display (at the minimum, a simple one line text display)
* a keybord input panel (not a computer keyboard)
* the ability to add expansion modules (more inputs/outputs and other
types of modules)
The unit must be rugged and designed for industrial purposes and should
be able to fit into some kind of rack or be designed to fit into a
panel cutout.. What I am looking for is something that could
potentially replace a PLC (programmable logic controller). Programming
in Visual Studio .NET in a language like C# or Visual Basic .NET is a
powerful solution that goes beyond typical ladder logic programming.
Any suggestions would be appreciated.
Thank you
Johann Blake Tag: Vs2005 Tag: 62791
SQL Mobile 3.0 UNION error
This is a multi-part message in MIME format.
------=_NextPart_000_0078_01C6018E.13615ED0
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Hello, all.
I'm trying to execute SELECT statement with UNION like
select 1 Id, 'h' name
union all
select 12 Id, 'hm' name
If query execute on Pocket PC device (iPaq 2110) it just hang up =
(WaitCursor). If on desktop - return error:
Major Error 0x80004005, Minor Error 0
Attempted to read or write protected memory. This is often an indication =
that other memory is corrupt.
------=_NextPart_000_0078_01C6018E.13615ED0
Content-Type: text/html;
charset="koi8-r"
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=3Dkoi8-r">
<META content=3D"MSHTML 6.00.3790.2541" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello, all.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>I'm trying to execute SELECT statement with UNION like</DIV>
<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff size=3D2><FONT =
color=3D#0000ff=20
size=3D2>
<P>select</FONT><FONT color=3D#000000 size=3D2> 1 Id</FONT><FONT =
color=3D#808080=20
size=3D2>,</FONT><FONT color=3D#000000 size=3D2> </FONT><FONT =
color=3D#ff0000=20
size=3D2>'h'</FONT><FONT size=3D2><FONT color=3D#000000> =
name</FONT></P></FONT><FONT=20
color=3D#0000ff size=3D2>
<P>union</FONT><FONT color=3D#000000 size=3D2> </FONT><FONT =
color=3D#808080=20
size=3D2>all</P></FONT><FONT color=3D#0000ff size=3D2>
<P>select</FONT><FONT color=3D#000000 size=3D2> 12 Id</FONT><FONT =
color=3D#808080=20
size=3D2>,</FONT><FONT color=3D#000000 size=3D2> </FONT><FONT =
color=3D#ff0000=20
size=3D2>'hm'</FONT><FONT size=3D2><FONT color=3D#000000>=20
name</FONT></P></FONT></FONT><FONT size=3D2>If query execute on Pocket =
PC device=20
(iPaq 2110) it just hang up (WaitCursor). If on desktop - return=20
error:</FONT></DIV>
<DIV><FONT size=3D1>
<P>Major Error 0x80004005, Minor Error 0</P>
<P>Attempted to read or write protected memory. This is often an =
indication that=20
other memory is corrupt.</P></FONT>
<P> </P>
<P><FONT size=3D2> </P></FONT></FONT></DIV></BODY></HTML>
------=_NextPart_000_0078_01C6018E.13615ED0-- Tag: Vs2005 Tag: 62790
how to call a running thread?
Hello all,
i am making a small wave player with mobile application, i have three
buttons, one to play wave file, second for pausing, and third for restatring
(resuming).
the play button restart a thread that call a play function, now when i click
on pause button how could i make the pause function pause the runing wave
file in the thread?
Thanks in advance
Regards
Tamer Hesham Tag: Vs2005 Tag: 62786
Socket reuse problem
Argg.. another one of those CF vs normal framework things.
What I have is a program that creates a lot of socket connections over a
very short period of time (maybe a few hundread connections over a 2-3
minute period). What I am seeing is that it starts to slow way down in
terms of the Socket() constructor being called which I am thinking has to do
with the PDA running out of usable ports or something similar.
What I am using is BeginConnect() to establish my connection and if it takes
more then 1-2 seconds then I issue a Close() on the socket to abort it.
I have tried using multiple threads (one for each connection I will be
making) but I ended up running intoa OutOfMemory exception - even though I
tried calling the GC manually to free up old stuff.
Now what I have is just a single threaded class that has an ArrayList of
several classes that contain a Socket and other info in it. I use a timer
(100-1000ms interval) to loop through all the connections and check to see
if they are connected, timed out, etc. and then process the packets that are
recd. Right now I am only performing a connection attempt and then closing -
there is no send/recv implemented yet.
I hope this is enough of an overview to give you an idea of what I am doing.
I have tried using SetSocketOption() but it is hard to figure out what
is/not actually supported (aka actually works) in the CF. I have tried the
no linger option but it didnt help.
Any thoughts?
Anyone able to constantly open/close socket connections without any
probelms? I know on a PC I would expect to run out of ports (if they are
lingering around) after a few thousand but I am seeing problems on the PDA
after only a few hundread.
Thanks!
Chuck Tag: Vs2005 Tag: 62778
Textbox scrolling
VB 2005, .NET CF 2.0
Is it possible to append text to a multiline textbox without scrolling
vertically? If not, is it possible to get the vertical scrollbar's thumb
position and reset it after appending? I've tried using SendMessage with
EM_GETTHUMB but it always returns 0 and EM_LINESCROLL has no effect either.
--
Kent Briggs, kbriggs@spamcop.net
Briggs Softworks, http://www.briggsoft.com Tag: Vs2005 Tag: 62774
How to create an event handler for a menu item?
I'm developing an app for a Pocket PC device.
I'm trying to create an event handler to a menu item as follows:
Dim mnuUndo As New MenuItem
mnuUndo.Text = "Undo"
mnu1.MenuItems.Add(mnuUndo, New EventHandler(AddressO
mnuUndo_Click))
but I receive this error:
Too many arguments to 'Public Function Add(mnue As
System.Windows.Forms.MenuItem) As Integer'.
How to accomplish that? And, by the way, I know .Shortcut is no
supported on CF, but is there a way to get around it?
Thank you for any help
--
eve
-----------------------------------------------------------------------
evew's Profile: http://www.hightechtalks.com/m51
View this thread: http://www.hightechtalks.com/t230967 Tag: Vs2005 Tag: 62768
Listview items on parent form listview does not display
I have an application that has a form with a listview.
It has a function that I call to start the unit to sync with different
providers depending on the platform they are syncing against. Each provider
is it's own class. One class syncs against our existing webservices, and
the other directly to a tcp object living on a legacy desktop application.
Since both of these provider classes needed a reference to the listview on
the form, they had private members where I would set the form on the class
property so the child classes could access the listview on the form.
I recently started a new application, and decided to try letting these
classes inherit from the form with the display / logging functions so they
could just call the base class functions to display status.
All of the syncing works fine, but when the child classes call the base
class functions to add items to the listview to display the status, none of
the items are visible.
The parent form is an abstract class which the "provider1" and "provider2"
classes inherit from.
Is there something I have to do special in this child/parent relationship to
make sure the items are visible? Tag: Vs2005 Tag: 62766
The call to CabWiz.exe failed
I'm having problems creating cab files.
Each time I click on the Build Cab File button
(or running the equivalent command line) I get:
QUOTE
Dependent on 'netcf.all.wce4.x86.cab' in 'file:///C:\Program Files\Microsoft
Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\wce300\WCE420X86\'
Error : The call to CabWiz.exe failed
Creating batch file 'C:\Program Files\Franson\GpsTools
SDK\dotNetcf\C#\MultiMap\obj\Release\BuildCab.bat' for command line build
ENDQUOTE
I've searched MSDN and various blogs and it seems to be a probelm that
others have experienced but I've yet to find someone with a solution.
I've tried changing dest and output lpaths but to no avail. When I look in
the cab.log file I see: Error: CAB file "c:\temp\C4BNMeaCS_PPC.ARM.CAB"
could not be created.
I also made sure that I have the latest version of cabqiz.exe and tried
putting it an related files in the same folder as the *.inf file.
Can anyone here help?
Thanks
Will Chapman Tag: Vs2005 Tag: 62763
Sending Request to many iframes
hi to all ,
i have a question .
i want to create an an application some thing like ERP in asp.net .
i want to create an window (web window) with many iframes .
and when i click on menu button or anything else , all the iframes
will automatically response to that action (variable that was sent by
"request").
how can i do it ?? Tag: Vs2005 Tag: 62761
Use of WSE 3.0 on compact framework device
Hi all,
We are in the planning/prototype stages on a PocketPC/SmartPhone app
that will be built around calling WSE 3.0 enabled webservices.
Is anyone working with WSE 3.0 web service calls from the compact
framework? Any pitfalls, or known issues with doing this?
We plan to use the WSE 3.0 security assertion UsernameForCertificate.
We'll need to install the server's x.509 certificate on the handheld
device. How do you do this?
Any advice, or pointers on where to get started would be appreciated.
--steve Tag: Vs2005 Tag: 62758
TCPListener
How do i create a TCP Listener such that I don't have to stop the Listener
when I detect a new IPAddress. My program tries to close the old TCPListener
and bind to a the new IPAddress, but the Application throws an exception
because the old TCPListener hasn't unbinded it self. I could use the
constructor which bind to a port but it's marked obsolete.
Johann Tag: Vs2005 Tag: 62752
how To Play sound
I'm trying to play a .wav file in .NET CF 2.0
So I included the File I wished in Properties.Resources.myWaveFile .
I added the following Sound-class. This class is from MSDN, but I added an
additional Constructor for byte[]:
public Sound(byte[] data)
{
m_soundBytes = data;
}
and in my main-program i did an:
Sound sound = new Sound(Properties.Resources.miss);
sound.Play();
But this didn't do anything. Wenn I do an new Sound("myFile.wav") with
myFile.wav on the pocketPC,I can hear the sound. So what is wrong?!?Best
regardsJohannespublic class Sound{private byte[] m_soundBytes;private string
m_fileName;private enum Flags {SND_SYNC = 0x0000, /* play synchronously
(default) */SND_ASYNC = 0x0001, /* play asynchronously */SND_NODEFAULT =
0x0002, /* silence (!default) if sound not found */SND_MEMORY = 0x0004, /*
pszSound points to a memory file */SND_LOOP = 0x0008, /* loop the sound
until next sndPlaySound */SND_NOSTOP = 0x0010, /* don't stop any currently
playing sound */SND_NOWAIT = 0x00002000, /* don't wait if the driver is busy
*/SND_ALIAS = 0x00010000, /* name is a registry alias */SND_ALIAS_ID =
0x00110000, /* alias is a predefined ID */SND_FILENAME = 0x00020000, /* name
is file name */SND_RESOURCE = 0x00040004 /* name is resource name or atom
*/}[DllImport("CoreDll.DLL", EntryPoint="PlaySound",
SetLastError=true)]private extern static int WCE_PlaySound(string szSound,
IntPtr hMod, int flags);[DllImport("CoreDll.DLL", EntryPoint="PlaySound",
SetLastError=true)]private extern static int WCE_PlaySoundBytes (byte[]
szSound, IntPtr hMod, int flags);/// <summary>/// Construct the Sound object
to play sound data from the specified file./// </summary>public Sound
(string fileName) {m_fileName = fileName;}/// <summary>/// Construct the
Sound object to play sound data from the specified stream.///
</summary>public Sound(Stream stream) {// read the data from the
streamm_soundBytes = new byte [stream.Length];stream.Read(m_soundBytes,
0,(int)stream.Length);}public Sound(byte[] data){m_soundBytes = data;}///
<summary>/// Play the sound/// </summary>public void Play () {// if a file
name has been registered, call WCE_PlaySound,// otherwise call
WCE_PlaySoundBytesif (m_fileName != null)WCE_PlaySound(m_fileName,
IntPtr.Zero, (int) (Flags.SND_ASYNC |
Flags.SND_FILENAME));elseWCE_PlaySoundBytes (m_soundBytes, IntPtr.Zero,
(int) (Flags.SND_ASYNC | Flags.SND_MEMORY));}} Tag: Vs2005 Tag: 62749
WCELOAD
Hi group
I currently have an application that is able to autoreinstall itself by
extracting a cab.
But for my last cab update, i need to soft (or hard) reboot my device AFTER
the cab extraction.
I am sure it is possible but i don't know how.
Is WCELOAD.exe can reboot the pda after extract the cab ?
Is WCELOAD.exe can launch any program after extract the cab ?
MSDN doc don't speak about something like that, but i think it could be.
Can the cab use/launch programs during extraction ?
Can the cab use/launch programs after it have been extracted ?
(by configuring the Inf of the cab during creation of the cab for example
orsomething else)
Is there any registry key i can set using the cab to reboot ?
Is there any registry key i can set using the cab to launch automatically a
program ?
Is it possible a cab can erase registry keys ?
Can i erase critical registry keys to reboot the PDA ?
Can i erase critical registry keys to break any programs that will force a
user to make a manual soft reboot ?
I guess my question seems strange but i have no evil intentions :)
thanks
ROM Tag: Vs2005 Tag: 62748
MSMQ Question
Hi,
I'm making some test to evaluate MSMQ on pocket PC 2003. The goal is to
build a transport mecanism for distant users (orders creation).
I can use MSMQ locally on the device with some pieces of code grabbed on the
web.
However, I was not able to put a message on a central server message queue
(neither private nor public queue).
Everytime I get an error telling me that I do not have the rigths to use the
queue or the queue does not exists.
Is there any limitation to consider ? Is there any sample describing this
processs?
Thanks,
Steve Tag: Vs2005 Tag: 62747
call method after constructor
i'd like to call a Method, which is in constructor, asynchron after the
constructor is finished.
Class()
{
Method();
}
How can i do this? Tag: Vs2005 Tag: 62741
Porting .NET CF
I have an aplication for pocket PC, that I wrote using visual studio
.NET using compact framework. I have a question if it is possible to
port this app into the desktop .NET framework.
I can add this project into the desktop solution but whe I check the
properties the only platform i can select is a pocket PC.
Thank You Tag: Vs2005 Tag: 62740