Console.WriteLine("The value of X = " + x.ToString() + "!")
string ret;
for(int x=0;x<variable.Length;x++)
{
ret += ";next value=" + variable + " and is " + boolVar.ToString();
}
string ret;
for(int x=0;x<variable.Length;x++)
{
ret.Append(";next value=" + variable + " and is " + boolVar.ToString();
}
[DllImport("user32.dll", EntryPoint="GetClassNameA")]
static extern int GetClassName (int hwnd, System.Text.StringBuilder lpClassName, int nMaxCount);
private void button1_Click(object sender, System.EventArgs e)
{
System.Text.StringBuilder str=new System.Text.StringBuilder(256); // buffer of 256 chars.
GetClassName(base.Handle.ToInt32(),str,str.Capacity);
MessageBox.Show(str.ToString());
}
[DllImport("user32.dll", EntryPoint="GetClassNameA")]
static extern int GetClassName (int hwnd, string lpClassName, int nMaxCount);
private void button1_Click(object sender, System.EventArgs e)
{
string str=string.Empty;
GetClassName(base.Handle.ToInt32(),str,256);
MessageBox.Show(str);
}
Dim strBuilder As StringBuilder = New StringBuilder()
For intIndex = 0 To UBound(gMask)
strBuilder.Append(gMask(intIndex))
Next
Go save to disk (using strBuilder.ToString)