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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Praveen KumarRank #4 · 79.9K reputationPosted Sep 23, 2009, 9:20 PM EDT
Just copy the code from VS or doc file and paste it to the editor.
joao carlos16 reputationPosted Sep 24, 2009, 4:21 AM EDT
Danatas GerviRank #4,152 · 361 reputationPosted Sep 24, 2009, 5:00 AM EDT
I asked ….
The simplest way – to paste formatted text from VS to MS Word, and after that – copy from Word doc to forum.
joao carlos16 reputationPosted Sep 24, 2009, 6:07 AM EDT
Danatas GerviRank #4,152 · 361 reputationPosted Sep 24, 2009, 7:00 AM EDT
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 carlos16 reputationPosted Sep 24, 2009, 7:04 AM EDT
Danatas GerviRank #4,152 · 361 reputationPosted Sep 24, 2009, 7:08 AM EDT
class Program
{
public static void Main()
{
frmMain main = new frmMain();
Application.Run(main);
}
public static void Main()
{
frmMain main = new frmMain();
Application.Run(main);
}
}
Danatas GerviRank #4,152 · 361 reputationPosted Sep 24, 2009, 7:11 AM EDT
paste to empty MS Word document -> editing (the font size an tabulation)
copy to clipboard -> paste to forum answer form.
:)
Dushan Stankovic72 reputationPosted Sep 24, 2009, 7:17 AM EDT