How can I write these variables into one line of code in C#?

Look into composite formatting: Console.WriteLine(“{0}.{1}.{2}”, mon, da, yer); You could also write (although it’s not really recommended): Console.WriteLine(mon + “.” + da + “.” + yer); And, with the release of C# 6.0, you have string interpolation expressions: Console.WriteLine($”{mon}.{da}.{yer}”); // note the $ prefix.

Redirecting Console.WriteLine() to Textbox

Start by creating a new TextWriter that is capable of writing to a textbox. It only needs to override the Write method that accepts a char, but that would be ungodly inefficient, so it’s better to overwrite at least the method with a string. public class ControlWriter : TextWriter { private Control textbox; public ControlWriter(Control … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)