Hi, im creating a chat message program. it sends a meassage to others by using the ip address.
THis works fine, however the problem im having is:
i added a dropdowm combobox and a textbox and a command button.
this is to add users to the combobox. you enter the name into the textbox and there ip...
this is the module code which belongs to the above:
Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (ByVal lpRootPathName As String, lpSectorsPerCluster As Long, lpBytesPerSector As Long, lpNumberOfFreeClusters As Long, lpTtoalNumberOfClusters As Long) As Long
Public...
this programm is supposed to tell you the amount of free hard drive space by clicking on a button. The error im getting is the runtime6 overflow error.
Any suggestions?
Private Sub cmdSpace_Click()
Dim info As DiskInformation
Dim lAnswer As Long
Dim lpRootPathName As String
Dim...
If you take a closer look at it its not the same. you don't have to define strName nor do u have to insert the &strName etc. its to complicated. This is the Easiest way. no xtras just write the desired url right after the file you want to open.
Here is the easiest was of solving your problem.
General
Public ie As Integer
_______________________________________
Private Sub Command1_Click()
ie = Shell("c:\programme\internet explorer\iexplore.exe www.google.de", vbMaximizedFocus)
End Sub
just change the address as desired. Instead of...
Here is another way. 2 short lines
Code: In form only
General Declarations
Public calc As Integer
____________________________________________
cmdCalculator_click()
calc = Shell("calc.exe")
End Sub
this works on Win2k, so it should work on all NT systems including XP...
You can make it easier. if you just want the button disabled. i guess u want that cuz u want to hide it. just set the form properties --->>>> maxbutton to false. the button is still there but unusable. its easier since u dont have to write any code. you can do the same with the minimze buttons.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.