VB question

Add-in Express™ Support Service
That's what is more important than anything else

VB question
 
Sebastian Jaurena




Posts: 56
Joined: 2008-08-04
Hi,

Im generating buttons on my toolbar on the fly, in my spanish windows version I dont have any problems, but in english version the buttons is not showing the text :o

What can be happen?

I add the same text on a menuitem and works perfect in both OS version.

Below is the code to generate the button on the fly.

Thanks.



With book

.Name = "BookmarksPanel_" & key
.Text = nombre_bookmark

.AutoSize = False
.Height = 24
.Width = wBookmarks

.Location = position

.TextAlign = Drawing.ContentAlignment.MiddleCenter

.ForeColor = System.Drawing.Color.White
.BackColor = Drawing.Color.Transparent

.Font = New Drawing.Font("Arial", "9,75", Drawing.FontStyle.Regular, Drawing.GraphicsUnit.Point, 1, False)

.Cursor = System.Windows.Forms.Cursors.Hand

.FlatStyle = FlatStyle.Flat
.FlatAppearance.BorderColor = System.Drawing.Color.White
.FlatAppearance.BorderSize = 0
.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(106, Byte), Integer), CType(CType(196, Byte), Integer))
.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(106, Byte), Integer), CType(CType(196, Byte), Integer))

.UseVisualStyleBackColor = False

End With
Posted 21 Oct, 2008 12:42:09 Top
Eugene Astafiev


Guest


Hello Sebastian,

Do you use Spanish Office in both cases?

Could you send us your add-in project to the support e-mail address (see Readme.txt)?
Posted 21 Oct, 2008 15:35:22 Top
Sebastian Jaurena




Posts: 56
Joined: 2008-08-04
I was inserting the buttons inside a container, so I tried insert outside from it, and works!

I'm getting a little crazy with this kind of stupid situations.

Other problem we are having, is with .net frameworks. Each language has it own version of it. I set the installer to download the .Net framework from Microsoft site, but download the same version independent of the Windows language. So, when try to install it, get an error. So, to install .Net Framework, I must do it manually. Exist some multilanguage version?

Anyway, if you don't know, don't care about it.

Thanks.
Posted 22 Oct, 2008 07:27:00 Top
Eugene Astafiev


Guest


Hello Sabastian,

What localization do you use in the MSI project?

You may try to change the Localization property and see the results.
Posted 22 Oct, 2008 07:42:03 Top
Sebastian Jaurena




Posts: 56
Joined: 2008-08-04
Could be, but after that, I should generate a version for each language, this is right?
Posted 22 Oct, 2008 08:21:13 Top
Eugene Astafiev


Guest


Yes, you are on the right way.
Posted 22 Oct, 2008 08:40:39 Top
Sebastian Jaurena




Posts: 56
Joined: 2008-08-04
Now I'm testing the toolbar on Windows Vista, and I'm seeing that is not writing over registry. What can be happening?

I read and write values using:

My.Computer.Registry.GetValue
My.Computer.Registry.SetValue

Thanks.
Posted 22 Oct, 2008 10:09:04 Top
Eugene Astafiev


Guest


Sebastian,

Please make sure that you have sufficient permissions to edit registry.
Posted 22 Oct, 2008 13:34:27 Top
Sebastian Jaurena




Posts: 56
Joined: 2008-08-04
How can I give administrator permission to the toolbar? In windows XP I dont have this problem.

Thanks
Posted 22 Oct, 2008 13:41:43 Top
Eugene Astafiev


Guest


Sebastian,

What registry hive do you use?
Posted 22 Oct, 2008 13:52:14 Top