What's Here?
Members: 136,069
Replies: 478,312
Topics: 74,483
Snippets: 2,562
Tutorials: 674
Total Online: 1,590
Members: 90
Guests: 1,500
Loading. Please Wait...
how to load array + for loop in a listbox
how to load array + for loop in a listbox
PsychoCoder
RE: How To Load Array + For Loop In A Listbox 10 Apr, 2008 - 05:10 PM
using DIC.Core;
Joined: 26 Jul, 2007
Posts: 8,983
Thanked: 125 times
Dream Kudos: 8525
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net
My Contributions
Post the code you're using. Without seeing that we have absolutely
no idea what you're doing wrong
gilbert
RE: How To Load Array + For Loop In A Listbox 10 Apr, 2008 - 05:13 PM
D.I.C Head
Joined: 18 Mar, 2008
Posts: 81
My Contributions
CODE
namespace WindowsApplication1 { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.listBox1 = new System.Windows.Forms.ListBox(); this.listBox2 = new System.Windows.Forms.ListBox(); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // listBox1 // this.listBox1.FormattingEnabled = true; this.listBox1.Location = new System.Drawing.Point(6, 46); this.listBox1.Name = "listBox1"; this.listBox1.Size = new System.Drawing.Size(120, 108); this.listBox1.TabIndex = 0; this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged); // // listBox2 // this.listBox2.FormattingEnabled = true; this.listBox2.Location = new System.Drawing.Point(142, 46); this.listBox2.Name = "listBox2"; this.listBox2.Size = new System.Drawing.Size(120, 108); this.listBox2.TabIndex = 1; this.listBox2.SelectedIndexChanged += new System.EventHandler(this.listBox2_SelectedIndexChanged); // // button1 // this.button1.Location = new System.Drawing.Point(76, 215); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(134, 23); this.button1.TabIndex = 2; this.button1.Text = "Perform Conversion"; this.button1.UseVisualStyleBackColor = true; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(138, 25); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(60, 13); this.label1.TabIndex = 3; this.label1.Text = "Convert To"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(3, 25); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(70, 13); this.label2.TabIndex = 4; this.label2.Text = "Convert From"; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(141, 192); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(0, 13); this.label3.TabIndex = 5; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(141, 175); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(37, 13); this.label4.TabIndex = 6; this.label4.Text = "Result"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(32, 175); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(86, 13); this.label5.TabIndex = 7; this.label5.Text = "Value to Convert"; // // textBox1 // this.textBox1.Location = new System.Drawing.Point(35, 189); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(100, 20); this.textBox1.TabIndex = 8; // // groupBox1 // this.groupBox1.Controls.Add(this.listBox2); this.groupBox1.Controls.Add(this.listBox1); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Location = new System.Drawing.Point(12, 12); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(268, 160); this.groupBox1.TabIndex = 9; this.groupBox1.TabStop = false; this.groupBox1.Text = "Conversion"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.Add(this.groupBox1); this.Controls.Add(this.textBox1); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.button1); this.Name = "Form1"; this.Text = "Form1"; this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.ListBox listBox1; this.listBox1.Items.AddRange(new object[] {"Inches", "Feet", "Yard", "Millimeter", "Centimeter", "Meter"}); private System.Windows.Forms.ListBox listBox2; private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label5; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.GroupBox groupBox1; } }
that's 14 errors
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month