Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

ajay_dalvi13

@ajay_dalvi13
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • question
    A ajay_dalvi13

    //I have written the code on button click event. //You also try the same ..It works using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.IO; using System.Net; private void button_Click(object sender, System.EventArgs e) { WebClient Client = new WebClient (); Stream strm = Client.OpenRead ("http://today.reuters.com/stocks/Overview.aspx ticker=msft"); StreamReader sr = new StreamReader(strm); string line = String.Empty ; //listbox1.Items.Clear(); // create a writer and open the file TextWriter tw = new StreamWriter(@"D:\date.xls"); } do { line = sr.ReadLine(); if(line==null) break; //listbox1.Items.Add(line); // write a line of text to the file tw.WriteLine(line); } while(line!=null); // MessageBox.Show(line); sr.Close(); strm.Close(); // close the stream tw.Close(); MessageBox.Show(@"File downloaded successfully at location D:\date.xls."); } Try this ...It works.. ajay_dalvi13@yahoo.co.in -- modified at 6:13 Friday 25th November, 2005

    C# question csharp com help

  • OnSessionEnd Eventhandler in C#.
    A ajay_dalvi13

    Hi, I am using OnSessionEnd Eventhandler in C#. I am trying to invoke cmd.exe during system shutdown. Whenever my program tries to invoke cmd.exe it fails and gives following error : "The application failed to initialize properly (0x0000142)" Pls find a solution for this ... ajay_dalvi13 -- modified at 0:11 Monday 28th November, 2005

    C# csharp help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups