vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Zippen wie die Profis!  
 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 - Fortgeschrittene
Teil 4 
Autor: [CrX]Garfield
Datum: 21.12.03 22:23

        Dim strPath As String
        strPath = "C:\Programme\Crox Corporation\SystrayTB\Notices\"
        Dim dlb As Microsoft.VisualBasic.Compatibility.VB6.DirListBox
        dlb = New Microsoft.VisualBasic.Compatibility.VB6.DirListBox()
        dlb.Path = strPath
        Dim i As Byte
        For i = 0 To 4
            dlb.Items.RemoveAt(0)
        Next
        i = 0
        Do Until i = dlb.Items.Count
            Me.lstBloecke.Items.Add(dlb.Items.Item(i))
            i = i + 1
        Loop
    End Sub
    Private Sub lstBloecke_SelectedIndexChanged(ByVal sender As System.Object, _
      ByVal e As System.EventArgs) Handles lstBloecke.SelectedIndexChanged
        Dim strBlock As String
        strBlock = Me.lstBloecke.SelectedItem
        Dim strPath As String
        strPath = "C:\Programme\Crox Corporation\SystrayTB\Notices\" & strBlock
        Dim flb As Microsoft.VisualBasic.Compatibility.VB6.FileListBox
        flb = New Microsoft.VisualBasic.Compatibility.VB6.FileListBox()
        flb.Path = strPath
        Dim i As Byte
        Me.tab.TabPages.Clear()
        Dim TabPage(254) As System.Windows.Forms.TabPage
        Dim TextBox(254) As System.Windows.Forms.TextBox
        Dim F As Long
        F = FreeFile()
        Dim strTextBoxInhalt As String
        Do Until i = flb.Items.Count
            TextBox(i) = New System.Windows.Forms.TextBox()
            TextBox(i).Name = "txt" & flb.Items.Item(i)
            Microsoft.VisualBasic.FileOpen(F, strPath & "\" & flb.Items.Item( _
              i), OpenMode.Input)
            strTextBoxInhalt = Nothing
            Do Until EOF(F)
                strTextBoxInhalt = strTextBoxInhalt & _
                  Microsoft.VisualBasic.LineInput(F) & vbCrLf
            Loop
            Microsoft.VisualBasic.FileClose(F)
            TextBox(i).Text = strTextBoxInhalt
            TextBox(i).Multiline = True
            TextBox(i).Location = New System.Drawing.Point(5, 5)
            TextBox(i).Size = New System.Drawing.Size(Me.tab.Width - 15, _
              Me.tab.Height - 35)
            TextBox(i).ContextMenu = Me.ContextMenu1
            TabPage(i) = New System.Windows.Forms.TabPage()
            TabPage(i).Name = flb.Items.Item(i)
            TabPage(i).Text = flb.Items.Item(i)
            TabPage(i).Visible = True
            TabPage(i).Enabled = True
            TabPage(i).Controls.AddRange(New System.Windows.Forms.Control() _
              {TextBox(i)})
            Me.tab.TabPages.Add(TabPage(i))
            i = i + 1
        Loop
        Me.btnDelNotice.Enabled = True
        Me.btnRenNotice.Enabled = True
        Me.btnNewNotice.Enabled = True
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
Ein sehr kompliziertes TextBox adressier-Problem...3.020[CrX]Garfield21.12.03 22:21
Teil 22.747[CrX]Garfield21.12.03 22:22
Teil 32.718[CrX]Garfield21.12.03 22:23
Teil 42.625[CrX]Garfield21.12.03 22:23
Teil 52.598[CrX]Garfield21.12.03 22:25
Teil 62.677[CrX]Garfield21.12.03 22:25
Großes Sorry2.616[CrX]Garfield21.12.03 22:27
Re: Ein sehr kompliziertes TextBox adressier-Problem...2.946WaldiMaywood22.12.03 00:18
Danke erstmal2.671[CrX]Garfield23.12.03 13:10

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