Click here to Skip to main content
15,915,508 members
Home / Discussions / C#
   

C#

 
GeneralStrongly typed hash-table Pin
peter271325-Mar-04 5:58
peter271325-Mar-04 5:58 
GeneralRe: Strongly typed hash-table Pin
Heath Stewart25-Mar-04 6:03
protectorHeath Stewart25-Mar-04 6:03 
GeneralRe: Strongly typed hash-table Pin
Andy Brummer25-Mar-04 9:31
sitebuilderAndy Brummer25-Mar-04 9:31 
GeneralCaption bar modifications Pin
Alex Korchemniy25-Mar-04 5:03
Alex Korchemniy25-Mar-04 5:03 
GeneralRe: Caption bar modifications Pin
Heath Stewart25-Mar-04 5:59
protectorHeath Stewart25-Mar-04 5:59 
GeneralRe: Caption bar modifications Pin
Dave Kreskowiak25-Mar-04 12:32
mveDave Kreskowiak25-Mar-04 12:32 
GeneralListbox in C# with XML Pin
bertcox25-Mar-04 2:32
bertcox25-Mar-04 2:32 
GeneralRe: Listbox in C# with XML Pin
Heath Stewart25-Mar-04 4:49
protectorHeath Stewart25-Mar-04 4:49 
When binding the split elements to the ListBox (or just simply creating list items), why not just use String.Replace on each path like so:
string[] paths = propathunix.Split(",");
string root = rootdirectory;
foreach (string path in paths)
{
  path = path.Replace("[rootdirectory]", root);
  listBox1.Items.Add(path);
}
Or are you asking how you could display the string like that, but not actually change the string? If so, consider handling the ListBox.DrawItem event and set ListBox.DrawMode to DrawMode.OwnerDrawFixed or DrawMode.OwnerDrawVariable. You could replace the string that gets drawn and then draw the string yourself.

 

Microsoft MVP, Visual C#
My Articles
GeneralProcess.GetProcesses(string computerName) Pin
nilhz25-Mar-04 2:16
nilhz25-Mar-04 2:16 
GeneralRe: Process.GetProcesses(string computerName) Pin
Heath Stewart25-Mar-04 4:43
protectorHeath Stewart25-Mar-04 4:43 
GeneralError message that doesn't go away Pin
profoundwhispers24-Mar-04 23:38
profoundwhispers24-Mar-04 23:38 
GeneralRe: Error message that doesn't go away Pin
Dave Kreskowiak25-Mar-04 1:15
mveDave Kreskowiak25-Mar-04 1:15 
GeneralRe: Error message that doesn't go away Pin
Heath Stewart25-Mar-04 4:38
protectorHeath Stewart25-Mar-04 4:38 
GeneralUrgent :remoting callbacks Pin
rana7424-Mar-04 22:06
rana7424-Mar-04 22:06 
GeneralRe: Urgent :remoting callbacks Pin
Heath Stewart25-Mar-04 4:21
protectorHeath Stewart25-Mar-04 4:21 
GeneralAsynchronous Network Transfer Pin
sibish n b24-Mar-04 22:04
sibish n b24-Mar-04 22:04 
GeneralGenerate a Diagram from a Database, algorithms, approaches, tips... Pin
Braulio Dez24-Mar-04 21:12
Braulio Dez24-Mar-04 21:12 
Generalc# forms Pin
DougW4824-Mar-04 18:56
DougW4824-Mar-04 18:56 
GeneralRe: c# forms Pin
Heath Stewart24-Mar-04 20:16
protectorHeath Stewart24-Mar-04 20:16 
GeneralRe: c# forms Pin
DougW4825-Mar-04 0:02
DougW4825-Mar-04 0:02 
GeneralRe: c# forms Pin
Heath Stewart25-Mar-04 3:56
protectorHeath Stewart25-Mar-04 3:56 
GeneralRich Text Box (Visual c#.net) Pin
naresh_pandey1324-Mar-04 18:53
naresh_pandey1324-Mar-04 18:53 
GeneralRe: Rich Text Box (Visual c#.net) Pin
OmegaSupreme25-Mar-04 5:24
OmegaSupreme25-Mar-04 5:24 
GeneralRe: Rich Text Box (Visual c#.net) Pin
naresh_pandey1326-Mar-04 1:59
naresh_pandey1326-Mar-04 1:59 
GeneralRich Text Box Pin
naresh_pandey1324-Mar-04 18:51
naresh_pandey1324-Mar-04 18:51 

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.