473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Resizing a rich text box to eliminate scroll bars

We use non-standard buttons in our app (Ok, Cancel, ...) The MsgBox
uses the standard buttons, which looks inconsistent. I need to make a
MsgBox replacement.

I could use a text box for the message, and simply use the graphics
measurestring method to get the height and width of the strings. I
could calculate the necessary height and width needed for the text box
control.

Since I have to take the time to develop a new form, I'd like to
greatly enhance the appearance of my new form by using a rich text box
instead of a text box control. I can format bold, color strings,
different size fonts, bullets, ...

How do I determine the needed dimensions of the rich text box with
eliminating the horizontal and vertical scroll bars?

Thanks.
Shane

May 12 '06 #1
0 1427

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paradigm | last post by:
I have a number of text boxes on a number of forms and I cannot get the scroll bars to display. The text boxes have the scrollbars property set to vertical. I can use the cursor keys to scroll up...
2
by: gjtired | last post by:
Hi, I'm not sure the best way to do something and I hope someone can help me. I'm developing a web application that a user enters test questions in. I store the questions in a database. When a...
5
by: pphillips | last post by:
On my webform I have a textbox. When the page loads I put some text in the textbox. The text is 2 sentences and all I want to do is to put the sentences on different lines. It use to be so...
0
by: Paul via .NET 247 | last post by:
(Type your message here) Hi, just new to VB.Net. I've got a rich text box with scroll bars set to ForcedBoth, andam using the VSCROLL event. Trouble is, it doesn't seem to firewhen I scroll by...
0
by: ray well | last post by:
hi, my app has two parallel rich text boxes containing the same content in 2 different languages. the lines parallel each other, line #3 in english contains the same content as line #3 in...
0
by: Eric | last post by:
I have a TableLayout that I'm having problems with. I am placing controls in it that have scroll bars. When I put enough of them on the control to make the TableLayout's scroll bars appear the...
1
by: tech | last post by:
I am working on an application with a rich text box and I am starting to go crazy. Here’s what I need to do: * Set the width of the text box to the width of the widest string. * Get the height...
6
by: Taylor Wass | last post by:
Hi I am making a chat program. When wsk_receiver gets data, it adds it to a new line on rich_history to make a sort of history for the chat. However, when the rich box is filled up even with scroll...
0
by: Tirrell Cotton | last post by:
Does anyone know how to create a Rich Text HTML editor where the text editing area grows vertically as you type? If not a RTE then just a normal ASP.NET Multi-Line Text Box that expands vertically...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
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,...
0
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...
0
tracyyun
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.