// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetOutputSetting()
{
GcAddress gcAddress1 = new GcAddress();
TextBox inputCodeTextBox = new TextBox();
TextBox textBox1 = new TextBox();
TextBox textBox2 = new TextBox();
AddressOutputSetting setting = new AddressOutputSetting();
setting.SplitAreaDetails = true;
setting.AddressQuerymode = AddressQuerymode.ByZipCodeForAll;
setting.GenerateCompanyAddressKana = true;
// the first Address information query result will be ouput to textBox1 control.
setting.AddressOutput = textBox1;
// the first Address Kana information query result will be ouput to textBox2 control.
setting.AddressKanaOutput = textBox2;
gcAddress1.SetAddressOutputSetting(inputCodeTextBox, setting);
}
' Please use the following namespace
' using System.Windows.Forms;
' using GrapeCity.Win.Editors;
Public Sub SetOutputSetting()
Dim gcAddress1 As New GcAddress()
Dim inputCodeTextBox As New TextBox()
Dim textBox1 As New TextBox()
Dim textBox2 As New TextBox()
Dim setting As New AddressOutputSetting()
setting.SplitAreaDetails = True
setting.AddressQuerymode = AddressQuerymode.ByZipCodeForAll
setting.GenerateCompanyAddressKana = True
' the first Address information query result will be ouput to textBox1 control.
setting.AddressOutput = textBox1
' the first Address Kana information query result will be ouput to textBox2 control.
setting.AddressKanaOutput = textBox2
gcAddress1.SetAddressOutputSetting(inputCodeTextBox, setting)
End Sub