How to implement DocView architecture in .NetCF
Hi,
I'm just starting to work with the .NetCF. Is there an easy way to implement
a DocView- similar architecture in CF?
TIA,
Bjoern Tag: How to call programaticaly an existing dialup connection Tag: 20104
Merge Replication Done Event ???
I have replications between SQL Server and SQL Server CE on iPaq devices.
I need to catch event on the SQL Server, when the merge replication has been
done.
I need run some tasks each time after merge replication.
How to do it? Any trigger in sys tables?
Thanks
Mike Tag: How to call programaticaly an existing dialup connection Tag: 20103
Device ID on a PPC 2000
Hello,
I'm currently using some iPaq 3650 on a client deployment, most of these
iPaqs have PPC2000 , is there any way to get the device ID for them, or any
other form of uniquely idenfity them?
I know that for PPC2002/3 it's required but IIRC it was not in 2000
Thank in advance,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation Tag: How to call programaticaly an existing dialup connection Tag: 20092
DateTimePicker - Where is it?
Is there no DateTimePicker controll in CF. If no, does anyone have a tip to
where I can find one?
Thore Berntsen
Norway Tag: How to call programaticaly an existing dialup connection Tag: 20088
Inserting RAS Entry
Im having a bad time working with RAS APIs. Im working in a personal Library
to implement RAS funcionality.
Iv managed to solve most of my needs, but for now...Im stucked with a
NotSupportedException with EnumDevices...
Well, anyway, i just need to insert a RAS Entry in the RAS list...
Anyone can help? Tag: How to call programaticaly an existing dialup connection Tag: 20084
Is this a WinCE.Net 4.2 & ActiveSync 3.7.1 Bug?
Hi
I'm testing two rugged handhelds that have both recently released Windows CE.Net 4.2 versions. My vb.net application uses XML files as the datasource which are synchronised to the desktop using ActiveSync. I've noticed what I feel is a synchronisation bug relating to both Windows CE.Net 4.2 and ActiveSync 3.7.1
Here's the scenario
1. After creating a partnership that also includes the synchronisation of files, copy some files into your "My Documents" folder and watch them being synchronised to your handheld
2. Undock your handheld and then redock it
What I've noticed on WindowsCE.Net 4.2 is that ActiveSync deletes the desktop versions of the synchronised files and its associated folders. Even if you edit the files on the handheld and save them, they will not be synchronised back to the desktop
Has anyone experienced this bug before? Surely the desktop versions of the synchronised files should be updated not deleted. At least that's what's always happened in previous versions including Windows CE.Net 4.1
Many Thank
Vinc Tag: How to call programaticaly an existing dialup connection Tag: 20078
Set other language
Hello,
how i can use other recource files for multilanguage applications?
I have tried it with Threading.Thread.CurrentThread.CultureInfo
but this property does not supported under CF.
How i can change the language?
Thanks
Volker Tag: How to call programaticaly an existing dialup connection Tag: 20074
Create own Controls
Hello,
is there a possibilty to create own controls like
Public Class MyTextBox
Inherits System.Windows.Forms.TextBox
End Class
under windows?
I have tried to create own TextBox but i cant use it
on my Form. The Control is disabled on my TextBox.
Greetings
René Tag: How to call programaticaly an existing dialup connection Tag: 20072
Big database application + Emulation
I have to start develop application in .NET technology. I consider VC# or
VB.
I've got experience in eMbedded technology: eVC i eVB. I'm using Pocket PC
Emulation (2000) to test all application. It's because I don't have to
inastall all DLL files, all ActiveX Controls when I want to test something.
I can simply copy files to and from emulation (using File Explorer).
I try to use Pocket PC 2002 emulation, but it wasn't easy and nice... It's
why:
1. problem with file coping to and from emulation (I have to use Windows CE
Remote File Viewer, which is not effective way...),
2. problem with DLL and ActiveX Controls - "Turn off Emulator" clear all of
then (Hard Reset).
I need some tips and tricks, which help me to develop (using Pocket PC 2003
/ Pocket PC 2002 Emulation) big application (data collection) with ActiveX
Controls, and which requires a few DLL libraries.
Thanks,
Tom Tag: How to call programaticaly an existing dialup connection Tag: 20071
DefaultButton
Hi.
Is there a way to make a certain button on a form (OK Button) the default
button as you can do in a regular windows application with .NET?
I would like to make Enter click invoke this button by default or do you
have to write kode capturing Enter click and fire a buttonClick event on the
desired button?
//Regards
<P> Tag: How to call programaticaly an existing dialup connection Tag: 20070
ODBC for CF ?
is there anyway/package ? to have ODBC support for a compact framework based
application ?
any of you knows about any such solutions ?
whether free or commercial ? Tag: How to call programaticaly an existing dialup connection Tag: 20066
MSMQ - WIndows CE
We are planning to use MSMQ for store and forward mechanisim on our Pocket
PC 2003. We are using the .NET as our development environment. .NET does
not allow us to use the msmq.dll stating that it is an assmebly not
recognised by .NET. We were advised to use platform invocation services.
Looks like a lot of work. My question is, is there a simpler way to do
this.
Need help ASAP!
thank you Tag: How to call programaticaly an existing dialup connection Tag: 20057
A situation you probably haven't see to often... Deleting application
Hello All,
I am using a pda with PPC 2002 Phone Edition. I have a application that I
got from "a friend of ours" and the install put it in the "\Windows\Startup"
folder.... it is NOT in "Settings\System\Memory" so I can end the process..
I try to remove the application and it says "i don't have permission or the
application is currently running"... I do not want to hard reset the
device....
Any suggestions on how to Stop the process so I can safely remove the app
without Hard reseting the device??
thanks in advance,
regards,
Jay Tag: How to call programaticaly an existing dialup connection Tag: 20056
TabControl page order
Hello all,
I am fighting a very aggravating problem in my VB.NET compact framework app.
I have a tab control on a form. I set up the pages and put them in the
order I like. It all works great.
Then for some reason at random times Visual Studio decides to scramble the
order! For the life of me I can't figure out a pattern. It is driving me
bonkers! It all works fine - the tabs are just in a random order. I have
no code anywhere that should change the order. I even tried going into the
InitializeComponent routine and setting the order there but Visual Studio
just comes along and wipes it out.
Any suggestions??? Is there something I can put in a Page Load so I can set
the order then??
Thanks in advance,
Bob Tag: How to call programaticaly an existing dialup connection Tag: 20050
build warning with SP2
I get the following message when building & deploying my CF app: Files in the package 'netcf.all.wce4.x86.cab' are more recent on the device than on the development computer. Consider upgrading to the latest version. Files affected are: ..
the file list includes all of the CF system & windows files... any info?
thanks Tag: How to call programaticaly an existing dialup connection Tag: 20049
.NET stops working after installing cyncware products
Hi all,
I am a .NET developer and have .NET applications I run on my Pocket PCs all
the time. I recently downloaded software from a company called cyncware (I
tried Time & Expenses and Pocket Converter). After installing these apps my
.NET apps stop working. I mean nothing happens at all when I click on the
application's icon.
I also tried to run my own app from Visual Studio in debug mode. Visual
Studio was unable to deploy to the device. This software must be deleting
or modifying a very important file or changing the registry. I have not
been able to identify the problem area. Cyncware products appear to be
written in embedded Visual Basic because it installs the VB runtimes on my
device.
The only way to get .NET apps working again is to do a hard reset.
Does anyone have products from this company and experience the same problem?
Does anyone have a suggestion on where I can start to look for corruption?
What files do Visual Studio need on the device to run in debug mode?
Thanks Victor Tag: How to call programaticaly an existing dialup connection Tag: 20047
SIP disabled after showing maximized form
After showing a maximized form the SIP (InputPanel) on the calling
form (which has a MainMenu) is not displayed when tapped. Putting on a
breakpoint I notice that EnabledChanged for InputPanel1 is called 2 or
3 times with a value of 'Disabled' each time. There is no problem on
the Emulator, just on the real device. Anyone know what's
going on?
Here's the code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim form2m As New Form2
form2m.ShowDialog()
End Sub
Private Sub InputPanel1_EnabledChanged(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles InputPanel1.EnabledChanged
If InputPanel1.Enabled Then
MsgBox("Enabled")
Else
MsgBox("Disabled")
End If
End Sub
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
End Sub
TIA, Eric Tag: How to call programaticaly an existing dialup connection Tag: 20043
Release SQL CE with the project cab file
Hi,
is it possible to release the sql server ce with my project.cab file.
So that the user has to install only one cab file instead of
sqlce.ppc.arm.cab and myProject.cab? Tag: How to call programaticaly an existing dialup connection Tag: 20038
Fast BMP loading (bypassing getPixel/setPixel)
I know how to do this for saving (using a little low-level p/invoke trickery to get at the underlying HBITMAP data), but not sure how to do it for loading. Seems to come down to this issue
How does one create a Bitmap object that contains a DIBSECTION internally without using the Bitmap(string) constructor?
Using Bitmap(int,int) creates an object that uses DDBs instead, which the HBITMAP cannot be obtained, and hence is useless. Tag: How to call programaticaly an existing dialup connection Tag: 20035
Set system clock on Pocket PC
Can someone tell me how one can set system clock
programmatically on Pocket PC? Is there anyway to sync
clock between desktop and Pocket PC through ActiveSync?
I have a client/server application that the client runs on
PocketPC and the server runs on Windows 2000 Server. The
system clock on PocketPC appears to draft. I need to sync
the clock on the PocketPC with the clock on the server.
Any help would be appreciated. The program is written in
C# under VS.NET Tag: How to call programaticaly an existing dialup connection Tag: 20030
sqlce.dev.ppc3.arm.CAB
can someone confirm that this file is not necessary to run sqlce on a
device?
I am assuming that this file [sqlce.dev.ppc3.arm.CAB] is only the query
analyser type tool and that I can run all the sqlce features from my app
without installing it.
Is this correct?
Regards,
éric Tag: How to call programaticaly an existing dialup connection Tag: 20027
ANN: RemoteSQLCe - Full control of SqlServerCE from your desktop
Hi,
GUI Innovations are pleased to announce the launch of RemoteSQLCe, a
'desktop manager' for SqlServerCE. There are 2 portions, 1 for the PC and
one for the Pocket PC. Either can act as a client or a server,so you can use
it thru activesync as a client, or wireless as either. So, you get full
management of SqlServerCe from your desktop.
With RemoteSQLCe, from your desktop PC you can...
Create a SqlServerCE database
Drop a database
Examine the database structure
Compact a database
Create a table
Drop a table
Add columns
Drop columns
Add an index
Drop an index
Run SQL queries
Load data from a file
Execute batches of SQL statements
Load tables from CSV files
Convert and/or populate from a desktop database to a SqlServerCE database
For more details, and a full 30-day evaluation copy, visit
http://www.gui-innovations.com/html/remotesqlce.html
Thanks
Pete Vickers - GUI Innovations Tag: How to call programaticaly an existing dialup connection Tag: 20026
Process.Start under CF
Hello,
how i can start other applications like process.start under Windows?
I would like to open an winword file. Is there a possiblity to use this
file as parameter?
Cheers
René Tag: How to call programaticaly an existing dialup connection Tag: 20022
Scripting in .net CF
Is it possible to evaluate expressions in VB.Net / VC#.net in the .net
Compact Framework? We have a requirement to evaluate user-defined
expressions on PocketPC devices. The expressions would contain references
to methods/properties that are defined as well as built-in
methods/properties.
We currently do this with an eVB application with a home-grown expression
evaluation dll and we need to port this application over to .net CF.
Any information regarding this would be greatly appreciated.
Robert Regnell Tag: How to call programaticaly an existing dialup connection Tag: 20021
Emulator Demo Packaging
I would like to create a downloadable package for my demo that includes the
PPC 2003 emulator, with no configuration for the end user.
I have just started looking at this and would appreciate and tips, tricks,
etc.. that anyone has.
(To date, I have only used the emulator with VS and Remote Spy, so I am not
highly familiar with its configuration.) Tag: How to call programaticaly an existing dialup connection Tag: 20015
Quick Threads question
Hi al
Could someone tell me what they think of this- I want to have two threads running; one on the main application thread and one as a background worker thread. If I spawn the worker thread from the main application thread as shown below, where is the best place to put the code for the main application thread? I could fire it from a timer I guess but I want this code to run in a constant loop, and to start immediately. It needs no interaction from the user. Can I put the code at the bottom of the New() method, after spawning the worker, as shown below or will this cause problems
Thanks for any hel
And
Public Sub New(
MyBase.New(
Tr
'This call is required by the Windows Form Designer
InitializeComponent(
Catch ex As Exceptio
Sto
End Tr
Me.thr_one = New Thread(New ThreadStart(AddressOf Me.Thread_one)
closeRequested = Fals
controlInvoker = New ControlInvoker(Me
Me.thr_one.Priority = ThreadPriority.AboveNorma
Me.thr_one.Start(
Me.threadRunning = Tru
While Not (end_requested
' <<<<<<<< rest of code, to process in a loop >>>>>>>>>
Loo
End Sub Tag: How to call programaticaly an existing dialup connection Tag: 20014
Some basic questions on using threads.
Hi.
I have 3 questions. For the short version: skip to the end of the post
For those of you who has some time over: Here comes the long version of the questions, with some background.
Iâ??ve done a program that sends a small message on the comport and then receives a large chunk of data. When Iâ??ve received my data I want to let the user start fiddling with it. But at the same time Iâ??d like to start a little code running in the background. This new code should send 4 small messages/second on the comport and receive a value each time, which Iâ??d like to display to the user while heâ??s fiddling with the other data. This seems to me like a task for multiple threads, right? (Havenâ??t used â??em beforeâ?¦)
Since I need other tasks to run at the same time, I guess I canâ??t just use a timer. I had an idea of having a thread running a separate class with the background program. The thread could run the code and then sleep for 250 ms. Does that seem like the right way to go about? Although that wouldnâ??t make the 250 ms interval very accurate, since it would depend on the execution time of the code. How would I get the code to start running with exact interval?
Another problem I have is that I need to call procedures in other classes. As far as I can understand this demands that the called sub is public and shared, but then I get problems since that sub often refers to instance members of that class (such as controls) and even properties of other instanced classes. I could perhaps try to make everything shared, but that doesnâ??t seem like a good way to solve things. Or is it the only way?
This also applies to my â??background codeâ??, since Iâ??d like it to call a procedure in another class (the code handling communication with the comport). But can one do that with a separate thread? Do I need to rewrite that code inside the thread?
In short:
1. How to run code at exact intervals (using threads)?
2. Is it possible to somehow use instanced members when calling a sub in another class?
3. Can a thread call procedures outside of its class?
Iâ??d be very thankful for some help on any of my questions.
/D Tag: How to call programaticaly an existing dialup connection Tag: 20011
Callback functions
I created a DLL in Visual Embedded C++ 3.0, to use with .NET. It works with
callback functions.
But, on the running occurs the exception 'NotSupported'. The CF don't
support callback functions ?
What can I do ?
Thanx for all. Sorry about my english, isn't very good.
Luciano.
MyDLL.CPP
=========
#include "stdafx.h"
#include "MyDLL.h"
typedef int (__stdcall * FunctionCallback)( int i );
extern "C" __declspec(dllexport) int __stdcall FunctionDLL( FunctionCallback
pFunc ) {
return pFunc( 123 );
}
TestDLL.CS
==========
using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices;
using System.Reflection;
using System.IO;
using System.Text;
namespace TestDLL
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.MainMenu mainMenu1;
public Form1()
{
InitializeComponent();
}
protected override void Dispose( bool disposing )
{
base.Dispose( disposing );
}
#region Windows Form Designer generated code
private void InitializeComponent()
{
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.button1 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.button1.Location = new System.Drawing.Point(8, 8);
this.button1.Text = "button1";
this.button1.Click += new
System.EventHandler(this.button1_Click);
this.label1.Location = new System.Drawing.Point(16, 64);
this.label1.Size = new System.Drawing.Size(216, 80);
this.label1.Text = "label1";
this.Controls.Add(this.label1);
this.Controls.Add(this.button1);
this.Menu = this.mainMenu1;
this.Text = "Form1";
}
#endregion
// typedef int (__stdcall * FunctionCallback)( int i );
public delegate int FunctionCallback( int i );
[DllImport("DLL.DLL")]
public static extern int FunctionDLL( FunctionCallback pFunc );
public static void Main()
{
Application.Run(new Form1());
}
public delegate int DelegateFunction( int iVal );
public int MyFunction( int iVal ) {
return iVal + 456;
}
private void button1_Click(object sender, System.EventArgs e)
{
int iRet;
FunctionCallback pFunc = new FunctionCallback( MyFunction );
try
{
iRet = FunctionDLL( pFunc ); // <<<<<<<<<
ExceptionNotSupported
}
catch( NotSupportedException E )
{
label1.Text = E.Message;
return;
}
}
}
} Tag: How to call programaticaly an existing dialup connection Tag: 20010
How to use TCP/IP Sockets with a WLAN (PCMCIA Card)
Hi,
how can a use a TCP/IP Listener within a compact framework application, when
connected to a WLAN. In the compact framework there is the assembly
System.Net.IrDA, which has a listener object included, but when connected to
a WLAN via a pcmcia card, do I have to use the same .NET Class Library?
Thanks for help
Martina Tag: How to call programaticaly an existing dialup connection Tag: 20007
IPC -- interprocess communcation
Hi
How can I obtain IPC in .net framework
Catalin Tag: How to call programaticaly an existing dialup connection Tag: 20004
A simple custom control with design support
I'm trying to make a Textbox with a FocusColor property...When the focus
changes to the
control, the backcolor must change automaticly to the color setted by the
focusColor property.
Very simple, the control works fine when creating it dynamicly from code.
My aim is to add design functionality, so I can use it from the Visual
Studio .Net toolbox.
When I compile my code, no errors are reproted and Visual studio leaves a
dll in the release directory. (cdaTextBox.dll)
Even making a design time dll succeeded (design.cdaTextBox.dll). To make
such a dll, I use the command line compiler csc.exe from within a batch file
'Build.bat'. Csc.exe does not report any errors.
But, and this is my problem, when I try to add the control to the toolbox,
Visual Studio fires an error:
There are no components in 'C:\Program Files\Microsoft Visual Studio
.NET 2003\CompactFrameworkSDK\v1.0.5000
\Windows CE\Designer\design.cdaTextBox.dll' That can be placed on the
toolbox.
Can someone tell me what I have to change to my code to make it working?
This is the batchfile code (it runs well):
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\csc.exe /noconfig
/define:NETCFDESIGNTIME /target:library /out:design.cdaTextBox.dll
cdaTextBox.cs AssemblyInfo.cs /res:DatAction.Controls.cdaTextBox.bmp
/r:"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Designer\System.CF.Design.dll"
/r:"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Designer\System.CF.Windows.Forms.dll" /r:"C:\Program Files\Microsoft
Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Designer\System.CF.Drawing.dll" /r:System.Windows.Forms.dll
/r:System.Drawing.dll /r:System.dll /r:System.XML.dll /r:System.Data.dll
/nowarn:1595 >z.txt
This is My C# code:
using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
using System.ComponentModel;
#if NETCFDESIGNTIME
[assembly: System.CF.Design.RuntimeAssemblyAttribute("PictureButton,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
#endif
namespace Company.Controls
{
class cdaTextBox: System.Windows.Forms.TextBox
{
#region "Private data members"
private System.Drawing.Color mFocusColor = System.Drawing.Color.Blue;
private System.Drawing.Color mFocusTextColor =
System.Drawing.Color.Yellow;
private System.Drawing.Color mOriginalColor;
private System.Drawing.Color mOrinalTextColor;
#endregion
#region "Properties!"
#if NETCFDESIGNTIME
[
System.ComponentModel.Category("Colours"),
System.ComponentModel.Description("This our colours")
]
#endif
public System.Drawing.Color FocusColor
{
get
{
return mFocusColor;
}
set
{
mFocusColor=value;
}
}
#if NETCFDESIGNTIME
[
System.ComponentModel.Category("Colours"),
System.ComponentModel.Description("This our colours")
]
#endif
public System.Drawing.Color FocusTextColor
{
get
{
return mFocusTextColor;
}
set
{
mFocusTextColor=value;
}
}
#endregion
protected override void OnGotFocus(System.EventArgs e)
{
mOriginalColor = this.BackColor;
mOrinalTextColor = this.ForeColor;
this.BackColor = mFocusColor;
this.ForeColor = mFocusTextColor;
}
protected override void OnLostFocus(System.EventArgs e)
{
this.BackColor = mOriginalColor;
this.ForeColor = mOrinalTextColor;
}
}
} Tag: How to call programaticaly an existing dialup connection Tag: 20000
Save BMP
Hi,
I have created a .BMP using Bitmap object of dot NET. This image might
be displayed in image box but I want to save this BMP file as well. If
some one have done this thing, please provide me the code.
Best Regards,
Muhammad Arif Tag: How to call programaticaly an existing dialup connection Tag: 19993
free Progressbar and Colorpicker
If someone needs that: http://www.playseven.com/11620/p7_Controls.html
Progressbar und Colorpicker - .Net Controls (dll's) developed for Smart
Devices (PocketPC, SmartPhone) with 100% Compact Framework VB.Net Code.
p7_ProgressBar supports:
a.. horizontal(l2r/r2l) / vertical(b2t/t2b) View
b.. Colorgradient
c.. 2 Designviews (Solid rectangle)
d.. supports also the big Framework
p7_ColorPicker, a small Control for colorPicking.
Democode in VB:net is included
personal use is free, otherwise a donation is pleased
If there are any Bugs please mail me.
--
-> Milosz Weckowski
www.playseven.com
mailto:mw@playseven.com
ICQ Number: 84867613
enhanced Progressbar and a tiny Colorpicker for the Compact Framwork for
free:
http://www.playseven.com/11620/p7_Controls.html Tag: How to call programaticaly an existing dialup connection Tag: 19976
folder image in tree view
I'm trying to put a folder image in a tree view (instead of the plus/minus
symbol) in smartphone.
When I add the tree nodes collection there is a dropdown to select an image.
But this dropdown is always disabled and I can't select anything.
Any ideas?
Thanks. Tag: How to call programaticaly an existing dialup connection Tag: 19973
SQL Server CE Design Question
Hi
I am writing an application that uses SQL Server CE with replication and C#. I have a few questions about the design of my database. I have created all my lookup tables to use integer identity primary keys and I was trying to use Guids as primary keys for the main tables that get used for adding/deleting records.
Originally I had no problem by setting the PK of the table as a guid and no other properties, but this in some respects was not good enough as the replication engine of SQL Server 2000 the added the 'rowguid' column to my tables, making me think whatâ??s the point? I went back and had a look at why and saw the 'rowguid' columns had an default value of newid() and the rowGUID set to true.
So I changed my tables to have these properties and everything seemed to work fine until in my app I wanted to add records.
Firstly the automatically generated guid is a FK for other tables, so how do I find this value out. I used the cheap method of setting another (non PK) field to an unrealistic value then using the query SELECT * Table WHERE date = 1 or similar. Is there a better way
Then after adding the record I need to update it and upon trying that I get the message "Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information". After some reading up on that message, which seems common for any OLE database, I tried adding in the necessary schema so the UpdateCommand will be generated by adding in the PrimaryKey value of the DataTable and then also my using the FillSchema() method of my DataAdapter.
What I am really trying to ask is that am I going about this the right way. Since my application is going to be used on many devices I found that using a PK of type integer is not good enough. I then went to GUID's and had luck originally, however SQL Server added the rowguid column. So I changed the properties to what seemed to be correct and now I have a lot of problems. What is the recommended design
Thanks In advance for any help! Tag: How to call programaticaly an existing dialup connection Tag: 19964
Assembly.LoadFrom(file) problem
Hi!
I'm trying to load an assembly by using:
Assembly assembly = Assembly.LoadFrom(path + line);
where
string path =
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetModules()[0].FullyQ
ualifiedName)+ "\\";
I've used the messagebox to see wheter path+line is correct and it is!
I manually copy the assembly into the same directory as the application. Any
ideas?
Why does this exception occur?
thanks,
saso Tag: How to call programaticaly an existing dialup connection Tag: 19957
Data truncation??
Hi all,
Everytime I enter data into a SQL CE database using a windows form, the
entered data gets truncated.
When I view it using the Query analyser, I only see 6 characters. This only
happens with the nvarchar column types.
Is the data really getting truncated or is the query analyser set to display
only the first characters of the column?
SSP Tag: How to call programaticaly an existing dialup connection Tag: 19956
datetime column problem
Hi all,
I am trying to insert a date into the datetime column of a SQL CE database
and it behaves in a very strange way.
Whenever I try to insert the date such as "4/3/1975", the date that gets
entered in the column looks like the following when view using the query
analyser:
2004-03-04 00:00:00
Here are is code that I am using:
...
cmd.Parameters["@cDOB"].Value =
Convert.ToDateTime(cDOB_tb.Text).ToShortDateString();
...
where cDOB_tb.Text is 4/3/1975
Any ideas?
SSP Tag: How to call programaticaly an existing dialup connection Tag: 19955
Prevent auto-deletion of cab file
Is it possible to prevent a cab file from being auto-deleted after it
is clicked and installed? If so, how? The MS FAQ states that making
it read-only should prevent this but I have done that and it still is
removed after it is run.
Thanks. Tag: How to call programaticaly an existing dialup connection Tag: 19953
Control Array
Hello All
Is it possible to create a control array (i.e. button control array) in vb.net 2003 targeting compact framework.net
Studio: VS 2003.ne
Platform ce.net
Language VB.ne
I will appreciate any response
Thanks Tag: How to call programaticaly an existing dialup connection Tag: 19949
XML XPath Query compact framework
Hello all,
Probably a really simple question, but I'm trying to write some code in
VB.net using the compact framework, that will load in SQL statements from an
XML file before passing them to a query processor.
What are the best ways to do this?
I've attached the xml file to give some context. I need a way of xpathing
the relevant sql element out of the XML and returning it as a string. How
are XPath node selections done in the CF? Is it supported in the xmlreader
or xmldocument classes? Help!
Also, if anyone knows a way in which I could use some xsl to transform the
parameter values into the SQL I'd really appreciate hearing it!
Thanks in advance!
begin 666 SecurityAgent.xml
M/#]X;6P@=F5R<VEO;CTB,2XP(B!E;F-O9&EN9STB=71F+3@B(#\^#0H\<75E
M<FEE<SX-"@D\<75E<GD@;F%M93TB=&5S=&QO9VEN(CX-"@D)/'!A<F%M971E
M<G,^#0H)"0D\<&%R86T@:60](C$B(&YA;64](G5S97)N86UE(CX\+W!A<F%M
M/@T*"0D)/'!A<F%M(&ED/2(R(B!N86UE/2)P87-S=V]R9"(^/"]P87)A;3X-
M"@D)/"]P87)A;65T97)S/@T*"0D\<W%L/@T*"0D\+W-Q;#X-"@D\+W%U97)Y
M/@T*"3QQ=65R>2!N86UE/2)S971P87-S=V]R9"(^#0H)"3QP87)A;65T97)S
M/@T*"0D)/'!A<F%M(&ED/2(Q(B!N86UE/2)U<V5R;F%M92(^/"]P87)A;3X-
M"@D)"3QP87)A;2!I9#TB,B(@;F%M93TB<&%S<W=O<F0B/CPO<&%R86T^#0H)
M"3PO<&%R86UE=&5R<SX-"@D)/'-Q;#X-"@D)/"]S<6P^#0H)/"]Q=65R>3X-
+"CPO<75E<FEE<SX`
`
end Tag: How to call programaticaly an existing dialup connection Tag: 19943
How can I send email with VB.NET from Windows Mobile 2003
Hello,
I have make prozedur to send emails from VB.NET 2003 - winforms-application.
I works well. But how can I do the same for an project for mobile devices ?
The reference for the system.web.dll could not be set in a project for
mobile device.
How can I send email with VB.NET from Windows Mobile 2003 ?
Thank you for response
regards
Wolfgang Schwarz
34582 Borken/Germany Tag: How to call programaticaly an existing dialup connection Tag: 19942
SQL Server 2000 Connection
I couldn't manage to connect to Sql Server 2000 within a compact framework
application. i want directly connect to server, not using Sql Server CE. Do
you have such sample code?
Thanks Tag: How to call programaticaly an existing dialup connection Tag: 19941
CallerID Using C# and CF
Hi,
I wanted to know how can i get the CallerID of the incoming call using C#
and .net cf? Is there a way? or is there a special notification when
there's a missed call?
Thanks
Mustafa Tag: How to call programaticaly an existing dialup connection Tag: 19936
Query String Arguments to a client application when opening app from Pocket IE
I'd be grateful for a little help on this!
I'm invoking an application on the PPC from Pocket IE
using
<a href="file:///Program Files\App1\App1.exe?name=bob"
>Activate App...</a>
I want to the application to be able to pick up the url
arguments, but am having a little difficulty!
I've tried the usual approach to command line arguments -
no success.
I thought I'd found the answer with an article by Chris
Sells which included:
AppDomain domain = AppDomain.getCurrentDomain;
object obj = domain.GetData("APP_LAUNCH_URL");
string name=(obj != null ? obj.ToString() :"");
Sadly, this isn't supported in the Compact Framework.
Can anyone point me in the right direction?
Thanks,
Ben Tag: How to call programaticaly an existing dialup connection Tag: 19935
Query String arguments to .NET CF app...
I'd be grateful for a little help on this!
I'm invoking an application on the PPC from the browser
using
<a href="file:///Program Files\App1\App1.exe?name=bob"
>Activate App...</a>
I want to the application to be able to pick up the url
arguments, but am having a little difficulty!
I've tried the usual approach to command line arguments -
no success.
I thought I'd found the answer with an article by Chris
Sells which included:
AppDomain domain = AppDomain.getCurrentDomain;
object obj = domain.GetData("APP_LAUNCH_URL");
string name=(obj != null ? obj.ToString() :"");
Sadly, this isn't supported in the Compact Framework.
Can anyone point me in the right direction?
Thanks,
Bob Tag: How to call programaticaly an existing dialup connection Tag: 19934
Agressive disposing
Hi,
As Pocket PC's are (supposed to be) resource-restricted devices, I
thought it would be wise to implement an agressive disposing strategy,
i.e. add IDisposable to every class, and call Dispose() on everything.
But I don't know exactly HOW agressive I need to be ;-)
I.e.:
- If I derive from Panel or Form, and a child controls
(Me.Controls.Add...), do I need to remove and dispose those as well, or
do Panels and Forms somehow dispose of their children themselves?
- If I add objects to a Collection, do I need to enumerate over the
collection and call Dispose() on every object, or should a
Collection.Clear() accomplish the same thing?
- If I add a handler (AddHandler obj.event, delegate), do I need to
remove the handler myself when I want to dispose of the object?
I assumed that all the above would be taken care of automatically by the
garbage collector, but some of my objects start threads, and these
threads are stopped in their Dispose() method (via a simple
stopThreadRequested boolean flag). Yet if I quit my application, these
threads appear to still be running, so it looks as if my Dispose()
methods aren't called automatically...
Regards,
Elisa Tag: How to call programaticaly an existing dialup connection Tag: 19931
Deploy content to specific folder
Hi,
In Visual Studio .NET 2003, my Solutions Explorer window, I have the
following tree:
MyProject
|->img
| |->MyImage1.bmp
| |->MyImage2.bmp
|->MyClass.vb
However, if I deploy, everything is dumped in the same folder
(MyProject). How do I tell VS to deploy the files with the folder
structure intact?
Regards,
Elisa Tag: How to call programaticaly an existing dialup connection Tag: 19930
.NET CF extremely buggy!
cmd.Parameters.Add(new SqlCeParameter("@cDateReg", DbType.Date));
cmd.Parameters.Add(new SqlCeParameter("@cDate", DbType.Date))
cmd.Parameters["@cDateReg"].Value =
Convert.ToDateTime(cDateReg_tb.Text).ToShortDateString();
cmd.Parameters["@cDate"].Value =
Convert.ToDateTime(cDate_tb.Text).ToShortDateString();
Error Code: 80020005
Message: Data conversion failed. [OLE DB status value,,,,,,]
This is typical of the crap I am going through at the moment! If it works in
one instance why won't it work in another??
SSP Tag: How to call programaticaly an existing dialup connection Tag: 19928
PPC Power On Screen
Hi all,
I implemented code to try to turn on the screen in my app, since sometimes
devices do not completely wake up when having an app run at a certain time.
I did this with some code similar to what Peter provided on OpenNetCF site,
attached below. This has worked great on my Ipaq2215, however, I had a
user that upgraded PPC2002 to PPC2003 on an Ipaq3900. Apparently this
doesn't work, as the app doesn't wake up when launched.
I realize that this type of command is not universally supported, but I'd be
surprised it didn't work on an Ipaq3900, so was thinking my implementation
was wrong. Any feedback on anyone else with similar issues?
Thanks,
Brian
using System;
using System.Runtime.InteropServices;
namespace OpenNETCF
{
/// <summary>
/// Summary description for Video.
/// </summary>
public class Video
{
// GDI Escapes for ExtEscape()
private const uint QUERYESCSUPPORT = 8;
// The following are unique to CE
private const uint GETVFRAMEPHYSICAL = 6144;
private const uint GETVFRAMELEN = 6145;
private const uint DBGDRIVERSTAT = 6146;
private const uint SETPOWERMANAGEMENT = 6147;
private const uint GETPOWERMANAGEMENT = 6148;
public static void PowerOff()
{
IntPtr hdc = GetDC(IntPtr.Zero);
uint func = SETPOWERMANAGEMENT;
uint size = 12;
byte[] vpm = new byte[size];
//structure size
BitConverter.GetBytes(size).CopyTo(vpm, 0);
//dpms version
BitConverter.GetBytes(0x0001).CopyTo(vpm, 4);
//power state
BitConverter.GetBytes((uint)VideoPowerState.VideoPowerOff).CopyTo(vpm, 8);
ExtEscapeSet(hdc, SETPOWERMANAGEMENT, size, vpm, 0, IntPtr.Zero);
}
public static void PowerOn()
{
IntPtr hdc = GetDC(IntPtr.Zero);
uint size = 12;
byte[] vpm = new byte[size];
//structure size
BitConverter.GetBytes(size).CopyTo(vpm, 0);
//dpms version
BitConverter.GetBytes(0x0001).CopyTo(vpm, 4);
//power state
BitConverter.GetBytes((uint)VideoPowerState.VideoPowerOn).CopyTo(vpm, 8);
ExtEscapeSet(hdc, SETPOWERMANAGEMENT, size, vpm, 0, IntPtr.Zero);
}
[DllImport("coredll", EntryPoint="ExtEscape")]
private static extern int ExtEscapeSet(
IntPtr hdc,
uint nEscape,
uint cbInput,
byte[] lpszInData,
int cbOutput,
IntPtr lpszOutData
);
[DllImport("coredll")]
private static extern IntPtr GetDC(IntPtr hwnd);
}
public enum VideoPowerState : uint
{
VideoPowerOn = 1,
VideoPowerStandBy,
VideoPowerSuspend,
VideoPowerOff
} Tag: How to call programaticaly an existing dialup connection Tag: 19923
I need to call predefined dial up connection. I need to dial connection
before my SQL CE replication.
How to do it?
Re: How to call programaticaly an existing dialup connection by Thomas
Thomas
Wed Feb 11 02:24:41 CST 2004
By P/Invoking RasDial function.
Thomas.
"news@mikendy.com" <news@endys.cz> a écrit dans le message de
news:%2357PQZ%237DHA.3448@TK2MSFTNGP09.phx.gbl...
> I need to call predefined dial up connection. I need to dial connection
> before my SQL CE replication.
> How to do it?
>
> Thanks
> Mike Endy
>
>