|
by: Arlyn_L |
last post by:
Can someone please explain why I get a different result when using the
GetLineFromCharIndex method on the last char in the Text property and the
Lines.Length property?
MainForm_gedcomTextBox is a RichTextBox.
For example this code:
private void End_menuItem_Click(object sender, System.EventArgs e)
{
|
by: JRB |
last post by:
Hi, I've got a bunch of text put onto a richTextBox with a StreamWriter.
Every now and then I insert a '\n' character for a new line. It displays
properly in the richTextBox with the \n character moving the text down to the
next line. The problem is that I have it set up so when the user clicks a
button I want to be able to save everything on the richTextBox to a file. It
works properly, but when I view the text file with Notepad, the \n...
|
by: Rachel Suddeth |
last post by:
I have the index of a line in the Lines array of a RichTextBox. I would like
to have it scroll so that line displays at the top. Is there no way to do
this?
The only way I can see to make it scroll is with ScrollToCaret(). But I
don't know how to set the "caret" to a particular line.
Any suggestions?
-Rachel
|
by: M O J O |
last post by:
Hi,
I'm using a RichTextBox with WordWrap=True and MultiLine=False.
When the text is to long, it fills more lines.
How do I get the number of lines the text uses?
Thanks!
|
by: Sakharam Phapale |
last post by:
Hi All,
How to get the starting and end character position of the given line no in
RichTextBox?
I have written following code but it takes more time.
Is there any RichTextBox function or API function which gives that?
Private Sub SetLineStartEndPosition(ByVal myRichTextBox as RichTextBox,
ByVal LineNo As Integer, ByRef StartPosition As Integer, ByRef EndPosition
As Integer)
|
|
by: ronchese |
last post by:
Hello All.
I'm using the RichTextBox control to show text to user that can do the
primary font formatting: fontname, size, color, bold, italic and underline.
Unlike the RichTextBox used in VB 6, this control in .NET do not apply the
expected formatting when there are multiple selection of different font
formats.
For example, if I select a text that have portions in Bold and other portion
|
by: Vincent |
last post by:
Dear all,
I have implemented a class to export the content of RichTextBox to
image in WYSISYG mode so that line breaks on the screen are the same as
exported.
C# Code:
public struct STRUCT_RECT
|
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= |
last post by:
Hello,
I have a scrolling RichTextBox to which I add characters one at a time using
the AppendText method as they are received by my application. Some of these
characters may be backspace characters, which I need to somehow use to erase
the most recent character displayed in the last line displayed in the text
box. Of course, the backspace must only apply to the last line and must not
back up into the previous line once all characters...
|
by: Andrus |
last post by:
I use Winforms RichTextBox control to edit scripts. Scripts are plain ascii
texts.
When error occurs, script engine returns character position of error in code
as integer.
How to position cursor to this character position ?
RichTextBox does not have current position property.
Andrus.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|