how can i put code in the descrition
Hi, I see topics that they put a their code in the description. How can i do that?
thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dushan StankovicPosted Sep 24, 2009, 11:17 AM
Danatas GerviPosted Sep 24, 2009, 11:11 AM
paste to empty MS Word document -> editing (the font size an tabulation)
copy to clipboard -> paste to forum answer form.
:)
Danatas GerviPosted Sep 24, 2009, 11:08 AM
class Program
{
public static void Main()
{
frmMain main = new frmMain();
Application.Run(main);
}
public static void Main()
{
frmMain main = new frmMain();
Application.Run(main);
}
}
joao carlosPosted Sep 24, 2009, 11:04 AM
Danatas GerviPosted Sep 24, 2009, 11:00 AM
This looks better, IMHO. ;-)
private NetTcpBinding ConfigureBinding()
{
NetTcpBinding gBinding = new NetTcpBinding();
gBinding.CloseTimeout = new TimeSpan(0, 0, 30);
gBinding.OpenTimeout = new TimeSpan(0, 1, 0);
gBinding.ReceiveTimeout = new TimeSpan(0, 10, 0);
gBinding.SendTimeout = new TimeSpan(0, 10, 0);
gBinding.Security.Mode = SecurityMode.None;
gBinding.MaxReceivedMessageSize = 10000000;
return gBinding;
}
public void RegisrerSameProperties(Control MainControl, List<string> displayedProperties)
{
ucSamePropertyBase sameProp = MainControl as ucSamePropertyBase;
if (sameProp != null)
{
InitOneSameProperty(sameProp);
displayedProperties.Add(sameProp.FieldPropertyName);
}
else
{
foreach (Control cntr in MainControl.Controls)
{
RegisrerSameProperties(cntr, displayedProperties);
}
}
}
joao carlosPosted Sep 24, 2009, 10:07 AM
Danatas GerviPosted Sep 24, 2009, 9:00 AM
I asked ….
The simplest way – to paste formatted text from VS to MS Word, and after that – copy from Word doc to forum.
joao carlosPosted Sep 24, 2009, 8:21 AM
Praveen KumarPosted Sep 24, 2009, 1:20 AM
Just copy the code from VS or doc file and paste it to the editor.