Well I have never tried to do anything outside of using windows forms to completed remedial tasks and such...I want to learn more outside of the scope of just using windows forms, I'd love to maniuplate the desktop with my own custom wallpaper with relevant text on it (Yeah, I know whoami does...
I use both VS 2003 and VS 2005, only problem is the client I am programming for only has .Net 1.1 so I am stuck with 2003 :)
It isn't for a splash item, just to snag idle time on a workstation and then log it off if the time goes over x amount of seconds. Really simple :)
I have the following code after my form loads to get idle time and show a message box after 30 seconds. It works but it eats up cpu time, how can i make this more efficient?? I am using GetLastInputInfo to get the idle time.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
I am working on a small application (hobbyist at programming) that will load in the system tray using an icon that I have created, when the mouse is over it it will display the system idle time.
Two issues for me, I cannot make the form load as an icon to the system tray, and I am having a hard...
I am still new to the whole webpage / database deal, I read up a little, I have a vb file that connects to the database using the mySQL Connector/Net that doesnt give any error I am now working on figuring out how to list all the records in the database, have a delete / edit button and an Add...
I am working on a webpage using VS2005 (learning 2005) and I would like for it to connect to a mySQL database and pull all the records from it into a table but I am not having much luck with the connection to the mySQL database, can you help?
What would be the easist and quickest way to get the computer name of the system running the application, right now I am using what is below
Public Shared Function GetComputerName() As String
Dim ComputerName As String
ComputerName = System.Net.Dns.GetHostName
sender.text just sends the text on the button, it doesnt give me the device name (server name in this case)...
The Subroutine i am using needs the name of the computer / server but when I use sender.text it sends the name of the button which is Drive Information...
interesting issue (banging my head against the wall)
First the code I am using to populate my form
Public Sub Populate()
'read the file into array
Dim sr As New IO.StreamReader(Application.StartupPath & "\devices.ini")
Dim ary As New ArrayList
Do While sr.Peek <> -1
uh nevermind I am being silly again, just realized that it was showing just the last drive's information cause I didn't use the appendtext method :)
all figured out for now...thanks for anyone who took a look though!
Function GetDriveSpace(ByVal computername As String)
Dim objLD As Management.ManagementQuery
objLD = New Management.ObjectQuery("SELECT * FROM Win32_LogicalDisk")
Dim objWMIService As Management.ManagementScope
objWMIService = New Management.ManagementScope("\\" & computername & "\root\cimv2")...