Closing one form: Bring old form to front?
Hello
I have a problem using .NET CF. If I open a new form with
"settings.showdialog" and I stay on the new form for 5-10 minutes, then the
old form disappears. If I close the settings-form, then I see the
Today-Screen instead of the old form.
Must be something with timeout...
I now tried to use this:
<DllImport("coredll.dll", EntryPoint:="SetForegroundWindow",
SetLastError:=True)> _
Public Shared Function SetForegroundWindow( _
ByVal hwnd As IntPtr) As Boolean
End Function
<DllImport("Coredll", CallingConvention:=CallingConvention.Winapi,
CharSet:=CharSet.Auto)> _
Public Shared Function FindWindow(ByVal lpClassName As String, ByVal
lpWindowName As String) As IntPtr
End Function
Public Shared Function BringFormToFront(ByVal FormName As String) As Boolean
Dim hwnd As IntPtr
hwnd = (FindWindow(Nothing, FormName))
SetForegroundWindow(hwnd)
End Function
after settings.showdialog I use:
BringFormToFront(me.text)
But this doesnt work either?!
Any solution to this problem?
Thanks
Kenny Tag: SqlCE Tag: 67984
Problem in Installed Certificates in Emulator
Hi,
I have been using Digital certificates for encryption and decryption using
c# dot net compact framework 2.0 and i can install the Digital Certificate
in the pocket PC Certificate store using pfxImport.exe.Now i want to verify
that its installed properly. Because i can do encryption using that
certificate but i cant do the decryption with the same, i have tried in many
ways it throw error in API that access the private key from the
certificate.And Also this same code works well in Windows application and
Encrypted data using dot net compact framework get decrypted correctly using
windows application,therefore my code is correct.
i have given my code,
CspParameters cp = new CspParameters();
cp.KeyContainerName = container;----------i feel Container value might me a
prob here.Since the value retrived from API
CertGetCertificateContextProperty which deal with private key
cp.ProviderType = this.providerType;
cp.ProviderName = this.providerName;
cp.KeyNumber = keyspec;
RSACryptoServiceProvider oRSA = new
RSACryptoServiceProvider(cp);
clearkey = oRSA.Decrypt(encdata, false); !!
it am getting an error: "Unknown Error '80007001".
Can anyone give the solution for us.
Thanks Tag: SqlCE Tag: 67983
Caps Lock Status
Hi,
I need to find the status of the caps lock on the Pocket PC. Can someone
please tell me how can I do this using C# or any other language.
Thanks and Regards,
Rakesh Tag: SqlCE Tag: 67982
The ComboBox Control
Well, I really hope I am wrong, but this control seems pretty unusable the way it is implemented right now.
I cannot find a way to get notified immediately when the user commits a selection. The SelectionChangeCommitted, DropDown,
Click, MoseUp/Down events are not implemented. The SelectedIndexChanged event is there but
it does not necessarily mean final selection since the user might just be using the hard buttons to
scroll up and down in the list portion of the ComboBox. Unless I can get notified when the drop down
list gets shown and hidden I cannot be sure what exactly goes on.
So, am I missing something? Is there some way to detect selection immediately after it occurs? Tag: SqlCE Tag: 67981
ForeColor of SmartList items
Hi,
ForeColor property of each SmartListItem inside a SmartList control is
not working. This did not work in SDF 1.4 and now neither in SDF 2.0
Beta1.
Have you planned to add this functionality or am I doing something
wrong?
Thanks in advance. Tag: SqlCE Tag: 67978
XML Document Saves as Read Only -> Bug or Feature ?
When I deploy my application to pocket pc. There is an xml file that I
read and change it appropriateley. However when I save the file, it
sets the attributes to read only enabled. I close the application,
uncheck the readonly attribute and starts working correctly. Whenever
It calls xmldocument save function the file becomes read only, and next
time it tries to open it gives unauthorizedexception.
How to avoid that? Use xmlwriter instead of xmldocument? Tag: SqlCE Tag: 67977
How to restore Addins after resetting the IDE
Hi,
I'm working in Visual Studio 2005. I created a simple add-in and
installed it. It got added to the 'Tools' menu in the IDE and .addin file
got copied to '..\My Documents\Visual Studio 2005\Addins'. And it also works
well.
When i reset the IDE by 'devenv /resetsettings', addin got removed from
the 'Tools' menu. and I need to drag it from the 'Addins' list in
'Tools\Customize..' to 'Tools' menu.
Can you tell me a way of restoring the addin after resetting the IDE?
Thanks and Regards,
Padma. Tag: SqlCE Tag: 67975
Can you recommend a voice engine?
I've worked with two popular voice recognition engines for the compact
framework. One had performance issues, the other, a leading package, does
not offer a key feature.
Thanks Tag: SqlCE Tag: 67972
prevent special keychars from being displayed in a textbox
Hi NG,
in my app I want to capture different keychars in a textbox so that they are
not displayed. That is because I want to react to these keychars with special
code.
I want to choose for this for example the keychar "\" and I think therefore
I can not take the keycode.
That works well, but the keychars are then dipplayed in the textbox.
How can I make the keychar not to be displayed?
Select Case e.KeyChar
Case "\"
End Select
Thanks for any idea!
Werner Tag: SqlCE Tag: 67970
Toolbar in VS 2005 Pro
Hi,
I'm using VS 2005 Pro edition. I have try to search a lot but couldn't get
answer.
I read that they say the Toolbar is not recommended for WM 5.0.
Fine but they still give support for developing it.
I drag & drop the toolbar on my Pocket PC form, but it only gets docked at
the bottom, does not give any further option of how to add buttons to it.
I tried going to its properties adding button from there, looking at the
code which VS itself is writing at the bac, but nothing worked.
Please suggest what to do Tag: SqlCE Tag: 67965
pocket pc calendar in .net 2003
i want to to use calendar tool for pocket pc programming like in windows
application. but .net doesnt provide any tool for pocket pc(calendar) like in
windows applications. any help....??
more over i am making a todolist for my pocket pc which synchronizez the
data from sql server and sqlce. any good idea or help..? Tag: SqlCE Tag: 67964
Notification balloon
Hi,
For my program I use the notification control to show the user at least an
icon or if (s)he decides to, a balloon as wel with some info.
In the balloon I have two linkbuttons en the problem comes when the user
taps on one of them.
One linkbutton is to show a form, the other is to stop the program.
After tapping on STOP the notification should go away and a messagebox
appears with the question if the user really wants to stop.
This is what happens:
the user taps on the STOP linkbutton and the notification icon is removed
because in the program I destroy it, but the balloon stays and the
messagebox is shown behind it.
How is this possible, why is the balloon not going away allong with the
icon?
How can I get rid if the balloon before the messagebox is shown or at least
show the messagebox on top of the balloon?
rg,
Eric Tag: SqlCE Tag: 67961
how reject incoming call - TAPI wrapper?
Hello,
is there any solution for rejecting incoming call in WM 5.0 ?
I think, I should use TAPI functions, but don't have expirience using
this library.
Someone can help me?
-- marian Tag: SqlCE Tag: 67960
memory and sqlCe
Hello,
I make a software which read and write in SQLCe tables, but at each action
( read, write, update), memory down ;
I start with 6Mo, but after 100 actions , memory is 2Mo, and software bug.
I dispose each element (connection, datareader, sqlcommand, but not better)
I tried to create and open 1 connection, 1 datareader, but finally, memory
down ( after about 200 actions in the better)
thanks for your help Tag: SqlCE Tag: 67959
App Launches in the background?
I am fairly new to PocketPC development. I am developing with VS.Net 2003.
My device is running Win Mobile 2003 SE
I have an app that I want to be able to close (not just minimize into the
background).
I read that setting the main form's MinimizeBox porperty to false would do
this. It does, but when I set this property, the app launches in the
background (not visible). I have to go into Setting/Memory/Running Programs
and Activate the app so I can see it.
Sometimes it launches with the topmost portion of the form visible. If I
click the visible portion, I can run the app no problem.
I do get the message "The program you have installed may not display
correctly" message, and I understand how to fix that. But fixing the
message does not fix the problem.
How can I ensure that my app launches in the foreground? Tag: SqlCE Tag: 67958
database connection through Wireless Lan is very slow
Hello!
The problem is: too slow filling DataSet when device (PocketPC) is
connected to sql server through Wireless Lan.
Device shows excellent connection to Access point. I tried to copy
large files through ActvieSync and through Wireless Lan. Through
Wireless Lan it takes about 1.5 times slower.
But filling DataSet takes 30-60 times slower then throgh ActiveSync!
The table (actualy it is a view) has about 6000 rows. When the divice
is connected through ActiveSync the DataSet is filled for about 1-3
seconds. But when the device is connected to PC through Wireless Lan it
takes 1-2 or even more minutes.
What is the reason and is there any solution of this problem? Tag: SqlCE Tag: 67957
HTML control and non-existing files
My HTML control works with local HTML files. In case the user clicks on
a link towards a non-existing page, I would like to get a message and
create the appropriate file, allowing the control to navigate to the
newly created file instead of posting an error message.
What I found out so far, that I could do this using the MN_HOTSPOT
notification. However, I still have to figure out, how to do this
exactly in .NET CF 2.0. But the more important question for me is,
would this really allow me to stop the naviagtion, create the
non-existing page, and continue to navigate to it, when it is created ?
Or would I be rather unable to stop the navigation process ?
In case this approach is not applicable, do you know of others ?
Thank you.
Wolfgang Tag: SqlCE Tag: 67946
having problem with Cursor.Hide
i'm using CFv2 on a custom WM5 device with a digitizer.
when i call Cursor.Hide, the cursor disappears when the stylus is hovering.
but when the stylus is against the display, the cursor is displayed.
then when the stylus is lifted, the cursor goes away again.
what else should i be doing?
Thanks,
casey Tag: SqlCE Tag: 67944
P/Invoke problem
Hello, everybody!
I've tried to call native GetCursorPos function using p/invoke, but I could
not find usual WinAPI dlls like user32.dll (which contains GetCursorPos) and
others.
Could anybody help me?
Thanks in advance. Tag: SqlCE Tag: 67942
how to handling SMS with .net cf
Hello.
I'm sending binary SMS from my desktop application connected to
cellphone via BT and I'd like fetch it on my SPV M3000 without
displaying 'new sms received' notification. Is it possible?
-- marian Tag: SqlCE Tag: 67937
DllImport fails every time....
The code will explain better than I can:
THE DDL:
===============================================
extern "C" __declspec(dllexport) int Scratch()
{
return 13;
}
===============================================
THE APP:
===============================================
[DllImport("mydll.dll", SetLastError=true)]
private static extern int Scratch();
===============================================
The DLL has been compiled using eVC 4.0 and I included it in the
project using "Add Existing Item". I'm testing this on emulator
version 4.1.0. The DLL properly shows itself in the same folder as the
EXE. I'm getting MissingMethodException and I'm stumped... please
help. Tag: SqlCE Tag: 67934
Problem using slide out keyboard and resize event
FYI. I have an application that was migrated to VS 2005 and now using a
pda/phone with windows mobile 5.0. The way the app functions is that there
is a main menu and other forms are opened depending on the user. This means
there may be 3 or 4 windows open. We have our own "x" exit buttons to close
the form and the app is designed to close them in order.
If you open the main menu, and then select a path so that there are 3 or 4
forms open and then open and close the slide out keyboard, it causes the
resize event to fire in all of the open forms and rearranges the order in
memory. Thus, when you close the form that has focus, you don't necessarily
go back to the form you are expecting to see. Tag: SqlCE Tag: 67931
Options when Button.PerformClick is not available?
I'm working my way through my first significant compact framework C# app and
I've got a question (actually many questions, but I'll just start with this
one).
It would be very handy in my application to programatically "Push" a button
on a form. In "Normal" dot net, I'd use Button.PerformClick, but in CF2.0 I
don't have that option apparently. I understand that I could restructure
the code and call the same functions, but in my case it would be easier to
just press the button.
What is the cleanest way to "Press" the button? Ideally it would maintain
the same sequence of events as a real button press. Any suggestions?
Thanks,
John Kelsey Tag: SqlCE Tag: 67928
SqlCeResultSet and datagrid
Hello,
I've read a few times [1] that you can bind the DataGrid to an
SqlCeResultSet in a way that when the DataGrid is first displayed only
the visible data is retrieved from the (Sql Mobile) database. Further
data is only retrieved when the use scrolls the datagrid. I have not
been able to reproduce this behaviour. What I've tried is:
a)
1. get an SqlCeResultSet by using SqlCeCommand::ExecuteResultSet()
2. set DataGrid::DataSource to the resultset
b) used Visual Studios Data Source (with the datasouce designer
configured to use the SqlCeResultSet instead of the usual DataSet) to
create an DataGrid by drag'n'dropping it on a form
Both test retrieved all data from the database before displaying the
resultset.
So my question is: how can I make the DataGrid only retrieve the
absolutely neccessary data from the db and retrieve furhter data only
when the user scrolls the DataGrid?
Thanks
Ben
[1] e.g. here:
http://groups.google.co.uk/group/microsoft.public.dotnet.framework.compactframework/browse_thread/thread/a124ddaac6bc38c7/547330b85d2e54e6
Quote Ilya Tumanov [MS]: "For SQL Mobile (SQL CE 3.0) you can use new
SqlCeResultSet class which
supports data binding directly.
It's really fast if bound to DataGrid because only visible rows would be
actually retrieved. " Tag: SqlCE Tag: 67927
Add my own messages to home screen on a mobile 5.0 smart phone
hi, is it possible to add some output to the home screen on a mobile 5.0
smart phone, like Outlook does for upcoming appointment?
--
http://spaces.msn.com/members/pjsson/ Tag: SqlCE Tag: 67924
Icon in top bar on a smartphone
Hi, I would like to add my own icon to the top status bar of a windows mobile
5.0 smart phone, is it possible? I am talking about the bar on top of the
display where battery and phone status is displayed when the phone is
displaying the home screen. Is this area accessible from .NET classes or some
other way?
--
http://spaces.msn.com/members/pjsson/ Tag: SqlCE Tag: 67923
How to develop a program to open an image file (.jpg) with PPC's default image viewer?
Hi,
Is there any method using VB.NET to develop a smart device apllication
to call PPC's default image viewer to open an image file which I have
already got its full path? I want to tailor make this program to open
image files which saved in specific directory/sub-directory structure
and use the functions of PPC's default image viewer to view my file.
Or any other suggestions for me?
Thank you very much. Tag: SqlCE Tag: 67922
textbook
Are there any good texts that cover VS 2005 Compact Framework for developing
wireless apps? I have seen those that cover VS 2003, but I would like to use
2005.
Thanks,
Dave Tag: SqlCE Tag: 67918
[BUG?] PlatformVerificationTask
I have a weird problem with Visual Studio 2005 developing a "Device
Application (1.0)". For reproduce the error I have to create the new
project, add a new Button, and write the following line of code for the
Click event:
DataSet ds = new DataSet();
When I Build the project, I see a warning in the errors list window,
and if I try to debug the program in the emulator, the breakpoints
doesn't work.
The warning does not appear at the first time I run the Build, but at
the second. And the third time the warning changes.
The problem diappears commenting out the line of code and Build.
I reproduce the error on the following confguration:
Windows XP SP2 + Visual Studio .Net 2003 + Visual Studio 2005
Windows Server 2003 + Visual Studio 2005
Please help me.
The warnings are:
--- The second time:
Warning 1 An internal error occurred in PlatformVerificationTask.
System.IO.FileLoadException: Could not load file or assembly
'System.PocketPC.asmmeta, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. I dati
necessari per il completamento di questa operazione non sono ancora
disponibili. (Exception from HRESULT: 0x8000000A)
File name: 'System.PocketPC.asmmeta, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' --->
System.Runtime.InteropServices.COMException (0x8000000A): I dati
necessari per il completamento di questa operazione non sono ancora
disponibili. (Exception from HRESULT: 0x8000000A)
at EnvDTE.OutputGroup.get_FileCount()
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.GetProjectOutputs(Project
project)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.AddProjectEntries(Project
project, List`1 entries, Boolean thisProject)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.EnsurePopulated(Boolean
fPopulateProject)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.SearchProjectEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Boolean
reflectionBased, Assembly& assembly)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.SearchEntries(AssemblyName
assemblyName, String typeName, Boolean ignoreTypeCase, Boolean
reflectionBased, Assembly& assembly)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName
name, Boolean throwOnError)
at
Microsoft.CompactFramework.Design.DeviceTypeResolutionService.System.ComponentModel.Design.ITypeResolutionService.GetAssembly(AssemblyName
name)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService.OnAssemblyResolve(Object
sender, ResolveEventArgs e)
at System.AppDomain.OnAssemblyResolveEvent(String assemblyFullName)
at System.Reflection.Assembly.GetType(String name, Boolean
throwOnError, Boolean ignoreCase)
at System.Reflection.Assembly.GetType(String name)
at
Microsoft.CompactFramework.Build.MetadataService.GetAsmmetaType(Type
sourceType)
at
Microsoft.CompactFramework.Build.MetadataService.GetTypeAttributes(String
instanceType)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationRule.VisitConstruct(Construct
cons)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitExpression(Expression
expression)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitAssignmentStatement(AssignmentStatement
assignment)
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()
-- The third and following times:
Warning 1 An internal error occurred in PlatformVerificationTask.
System.Runtime.InteropServices.COMException (0x8000000A): I dati
necessari per il completamento di questa operazione non sono ancora
disponibili. (Exception from HRESULT: 0x8000000A)
at System.Reflection.Assembly.GetType(String name, Boolean
throwOnError, Boolean ignoreCase)
at System.Reflection.Assembly.GetType(String name)
at
Microsoft.CompactFramework.Build.MetadataService.GetAsmmetaType(Type
sourceType)
at
Microsoft.CompactFramework.Build.MetadataService.GetTypeAttributes(String
instanceType)
at
Microsoft.CompactFramework.Build.Tasks.PlatformVerificationRule.VisitConstruct(Construct
cons)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.Visit(Node
node)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitExpression(Expression
expression)
at
Microsoft.CompactFramework.Build.Compiler.StandardVisitor.VisitAssignmentStatement(AssignmentStatement
assignment)
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()
-- Tag: SqlCE Tag: 67917
An alternative for (small) Modal Dialog Box in compact framework ?
Hi,
I'd like to add to my PPC app a kind of modal dialog window, which does NOT
stretch over the whole display. Unfortunately, that's exactly what all new
forms in compact framework do by default. (This default rule perpahs made
sense with small displays, but currently on PPC with 640x480..?) The only
workaround I found so far is to set
form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
but then the form/window is borderless, has no caption, etc.
So my idea is to use WinCE APIs DialogBox(), EndDialog(), and
GetDlgItemxxx(). However, I can't figure out how to test this in emulator,
because it is not clear in which LIB or DLL these APIs are exported. I tried
COREDLL and DLGMGR, but without success.
Also, I didn't find a way how to make my VS 2005 PPC project aware of my
compiled resource file (res) with dialog window template. I can add it to
the project as a file, that's not the problem, but then I would expect to see
and be able to use defines from this resource in other project files, but it
does not work :-(
So I would be really gretaful if someone could post a code snippet, or point
me to a doc, which explains this.
Many thanks ! Tag: SqlCE Tag: 67911
Distribution
I have a PPC app I have written, it's going to be installed on a few
thousand PPCs within the same company.
I have created an installer application in VS for this app. What I want to
know is how can I ensure that DotNet V2 + SqlCE 2005 is installed as part of
the same installation? I only need the data part of SqlCE, not replication
etc.
Basically I'd like to have only a single CAB file to install everything, it
will make implementation much easier.
Thanks
Pete Tag: SqlCE Tag: 67908
Menu and toolbar at the same time?
I'm new to the compact framework and have some basic questions about
forms. I use VS2005 and CF 2.0.
1. When I place a MainMenu and a ToolBar on a form they are both
positioned at the bottom, the menu is at the left and the toolbar is at
the right. When I add items to the menu the toolbar gets smaller and
smaller. Can't I position the toolbar above the menu?
2. If I use a Panel as a toolbar substitute, is there any way I can
create a button with an image on it? Button don't have a Paint event.
3. Are there issues with transparency for toolbar buttons in CF 2.0?
4. Is it possible/advisable to get the Window handle to a control in CF
and use SendMessage and other API functions?
5. If I switch to C++, which newsgroup is most appropiate for disscusing
Windows CE programming in C++ (I can't find any)?
Thanks
Lars Brange Tag: SqlCE Tag: 67907
IO performance WM2003 vs WM2005
Hi!
I've a WM2003 and a WM2005 machine and see some major performance
improvements when reading/writing to a SD-card using the WM2005 compared to
WM2003 machine. The SD-card is of the same brand and the WM2005 machine has
a much slower processor 194MHz comparde to 400MHz on the WM2003 machine.
The WM2005 machine has CF2.0 installed in ROM, but the application is
written for CF1.0 so it shouldn't use and CF2.0 libraries, right?
Is this a know WM improvement, or as it something to do with CF (allthough I
believe my CF1.0 app couldn't benefit from CF2.0)
/ Peter Tag: SqlCE Tag: 67904
File comparison
I am trying to buid an auto update feature for my application. I am
implementing it by comparing two files, one from the web server and
one from the local.
I thought of 3 possibilities which any of them didn't help.
1 - Compare the version of the assembly. Worked perfectly, however I
couldn't overwrite (it has a new version) because the file is already
in use. And I couldn't unload the assembly once loaded. I also tried
appdomain and still can't do because the lack of appdomain functions in
compact framework.
2 - Compare the file with GethashCode() which leads to different
versions of gethashcode because server side version and compact
framework version of that function gives totaly different results.
3 - Compare by the creation time. This one also fails, because
lastcreation time of file does not have set property.
What else can I do to say that those files are identical and no need
to update ? Tag: SqlCE Tag: 67901
Active Scripting: How to pass ITypeInfo
Hi,
i am trying to add active scripting capabilities to our (CF 2.0)
application. Thus i have to pass an ITypeInfo interface to the
scripting engine to make my object visible to it. In the regular
framework there's the method "GetITypeInfoForType". How is it possible
to accomplish this in compact framework? Is it possible at all?
thanks in advance
chris Tag: SqlCE Tag: 67900
How can I hide the windows's title bar?
my problem is hiding the window title.
i've tried everything (setting the properties within the IDE and within
the code), but each time i open a form in the code (form_name.show) the
window title flicker for a second.
after that it is gone and you do not see it - but it is annoying.
so how can i hide the window's titlebar, so that it doesn't "pop up"
when opening the form...
(i am using .net cf 2.0 and vb 2005.
the application runs on windows mobile 5)
thanks
flik Tag: SqlCE Tag: 67891
How to overcome the Microsoft bug in datagrid?
When I create and assign a new tablestyle to the datagrid (20 columns), then
scroll to the right, and then back to the left, I'm left with garbage in the
columns. This appears mostly as vertical lines slashing through the cell
contents. This issue has been posted both before and after VS2005 was
released but I've not seen any resolution. Does anyone have an answer? Tag: SqlCE Tag: 67889
Socket TCP/IP Close Doubt
Hi again,
At the project I have another problem, I read a lot of posts here about
this delay to close the socket TCP/IP, but I want know if don't have
any treak to close it immediately. At my case, I open the port that
will receive a lot of connections, before all the process I close it
with a .shutdown() and .close(), at the clients I close the stream and
another things, at this point ok, the problem appear when I want to
open the port again it give me the SocketException error numer 10048
that say "This port is in use.". And don't open it, but if I open the
port execute the process and close my application, they close the port
immediately and don't have this delay, it appear when I open the port
and don't close the application.
Anyone know if is possible, resolve this problem ?
Thanx Tag: SqlCE Tag: 67887
OpenNetCF & VB 2005
I thought I'd try the OpenNetCF framework system to see what extra
functions it has that I might be interested in. I download, unzipped and
ran the SDF 2.0 beta setup file. Now what? I can't find any kind of
"getting started" guide. Or any documentation at all other than a raw
help file that has no sample code in it.
The opennetcf.org web site doesn't even say what the framework does or
what you can do with it. Does it work with VS 2005? Doesn't say. Are
there any visual components in it? Doesn't say. When I start a new VB
project, is there supposed to be some kind of OpenCFNet template to
choose? I don't see one.
--
Kent Briggs, kbriggs@spamcop.net
Briggs Softworks, http://www.briggsoft.com Tag: SqlCE Tag: 67884
CE forms move
I need to prevent the forms on my CE app from moving. If I maximize them the
title bar doesn't show. I need it.
Is there any way to prevent the user from dragging the title bar and moving
the form out of the way?
Thanks Tag: SqlCE Tag: 67877
KeyPress simulate
Hello, everybody!
I would like to simulate keybord input to a TextBox. I have tried the
following method. Created a new custom MyTextBox that inherits TextBox. The
new component contains only one additional method DoKeyPress which calls
base OnKeyPress method. I've tried to simulate keybord input by calling this
new method. But nothing apppears on the TextBox. What's wrong?
Thanks in advance. Tag: SqlCE Tag: 67873
VS2005 deploys every debug CF system dlls
Hello,
I've a problem debugging a CF application with VS2005.
I've created a solution with an exe application, and two libs that this exe
referes. The application targets WinCE5.0 device, and I'm debugging it with
an axim that runs win mobile 2005 pocket pc.
When I start debugging the application, VS:
- compiles the application
- deploy EVERY TIME to Pocket (to application's folder) runtime files as:
"system.windows.forms.dll", "system.dll", "system.deployment.dll"
- deploy my application
- run and debug my application
Why this? It deploys every time every CF dll my application uses ! And it
takes a long :(
I've many other CF application with same configuration (target on CE5.0,
debug on axim) and it deploy only compiled application as it may.
I've checked on proprerties that system dlls are not referenced with "copy
local" setting, and I don't know what can be the problem.
Thanks Tag: SqlCE Tag: 67872
Putting images in the datagrid
VS2005 compact framework. I've seen very little on how to put images in the
datagrid. Has the situation changed any in VS2005? Any 3rd party components?
Any other ideas on this? Tag: SqlCE Tag: 67866
set Taskbar 'Always on Top' to FALSE via code?
can this be done? i want the Taskbar to remain visible and available. but
i want my application's form to be the topmost form....even over the Taskbar
area. can it be done programatically somehow so the User doesn't have to
navigate and toggle the Always-on-Top option? Tag: SqlCE Tag: 67865
Vb.Net IPAddress.Parse Slow ?
Hi everyone !
I use at my project the socket to make connections between Pda's and
now I make any tests to find where is the Pda that open the port to
receive the connection, I try the IPAddress.Parse but for my surprise
it's very slow to response, at my other test I resolve the DNS
Dns.Resolve and it's faster then the direct parse. Before make this
tests I wait that the Parse was be more and more faster than resolve
the DNS. My tests are correct, the parse at the VB.Net CF is very slow
?
[code]
{Parse}
...
Dim hostAdd As IPAddress = IPAddress.Parse("10.0.0." & ipRangeAtual)
...
[/code]
[code]
{Resolve}
...
hostEntry = Dns.Resolve(tempHost)
hostAdd = hostEntry.AddressList(0)
...
[/code]
[code]
{Other}
If Not hostAdd Is Nothing Then
Dim ipHost As IPEndPoint = New IPEndPoint(hostAdd, porta)
Dim socket As Socket
Try
socket = New Socket(AddressFamily.InterNetwork, SocketType.Stream,
Sockets.ProtocolType.Tcp)
Dim lingerOption As LingerOption = New LingerOption(True, 1)
socket.SetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.Linger, lingerOption)
Catch ex As Exception
status = False
End Try
[/code] Tag: SqlCE Tag: 67856
Cannot Add SQL Server 2005 Mobile to Pocket PC Project.
-- Installed --
Visual Studio 2005 (.Net 2.0)
Sql Server 2005 Express
Sql Server 2005 Mobile SDK
I'm trying to add a "SQL Mobile Database" component to my Smart Device
project through Visual Studio 2005.
On one machine this works no problem (my laptop), but on my development
machine I get an error saying:
"The data provider required to connect to the local data file could not
be found. The file will be added to the project but the typed DataSet
associated with the file will not be generated."
I've tried reinstalling the SDK with no change.
Any help would be appreciated.
Thanks,
Daniel. Tag: SqlCE Tag: 67853
VS2005 - Merge Rep Performance.
(Previously posted in the â??microsoft.public.sqlserver.ceâ?? newsgroup but got
no response.)
Ok, so I successfully converted my VS2003 CF application to VS2005 including
an update from SQL Server CE to SQL Server Mobile Edition and an update of
the merge replication (MR) agent from sqlcesa20.dll to sqlcesa30.dll. Both
the old application and itâ??s converted counterpart are hitting SQL server
2000 SP4 on the back end.
It appears to me that MR is slower on the VS2005 platform. The old app
would replicate in 8 sec. and the new app takes 13 seconds when hitting the
same servers. The SQL that produces the replicated tables is the same for
both replication setups and has been optimized.
I would like input from those who have implemented CF applications on the
VS2005 platform that use MR. Have you found it as robust as VS2003? How
have you found the performance? Is it faster if you hit SQL Server 2005 on
the back end, and slower if you are hitting SQL Server 2000? In hindsight
would you have made a different choice? Has MR improved or regressed with
the new version supported by VS2005?
Bill Tag: SqlCE Tag: 67852
Hi all
Where can I download the runtime distributible for SqlCE? I can't find it.