Code: Show/Hide int nbr1; printf("Enter a number:\n"); scanf("%d", &nbr1); printf("you typed in %d", nbr1); |
Code: Show/Hide void definitions(string english)
{ if (textbox.Text == "aprender") { labeldef.Text = "%s means %s"; } } |
Code: Show/Hide void ButtonClick(object sender, EventArgs e)
{ labeltitle.Text = textbox.Text; toolStripStatusLabel.Text = "Finding Definition..."; definitions(to learn); } |
Quote: |
Invalid expression term ')'
; expected ) expected (CS1026) |
Code: Show/Hide definitions(to learn);
|
Code: Show/Hide definitions("to learn"); |
Code: Show/Hide string GetDefinition(string word) { if (word == "you") return "tu"; else if (word == "bleh") return "bah"; else return "unknown word"; } void ButtonClick(object sender, EventArgs e) { labeltitle.Text = textbox.Text; toolStripStatusLabel.Text = "Finding Definition..."; int someInteger = 8; labelDefiniton.Text = "Definition of " + labelword.Text + " is " + GetDefinition(labelword.Text) + ", and the value of someInteger is " + someInteger.ToString(); } |
Code: Show/Hide Type or namespace definition, or end-of-file expected (CS1022) |
Code: Show/Hide namespace blahblahblah
{ class blahblah { void myMethod() { } void someOthterMethod() { } } } |
Code: Show/Hide void textchoose(int labelnbr) { void definition(string spanish, string english, string verbending) { .... .... } } |
Code: Show/Hide textchoose(1); textchoose(2); textchoose(3); |
Code: Show/Hide void definitions(int textboxnumber) { [u] textbox[textboxnumber].Text = "test" [/u]} |
Code: Show/Hide textbox[[u]textboxnumber[/u].Text |
Code: Show/Hide private void Button1Click(object sender, EventArgs e)
{ string teamname, teamcity, teamcoach, teamacoach1, teamacoach2, teamleague; teamname = txtboxcreateteamname.Text; teamcity = txtboxcreateteamcity.Text; teamcoach = txtboxcreateteamheadcoach.Text; teamacoach1 = txtboxcreateteamassistantcoach.Text; teamacoach2 = txtboxcreateteamassistantcoach2.Text; teamleague = txtboxcreateteamleague.Text; this.Close(); MainForm frm = new MainForm(teamname, teamcity, teamcoach, teamacoach1, teamleague); frm.Show(); } |
Code: Show/Hide public MainForm(string tmname, string tmcity, string tmcoach, string tmacoach, string tmleague) { InitializeComponent(); lblteamname.Text = tmcity+" "+tmname+"\n"+tmcoach+tmacoach; lblawayrecord.Text = "0-0-0"; lbloverallrecord.Text = "0-0-0"; lblhomerecord.Text = "0-0-0"; lblplayercount.Text = "0"; } |
Code: Show/Hide private void Button1Click(object sender, EventArgs e)
{ string teamname, teamcity, teamcoach, teamacoach1, teamacoach2, teamleague; teamname = txtboxcreateteamname.Text; teamcity = txtboxcreateteamcity.Text; teamcoach = txtboxcreateteamheadcoach.Text; teamacoach1 = txtboxcreateteamassistantcoach.Text; teamacoach2 = txtboxcreateteamassistantcoach2.Text; teamleague = txtboxcreateteamleague.Text; this.Close(); MainForm frm = new MainForm(teamname, teamcity, teamcoach, teamacoach1, teamleague); frm.Show(); } |
Code: Show/Hide private void Button1Click(object sender, EventArgs e)
{ MainForm frm = new MainForm(txtboxcreateteamname.Text, txtboxcreateteamcity.Text, txtboxcreateteamheadcoach.Text, txtboxcreateteamassistantcoach.Text, txtboxcreateteamleague.Text); frm.Show(); this.Dispose(); } |
tcsoccerman wrote: |
...NOBODY RESPONDS. Lol, w.e., you don't have to. |
Code: Show/Hide class Player
{ int foo; int bar; }; |
Code: Show/Hide PERSON / \ Player Manager / \ \ Forward Goalie Coach |
Code: Show/Hide The process cannot access the file 'C:\Program Files\Team Tracker\ Logo' because it is being used by another process.
|
Code: Show/Hide void OpenpicDialog2FileOk(object sender, System.ComponentModel.CancelEventArgs e)
{ source = openpicDialog2.FileName; Stream openbmp =openpicDialog2.OpenFile(); StreamReader openerbmp = new StreamReader(openbmp); openpicDialog2.Dispose(); teamlogopicturebox.Image = new Bitmap(source); if (File.Exists(destination+lblteamname.Text+" Logo")) { File.Delete(destination+lblteamname.Text+" Logo"); } System.IO.File.Copy(source, destination+lblteamname.Text+" Logo"); photologo = destination+lblteamname.Text+" Logo"; teamlogopicturebox.Image = new Bitmap(source); } |
Code: Show/Hide using (StreamReader foo = new StreamReader("file.txt"))
{ string yayForLotsOfPointlessHeapAllocations = foo.ReadLine(); } |
Code: Show/Hide StreamReader foo = new StreamReader("file.txt");
string yayForLotsOfPointlessHeapAllocations = foo.ReadLine(); foo.Close(); |
Code: Show/Hide namespace Team_Tracker
{ public partial class MainForm : Form { public players() { InitializeComponent(); } yadayadayada void money(blah, blah) { } } } |
Code: Show/Hide namespace Team_Tracker
{ public partial class MainForm : Form { [STAThread] public static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } public MainForm() { InitializeComponent(); } //lots of code //too much code } } |
Code: Show/Hide System.Windows.Forms.TreeNode lb;
if(team1players.Focused == true) lb = team1players.SelectedNode; else lb = team2players.SelectedNode; object name; name = lb.Name; name = new player(); |