Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
Thread myThread = new Thread(MyThreadMethod);myThread.Name = "my thread";myThread.IsBackground = true;
Dim myThread As New Thread(AddressOf MyThreadMethod) myThread.Name = "my thread" myThread.IsBackground = True
Thread myThread = new Thread(MyThreadMethod) {Name="my thread", IsBackground=true};
Dim myThread As New Thread(AddressOf MyThreadMethod) With {.Name = "my thread", .IsBackground = True}
TextBox t = new TextBox {Text="Hi", Multiline=true, Location = new Point(5,5), Size=new Size(50,100)};
Dim t As New TextBox With {.Text = "Hi", .Multiline = True, .Location = New Point(5, 5), .Size = New Size(50, 100)}
TextBox t = new TextBox(); t.Text = "Hi"; t.Multiline = true; t.Location = new Point(5, 5); t.Size = new Size(50, 100);