Monday, January 30, 2012

WPF Multiline Textbox

For Multiline  in TextBox we can use a TestBox Like this

We can make a TextBox Control that will support Multiline  by using 2 properties. TextWrapping="Wrap" and AcceptsReturn="True"

The XAML code for this TextBox

 <TextBox Height="131" HorizontalAlignment="Left" Margin="6,6,0,0"   
 Name="educationalInformationTextBox" VerticalAlignment="Top" Width="345" TextWrapping="Wrap" AcceptsReturn="True" />  

C# print file on LAN Printer

If you want to print any file on network printer then you can try with this code block // Change Default Printer System.Ma...