Ok i copied the code as best i could understand but it doesn't work, also i don't understand, what is the name of the array generated
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
StreamReader strRace = new StreamReader("Z:\\Homeworld2\\scripts\\race.lua");
txtCurrent.Text = strRace.ReadToEnd();
strRace.ReadToEnd().Split(new char[] { '{' });
lbxRaces.Items.AddRange();
strRace.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
and here my error code
Code:
------ Build started: Project: WindowsApplication2, Configuration: Debug Any CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /optimize- /out:"obj\Debug\Kaos Project.exe" /resource:obj\Debug\WindowsApplication2.Form1.resources /resource:obj\Debug\KaosProject.Properties.Resources.resources /target:winexe Form1.cs Form1.Designer.cs Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs
C:\Documents and Settings\Dave Wilson\My Documents\Visual Studio 2005\Projects\WindowsApplication2\WindowsApplication2\Form1.cs(24,13): error CS1501: No overload for method 'AddRange' takes '0' arguments
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll: (Related file)
Compile complete -- 1 errors, 0 warnings
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========