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
U

User 508833

@User 508833
About
Posts
15
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • read xml file 'Hello world'
    U User 508833

    stupid thing posted when i hit the 'preview' button. here's the xml source: Newco.Controls Summary description for GroupBoxLine. Removes the 'FlatStyle' property for this item. Draws a light dashed line around the control in design view to make it more visible. Custom control to mirror the look of an Office 2003 groupBox. Specifies the color of the line. Specifies the color of the text. Default contructor for the class GroupBoxLine. Overrides the OnPaint event to create the look of Office 2003. Clean up any resources being used. Specifies the color of the line. Specifies the color of the text.

    XML / XSL xml help

  • class not showing up
    U User 508833

    why is the System namespace in both System.dll and mscorlib.dll? and when i use object browser to look in the mscorlib.dll it has System.Environment but no SpecialFolder enum listed. so why does the code that you gave me work if it won't show up in object browser or intellisense? are there other classes, namespaces, etc. that are not listed? thanks, Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# question workspace

  • class not showing up
    U User 508833

    when i type in System.Environment.GetFolderPath it's asking for a value of type System.Environment.SpecialFolder but when i try to type that in it doesn't show up in the list that comes up. what am i doing wrong? thanks, Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# question workspace

  • store users settings
    U User 508833

    from what i understand the app.exe.config file is readonly. if this is true then i can't use it. Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# windows-admin question

  • store users settings
    U User 508833

    what would be the best way to store user settings, i.e. window locations, options, etc. would i use .ini files, the registry, or something else? thanks, Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# windows-admin question

  • checking items in a ListView
    U User 508833

    thank you for the help but i'm using a listView not a listBox. the listView doesn't have an event for selectedvaluechanged. thanks, Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# help tutorial

  • checking items in a ListView
    U User 508833

    i'm having a problem when i check some items in a listview. i have a textbox and a listview and when i check the items in the listview it updates the text in the textbox. my problem is when i check the items my event is always one step behind. example, i check 'a' and nothing happens, i check 'b' and the textbox show 'a', i check 'c' and the textbox shows 'a, b'. what event do i put my code into or is there a trick to this. thanks, Rob my event: private void lvNameDisplay_ItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e) { // System.Text.StringBuilder newText = new System.Text.StringBuilder(); foreach (ListViewItem lvItem in lvNameDisplay.CheckedItems) { // newText.Append(lvItem.Text + ", "); } tbExample.Text = newText.ToString(); if (tbExample.Text.EndsWith(", ")) { tbExample.Text = tbExample.Text.Substring(0, tbExample.Text.Length-2); } } -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# help tutorial

  • Splitting a string
    U User 508833

    i started out by reading each line one by one with a streamreader but i didn't want to access the file everytime i needed it so i read the whole thing at once and dumped it into a string. now i just need to figure out how to split the string up. i'll look into the stringbuilder class though. thanks, Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# career

  • Splitting a string
    U User 508833

    could i use the string.split method and use "\n0 @" as the delimeter? btw, what does the @ mean in '\n0 @'? thanks for the help, Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# career

  • Splitting a string
    U User 508833

    if i have a string with multiple lines in it like this: 0 @IQLNP-M7@ INDI 1 NAME Benoni /THOMPSON/ 2 GIVN Benoni 2 SURN THOMPSON 1 AFN QLNP-M7 1 SEX M 1 SOUR @S01@ 1 BIRT 2 DATE 14 Apr 1782 2 PLAC Alstead, N.h. 1 DEAT 2 DATE 24 Oct 1857 2 PLAC Shalersville, N.h. 1 FAMS @F6073064@ 1 FAMC @F6073065@ 0 @IQLNP-KV@ INDI 1 NAME Job /THOMPSON/ 2 GIVN Job 2 SURN THOMPSON 1 AFN QLNP-KV 1 SEX M 1 SOUR @S01@ 1 FAMS @F6073065@ 0 @IQLNP-L2@ INDI 1 NAME Lovice /CRANE/ 2 GIVN Lovice 2 SURN CRANE 1 AFN QLNP-L2 1 SEX F 1 SOUR @S01@ 1 FAMS @F6073065@ ... how would i split it into chunks from the '0' lines to the '0' lines, like this: **Chunk 1** 0 @IQLNP-M7@ INDI 1 NAME Benoni /THOMPSON/ 2 GIVN Benoni 2 SURN THOMPSON 1 AFN QLNP-M7 1 SEX M 1 SOUR @S01@ 1 BIRT 2 DATE 14 Apr 1782 2 PLAC Alstead, N.h. 1 DEAT 2 DATE 24 Oct 1857 2 PLAC Shalersville, N.h. 1 FAMS @F6073064@ 1 FAMC @F6073065@ **Chunk 2** 0 @IQLNP-KV@ INDI 1 NAME Job /THOMPSON/ 2 GIVN Job 2 SURN THOMPSON 1 AFN QLNP-KV 1 SEX M 1 SOUR @S01@ 1 FAMS @F6073065@ **Chunk 3** 0 @IQLNP-L2@ INDI 1 NAME Lovice /CRANE/ 2 GIVN Lovice 2 SURN CRANE 1 AFN QLNP-L2 1 SEX F 1 SOUR @S01@ 1 FAMS @F6073065@ ... etc. thanks, Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# career

  • a better way?
    U User 508833

    thanks for the help and information. what would you recommend to be the best way to read an ascii file? can i keep it in memory somehow so i can search it at will or should i just read the file everytime i need to? thanks, Rob

    C# csharp database performance help question

  • adding color to a form's title
    U User 508833

    if i have a form and it has a title of 'Test Application' and i want to change it to 'Test Application - UNREGISTERED' and have the UNREGISTERED in red, is this possible? thanks, Rob Tomson -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# question

  • interesting find but why?
    U User 508833

    *UPDATE* i believe i've come across a bug. try these steps: create a groupbox on a form and set the backcolor to 'transparent'.....works great now change the backcolor back to 'control', change the flatstyle to 'system', then try to set the backcolor to 'transparent'.....error 'Invalid property value.' okay, so it won't let you have a transparent background while the flatstyle is set to system. so change the flatstyle back to 'normal' and change the backcolor to 'transparent'. then change the flatstyle to 'system'.....works!? but it's really buggy, the display in the groupbox fails to update and when the program is run the background of the groupbox is weirded out. i'm NOT using csharp 2003 so i don't know if they've fixed this in the new version or not. did they? why can the backcolor not be transparent if the flatstyle is set to 'system'? Rob Tomson -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# question

  • interesting find but why?
    U User 508833

    i have a background image on my form and i wanted to put a transparent label on it. however, i noticed that a label cannot have it's backcolor changed to 'transparent'. so i created a groupbox and placed a label in it. i then changed to backcolor of the groupbox to 'transparent' and the label's backcolor is now transparent! what the heck? is this a 'feature' of the groupbox or is there some other way of making a label transparent that i don't know about? Rob -- There are 10 kinds of people. Those who understand binary and those who don't.

    C# question

  • a better way?
    U User 508833

    i'm trying to use the streamreader in csharp to read a .ged file (ascii text). i got it to work but i want to know if there is anything i can do to make it better, ie. programming format, speed, style, etc. thanks, Rob <-----------START-----------> public string[] GetIndex() { // if (fstream == null) { MessageBox.Show("Error opening file stream.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1); return null; } StreamReader fstreamCopy = fstream; string textLine; int index; bool foundName = false; ArrayList tmpIndex = new ArrayList(); while (fstreamCopy.BaseStream != null) { foundName = false; try { textLine = fstreamCopy.ReadLine().Trim(); index = textLine.IndexOf("INDI"); if (index != -1) { while (!foundName) { textLine = fstreamCopy.ReadLine().Trim(); index = textLine.IndexOf("NAME"); if (index != -1) { tmpIndex.Add(textLine.Substring(index + 4).Trim()); foundName = true; } } } } catch { fstreamCopy.Close(); } } string[] indIndex = new String[tmpIndex.Count]; for (int i = 0; i < tmpIndex.Count; i++) { indIndex[i] = tmpIndex[i].ToString(); } return (indIndex); // } <------------END------------> There are 10 kinds of people. Those who understand binary and those who don't.

    C# csharp database performance help question
  • Login

  • Don't have an account? Register

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