Hi all,
I'm new to VB2008 and changing from VB6 everything seem a lot more cumbersome, but anyway - my problem: -
I need to change the Text of items at run time, using the code below. Some controls work OK but MenuStrip does not. Has anybody have any ideas.
Thanks
For Each ctl In frm.Controls
If TypeOf ctl Is MenuStrip Then
For Each obj In ctl.Controls
nVal = obj.Tag
If nVal > 0 Then obj.text = Lang(nVal)
Next
Else
For Each obj In ctl.Controls
nVal = obj.tag
If nVal > 0 Then obj.text = Lang(nVal)
Next
End If
Next
I'm new to VB2008 and changing from VB6 everything seem a lot more cumbersome, but anyway - my problem: -
I need to change the Text of items at run time, using the code below. Some controls work OK but MenuStrip does not. Has anybody have any ideas.
Thanks
For Each ctl In frm.Controls
If TypeOf ctl Is MenuStrip Then
For Each obj In ctl.Controls
nVal = obj.Tag
If nVal > 0 Then obj.text = Lang(nVal)
Next
Else
For Each obj In ctl.Controls
nVal = obj.tag
If nVal > 0 Then obj.text = Lang(nVal)
Next
End If
Next