Print Page | Close Window

VB.NET Iterating controls fails

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23059
Printed Date: 20 January 2025 at 8:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VB.NET Iterating controls fails
Posted By: ElvisM
Subject: VB.NET Iterating controls fails
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net