Click here to Skip to main content
15,918,049 members
Home / Discussions / C#
   

C#

 
QuestionImporting contacts to Microsoft Outlook with C# Pin
Starchild200511-Jan-06 21:59
Starchild200511-Jan-06 21:59 
QuestionHow can be a Transparent panel control can be created Pin
Shashidharreddy11-Jan-06 21:52
Shashidharreddy11-Jan-06 21:52 
AnswerRe: How can be a Transparent panel control can be created Pin
AB777111-Jan-06 23:53
AB777111-Jan-06 23:53 
AnswerRe: How can be a Transparent panel control can be created Pin
exhaulted12-Jan-06 3:24
exhaulted12-Jan-06 3:24 
Questionestablish GPRS connection Pin
Frank23111-Jan-06 20:58
Frank23111-Jan-06 20:58 
Questionwindows services Pin
PrakashBhaskar11-Jan-06 19:42
PrakashBhaskar11-Jan-06 19:42 
AnswerRe: windows services Pin
Mike Dimmick11-Jan-06 23:56
Mike Dimmick11-Jan-06 23:56 
Questiondetect sections Pin
picasso211-Jan-06 18:44
picasso211-Jan-06 18:44 
I am reading a file into a listBox as follows:
***********************************
StreamReader SR;

FileStream FS = File.Open("c:\\wsIder\\info.ini", FileMode.Open, FileAccess.Read);
SR = new StreamReader(FS);

string line;
while((line = SR.ReadLine()) != null)
{
viewS.Items.Add(line);
}
SR.Close();
******************************
the file contains section separated with bracket like this
[SEC1]
...some text
[SEC2]
...some text
etc

When I display the file in the listbox, I would like to use colored text for the sections. [SEC1]=red, {sec2]=green..etc
Any idea how to do this?
AnswerRe: detect sections Pin
Koushik Biswas12-Jan-06 6:15
Koushik Biswas12-Jan-06 6:15 
Questiondoubt in Infragistics.Win.UltraWinTree Pin
dhol11-Jan-06 17:56
dhol11-Jan-06 17:56 
AnswerRe: doubt in Infragistics.Win.UltraWinTree Pin
Christian Graus11-Jan-06 18:09
protectorChristian Graus11-Jan-06 18:09 
AnswerRe: doubt in Infragistics.Win.UltraWinTree Pin
CodyGen11-Jan-06 19:59
CodyGen11-Jan-06 19:59 
QuestionDelegate in C# Pin
hung_ngole11-Jan-06 16:44
hung_ngole11-Jan-06 16:44 
AnswerRe: Delegate in C# Pin
Curtis Schlak.11-Jan-06 17:07
Curtis Schlak.11-Jan-06 17:07 
QuestionConfigurationSettings threadsafe? Pin
pokksey11-Jan-06 15:11
pokksey11-Jan-06 15:11 
Questionhow insert a row in Access Database? Pin
Sasuko11-Jan-06 13:43
Sasuko11-Jan-06 13:43 
AnswerRe: how insert a row in Access Database? Pin
Christian Graus11-Jan-06 14:08
protectorChristian Graus11-Jan-06 14:08 
GeneralRe: how insert a row in Access Database? Pin
Sasuko11-Jan-06 14:19
Sasuko11-Jan-06 14:19 
GeneralRe: how insert a row in Access Database? Pin
Christian Graus11-Jan-06 14:38
protectorChristian Graus11-Jan-06 14:38 
Questionread multiple images from database Pin
jung197511-Jan-06 12:41
jung197511-Jan-06 12:41 
AnswerRe: read multiple images from database Pin
Guffa11-Jan-06 12:51
Guffa11-Jan-06 12:51 
GeneralRe: read multiple images from database Pin
jung197511-Jan-06 13:03
jung197511-Jan-06 13:03 
GeneralRe: read multiple images from database Pin
Christian Graus11-Jan-06 13:07
protectorChristian Graus11-Jan-06 13:07 
GeneralRe: read multiple images from database Pin
jung197511-Jan-06 13:09
jung197511-Jan-06 13:09 
GeneralRe: read multiple images from database Pin
Christian Graus11-Jan-06 13:12
protectorChristian Graus11-Jan-06 13:12 

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.