CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: ricnew2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    5,799

    Re: Accessing Objects Between Forms

    you can create public properties to your forms, so that other forms can access it data or methods.
    you can also use delegates for your methods.
  2. Re: how to find and count specific word from txt file in C#

    Try to use Regex.
    Here is the sample


    static void Main(string[] args)
    {
    StreamReader oReader;
    if (File.Exists(@"C:\TextFile.txt"))
    {
    ...
  3. Re: How to get all user account info in C# (windows VISTA/7)??

    I thinks you should add using System.Management;
    and add reference System.Management to your project.
  4. Replies
    8
    Views
    1,550

    Re: Rounding or Modulus

    hello, i just give it a try. here's what i did.

    remainder = price - Math.Truncate(price);
    price = Math.Truncate(price) + (Math.Truncate(remainder / 0.25) * .25);


    hope that helps. =)
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured