vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
NEU! sevCoolbar 3.0 - Professionelle Toolbars im modernen Design!  
 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

Visual-Basic Einsteiger
Re: module 
Autor: smoovn
Datum: 30.01.06 20:41

ich mach jetzt mal ne ganz genaue aufführung:

StatusBar1 style Text Index 1Key IP

'MDI-Form
Private Sub MDIForm_Load()
    StatusBar1.Panels("IP").Text = modipadress.GetIPAddress
    StatusBar1.Panels("MAC").Text = modmacadresse.MACAddress
    Call MDI
End Sub
modipadress.bas:
Option Explicit
Private Type WSAData
    wVersion As Integer
    wHighVersion As Integer
    szDescription(0 To 256)
    szSystemStatus(0 To 128)
    wMaxSockets As Integer
    dwVendorInfo As Long
End Type
 
Private Declare Function WSAStartup Lib "WSOCK32.DLL" _
(ByVal wVersionRequired As Long, lpWSAData As WSAData) As Long
 
Private Declare Function WSACleanup Lib "WSOCK32.DLL" () As Long
 
Private Declare Function hostname Lib "WSOCK32.DLL" _
(ByVal szHost As String, ByVal dwHostLen As Long) As Long
 
Private Declare Function gethostbyname Lib "WSOCK32.DLL" _
(ByVal szHost As String) As Long
 
Private Declare Sub CopyMemoryIP Lib "kernel32" Alias _
   "RtlMoveMemory" (hpvDest As Any, ByVal hpvSource As Long, _
   ByVal cbCopy As Long)
Private Function GetIPAddress() As String
    MsgBox "Wurde aufgerufen"
    Dim wsa As WSAData
    Dim rVal As Long
    Dim sHost As String * 256
    Dim lp As Long
    Dim lpa As Long
    Dim IpAdr(0 To 3) As Byte
 
    rVal = WSAStartup((2 + &H100), wsa)
    If rVal = 0 Then
        hostname sHost, 256
        lp = hostbyname(sHost)
        If lp Then
            CopyMemoryIP lpa, lp + 16, 4
            CopyMemoryIP IpAdr(0), lpa, 4
            GetIPAddress = CStr(IpAdr(0)) + "." + _
                                 CStr(IpAdr(1)) + "." + _
                                 CStr(IpAdr(2)) + "." + _
                                 CStr(IpAdr(3))
        End If
        WSACleanup
    End If
End Function
MDI.bas:
Option Explicit
 
Private Declare Function SetWindowLong Lib "user32" _
    Alias "SetWindowLongA" _
    (ByVal hwnd As Long, _
    ByVal nIndex As Long, _
    ByVal dwNewLong As Long) _
    As Long
 
Private Declare Function GetWindowLong Lib "user32" _
    Alias "GetWindowLongA" _
    (ByVal hwnd As Long, _
    ByVal nIndex As Long) _
    As Long
 
Private Declare Function GetSystemMenu Lib "user32" _
    (ByVal hwnd As Long, _
    ByVal bRevert As Long) _
    As Long
 
Public Declare Function RemoveMenu Lib "user32" _
    (ByVal hMenu As Long, _
    ByVal nPosition As Long, _
    ByVal wFlags As Long) _
    As Long
 
Private Const WS_THICKFRAME = &H40000
Private Const GWL_EXSTYLE = (-20)
Private Const GWL_STYLE = (-16)
 
Public Const MF_BYCOMMAND = &H0&
Public Const SC_CLOSE = &HF060
Public Const SC_MAXIMIZE = &HF030
Public Const SC_MINIMIZE = &HF020
Public Sub MDI()
    Dim MDIStyle As Long
    Dim MDI_Fest_Style As Long
    Dim Tele_Min As Long
    Dim Tele_Max As Long
 
End Sub
ich bin am ende meiner ideen genau wie du
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
module728smoovn29.01.06 21:15
Re: module452vbtricks30.01.06 12:23
Re: module508smoovn30.01.06 15:15
Re: module441vbtricks30.01.06 17:32
Re: module355smoovn30.01.06 17:38
Re: module406vbtricks30.01.06 18:20
Re: module375smoovn30.01.06 20:15
Re: module385vbtricks30.01.06 20:22
Re: module386smoovn30.01.06 20:27
Re: module398vbtricks30.01.06 20:33
Re: module411smoovn30.01.06 20:41
Re: module357smoovn30.01.06 20:44
Re: module546vbtricks30.01.06 21:02
Re: module414smoovn30.01.06 21:08
Re: module415vbtricks30.01.06 21:11
Re: module368smoovn30.01.06 21:15
Re: module400vbtricks30.01.06 21:30
Re: module352smoovn30.01.06 21:34
Re: module401vbtricks30.01.06 21:52
Re: module390smoovn30.01.06 22:05
Re: module412smoovn31.01.06 18:42
Re: module429vbtricks31.01.06 19:11

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