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

Search:

Type: Posts; User: Bobcat

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,625

    Re: StreamReader.PeekLine

    You are not assigning



    string line = this.ReadLine();


    to anything but line.
  2. Replies
    6
    Views
    2,625

    Re: StreamReader.PeekLine

    public string PeekLine()
    {
    while (true)
    {
    long peekPos = this.BaseStream.Position;
    string line = this.ReadLine();
    this.BaseStream.Position = peekPos;
    return line;
    }
    }
  3. Re: Random choosing - but making sure everything is run at least once?

    Thanks Great,

    That seemed to do the trick. Still not sure I understand the overload.

    But it is very random on who wins now.

    I will check out that other link.
  4. Re: Random choosing - but making sure everything is run at least once?

    Thanks for the reply.

    This is what I use to generate a random number of spaces - either 1,2,3,4 spaces at a time.

    public class Greyhound
    {
    public int StartingPosition; ...
  5. Random choosing - but making sure everything is run at least once?

    Hello all,

    I am pretty new to C#, learning it myself. Working on a project in the book, about creating a random dog race winner. I got it to work, but I am trying to make it more realistic. The...
  6. How to: Connect to online SQL Database using desktop form?

    Good afternoon,

    As you can tell I am learning C#, and trying to come up with some info to make sure this is the way I want to proceed.

    I would like to have a online version of a time keeping...
Results 1 to 6 of 6


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)