Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - VB.NET Iterating controls fails
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VB.NET Iterating controls fails

 Post Reply Post Reply
Author
Message
ElvisM View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 October 2006
Location: Venezuela
Status: Offline
Points: 129
Post Options Post Options   Thanks (0) Thanks(0)   Quote ElvisM Quote  Post ReplyReply Direct Link To This Post Topic: VB.NET Iterating controls fails
    Posted: 26 June 2016 at 7:16pm
Dear Codejock team.

I have a form which look for translation in a resource table.
I have that iterate every control in the form to translate the Caption or Text property, however, I cant access to the axGroupBoxes Caption property.

How can I do to modify this property?

Next, the code:

For Each MiControl As Control In Formulario.
    If TypeOf MiControl Is Label Then
      
        'This part works fine
        CadenaOriginal = MiControl.Text
         MiControl.Text = My.Resources.Cadenas.ResourceManager.GetObject(MiControl.Tag)
        
     ElseIf TypeOf MiControl Is AxXtremeSuiteControls.AxGroupBox Then
                        CadenaOriginal = MiControl2.Caption 'This line causes error, because the Control has no the Caption property.
                        MiControl2.Caption = My.Resources.Cadenas.ResourceManager.GetObject(MiControl2.Tag)
     End If
Next

Sadly, I have seen that the Codejock support for Visual.NET is poor: help, samples, documentation even the forum.

May you please, give some hints to resolve this problem?

Best regards, 
Product: Xtreme SuitePro (ActiveX) version 17.2
Platform: Windows 10 64bits
Language: Visual Basic 2015
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.