Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Interface and Graphics > Changing Frame Caption Font Properties

Thread Tools Display Modes
Old 04-17-2012, 01:38 AM
calltronics calltronics is offline
Join Date: Oct 2011
Posts: 10
Default Changing Frame Caption Font Properties

I've ran into a small problem regarding unicode and frames.
On a form I can change all the labels to the Russian codepage quite happily.
When I try to do the same for groups and frames captions the change does not occur.

After doing a find all ctrlObject I then check to see if I want Russian and then change the charaterset for the control object: -

If MyLanguage = "Russian" Then
Charset = "windows-1251"
ctrlObject.Font.Name = "MS Sans Serif"
ctrlObject.Font.Charset = 204

This works fine on all controls except frames.
To get these to work I have to change the setting unicode language in windows which requires then a reboot.
Any of you ever come about this problem?
Doing my head in!!!
Thank you Steve
Reply With Quote
Old 04-17-2012, 08:22 AM
passel's Avatar
passel passel is offline
Sinecure Expert

Super Moderator
* Guru *
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 7,980

Well, I suppose it may be "cheesy", but you could put a label in the frame and position it over the caption area, and set the label to the value of the caption.
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
Reply With Quote
Old 04-17-2012, 09:24 AM
Gruff's Avatar
Gruff Gruff is offline
Bald Mountain Survivor

Retired Moderator
* Expert *
Join Date: Aug 2003
Location: Oregon, USA
Posts: 6,440

Another option would be to create your own custom Frame Control as a UserControl. Make it a container and draw whatever you like on its surface.
Burn the land and boil the sea
You can't take the sky from me

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..