Puhhh!!! Schwere Geburt!

So klappt's jetzt:

          Dim myValue As DataRowView
        myValue = ComboBox1.Items(ComboBox1.SelectedIndex)
        Dim cmd As New SqlCommand
        cmd.Connection = con
        cmd.CommandText = "Select * from tblHuette where [EMAIL PROTECTED]"
        cmd.Parameters.Add("@BL", myValue.Item("tblIDBL")) 


Danke an Chris und Alex,

Reinhold

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Alexander Zeitler
Gesendet: Dienstag, 01. Juni 2004 22:23
An: [EMAIL PROTECTED]
Betreff: RE: AW: AW: [Framework.net] ComboBox



> 
> Ich glaube, ich verheddere mich hier in der Umwandlung von C# in VB.

jetzt versuch ich mich auch mal in VB.NET ;-)

Dim drv As DataRowView
drv = CType(ComboBox1.Items(ComboBox1.SelectedIndex), DataRowView)(0)
TextBox1.Text = drv("SpaltenName")

Gruss

Alex

Kommt zur .NET Community Conference in Karlsruhe
http://www.dotnetcommunityconference.com


_______________________________________________
Framework.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/framework.net


_______________________________________________
Framework.net Mailingliste, Postings senden an:
[EMAIL PROTECTED]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/framework.net

Antwort per Email an