Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: RascaPR
  • Order by date
  1. RascaPR

    Autoupdate application

    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...
  2. RascaPR

    Multi-threading a timer?

    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)...
  3. RascaPR

    Autoupdate application

    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...
  4. RascaPR

    Autofilling a combobox depending on text entered

    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...
  5. RascaPR

    data issue

    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.
  6. RascaPR

    Rounding compass headings?

    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!
  7. RascaPR

    Rounding compass headings?

    I made a mistake about the above formula. It should be that you need to ADD v2 to v1...
  8. RascaPR

    Rounding compass headings?

    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...
  9. RascaPR

    Padding a value with ZEROS until a certain amount of characters

    the string.PadLeft command worked perfectly! THANKS!
  10. RascaPR

    Padding a value with ZEROS until a certain amount of characters

    If v=4 then I want v=004 If v=44 then I want v=044 If v=444 then I want v=444
  11. RascaPR

    Padding a value with ZEROS until a certain amount of characters

    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.
  12. RascaPR

    Padding a value with ZEROS until a certain amount of characters

    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#...
  13. RascaPR

    CSV data

    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!
  14. RascaPR

    CSV data

    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...
  15. RascaPR

    Checked?

    Thanks!!! That worked like a charm
  16. RascaPR

    Checked?

    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.
  17. RascaPR

    Checked?

    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...
  18. RascaPR

    Checked?

    How can I have a checkbox automatically be in a checked state when the form loads? Sounds so simple but it's eating me up!
  19. RascaPR

    Showing project version?

    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?
  20. RascaPR

    Showing project version?

    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.

Part and Inventory Search

Back
Top