what change column width master-DETAIL table
Why in design time i dont change column in DataGrid in Relation
(detail) table
i do :
1. New SmartProject C# in VS2005
2. Add standart Northwind.sdf in Project
3. Add Customers Orders Emploeers and Products Table in project
4. Add in Form Customers DataGrid and (relation, after + on customer)
Orders table
5. in Property table Orders - edit TableStyles (collection) - Grid
Column Styles - change order column
BUT COLUMN dont change - as first position
Why?
(NETCF 2.0 VS2005 C#) Tag: TapiLib Tag: 72811
Rapiconfig error
Hi,
I am trying to use Remote Performance Monitor on my Windows CE 5.0
device. I followed the instructions given in Steven Pratschner's blog.
While following the extra step for Windows CE 5.0 device of
provisioning the device to run RPM, I go tan error. I created an xml
file I ran rpconfig from the desktop and got an error - Config failed
<0x80004005>: Unspecified error.
Can someone help?
Thanks,
Krupa Tag: TapiLib Tag: 72808
Resource files
Hai,
In my application, I am having the option for change language.
For this, I am using one text file as resoucefile. In that i am having
many constant string, which is used to display in the form.
How to read, particular string from that resource file. For eg.,
the file contains 3 strings.
Name : Hello
Location : Here Only
City : this city
If i want city means i have to read city only.
How to do this?
Regards,
Raju. Tag: TapiLib Tag: 72805
How can a thread communicate with the main thread?
I'm a newer in CF developing, now i'm confused about the multiplethread
programing. I Created a thread to monitor the powerOff keyEvent, and
inform the Mainthread if the event comes. but it does not work when i
use interface invoke.
so i want to know how can the moniter thread communicate with main
thread. Tag: TapiLib Tag: 72803
CeRunAppAtTime
Does anyone have an example of CeRunAppAtTime from C# or Vb.net ?
I'd perfer not to use opennetcf.
Thanks in advance
Dom Tag: TapiLib Tag: 72802
OS Version
Hi,
I'm trying to get the OS information from device in my application. I
try to use System.Environment class but both Win CE 4.2 and Pocket PC
2003 SE returns "WinCE 4.20.0"
Is there any way to find out if the OS is Pocket PC 2003 or Win CE?
Thanks Tag: TapiLib Tag: 72801
What is the font used by WM5 for contacs display ??
Does anybody know the font used by WM5 for displaying the contacts list view
? I am using SDF's ListBox2 and drawing the items myself. I do not like the
font that the control uses. I would like to use the same font that WM5 is
using.
Regards,
Venkat Tag: TapiLib Tag: 72798
Updating a device in the field? (Trickle deployments?)
Hi,
Some background on my solution:
Iâ??m developing a warehouse application using hand held scanners.
My application is .Net compact framework 2.0 running on windows mobile 5.
Using the CAB. With communication to my server using GPRS.
My problem is this:
I canâ??t bring the devices back into head office to perform bug fixes and
upgrades to my application. The devices will need to speak to a service that
sends them updates while out in the field. My application already makes use
of web services for communication with the device.
My question is:
I need a rock solid approach to updating my application the device.
Iâ??m assuming this is a common problem?
So is there a best practice or standard approach for solving this problem?
Many thank is advance!
Kind regards,
Andrew Stone. Tag: TapiLib Tag: 72795
Need a good VB Serial Comm Lib for VS2003 CE4.2 device.
Can anyone suggest a decent VB Serial Comm Library for VS2003 for a CE4.2
device. I have not worked with serial ports on my CE device and REALLY dont
want to get into learning and using the coredll serial API's.
If anyone can suggest something that works well, please point me in the
right direction.
Thanks!
--
Chris R.
Developer
Posera Software
Seattle Tag: TapiLib Tag: 72789
ANN: PopupMenu beta
We're starting a beta process for the PopupMenu component. Please see the
link for more information:
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=40f523df-4430-4195-97a9-269d1487ee39
--
Alex Yakhnin, Device Application Developer MVP
http://blog.opennetcf.org/ayakhnin Tag: TapiLib Tag: 72787
Can I use Panel Control's Text property?
Hi,all,
Can I use Panel control's Text property in .netcf 1.0? It is not visible in
design time, but in code windows I can use panel.text access it, but When
the app run on the emulator it does not work. Why? Pls Help me to resolve
it.
B.R.
Risen Tag: TapiLib Tag: 72778
debugging a wireless app while device is in cradle
Hello,
I have run into a problem. I am writing my wireless pocket pc application in
visual studio and trying to debug it when the device is in the cradle with
activesync, it loads the applications fine and starts the debugging, the
problem is that the device wireless card turns off when plugged into the
cradle with activesync.
How can I make it so the wireless interface does not turn off when connected
to the cradle?
Thanks,
Bryan Tag: TapiLib Tag: 72774
PInvoke from a class library
Cross-posting from the csharp newsgroup,
Are there any restrictions in using MarshalAs when p/invoke-ing from a class
library as opposed to a windows application in .NET CF 2.0?
The following code will not compile in a CF class library with the error
MarshalAs not found. The same code runs happily in both a Windows
Applicationa and a standard class library.
Is there a simple fix (other than pinvoking only from a .EXE file)?
using System.Runtime.InteropServices;
...
[DllImport("my.dll", CharSet = CharSet.Unicode)]
public static extern bool Test1([In, Out, MarshalAs UnmanagedType.U4)]
ref uint testValue)
Thanks,
Peter Tag: TapiLib Tag: 72772
V2 breaks app
Hi, i have an app that loads SplashScreen on startup. Thi is done via a
DrawImage call
on a bitmap in the Splash form's OnPaintBackgroundEvent.
The SplashForm itself is called via ShowDialog. In V1.0 in the Slpash Forms
load event
handler i call the Refresh method and this causes the OnPaintBackGround
event handler to
be called so it works fine.
With V2.0 i am finding the OnPaintbackGround event is not even firing so
the bitmap
can't be displayed. What has changed with this stuff in V2.0. i am using
exactly the same code. Tag: TapiLib Tag: 72771
Bitmap rotation CF2.0
Hi,
I want to make a rotation of a BitMap image with Compact Framework 2.0.
I succeeded in making the transformation pixel by pixel but it is very
slow. I read on the Internet there was in the CF 2.0 a new function
should allow this Bitmap transformation, but I don't find it and I
don't find any information above.
Does somebody knows it or knows how making a rotation of Bitmap?
(except pixel by pixel)
BR
Fabien Decret
Windows Embedded consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ Tag: TapiLib Tag: 72764
running applications twice
hi i have developed a pocket pc apps in vb.net vs 2003
for mobile 2003 and mobile 2005 editions
my problem is the user sometimes click the program Icon twice or thrice,
then the programm apps is running twice or thrice, which is not suggestable.
i want to stop multiple same program.
could pls help me to stop click twice or thrice for that program not to run.
how can i do it.
for mobile 2003, mobile 2005,
pls give the code in vb.net 2003
I want to check memory if any of the applications are running, and if so
> then inform the user and then bring that application to the front of the
> screen. Tag: TapiLib Tag: 72758
Simple assembly loading?
I've tried loading an assembly (from the application directory) via a simple
name only, but can't. I continually receive System.IO.IOException. The
basic code is below, it seems to be some sort of security issue
thanks,
-Ivan
Assembly a = null;
AssemblyName an = new AssemblyName();
an.Name = "MainWindow";
try
{
a = Assembly.Load(an);
//a = Assembly.LoadFrom("MainWindow.dll");
}
catch (System.IO.FileNotFoundException ex)
{
MessageBox.Show("FileNotFoundException");
}
catch (System.IO.IOException ex)
{
MessageBox.Show(ex.Message);
} Tag: TapiLib Tag: 72756
Simple Assembly Loading
I'm trying to load a simple assembly from the application directory, but
continually receive System.IO.IOException. I've tried many things, but to no
avail. The basic code is below... It seems like its a security issue?
thanks,
Ivan
Assembly a = null;
AssemblyName an = new AssemblyName();
an.Name = "MainWindow";
try
{
a = Assembly.Load(an);
}
catch (System.IO.FileNotFoundException ex)
{
MessageBox.Show("FileNotFoundException");
}
catch (System.IO.IOException ex)
{
MessageBox.Show(ex.Message);
} Tag: TapiLib Tag: 72755
Mobile 5.0 Wireless
So, I figure there must be some way to get the mobile 5.0 wireless
signal strength as an exact percentage, and I KNOW there is some way to
get the noise level. If anyone could help me out it would be greatly
appreciated, right now I've tried using the OpenNetCF stuff and have
gotten signal strength in other terms, just not an exact percentage,
i've also gotten the percentage in multiples of 20 from my the SDK for
my device, but I want percentage as a number 0-100% Can anyone help? Tag: TapiLib Tag: 72750
HTML parsing
Hi. I need to parser some html to get some data from there, in
particular betwen the headers tags. I wanted to use the XML parsers but
I have some errors. For example I want to parse the google page for
pda(www.google.com/pda), but I have an error. I need to work with html
instead of XML. Is there some way to do that?
Thank you Tag: TapiLib Tag: 72741
Floating Form
How do I make a floating form in NETcf? Like a MessageBox but with TextBoxes
etc.
I did some searches, but I'm not sure what to look for.
I got this entry from a NETcf FAQ:
- How do I make a floating form? It looks like forms are always full screen.
--- Top-level Forms with a border are always full screen and cannot be moved
or resized. Borderless or child forms can be moved and resized. Use the
following.
----- Form.BorderStyle = BorderStyle.None;
I'm using VS2005. There's no BorderStyle, bu there is a FormBorderStyle
which I set to None, but this didn't work.
Thanks for any help,
Steve Tag: TapiLib Tag: 72739
Mobile Software Client Factory
Has anyone successfully got this to install with VS.NET 2005 Pro?
I get a whole bunch of errors, mainly compilation errors each varying in
nature.
Regards
Simon. Tag: TapiLib Tag: 72733
highlight user tap row on datagrid
Hello,
All I want to do is highlight the row of a datagrid when ever a user taps
inside the grid. What am I doing wrong
hitinfo = DataGrid1.HitTest(e.X, e.Y)
currentrow = hitinfo.Row
If DataGrid1.CurrentRowIndex = currentrow Then
DataGrid1.CurrentRowIndex = System.Drawing.Color.Goldenrod
End If
Thanks
chuck Tag: TapiLib Tag: 72731
bindingsource
Hello guys,
I have a big problem.
I'm building a new project where is important to create a data table
starting from a
configuration file, so I tryed to use a DataTable component because each
data have different name (column) and if a different type (typeof) like byte,
UInt16, etc.
At the end of the configuration in my public dt I create a row, row[0] and
this is already to write and read new data.
Application is strongly connected with a communication protocol (CAN BUS)
where the data just tabled must be read or write, half & half, with a sync
time of 2ms.
I tryed to do it, just one data for check:
dt.Rows[0][@"PositionActualValue_Axe00"] = ppp++;"
this is in the communication sync thread. Application performances decline !!!
If I renunce at dynamic list building I could prepare an array with fixed
dimension,
for example 4096 Uint32 to exchange with field the data. Why ??
If I use a property value with same intentions of the dt to get it in my
finally
application in to a binding source that is very fast and the
"NotifyPropertyChanged(@"PositionActualValue_Axe00");" is perfect, I tryed to
exchange one data and working good, but I don't how to
transform a list like this:
private UInt32[] mProvaBinding = new UInt32[4096];
public UInt32 [] ProvaBinding
{
get
{
return mProvaBinding;
throw new System.NotImplementedException();
}
set
{
mProvaBinding = value;
NotifyPropertyChanged(@"ProvaBinding");
}
}
to a declaration for my final application where:
[final appl]
bindingSource1.Add(c1000_000_011); //object source declaration
axe_000.DataBindings.Add(@"Rp", bindingSource1, @"ProvaBinding[0]");
//property: how call right index
axe_001.DataBindings.Add(@"Rp", bindingSource1, @"ProvaBinding[1]");
axe_002.DataBindings.Add(@"Rp", bindingSource1, @"ProvaBinding[2]");
this declaration doesn't work!!!
Someone can open my mind.
Thanks fabbrit Tag: TapiLib Tag: 72730
displaying text in multiple colors in a TextBox
Hi,
I'm into PocketPC programming. Currently i'm developing a chat
application on PocketPC using C#. For my application, i need to display
text in multiple colors. As RichTextBox control is not available in
SmartDeviceApplications, i started browsing on the net. I downloaded
the trial version of RichInk and run the setup. I added the dll to the
toolbox and i'm
able to drag and drop the control on to my form. It compiled but its
throwing an
exception saying "An unhandled exception of type
'System.ApplicationException' occurred
in Intelliprog.Windows.Forms.RichInk.dll. The required unmanaged
Message.dll component
is either missing, not in an appropriate location, or is corrupt.
MissingMethodException". How do i come over with this? Or is there any
other way that could solve my problem? Please help! Tag: TapiLib Tag: 72728
Screen capture to byte array
Hi guys. How do I do a screen capture to byte array in compact
framework.
What I'm trying to do is to capture the screen content to byte array
and than create a bitmap from it and than save it to disk.
or If I could find some code to replace .net framework's
Image.FromHbitmap() functionality that would do too.
Thanks.. Tag: TapiLib Tag: 72727
how to retrieve wifi signal Strength in .net framework 2
i am new in smartphone dev.. could anyone show me how to retrieve wifi signal
from ms framework.
I was looking at OpenNETCF but it didn;t work..
thanks Tag: TapiLib Tag: 72720
webBrowser ALT+S
Hi,
I'm porting an application from VB 6 to C# compact framework 2.0 on an
iPAQ. I'm using the webBrowser to load a login page from a target
system and I see the page fine and can fill out the userID and
password.
The older application focused on the browser then used SendKeys to
provide it an ALT+S. The password and userid was then sent to the host
and login was accomplished. I can repeat this same behavior on the PC
using Internet Explorer alone with no custom code at all.
When I run on the iPAQ, I set focus, but there is no response from the
webBrowser component to the ALT+S and nothing goes back to the host.
(Please note that I've incorporated the SendKeys function from
OpenNetCF, but the webBrowser is the one provided by the compact
framework).
I haven't seen any hotkeys defined for IE as ALT+S. I don't see
anything defined in the HTML login page (unless I missed something).
I'm not super HTML literate at this time. Can anyone tell me what to
look into?
Thanks in Advance!
jrshedden Tag: TapiLib Tag: 72708
bluetooth application development
Hi, the landscape for developing BT applications on .net cf / pocketpc
seems a bit convoluted given all the different stack implementations,
application libraries (that seem to have specific dependencies on stack
implementations), and microsoft's poor API support / documentation for
development of BT apps using .net cf.
I am new to this, and what I want to do seems relatively simple, but I
wonder if someone might be able to point me in the right direction.
End Goal:
There is a proprietary piece of hardware which will interface with a
pocket pc device over bluetooth. I don't know what the bt stack, etc.
is on that proprietary hardware -- someone else is developing this. I
am developing the pocketpc side. On the pocket pc side, I have windows
mobile 5.0, which appears to have the Broadcom/Widcomm stack.
The messages that are exchanged are a proprietary network protocol. I
built an application that ping/pongs these messages over Wi-Fi using
UDP. Once I get the UDP packet, I strip out the payload, interpret the
proprietary header/data, etc. I want to do the same over Bluetooth,
but I'm not even sure where to start.
I tried looking at Peter Foot's 32feet bluetooth API, but it is not
compatible with my device.
I need to develop a client/server approach with the pocketpc talking to
my laptop and my laptop simulating the hardware device that will
eventually act as the server. So, I need to develop both sides of this
application. My laptop also has integrated Bluetooth with the
Broadcom/Widcomm stack.
Q: Do I need to buy some 3rd party libraries to accomplish this?
http://franson.com/bluetools/index.asp?ref=google
http://www.high-point.com/
Q: If the answer to that is no, can I just develop some way to set up
the serial profile over the COM port? I see this page:
http://msdn.microsoft.com/embedded/usewinemb/ce/sharedsrccode/west/de...
I downloaded that code/library -- documentation is nil. I am unsure
exactly how to use it or if it will indeed work both on pocket pc and
on windows xp.
Thanks in advance!
Regards,
Davis Tag: TapiLib Tag: 72706
selecting columns for a dataview
If I want to pull only a few fields from a data set into a view how do I do
it? I use the rowfilter in the dataview to filter the data but how do I get
the fields that I need?
chuck Tag: TapiLib Tag: 72698
Default namespace of assembly at runtime
Hi
I am probably overlooking something but
how do i retrieve the default namespace of an assembly at runtime?
Best regards,
-- Tag: TapiLib Tag: 72696
Need help for TAPI on Windows Mobile 5.0
Hello
I Need help for TAPI on Windows Mobile 5.0.
Actually i have to make an application that will make phone calls from
the device.
We are to use Windows Mobile 5.0.
I haven't any knowledge of TAPI.
Any kind of help will be appriciated.
Thanks in Advance
Thanks & Regards
Vikash Tag: TapiLib Tag: 72690
Why the code does not work?
Hi, I use VB.net 2003 to try develop Pocket PC App, but the code below does
not work:
"
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Button1.BackColor = Color.Red
End Sub
"
Why does it not work? Is it caused by .netcf can not support
Button.BackColor property?
B.R.
Risen Tag: TapiLib Tag: 72689
TabStop problem
Hi
It is possible to cycle through the controls on the Pocket PC using the
arrow keys instead of the Tab button. I have tried to copy this with my
application but if place a UserControl on the form with TabStop set to False
it will still get focus when using the arrow keys. It will not happen using
the Tab key. Is there a way to prevent this from happening?
Thanks
Gavin Tag: TapiLib Tag: 72675
Dev Tools, Advice requested? (powertoys?)
Hi,
I have been using the MS power toys for 2003 pocket pc and found them
useful. Howeverâ?¦ they donâ??t appear to be working on windows mobile 5.0?
Are upgraded power toys available? or in the pipeline?
If not, any suggestions on usefull development tools like remote display and
shell for mobile 5 would be much appreciated.
Or suggestions on any other usefull tools you seasoned mobile developers
feel you can live without.
;)
Cheers,
Stonie. Tag: TapiLib Tag: 72674
WakeOnLan?
How does one go about sending a wake on lan to a WinCE device from a c#
desktop framework app?
Using an ICOP x86 WinCE 5.0 BSP. The device coulod be on the Wireless
802.11 b/g or wired LAN.
Also running CF 2.0 and OpenNetCF on the device.
THX Tag: TapiLib Tag: 72673
hook keyboard event in form and his controls
hi.
how can i hook keyboard event, when user press the keyboard and the focus is
in the form OR any controls... Tag: TapiLib Tag: 72666
yet another invalid setup .ini file - please help
I'm trying to create a .MSI file for the first time. I'm using VS.NET
2003. I've gone through the great article at
http://www.codeproject.com/netcf/PackagingAndDeployingPPC.asp
and another one at codeproject related to adding SqlCE to your project,
since I needed to do that. I've read through several threads in the
discussions related to both of these articles about .ini files, and I'm
still getting the "invalid setup file" message from CeAppMgr. I'm
running CeAppMgr from the command line, from the directory where the
cab files are.
Here's my .ini file :
[CEAppManager]
Version = 1.0
Component = MyProject
[MyProject]
Description = A Test Project.
CabFiles =
WDI_PPC.ARM.CAB,WDI_PPC.ARMV4.CAB,WDI_PPC.MIPS.CAB,WDI_PPC.SH3.CAB,WDI_PPC.WCE420X86.CAB,WDI_PPC.X86.CAB
I've tried all kinds of things; I tried cutting out all the cab files
except the first one, because one post said that the ARM cab will cover
95% of the devices, and because sometimes there is an issue with the
line length. I changed the name of my cab files, because one thread
said that the 'Foo' part of the cab names 'Foo.ARM.CAB' has to be < 8
chars. The original article said there can't be any new lines between
the [MyProject] section definition and the Description = key line,
although this is confusing because all the samples I've seen look like
there is a new line there. I tried it w/out it anyway and that didn't
work either.
Please help. I've been working on this for hours and am going nuts Tag: TapiLib Tag: 72658
Need a help regarding sms handling in pocket pc
HI !!
I need the help in one of my current project which is about to finishe.
I'm using C# .net for the device pocketpc 2002. In my application I
need to handle an sms. Can anyone give me the logic or technique how
can I handle it. my requirement is:
when my application is not running and suddenly sms comes which will be
in a particular port. How can my application gets activate on
realization of sms... In other clear world is there anything like
Push-Registry in J2me in our C# compact frame work environment..
thanks in advance
Regards
Navin Salunke Tag: TapiLib Tag: 72657
Dynamic Assembly Loading
I'm currently recieving an IOException when trying to dynamically load a DLL
from my application directory. What specifics do I need to specify (i.e.
version, PublicKey, Culture, etc...) to successfully load the file?
thanks,
Ivan Tag: TapiLib Tag: 72655
How to mute key clicks
Hi there,
I want to mute the key-clicks on a Windows CE device programmatically.
I didn't find any appropriate API in coredll.dll that does this. Does
anybody has any ideas on how I can do this?
I am working on a C# application on CF 2.0 for Windows CE 5.0 device.
Thanks,
Krupa Tag: TapiLib Tag: 72646
Consuming Web Service from Mobile 5.0
Hi All,
I've developed a stand alone application in VS 2005 for Windows Mobile
5.0. In this I'm trying to connect to Web service to get some data. But I'm
unable to connect to web service from Mobile 5.0 actual device. I'm getting
exception as "System.Net.WebException". But I'm able to access the same URL
from the Mobile Browser. The same application works fine 2003 Emulator. Is
there any setting required for VS2005 or Windows Mobile 5.0 net work settings. Tag: TapiLib Tag: 72643