Search results for query: *

  1. E

    Detecting when windows is shutting down

    One way is to override WndProc of the form. I used this method in tray application to monitor if Windows was shutting down. Here be the code: Private Const WM_QUERYENDSESSION As Integer = &H11 Protected Overrides Sub WndProc(ByRef m As Message) If m.Msg = WM_QUERYENDSESSION Then...
  2. E

    conversion

    Just multiply the number (75) by .01. So you would have 75 * .01 = .75 or 75 percent in decimal notation.
  3. E

    Exception Error

    Thanks jmcilhinney for clearing that up...you learn something new everyday... :)
  4. E

    Exception Error

    Public Function GetRecordsetCmd(ByRef recRecordset As ADODB.Recordset, ByRef strQuery AsString, ByRef intCmdType AsShort) AsObject OnErrorGoTo ErrorHandler recRecordset = Nothing recRecordset = New ADODB.Recordset recRecordset.Open(strQuery, gConData, ADODB.CursorTypeEnum.adOpenDynamic...
  5. E

    Exception Error

    ByRef (By Reference) and ByVal (By Value) are ways of passing a variable as a parameter of a function/subroutine. The ByRef statement passes the variable so that whenever it is changed in your function/subroutine, it is changing its value throughout the program. The ByVal statement passes the...
  6. E

    Intercepting another applications system messages

    I am currently developing an application for personal use and I have run into a bit of a problem. The application sits in the system tray and provides a few helpful tools for applications running in the taskbar. The applications gathers the current running applications and any other app that is...
  7. E

    What does MyBase.New do?

    Oh, sorry to be too general. To answer your question, yes you are correct, it is creating an instance of the forms class to your main class so it basically has everything its needs to operate to be a form just like the one in the original forms class.
  8. E

    windows remote login

    I am also curious if this is possible. I'm pretty sure it isnt possible with WMI as it is meant for network management in the background. It would be mighty helpful if it were possible through .net though....
  9. E

    Simple MP3 player

    Try adding "Imports System.Runtime.InteropServices" to the top of the module and see if that takes care of the error....
  10. E

    What does MyBase.New do?

    MyBase.new() activates the new constructor of the base class. Basically it creates a new instance of the base class from which you inherit....Which would be the System.Windows.Forms.Form class because your class "Main" inherits it.
  11. E

    Determining if instantiated

    In case anyone else is interested in WMI, I use the WMI Guide @ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp . Very very helpful guide that has everything you could possibly want to know about WMI. I also own "Windows Scripting with WMI" from...
  12. E

    Determining if instantiated

    I do believe i tried playing with the nothing keyword but i didnt get anywhere with it. The problem is that WMI can return a lot of different datatypes and i declare an object variable to handle this, but if it doesnt return anything it goes crazy on me. Perhaps i can add some checks to it to...
  13. E

    Determining if instantiated

    Hello, I am new to the forums and i did some searching but was unable to locate the answer i am looking for. I am working on a class that works as a intermediary wrapper between vb.net and WMI. Sometimes when i pull a property from a machine on the network, i get an error saying "Object...
Back
Top