2
Reply

texbox text in justified mode

nishant ranjan

nishant ranjan

Mar 29 2012 5:31 AM
1.7k
i have a textbox whose text mode is multiline.  what i want is when the text is shown in textbox it should be justified i.e., its text should start in one margin and end in one margin. how i can do this



<asp:TextBox ID="txt_disclaimer" runat="server" Width="60%"  Height="300px" BorderStyle="None" TextMode="MultiLine" Style="resize: none"  ReadOnly="true" Text="

The OpenFileDialog object interacts with the Computer's API (Application Programming Interface) to present available files to the user and retrieves the user's file selection back to the program.  This object is part of the System.Windows.Forms library so no additional using reference will be needed. 

This dialog can be customized to show the file type, beginning directory, and the title to be displayed on the dialog itself.

When you limit the file type to just the extension .txt as we did in this sample code, only those particular file types will be visible to the user although they do have the option to select All files (*) as well.

"></asp:TextBox>

Answers (2)