|
You can use Click Once[^] deployment.
only two letters away from being an asset
|
|
|
|
|
I am planning on writing a webservice that let's my app do this, and download updates. Clickonce has it's issues, not least that the programs don't end up in program files.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
can you share it in an article plz so we can also learn from it?
|
|
|
|
|
if I am going to use XML file to check the version, can I use Windows Live SkyDrive?
|
|
|
|
|
I want to know how can I send SMS from C# windows application using my windows mobile cell phone if I connect through USB cable or Bluetooth? so it will use my cell phone SIM card to send the SMS.
|
|
|
|
|
This gets asked here CONSTANTLY. You need to find a local service that allows you to do this, and subscribe to it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i don't want an SMS gateway. What i want is to send the SMS through my cel phone SIM card which is connected to the PC via USB, just like what Nokia is doing in their Nokia PC Suite software
|
|
|
|
|
Try to search AT-Command on Google. Also u can search about AT-Command+java so that u will get a source code.
|
|
|
|
|
|
hi . i do not good speech English. i create e window form and add e user control. in the user control is a rich text box . user control have a public method ::
public void Select_All(){
this.richtextbox1.selectall();
}
in the frmMain for is a tab control and user control add in to tabcontrol .
uercontrol1 user = (usercontrol)tabcontrol1.selectedtab.control[0];
user.Select_all();
i add a child form in the frmMain and call the Sellect_All() method of the user control . but dont work !!!
|
|
|
|
|
Are you sure it's not working?
I just tried it here and I just needed to add user.Focus(); and all the text was selected.
|
|
|
|
|
hi,amir-haghighi
try it as follow
first, you should change the method in you main form
public void Select_All(RichTextBox rtb){
rtb.selectall();
}
and call the method Sellect_All(rtbChild);
"rtbChild" is the the richtextbox control in child form
good luck
|
|
|
|
|
|
|
Hello,
i've implemented an application that read from a local db and write on a server db using a transaction scope. When I try to commit the transaction i receive an exception error
:
System.Transactions.TransactionManagerCommunicationException: Impossible to comunicate with transaction manager...System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL ...
in System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim)
in System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken)
I've enabled MSDTC on client and server but something is wrong.
Please help if you know the solution.
Thanks in advance
|
|
|
|
|
I've resolved. The client open a comunication with the server. Then close the comunication and wait. The server open a new comunication(with a dinamic port number) with the client and try to send information. So if on the client there's a firewall that block msdtc.exe process the comunication failed.
So to resolve create a specific rule for the msdtc.exe process on client.
Bye.
|
|
|
|
|
Hi all,
Wasn't sure were to post this so if its in the wrong place then oops!!
I'm using nant to automate my release process, its been working fine on all the other repositories but now I'm trying to deploy to two locations. One of which is on a remote machine. Every time that I try to run the script I get an UnauthorisedAccessException (shown below). I think the problem is that nant is running under the system user, which probably doesn't have permission to access a remote machine. So i've tried 3 ways to get around this
1) Map the network drive, doing this I can specify the credentials for a user which should have privileges on the remote server. Then as long as I specify the drive letter in the build script it should work.
Unfortunately I'm accessing the box that is running the nant scripts through RDC so any share that i create only exists in my session and not under the system account!
2) Use an impersonate function in Nant. I've looked through the docs but can't see such a function anywhere. Is there?
3) Ask the people on the code project.
So i'm on option 3 at the moment, any ideas?
Thanks
Phil
deploy-library:
[copy] Copying 8 files to '\\server\dev_published_dlls\devlib'.
[copy] Copying 'D:\dev_auto_copies\dev_libs\DevLibTests\bin\Debug\DevLibTests.dll' to '\\server\dev_published_dlls\devlib\DevLibTests.dll'.
BUILD FAILED
D:\dev_auto_copies\dev_libs\Common.build(71,8):
Cannot copy 'D:\dev_auto_copies\dev_libs\DevLibTests\bin\Debug\DevLibTests.dll' to '\\server\dev_published_dlls\devlib\DevLibTests.dll'.:
NAnt.Core.BuildException: D:\dev_auto_copies\dev_libs\Common.build(71,8):
Cannot copy 'D:\dev_auto_copies\dev_libs\DevLibTests\bin\Debug\DevLibTests.dll' to '\\server\dev_published_dlls\devlib\DevLibTests.dll'. ---> System.UnauthorizedAccessException: Access to the path '\\server\dev_published_dlls\devlib' is denied.
|
|
|
|
|
How can I convert string to date without time and AM/PM. Thanks
|
|
|
|
|
DateTime.Parse
DateTime.TryParse
DateTime.ParseExact
DateTime.TryParseExact
Without knowing your string format it's not possible to help any further.
|
|
|
|
|
09-04-2009 this is the string. I use DateTime.ParseExact(string, "MM/dd/yyyy", null);
Results is 9/4/2009 12:00:00 AM . I do not want 12:00:00 AM
|
|
|
|
|
that is only the format from DateTime to String. Your question was wrong "string to datetime".
You must use :
DateTime dt = DateTime.ParseExact(string, "MM/dd/yyyy", null);
string dtString = dt.ToString("MM/dd/yyyy HH:mm:ss");
|
|
|
|
|
NO. I mean String to date because I want to use that date in crystal reports formula(does not recognise 12:00:00 AM) Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp
|
|
|
|
|
string dtString = dt.ToString("MM/dd/yyyy");
|
|
|
|
|
This output is a string . I want a date only without time. This results in 12:00: AM if converted back to date.....
|
|
|
|
|
That can't be done. The struct is DateTime not Date. You can either ignore the time part altogether (be careful in any DateTime comparisons - Use the Date property of the DateTime to retrieve the DateTime with the default time e.g. DateTime.Now.Date ) or create your own class/struct to just hold the date and create implicit/explicit operator overloads to/from DateTime .
[Edit} A little code to help you get started and to show how easy it is to create a wrapper to DateTime [/Edit]
public struct Date
{
public static readonly Date MaxValue = new Date(DateTime.MaxValue);
public static readonly Date MinValue = new Date(DateTime.MinValue);
private DateTime _DateTime;
public Date(DateTime dateTime)
{
_DateTime = dateTime.Date;
}
public static implicit operator DateTime(Date date)
{
return date._DateTime;
}
public static explicit operator Date(DateTime dateTime)
{
return new Date(dateTime);
}
public static Date Now
{
get { return new Date(DateTime.Now); }
}
public override string ToString()
{
return _DateTime.ToString("d");
}
public string ToString(IFormatProvider provider)
{
return _DateTime.ToString(provider);
}
public string ToString(string format)
{
return _DateTime.ToString(format);
}
public string ToString(string format, IFormatProvider provider)
{
return _DateTime.ToString(format, provider);
}
}
modified on Monday, September 7, 2009 9:29 AM
|
|
|
|