473,487 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Fomatting toolbar

Trying to add the formatting toolbar to a memo field in '97. I am able to
add the toolbar from the view\toolbar\custom menu but as soon as I open
the database it becomes grayed out. Hopefully there is a fairly simple
way to overcome this but haven't been able to find it myself. Any
suggestions ???
Thanks
dc
Oct 12 '08 #1
3 2403
ARC
Do you mean that the memo field is an active x rich text control? If the
field is just set to memo in the table, it won't support the formatting
toolbar. For the rich text custom control, you pretty much have to put your
own buttons in there, such as a button for bold, underline, text alignment,
a font selection, etc., and have your own code for all buttons. For example,
for the microsoft rich text control, the code behind the bold button would
be something like:

Me!txt1.SelBold = Not Me!txt1.SelBold

If this is what you were after, and you need more sample code for other
formatting buttons, let me know.

Andy
"doncee" <no***********@nospamswbell.wantedwrote in message
news:Xn*********************************@216.196.9 7.131...
Trying to add the formatting toolbar to a memo field in '97. I am able to
add the toolbar from the view\toolbar\custom menu but as soon as I open
the database it becomes grayed out. Hopefully there is a fairly simple
way to overcome this but haven't been able to find it myself. Any
suggestions ???
Thanks
dc
Oct 13 '08 #2
Thank you for your response. Yes, this is just a normal run of the mill
memo field. I was afraid that it did not support formatting & your
reply confirmed that. If you wouldn't mind posting a few more sample
codes for rich text I would appreciate it. Once again, thanks for the
clarification & reply
dc

ARC" <PC*****@PCESoft.invalidwrote in
news:uj*****************@nlpi067.nbdc.sbc.com:
Do you mean that the memo field is an active x rich text control? If
the field is just set to memo in the table, it won't support the
formatting toolbar. For the rich text custom control, you pretty much
have to put your own buttons in there, such as a button for bold,
underline, text alignment, a font selection, etc., and have your own
code for all buttons. For example, for the microsoft rich text
control, the code behind the bold button would be something like:

Me!txt1.SelBold = Not Me!txt1.SelBold

If this is what you were after, and you need more sample code for
other formatting buttons, let me know.

Andy
"doncee" <no***********@nospamswbell.wantedwrote in message
news:Xn*********************************@216.196.9 7.131...
>Trying to add the formatting toolbar to a memo field in '97. I am
able to add the toolbar from the view\toolbar\custom menu but as
soon
>as I open the database it becomes grayed out. Hopefully there is a
fairly simple way to overcome this but haven't been able to find it
myself. Any suggestions ???
Thanks
dc

Oct 13 '08 #3
ARC
You're welcome.

'Italics:
Me!txt1.SelItalic = Not Me!txt1.SelItalic

'center alignment
Me!txt1.SelAlignment = rtfCenter 'left= rtfLeft, right= rtfRight

'underline
Me!txt1.SelUnderline = Not Me!txt1.SelUnderline

'font
CommonDialog1.Flags = cdlCFBoth
CommonDialog1.ShowFont
With Me!txt1
.SelFontName = CommonDialog1.FontName
.SelFontSize = CommonDialog1.FontSize
.SelBold = CommonDialog1.FontBold
.SelItalic = CommonDialog1.FontItalic
.SelStrikeThru = CommonDialog1.FontStrikeThru
.SelUnderline = CommonDialog1.FontUnderline
End With
Me!txt1.SetFocus
Hope this helps,

"doncee" <no***********@nospamswbell.wantedwrote in message
news:Xn********************************@216.196.97 .131...
Thank you for your response. Yes, this is just a normal run of the mill
memo field. I was afraid that it did not support formatting & your
reply confirmed that. If you wouldn't mind posting a few more sample
codes for rich text I would appreciate it. Once again, thanks for the
clarification & reply
dc

ARC" <PC*****@PCESoft.invalidwrote in
news:uj*****************@nlpi067.nbdc.sbc.com:
>Do you mean that the memo field is an active x rich text control? If
the field is just set to memo in the table, it won't support the
formatting toolbar. For the rich text custom control, you pretty much
have to put your own buttons in there, such as a button for bold,
underline, text alignment, a font selection, etc., and have your own
code for all buttons. For example, for the microsoft rich text
control, the code behind the bold button would be something like:

Me!txt1.SelBold = Not Me!txt1.SelBold

If this is what you were after, and you need more sample code for
other formatting buttons, let me know.

Andy
"doncee" <no***********@nospamswbell.wantedwrote in message
news:Xn*********************************@216.196. 97.131...
>>Trying to add the formatting toolbar to a memo field in '97. I am
able to add the toolbar from the view\toolbar\custom menu but as
soon
>>as I open the database it becomes grayed out. Hopefully there is a
fairly simple way to overcome this but haven't been able to find it
myself. Any suggestions ???
Thanks
dc

Oct 13 '08 #4

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

Similar topics

15
65723
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I...
102
7269
by: me | last post by:
How do I prevent the save/print/email/mypictures toolbar from popping up when IE users place their cursor over photos at my website? Thank you in advance for your help. Signed, me
11
2886
by: N. Graves | last post by:
I have checked the "Alignment and Sizing" toolbar but when I want to use in on aligning several form object the toolbar buttons stay grayed out. What am I missing. Thanks! N. Graves
4
5589
by: Jason Tabert | last post by:
Is there a way to create a custom IE toolbar with C# (or anything else in ..NET for that matter)? I have been looking all day and have had no luck finding a good place to start. I need to make...
6
3104
by: Juan Pedro Gonzalez | last post by:
I wanted to add a Combobox to a toolbar... Kind of the look you get on VisualStudio's toolbar. I've been able to find some VB 6 samples, but the placeholder option is no longer available for...
1
3427
by: Alfredo Barrientos | last post by:
Hi, I have a little trouble trying to assign a Toolbar control to another toolbar variable control. I am getting my forms controls with this: for (int j = 0; j <= frmChild.Controls.Count -...
4
3635
by: Gerhard | last post by:
I have an MS Access app with multiple forms. One of the forms has a Toolbar (MsComctlLib.Toolbar) and it works as advertised. I handle the buttons in the Toolbar1_ButtonClick event. I would like...
3
5229
by: Undergrid | last post by:
Hi All, I've got a few toolbars in my application hosted in a ToolStripContainer. I have found a problem whereby the location of a toolbar is not restored when doing a LoadSettings if the...
6
3882
by: =?Utf-8?B?L2Rldi9udWxs?= | last post by:
Hello, i am using visual studio 2003 enterprise architect version. I am making apps for the .Net framework 1.1. While testing an interface, i discovered something strange. In this application...
0
6967
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...
0
7181
jinu1996
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...
0
7352
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
5445
agi2029
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,...
1
4875
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...
0
4565
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...
0
3078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
bsmnconsultancy
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...

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.