![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 | |
|
Programmer
Join Date: Dec 2005
Posts: 53
Rep Power: 3
![]() |
Quote:
csharp Syntax (Toggle Plain Text)
This isn't the only solution, however. In .NET, the newline is encoded as Environment.NewLine (usually \r\n). csharp Syntax (Toggle Plain Text)
Which can be shortened to: csharp Syntax (Toggle Plain Text)
|
|
|
|
|
|
|
#22 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
There's an AddRange function? Funky.
![]() |
|
|
|
|
|
#23 |
|
Expert Programmer
|
Thanks Jason. your idea for .NET 2.0 worked.
__________________
|
|
|
|
|
|
#24 |
|
Expert Programmer
|
ok I can't figure out for the life of me how to write all the items in a combo box to a text file, can someone help me with this please?
__________________
|
|
|
|
|
|
#25 |
|
Professional Programmer
|
Probably I should ask how exactly did you try .. but nevermind that :
try : csharp Syntax (Toggle Plain Text)
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
|
|
#26 |
|
Expert Programmer
|
i'm a little confused, how does that write the items in the comboBox to a text file?
__________________
|
|
|
|
|
|
#27 | |
|
Professional Programmer
|
Quote:
I was under the impression that you couldn't get the items from the combo.
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
|
|
|
#28 |
|
Expert Programmer
|
Well i can get them, but when i write them to the file it says "System.Windows.Forms.ComboBox+ObjectCollection" in the text file, not the items.
__________________
|
|
|
|
|
|
#29 |
|
Professional Programmer
|
Ok mate . I'm assuming you have strings in that comboBox, otherwise you will have to do a cast to the object that is in the Combo.
csharp Syntax (Toggle Plain Text)
If it doesn't work, just post the code.
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
|
|
#30 |
|
Expert Programmer
|
sorry i forgot to post after my last one, i found a way to do it, so thanks for all your help.
__________________
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 3 language combo. | Nebula | Coder's Corner Lounge | 9 | Dec 19th, 2005 1:34 PM |
| anoying problem with a combo box | cloud- | Visual Basic | 12 | May 28th, 2005 1:20 PM |
| Java Combo Boxes | Vengeance | Java | 0 | May 4th, 2005 9:02 AM |
| What are advantages of Data Combo and data list over simple combo and list box? | sham | Visual Basic | 1 | Apr 12th, 2005 4:11 AM |
| combo box in form.. | cloud- | HTML / XHTML / CSS | 5 | Mar 15th, 2005 3:21 PM |