Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 13:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Frage]VB08 listbox

Discussion on [Frage]VB08 listbox within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: LOCKED
Join Date: Oct 2008
Posts: 2,817
Received Thanks: 2,044
[Frage]VB08 listbox

Hi,
wollte fragen, wie man das aktuell angewählte Item umändert sprich:
Listbox1.items = Metin2, WoW, 4 Story
jetzt will ich WoW in Runescape verändern ohne das es die 2te Position verlässt!
Wie mache ich das??
MfG
Bestshocker
'Haseo is offline  
Old 05/12/2010, 16:17   #2

 
x]vIrus[x's Avatar
 
elite*gold: 37
Join Date: Apr 2004
Posts: 2,154
Received Thanks: 250
ohne jetzt wirklich vb zu können, schätz ich ma, dass das so geht:
Listbox1.Items(2) = "Runescape";
x]vIrus[x is offline  
Old 05/12/2010, 16:28   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 62
Received Thanks: 17
So weit ich es verstanden habe geht es so :

Code:
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim item1 As Integer = ListBox1.Items.Add("Metin2")
        Dim item2 As Integer = ListBox1.Items.Add("Nostale")
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim currentItem As Object = ListBox1.SelectedItem()
        Dim index As Integer = ListBox1.Items.IndexOf(currentItem)
        Dim text As String = TextBox1.Text

        ListBox1.Items.Item(index) = text
    End Sub

End Class
Demon-777 is offline  
Old 05/15/2010, 08:36   #4
 
Chain Reaction's Avatar
 
elite*gold: 251
Join Date: Oct 2009
Posts: 3,975
Received Thanks: 1,223
= Me.ListBox1.SelectedItem
bin mir nicht sicher
Chain Reaction is offline  
Reply


Similar Threads Similar Threads
[VB08]Frage zu ein paar codes
07/29/2010 - .NET Languages - 4 Replies
Hi leute ich mache ja seit ner zeit selbst vb08 programme nur hab ich nun ein project angefangen was mir probleme macht.und zwar will ich das programm in zwei sprachen anbieten in einer exe.hab die steuerung der sprachen über eine combo box gemacht.und das geht auch.jetzt will ich im browser fenster die news seite in zwei sprachen machen.also so: deutsche sprache im web browser deutsche url zur news seite. englische sprache engliche news seite nur geht das nicht so wie ich gemacht habe. ...
[VB]Mehrer Fenster in Listbox
01/02/2010 - .NET Languages - 0 Replies
Howdi, wollt mal fragen wie ich mehrere Fenster mit dem "fast" gleichen namen in eine Lisbox bekomme ? Die Fenster sehen so aus Sbot v1.51 Sbot v1.51 Ich würde diese fenster gerne in eine Listbox einlesen.
[help] c# listbox databinding not updating
07/29/2009 - CO2 Programming - 3 Replies
Hi guys, I'm new to c#... my first time, and hopefully not he last. :D Just having trouble with listbox data-binding atm. For reasons I don't know, when changes are made to the data which the listbox is bounded to, the changes are not reflected inside the listbox. The following is some of the code i'm using. Firstly the intialisation and the bounding of the data to the listbox.



All times are GMT +2. The time now is 13:36.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.