View Complete Post
What I am trying to do is create a RichTextBox control on my form. I want the RichTextBox control to only be able to contain 32 characters per line. I am using Courier New font, which is a fixed width font. I can set the width of the control so its long
enough to show 32 characters, which works. The problem I am having is that after 32 characters, if I set the WordWrap property to true, it will wrap the last word. I do not want the last word to wrap. I simply want it to go to the next line. I do not want
any carriage returns added to the code. I just, visually, want the control to jump to the next line, without wrapping any words. If I set WordWrap to false, then it doesn't wrap at all. it simply keeps going past 32 characters.
Does anyone know a way to make this control wrap text at 32 characters?
Can anybody tell me how to count the Number of characters ,while entering in the RichTextBox control and have to display the no of characters in the above
I have the following Menu control:
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu"
EnableViewState="false" IncludeStyleBlock="false" Orientation="Horizontal"
<asp:SiteMapDataSource ID="smdsMyMenu" runat="server" ShowStartingNode="false" SiteMapProvider="pebMySiteMapProvider"/>
I am creating a custom control by inheriting a server control, say LinkButton. There are properties like "BorderColor" available in LinkButton. Let's say, I don't want this particular property to be available when I create an instance of the custom control.
I want to completely hide this particular property (I don't want to override it but disable it.)
My code is as follows:
'I want to hide the following method in such a way that if an object of MyLinkButton is created, the following property is not available
Public Overrides Property BorderColor As System.Drawing.Color
Set(ByVal value As System.Drawing.Color)
MyBase.BorderColor = value
Can anyone help me with this oir provide few pointers?