You must Sign In to post a response.
  • Category: Windows 8

    I want to make live cricket score windows applicaton

    sir i want help how to implement live score in my C# window application
    need some idea how to display live cricket score, team details, match details, player details etc in my window application in C# please help me how to implement and which codes and which websites helps me.. please reply as soon as fast
  • #765504
    I had written an article regarding this. So please go through the article. You have to use Webclient class. So please find the below Uniform Resource Locator


  • #765518
    It quite difficult to lunch LIVE cricket score in windows application, rather than you can use a Web browser control and then pass the URL to lunch cricket control
    it is the better option
    look at below steps
    1. Launch an embedded web browser in a C# win forms application.
    2. Supply the URL of the page which publishes the latest cricket score.
    3. Capture the entire HTMLDOM of that page.
    4. Identify the HTML element which displays the score (that is changing) and save the index of that HTML element (the index is unique for all the HTML elements).
    5. Load the entire HTMLDOM once again and Get the element by index (already saved).
    6. Querying for the text at that element gives you the latest score.
    7. Run the steps 5, 6 on a timer (say 7 seconds to keep refreshing the page.)
    see below links

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #765528
    1.Add a timer to a form
    2.Set the specific interval interms of miliseconds i.e. 1000 for 1 sec.
    3.Add timer.Tick() event, which will execute when the specified interval has elapsed
    4.Write code inside timer.Tick() to fetch live scores.

    private void Form_Load(object sender, EventArgs e)
    System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer();
    timer.Tick += new EventHandler(Timer_Tick);
    timer.Interval = 1000;

    public void Timer_Tick(object sender, EventArgs eArgs)
    // Or call method to retrieve live score here ...

    Hope it helps.!

Sign In to post your comments