|
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: GSX |
last post by:
I've been reading and searching (and searching and reading) for far too
many hours. I'm rather new - so I apologize if this is an over asked
question...
I'm working on a small text editor as a learning project using the
RichTextBox control. I wish to display the current line and total line
count on the status bar, and also the cursor position on the current line.
I have found the current line by using...
|
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: 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: gsb58 |
last post by:
Hi!
I'm new to VB.NET
Anybody that could show me how to find the cursor position in a
RichEdit?
That is: when user click anywhere in the box and there's some text
already, I want to programatically move to a new line and insert time,
make a new line and user will be ready to insert new text.
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej and
I was wondering if anyone here would be able to give me some tips for
young players such as myself, for learning the language.
Is this the best Newsgroup for support with JAVA?
|
by: Gustaf |
last post by:
Some error handling code:
catch (System.Xml.XmlException e)
{
Console.WriteLine("Error in " + e.SourceUri + ": " + e.Message);
return;
}
The output:
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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: 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: 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: 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...
|