PrivateSub Form4_Load(sender AsObject, e As EventArgs)HandlesMyBase.LoadDim month(11)AsObjectDim day(30)AsObjectFor i =0To30If i <12Thenmonth(i)= i +1EndIfday(i)= i +1NextComboBox1.Items.AddRange(month)ComboBox2.Items.AddRange(day)EndSubPrivateSub Button1_Click(sender AsObject, e As EventArgs)Handles Button1.ClickDim a AsIntegerDim b AsIntegera = ComboBox1.SelectedItemb = ComboBox2.SelectedItemIf a =1ThenIf b >0& b <=20ThenLabel1.Text= "魔蝎"ElseLabel1.Text= "水瓶"EndIfEndIfIf a =2ThenIf b >0& b <=19ThenLabel1.Text= "水瓶"ElseLabel1.Text= "雙魚"EndIfEndIfIf a =3ThenIf b >0& b <=20ThenLabel1.Text= "雙魚"ElseLabel1.Text= "白羊"EndIfEndIfIf a =4ThenIf b >0& b <=20ThenLabel1.Text= "白羊"ElseLabel1.Text= "金牛"EndIfEndIfIf a =5ThenIf b >0& b <=21ThenLabel1.Text= "金牛"ElseLabel1.Text= "雙子"EndIfEndIfIf a =6ThenIf b >0& b <=21ThenLabel1.Text= "雙子"ElseLabel1.Text= "巨蟹"EndIfEndIfIf a =7ThenIf b >0& b <=22ThenLabel1.Text= "魔蝎"ElseLabel1.Text= "水瓶"EndIfEndIfIf a =8ThenIf b >0& b <=23ThenLabel1.Text= "獅子"ElseLabel1.Text= "處女"EndIfEndIfIf a =9ThenIf b >0& b <=23ThenLabel1.Text= "處女"ElseLabel1.Text= "天秤"EndIfEndIfIf a =10ThenIf b >0& b <=23ThenLabel1.Text= "天秤"ElseLabel1.Text= "天蝎"EndIfEndIfIf a =11ThenIf b >0& b <=23ThenLabel1.Text= "天蝎"ElseLabel1.Text= "射手"EndIfEndIfIf a =12ThenIf b >0& b <=23ThenLabel1.Text= "射手"ElseLabel1.Text= "水瓶"EndIfEndIfEndSub