Thanks for the response! Actually, I really like how ClickOnce deploys the application and has it auto-update itself. The one thing that I really like is the fact that it installs the application at a very inconspicuous location, which should prevent the casual user from browsing the install...
I have a timer which I want to run on a separate thread. Is this the proper way to start the TICK procedure of the timer?
Thread PBThread;
private void rdoPBBack_CheckedChanged(object sender, EventArgs e)
{
if (this.rdoPBBack.Checked == true)...
I am able to create an application that checks a website and if an update is available, install that update, by using the ClickOnce feature of Visual C# 2005 .NET
The only problem is that it doesn't give me the power to add a desktop icon and other useful things as other full blown install...
Hello guys,
Here is my next obstacle... I have a code which reads a pipe delimited file which has 2 columns, then takes the values of column 1 to fill a combobox. Then I enter a value on a textbox, which corresponds to a value on column 2, from the file read above.
What I need is for the...
You could also do this, assuming you know exactly how many decimals the value needs to be:
double number1 = 0.000001096492799312173;
string result = number1.Value.ToString("F26");
The "F26" attribute is stating that the string will have 26 decimal places. Hope that helps.
Thanks buddy!!! Your reply got me thinking and it's easier than I thought! lol Here is the simple solution:
int v3 = v2 + v1
if (v3 < 0)
{
v3 = v3 + 360;
}
if (v3 > 359)
{
v3 = v3 - 360;
}
resultv3 = v3.ToString("F0").PadLeft(3, '0');
The above worked wonderfully!
Hello all,
As some of you might know, a compass heading is from 000 to 359 degrees. Now here is my problem.
v1 = 6 // Magnetic Heading
v2 = -10 // Magnetic Variation
In order to find out what is the TRUE HEADING, we need to substract v2 from v1 (6 minus -10).
The result will be -4, but -4 is...
Hello bouwob,
The problem with this is that it has a fixed value for the amount of variables to add. This doesn't work for me. For instance, if I want the variable to have 3 characters all the time, then the program will add as many zeros to the variable until it is 3 characters in length.
Hello all,
I know that in PHP, if you want a variable to always be say 3 characters in length and the value is 1 or 2 characters, you can use the sprintf command to insert as many characters of your choice, until the variable reaches the specified length.
How can I do the same with Visual C#...
Thanks! Worked like a charm... And no, it's not a school project! lol I am trying to learn C#, so I have started on a flight simulation related program for my Virtual Airline.
Thanks!
Hello all,
I am running into a dead end. I have a comma separated value file (airports.txt) which has 2 columns in this format and is delimited by a PIPE "|":
AALBORG, DENMARK|AAL
AARHUS, DENMARK|AAR
AL AIN, UNITED ARAB EMIRATES|AAN
ALBACETE, SPAIN|ABC
ABILENE, TX|ABI
How can I read this file...
Ok, but how would I code it so that the check box is CHECKED, if the conditional is true? The reason why I do not make it checked via the designer properties window, is because this would make it checked all the time and I don't want that. I only want it to appear checked, IF the conditional is met.
Hello Abdulla,
I should have explained myself a bit better. :-)
I want it to appear checked with an IF statement. For example:
private void Login_Load(object sender, EventArgs e)
{
if (exists == true)
{
CODE HERE TO MAKE CHECKBOX APPEAR...
Thanks for your response!! One question though... With regards to the revision number scheme, what changes deserve a certain revision number.
For example, what type of changes warrants an updated Version Number, Major Revision, Minor Revision or a Build?
How can I set my project's version number to a variable, so that I can display it on the form? For example, I would like to be able to show the version number on the Title Bar.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.