名前空間一覧 > GrapeCity.Web.Input.IMList 名前空間 > GcListBox クラス : SelectedItem プロパティ |
Private Sub GcListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GcListBox1.SelectedIndexChanged If GcListBox1.SelectedItem = Nothing Then Return Label1.Text = GcListBox1.SelectedItem.Text End Sub
private void GcListBox1_SelectedIndexChanged(object sender, System.EventArgs e) { if (GcListBox1.SelectedItem == null) return; label1.Text = GcListBox1.SelectedItem.Text; }