vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
SEPA-Dateien erstellen inkl. IBAN-, BLZ-/Kontonummernprüfung  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

VB.NET - Ein- und Umsteiger
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden? 
Autor: Montoyafan
Datum: 14.03.09 12:31

Hier die Funktion die die ArrayList füllt:

    Private Sub LoadWallpapers()
 
        Try
            Dim xtr As New XmlTextReader(Application.StartupPath & _
              "\Wallpapers.xml")
            xtr.ReadStartElement()
            Dim nCount As Integer = Integer.Parse(xtr.ReadElementString( _
              "Count"))
 
            While nCount > 0
                Dim fileInfo As New FileInfo(xtr.ReadElementString("Wallpaper"))
                Dim wallpaperProperties As New WallPaperProperties
                wallpaperProperties.Wallpaper = fileInfo.FullName
                wallpaperProperties.Position = DirectCast(Integer.Parse( _
                  xtr.ReadElementString("Position")), _
                  WallPaperProperties.WallpaperPos)
                wallpaperProperties.BkColor = Color.FromArgb(Integer.Parse( _
                xtr.ReadElementString("Colour")))
 
                arrayWallpapers.Add(wallpaperProperties)
                nCount = nCount - 1
            End While
            xtr.Close()
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
 
        RefreshListBox()
    End Sub
WallPaperProperties:
Public Class WallPaperProperties
 
    Public Enum WallpaperPos
        Center = 0
        Tited = 1
        Streched = 2
    End Enum
 
    Public Enum Sort
        Ascending = 0
        Descending = 1
    End Enum
 
    Public strWallpaper As String = ""
    Public pos As WallpaperPos
    Public myBkColor As Color
    Private boolMultiMonitor As Boolean
    Private CountMon As Integer = 0
 
    Public Property MultiMonitor() As Boolean
 
        'Anzahl der Monitore ermitteln
        Get
            CountMon = Windows.Forms.SystemInformation.MonitorCount
            If CountMon > 1 Then
                MultiMonitor = True
            Else
                MultiMonitor = False
            End If
        End Get
        Set(ByVal value As Boolean)
            boolMultiMonitor = value
        End Set
    End Property
 
    Public Property Wallpaper() As String
        Get
            Wallpaper = strWallpaper
        End Get
 
        Set(ByVal value As String)
            strWallpaper = value
        End Set
    End Property
 
    Public Property Position()
        Get
            Position = pos
        End Get
        Set(ByVal value)
            pos = value
        End Set
    End Property
 
    Public Property BkColor()
        Get
            BkColor = myBkColor
        End Get
        Set(ByVal value)
            myBkColor = value
        End Set
    End Property
End Class
Cu
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Arraylist.Contains - Keine Treffer obwohl vorhanden?1.516Montoyafan14.03.09 11:19
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?927jvbsl14.03.09 11:50
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?927Montoyafan14.03.09 12:31
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?888Snof14.03.09 12:32
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?880Montoyafan14.03.09 12:55
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?1.051Snof14.03.09 12:56
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?1.001Snof14.03.09 13:21
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?1.097Montoyafan14.03.09 13:45
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?928Snof14.03.09 14:16
Re: Arraylist.Contains - Keine Treffer obwohl vorhanden?847Montoyafan14.03.09 14:58

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel