VisualC#2005,2008
C#を基礎から勉強していく中でさらに勉強になってるのが有ります。#ifとか#elseとか#errorとか、Perlをちょっとやってた時に、 「#」以降はコメントだったからコメントだと思ってた。 プリプロセッサ ディレクティブっていうんだと初めてしりました。C#プリ…
ふぉ! 違うんだね。☆C#☆private void button1_Click(object sender, EventArgs e) { label1.Text = "Hello,World!"; } ☆VB☆ Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = …
実はVBより書きやすいと感じました。 今後C#も書いていきたいです。 XNAもC#だし。
記述しててなんか途中からバブルソートじゃない気もしてきた。。。using System; using System.Text; using System.Windows.Forms;namespace sort { public partial class Form1 : Form { int[] i = new int[] { 3, 6, 1 }; public Form1() { InitializeComp…
using System; using System.Text; using System.Windows.Forms;namespace test { public partial class Form1 : Form { int[] i = new int[] { 3, 6, 1 }; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e)…
InitializeComponentメソッドを消してしまってデザインが真っ白になりました。 ちゃんちゃん。
using System; using System.Text; using System.Windows.Forms; namespace test { public partial class Form1 : Form { public Form1() { InitializeComponent(); button1.Text = "クリック"; MessageBox.Show("Hello,World!"); listBox1.Enabled = true; …
セミコロンを付け忘れてしまうんですよね。using System; using System.Text;namespace test_text { class non_test { static void Main(string[] args) { int test = 10; Console.WriteLine(test); } } }