|
by: Jon Cooper |
last post by:
Hi,
I'm developing an app that uses a RichTextBox, and populates it with
colour formatted text at Form Load. However, I randomly receive this
error, which I believe is related to this data population:
Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object.
at System.Windows.Forms.RichTextBox.EditStreamProc(IntPtr dwCookie,
IntPtr buf, Int32 cb, Int32& transferred)
|
by: DG |
last post by:
i do:
for(int i=0; i<10; i++)
{
txtLog.Text = i.ToString() + "\r\n" + txtLog.Text;
startSelection = txtLog.SelectionStart;
lenghtSelection = txtLog.SelectionLength;
txtLog.Select(0, i.ToString().Length);
if(i%2 == 0)
|
by: Lespaul36 |
last post by:
I am writing lan chat program and want the messages to be color coded for
sent/recieved...you know the standard idea.
I cannot seem to get the richtextbox to keep the color. I do a recieve and
it is fine, I do a send and it is fine, another recieve and all of the text
becomes one color.
Here is the code I am using for the the Recieve..I use the same code for the
send.
|
by: Hugh Janus |
last post by:
OK, this is driving me crazy! As far as I can tell it should work. It
compiles fine.
I am saving the fore and back colour of a RTB to the registry like
this:
Srx.SetValue("ForeColour", Console.ForeColor.ToArgb.ToString)
Srx.SetValue("BackColour", Console.BackColor.ToArgb.ToString)
Then, I try to read the colours back in at runtime and change the
|
by: al jones |
last post by:
Sorry, it's getting late and I'm tired.
I'm trying to fill a richtect box with text derived from the array I was
asking about earlier (thank you). I'm not sure what I'm seeing - since
most of the examples show how to load and save an rtf file into / from a
rtbox (may want to save this guy, so that'll come in handy, later).
Does anyone one know of a sample showing how to append, piecemeal, text
into an rtb with format changes as...
|
|
by: dannyboy1990 |
last post by:
I've been developing in vb.net for a few months now, well since i left school and one of my projects for my current company is to create a sql tool which is used on a daily basis to update, delete and select from the database.
One of the functions i want this program to do is to highlight all sql words to make the program look alot 'cleaner'.
I have achieved this to a point, I am currently at the stage where my code works, but not well or...
|
by: Mague |
last post by:
Hey,
I need to open a website source code into a richtextbox. Is this possible? If it is please leave code
Also i have an unanswered question.
I wanted to know if in the richtextbox i could change the colour of text. I know you can do this with a selectedtext command but everytime i type into a richtextbox it higlights everything i want another colour. Is there a way i can change the font colour without making it highligting the things...
|
by: Paul E Collins |
last post by:
I want to colour certain characters as they are typed in a RichTextBox. I
started with this simple event handler.
private void rtb_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar >= ' ')
{
this.SelectedText = e.KeyChar.ToString();
this.SelectionColor = Color.Blue;
|
by: Gouri.Mahajan7 |
last post by:
Hello,
I want to change the font of the text in richtextbox without affecting
the colour of text. I want some text to be printed in different
colours. When I try to change the font of the text the colour is
turned to black. How to solve this problem.??
Thanks in advance.
Regards,
|
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: 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: 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: 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.
|