Click here to Skip to main content
15,891,248 members
Home / Discussions / C#
   

C#

 
GeneralRe: C#/.Net/VS2005 - How can I write text onto the form of a webpage through Pin
foolios3-Nov-07 9:15
foolios3-Nov-07 9:15 
AnswerRe: C#/.Net/VS2005 - How can I write text onto the form of a webpage through Pin
Guffa3-Nov-07 9:35
Guffa3-Nov-07 9:35 
QuestionOpacity Pin
MasterSharp3-Nov-07 5:24
MasterSharp3-Nov-07 5:24 
AnswerRe: Opacity Pin
Paul Conrad3-Nov-07 7:10
professionalPaul Conrad3-Nov-07 7:10 
AnswerRe: Opacity Pin
Mircea Grelus3-Nov-07 7:35
Mircea Grelus3-Nov-07 7:35 
GeneralRe: Opacity Pin
Paul Conrad3-Nov-07 7:45
professionalPaul Conrad3-Nov-07 7:45 
GeneralRe: Opacity Pin
MasterSharp3-Nov-07 14:56
MasterSharp3-Nov-07 14:56 
QuestionSearch for .cs files Pin
new2pgrmg3-Nov-07 4:35
new2pgrmg3-Nov-07 4:35 
Hi,
I am devoloping an Application in windows form that will search for files in a folder with .cs extension
i wrote the code by giving the path to the folder .
My application displays the path in a listbox ....but what i realy want to do is it should read a .cs file with many lines when user
selects it using a file open dialog.
is it possible to do that and display it in a listbox.
if it is possible can anybody give me the idea how i can do it.
this is where i am standing now....ie using the below written code it diaplays the path in the list box and message box but as i explained earlier thats not exactly what i want to do....

private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog objDialog = new OpenFileDialog();
objDialog.Title = "Open .cs File";
objDialog.Filter = "C Sharp Files (*.cs)|*.cs|Text Files (*.txt)|*.txt";
objDialog.InitialDirectory = @"D:\back up d \users\k\ConsoleApplication1";
if (objDialog.ShowDialog() == DialogResult.OK)
{

MessageBox.Show(objDialog.FileName.ToString());

}
listBox1.Items.Add(@"D:\back up d \users\k\ConsoleApplication1");

Any help is welcome.
Thanking You



k
AnswerRe: Search for .cs files Pin
Paul Conrad3-Nov-07 5:14
professionalPaul Conrad3-Nov-07 5:14 
GeneralRe: Search for .cs files Pin
new2pgrmg3-Nov-07 5:21
new2pgrmg3-Nov-07 5:21 
GeneralRe: Search for .cs files Pin
Paul Conrad3-Nov-07 5:29
professionalPaul Conrad3-Nov-07 5:29 
GeneralRe: Search for .cs files Pin
new2pgrmg3-Nov-07 5:46
new2pgrmg3-Nov-07 5:46 
GeneralRe: Search for .cs files Pin
Paul Conrad3-Nov-07 5:49
professionalPaul Conrad3-Nov-07 5:49 
GeneralRe: Search for .cs files [modified] Pin
new2pgrmg4-Nov-07 16:45
new2pgrmg4-Nov-07 16:45 
QuestionComboboxcolumn in DatagridView [modified] Pin
metbinu2003@yahoo.com3-Nov-07 3:47
metbinu2003@yahoo.com3-Nov-07 3:47 
AnswerRe: Comboboxcolumn in DatagridView Pin
Paul Conrad3-Nov-07 5:15
professionalPaul Conrad3-Nov-07 5:15 
QuestionAccessing Winform Controls From Arbitrary Classes Pin
Bill_Smith3-Nov-07 3:47
Bill_Smith3-Nov-07 3:47 
AnswerRe: Accessing Winform Controls From Arbitrary Classes Pin
martin_hughes3-Nov-07 5:14
martin_hughes3-Nov-07 5:14 
Questionbrows dialoge Pin
Thaer Hamael3-Nov-07 3:44
Thaer Hamael3-Nov-07 3:44 
AnswerRe: brows dialoge Pin
I Believe In GOD3-Nov-07 4:10
I Believe In GOD3-Nov-07 4:10 
QuestionDataGridViewButtonColumn Pin
half-life3-Nov-07 1:16
half-life3-Nov-07 1:16 
QuestionHow to access statefull java web service Pin
ymsfa3-Nov-07 0:43
ymsfa3-Nov-07 0:43 
QuestionCreating a timeserver Pin
Johan Martensson2-Nov-07 23:25
Johan Martensson2-Nov-07 23:25 
AnswerRe: Creating a timeserver Pin
Kristian Sixhøj2-Nov-07 23:41
Kristian Sixhøj2-Nov-07 23:41 
GeneralRe: Creating a timeserver Pin
Johan Martensson3-Nov-07 9:27
Johan Martensson3-Nov-07 9:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.