:( thanks for the answer though :)
RIPOUX
Posts
-
clickOnce question -
clickOnce questionhi :) i just deploy my program with clickOnce but i cant figure how i can decide where the program gonna be installed it seem to install it where he wants and i dont find where i can change the destination in my project if someone can help me thanks ;)
-
populate a listviewok, i'm gonna try to be more specific, i think i missed something check this out please and tell me what i didn't do right there is my .csv file 3,One,Two,Three,Four,Five,Six,Seven,Eight, 0,5/19/2007 6:21:02 PM,A,B,C,777,,,, 1,5/19/2007 6:20:59 PM,A,B,C,666,,,, 2,5/19/2007 6:20:57 PM,A,B,C,555,,,,
string[] Entier; string[] Colonnes; Entier = File.ReadAllLines("pdg.csv"); foreach (string CurrentLine in Entier) { Colonnes = CurrentLine.Split(new Char[] { ',' }); foreach (string CurrentCol in Colonnes) { ListViewItem item1 = new ListViewItem(CurrentCol); item1.SubItems.Add(Unit); listView1.Items.Add(item1); } }
and there is my code. as you see i can read the file, can read only one line, can read one "item" in the line but i just dont know how to take all those parts and put it in my listview. something i just dont catch :( -
populate a listviewthanks guys, i'm gonna look for this right now :)
-
populate a listviewhi all i'm a newbie in programming so there is some "basic thing/way/how-it-should-be-wrote in coding" i still try to catch so please be patient :sigh: i'm trying to populate a listview with a .csv file a i just dont catch how to put it in string to add it. I already find how read the file, take one line at the time but thats it. From this point, i'm lost. anyone ready to help ? Thanks :)
-
richtextbox newbie questioni just tried but it give me the time after the text i'm still working on it thanks for the answer though :)
-
SQLServer Express Editioni add the same problem with i think. the problem is when you create the DB, it make a copy of it in your bin/debug forder and every update are in this DB the one you create is the basic one and every time you run the debugger, he takes all the info in the basic one to overwrite the bin/debug one but the screen result show you the bin/debug DB. so, it look like the add you made are not working in your db explorer, create a new connection and link it to the bin/debug one then when you add something, check in this one hope it help you ! have a good one ;)
-
richtextbox newbie questionhi all ! i'm pretty newbie in the coding world and have a little problem that i cant find a solution i have 2 richtextbox. the first is to write the text and the second to see it (read only) so there is my code
private void button2_Click_1(object sender, EventArgs e) { DateTime dt = DateTime.Now; string str1 = dt.ToString("H:mm:ss").PadRight(10); string str2 = richTextBox1.Text; string str3 = str1 + str2 + "\n"; richTextBox2.AppendText(str3); richTextBox1.Clear();
the real goal is simple, i want the time to be wrote at the start of every text add. Thats why i made it like that. My problem is the "\n" at the end of the string 3. If i dont put it, then the next text is wrote a the end of the first one. If i put it and the user finish is text and press enter then the click button, i have a empty line (witch i dont want it). The richtextbox2 gonna be print at the end and its a report to be showed to the boss as a clean copy so empty lines need to be removed. if someone can help me btw, sorry for my english, i know i'm bad but what can i say ? i'm talking in english like in coding :laugh: thanks ;)