|
by: Chris |
last post by:
Using VB6.
With a RichTextbox, I can get the position of the character under the mouse
pointer with an API call like: SendMessage(hWnd, EM_CHARFROMPOS, 0&, Pointl)
by passing the mouse x,y co-ordinates in the Pointl structure.
But does anyone know a way to get the *attributes* of the character (Bold,
Underline, etc) WITHOUT affecting the textbox in any way?
Any method that requires the character to be the selected text (like
|
by: Just Me |
last post by:
I insert text in a RichTextBox ending each line with vbCrLf.
I think when I search the RichTextBox text I do not find any CR's.
In the Text property is the end of line char a LineFeed?
Are the Cd's discared?
What is it in a file?
|
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: Al |
last post by:
Hi,
Is there any way to replace a character at a position? Without cussing the
RichTextBox to scroll. For example the following code will replaces the by
removing but the side effect is that it will cause it to scroll.
aRichtext.Text = aRichtext.Text.Remove(position, 1)
aRichtext.Text = aRichtext.Text.Insert(position, "Y")
|
by: John Smith |
last post by:
I have text files and I get binary offsets of text portion of these files
from VB6 program with RichTextBox. I use VB.Net 2003 and need to select and
highlight the text between given offsets. RichTextBox does not highlight the
correct string as it treats new line pair as one character. Is there a way to
highlight the correct string ? How do I translate real binary offsets to
richtextbox offsets ?
To reproduce:
I have placed a text box...
|
|
by: Jonathan Smith |
last post by:
I have a VB app that has a richtextbox with the word wrap set to true. I need
to be able to output the text to a text file, but it just puts the text in
the file as one long line.
How do i replace word wrap (i.e. soft returns) with carriage returns?
|
by: Marcel Saucier |
last post by:
Hello, I want to use the above characters codes chart but I dont know how to
set the typeface (documentation: The characters that appear in Windows above
127 depend on the selected typeface).
For example, when I print the chr(205), I am not getting the one shown in
the Chart 2 list...
A step by step approach will be appreciated (in a windows form application).
--
|
by: Venkatachalam |
last post by:
Hello,
I am reading a Column form the DataTable and have to display in the
RichTextBox/TextBox (With Multi-line).
When I try to do so:
The width occupied by each charaters are not same and that causes column
alignment problem.
For ex.
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
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...
|