473,379 Members | 1,201 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,379 software developers and data experts.

How can I get the border styles of a Text Box and Rich Text Box to Match

Hi Gang,

I'm using VB 2005 so if you don't have that then you might skip this
issue. I need to get a rich text box and a regular text box's border
styles to match. For further explanation please see the screenshot.
http://christianblackburn.com/misc/Find%20Files%20Text%20Boxes%20Don't%20Match.png

Thanks,
Christian Blackburn

Jan 1 '06 #1
3 1516

Don't have an answer for you, but perhaps you could
wrap it in a usercontrol where you control the look of
the border? Perhaps with the use of the ControlPaint class.
Not sure if the methods on the ControlPaint class are
themed and will give you what you want for free.

Perhaps you'll have a better chance getting an answer
to this question in the
microsoft.public.dotnet.framework.windowsforms.con trols newsgroup?

/Joergen Bech

On 1 Jan 2006 05:43:11 -0800, "Christian Blackburn"
<my*********@Yahoo.com> wrote:
Hi Gang,

I'm using VB 2005 so if you don't have that then you might skip this
issue. I need to get a rich text box and a regular text box's border
styles to match. For further explanation please see the screenshot.
http://christianblackburn.com/misc/Find%20Files%20Text%20Boxes%20Don't%20Match.png

Thanks,
Christian Blackburn


Jan 1 '06 #2
Hi Joergen,

Thanks for the alternate newsgroup tip. I'll have to drop them a line
if I can't figure this out. I think I need to stop being such a wimp,
open up that bloated XML code and add or subtract code as necessary.

Thanks,
Christian Blackburn

*** Sent via Developersdex http://www.developersdex.com ***
Jan 1 '06 #3
Christian,

"Christian Blackburn" <my*********@Yahoo.com> schrieb:
I'm using VB 2005 so if you don't have that then you might skip this
issue. I need to get a rich text box and a regular text box's border
styles to match. For further explanation please see the screenshot.
http://christianblackburn.com/misc/Find%20Files%20Text%20Boxes%20Don't%20Match.png


I have spent some hours and came up with this solution:

<URL:http://dotnet.mvps.org/dotnet/samples/controls/ThemedRichTextBox.zip>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 2 '06 #4

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

Similar topics

3
by: Markus | last post by:
hi, i am new to the xsl-fo-pdf-stuff... i want to create a pdf document with apache-fop. in this document i do have a border around two blocks. my designer want to have round corners for the...
0
by: Chef Blair | last post by:
I want to use CSS to control the color and borders on all the tables in my site, so I can just modify the CSS file, to control the behavior of the tables. Problem Is: Using CSS I cant seem to...
7
by: Bob Bedford | last post by:
I've an image in a cell of a table. I've this CSS: ..dbtable{ width: 600px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; border-collapse: collapse; border: 1px solid #000000;
2
by: Jon | last post by:
Hi all, I am trying to create a page that contains a number of div elements, with links on the left side of the page allowing the user to select which div to display. Some of the pages contain...
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: jason | last post by:
Playing around with asp.net 2.0 and asp:menu for the first time.. what's the attribute/code so that each item in my menu has a *SEPERATE* border around it? Seems I can only make the border around...
1
by: VincentCorp | last post by:
I have a td element in my html file: <td class="tableborder" width="735" bgcolor="#FFFFFF" valign="top"> If I put inside the HTML file it works fine but I want a central CSS file....
0
by: eggsurplus | last post by:
<em>I just posted this in the wrong forum so sorry if anyone gets a dup!</em> I'm working on a slide down horizontal menu and I'm having issues getting the border around the submenu to display...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.