Tuesday, May 5, 2009
how to populate MS Flex Grid in vb 6.0 through code?
I want to use MS Flex Grid instead of DataGrid. how to load records in the MS Flex Grid ??? need the sample code.
Difference between "+" and "&" operators in vb
What is the difference between "+" and "&" operators????
i am adding two numbers but it gets concatenatd instead of addition.
any help???????
i am adding two numbers but it gets concatenatd instead of addition.
any help???????
How to code BackSpace button in Calculator?
I have a problem with backspace button in digital calculator.....
can anybody help me to develop a small database project?
Hello everybody!!!
can anybody help me how to develop a small database project in vb and SQL Server????
can anybody help me how to develop a small database project in vb and SQL Server????
how to load a text file into your textbox/ rich textbox?
i want to add a feature of browsing and loading text files into my project ???
any help???
any help???
Loading Picture into Picture box using vb6.0?
How can i load picture into my application in vb 6.0 through Picture box?
To get user's Server name.
below is the code that can retrieve the server name of user logged in.
'Declarations
Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
'Code:
Private Sub Form_Load()
Dim dl, cnt As Long
Dim s As String
cnt = 200
s = Space$(cnt)
dl = Len(s)
Call GetComputerName(s, dl)
TxtServer.Text = Left$(s, dl)
End Sub
'Declarations
Private Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
'Code:
Private Sub Form_Load()
Dim dl, cnt As Long
Dim s As String
cnt = 200
s = Space$(cnt)
dl = Len(s)
Call GetComputerName(s, dl)
TxtServer.Text = Left$(s, dl)
End Sub
How To Check the Memory usage?
'follow the code to check the usage of your computer memory.
Take four labels and set captions as
Lbl1: Caption="Memory"
Lbl2:
Lbl3: Caption=" Use"
Lbl4:
A Command Button named Cmd1
'and here code
Private Declare Sub GlobalMemoryStatus Lib "KERNEL32" (lpBuffer As MEMORYSTATUS)
Dim mem As MEMORYSTATUS
Private Type MEMORYSTATUS
dwlength As Long
dwMemoryLoad As Long
dwTotalPhys As Long
dwAvailPhys As Long
dwTotalPageFile As Long
dwAvailPageFile As Long
dwTotalVirtual As Long
dwAvailVirtual As Long
End Type
Private Sub Command1_Click()
GlobalMemoryStatus mem
Label2.Caption = Format(mem.dwTotalPhys / 1048576, standard) & "Mb"
Label4.Caption = mem.dwMemoryLoad & "%"
End Sub
Try it and use it to enhance your small projects...........
Take four labels and set captions as
Lbl1: Caption="Memory"
Lbl2:
Lbl3: Caption=" Use"
Lbl4:
A Command Button named Cmd1
'and here code
Private Declare Sub GlobalMemoryStatus Lib "KERNEL32" (lpBuffer As MEMORYSTATUS)
Dim mem As MEMORYSTATUS
Private Type MEMORYSTATUS
dwlength As Long
dwMemoryLoad As Long
dwTotalPhys As Long
dwAvailPhys As Long
dwTotalPageFile As Long
dwAvailPageFile As Long
dwTotalVirtual As Long
dwAvailVirtual As Long
End Type
Private Sub Command1_Click()
GlobalMemoryStatus mem
Label2.Caption = Format(mem.dwTotalPhys / 1048576, standard) & "Mb"
Label4.Caption = mem.dwMemoryLoad & "%"
End Sub
Try it and use it to enhance your small projects...........
I Need to connect to MS Sql server using Vb 6.0
Hello everybody!
i am having problem to connect to MSSQL Server 2000 using vb 6.0.....
is there anybody who can help me in this regard????
i am having problem to connect to MSSQL Server 2000 using vb 6.0.....
is there anybody who can help me in this regard????
Welcome To VB Coding!!!!!!!
Hello every body.
i welcome you all to my blog about visual basic coding.
Subscribe to:
Posts (Atom)