C
CES
All,
I'm trying to figure out how to bring to front a control using code:
Basically I have 5 Rows of boxes that make up an address.
Country = Combo Box
Address line 1 = Text Box
Address line 2 = Text Box
Address line 3 = 1 Text Box Or 3 Text Boxes depending on the country that is chosen
Address line 4 = 1 Text Box Or 3 Text Boxes depending on the country that is chosen
If the country is not US that I want to hide the visibility of the three text boxes that make up street number, street address, apartment number and show only the Address3 text box that currently resides below the three visible text boxes. I then want to do the same with city states zip.
The code that I've attempted is below:
If tmp.bxCboCountry > 1 And tmp.bxCboCountry <> "" Then
tmp.bxTxtStreetNum.Visible = False
tmp.bxTxtStreetName.Visible = False
tmp.bxTxtAptNum.Visible = False
tmp.bxTxtCity.Visible = False
tmp.bxTxtState.Visible = False
tmp.bxTxtZip.Visible = False
'
tmp.bxTxtAddress3.Visible = True
tmp.bxTxtAddress4.Visible = True
Else
tmp.bxTxtStreetNum.Visible = True
tmp.bxTxtStreetName.Visible = True
tmp.bxTxtAptNum.Visible = True
tmp.bxTxtCity.Visible = True
tmp.bxTxtState.Visible = True
tmp.bxTxtZip.Visible = True
'
tmp.bxTxtAddress3.Visible = False
tmp.bxTxtAddress4.Visible = False
End If
The problem with this is while it does accurately adjust the visibility of the boxes it does not change the stacking order and I can't seem to find how to do that basically sending city state zip to the back and bring forward address4.
I would appreciate any advice on accomplishing this task. Thanks in advance. - CES
I'm trying to figure out how to bring to front a control using code:
Basically I have 5 Rows of boxes that make up an address.
Country = Combo Box
Address line 1 = Text Box
Address line 2 = Text Box
Address line 3 = 1 Text Box Or 3 Text Boxes depending on the country that is chosen
Address line 4 = 1 Text Box Or 3 Text Boxes depending on the country that is chosen
If the country is not US that I want to hide the visibility of the three text boxes that make up street number, street address, apartment number and show only the Address3 text box that currently resides below the three visible text boxes. I then want to do the same with city states zip.
The code that I've attempted is below:
If tmp.bxCboCountry > 1 And tmp.bxCboCountry <> "" Then
tmp.bxTxtStreetNum.Visible = False
tmp.bxTxtStreetName.Visible = False
tmp.bxTxtAptNum.Visible = False
tmp.bxTxtCity.Visible = False
tmp.bxTxtState.Visible = False
tmp.bxTxtZip.Visible = False
'
tmp.bxTxtAddress3.Visible = True
tmp.bxTxtAddress4.Visible = True
Else
tmp.bxTxtStreetNum.Visible = True
tmp.bxTxtStreetName.Visible = True
tmp.bxTxtAptNum.Visible = True
tmp.bxTxtCity.Visible = True
tmp.bxTxtState.Visible = True
tmp.bxTxtZip.Visible = True
'
tmp.bxTxtAddress3.Visible = False
tmp.bxTxtAddress4.Visible = False
End If
The problem with this is while it does accurately adjust the visibility of the boxes it does not change the stacking order and I can't seem to find how to do that basically sending city state zip to the back and bring forward address4.
I would appreciate any advice on accomplishing this task. Thanks in advance. - CES