Found out how
System.Diagnostics.Process.Start("\Program Files\Buswork\PhoneAgent.exe", "")
That does what I want to do.
The 2nd parameter I have there is empty. If you want to pass arguments to the executing program put them in the 2nd parameter.
maybe try this
If you don't want to put it into a database then how about you write the 1 line to a text file that both apps will point to?
so VB calls C#, C# takes a photo, C# overwrites PictureFilename.txt, VB gets control back from C#, VB reads PictureFilename.txt and that should be it...
I saw on MSDN site that Shell isn't available to compact programming.
I am wondering how I can run a program from within my vb.net program.
I'm using VS2005 and creating my program as a Windows Mobile 5.0 Pocket PC application.
I'm connecting to an SQLCompact 3.5 database and the...
that still won't work
I hit this using parameters.
It won't recognise the @WORKORDERNO you have in your sql statement.
SQL CE doesn't use named parameters in the sql.
As you only have 1 parameter replacing the @WORKORDERNO with a single ? will fix it.
If you have multi ones like...
I found out how
Another search on the net showed me this
Dim s As String = Reflection.Assembly.GetExecutingAssembly.GetName.CodeBase
Dim s1 As String = New System.IO.FileInfo(s).DirectoryName
s1 will contain the application folder.
I've tried searching the net but to no avail.
I'd like to get what folder my application is running in on my ce device.
Examples I've seen don't work.
I'm using VB.Net 2005 on a winmobile 6 device.
can anyone help?
I have written a db driven application
I'm using VS .Net 2005 and program in VB.
I use SQL CE 3.0 database.
I am a taxi driver and my app uses various tables to store data like Shifts, Fares, Tolls and others.
reply here and I can help you start if you haven't already got it worked out...
is that for desktop?
I ask because we don't have a DataGridView control in .Net CF
We have a DataGrid control.
Also I'm not using datasets in my code - I populate a grid via a bindingsource using a command object and in some places a datareader (for populating my autocomplete combo boxes). I...
thanks but not quite what i needed
What I wanted is for when I display a datagrid that has a boolean field that it would show something other than True or False
this case statement in the sql select is what does the trick
Thanks to inertiam who showed me the case statement.
here's the sql...
sorry - i wasn't clear
The checkbox is one on the edit form - not on the grid.
The grid shows Yes/No then when I load the fields of the edit form I convert the Yes/No to True/False for the .Checked property of the checkbox with the simple iif statement.
It's working very well. Thanks for all...
True or False doesn't work
It has to be 1 or 0.
In sql boolean is represented by a bit type - 1 or 0.
If I put True or False in the statement it crashes. I have it working with the 1 or 0.
didn't work but finally got it to work
This code is in my frmFares which has the custom column datagrid.
I changed the sql statement to
Select FareId,FareDate,FareHash,TimeStart,TimeEnd,Pickup,Dropoff,Fare,FareType, CASE(Booked) WHEN 1 THEN 'Yes' WHEN 0 THEN 'No' END As Booked From Fares...
Ummm that doesn't work
I'm using VS2005 and Sqlce 3.0.
This is my SQL statement. I put the Case statement in just like it says on the Microsoft website for v3.5
Select FareId,FareDate,FareHash,TimeStart,TimeEnd,Pickup,Dropoff,FareType, CASE Booked WHEN True THEN 'Yes' WHEN False THEN 'No' END...
I'd like to be able to specify something other than true/false when dealing with booleans.
At times I'd like to get it to show yes/no or on/off or even y/n
I've searched the internet and alas I haven't seen anything.
has anyone here dealt with this before?
P.S this is in...
one more question
All the grid stuff is working good.
I haven't tried the color thing. I don't have a need at this stage.
I'd like to make the format of a boolean column to be yes/no instead of true/false
I found some code that was make it work but alas I think it's for the desktop not ce...