Locations of visitors to this page
Onteora Software - March 2006

Onteora Software

Ken Tucker's Blog

About the author

Author Name is someone.
E-mail me Send mail

Recent posts

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Atlas March Ctp Released

Atlas March Ctp Released



The March CTP of Atlas was released today. It is the first version of Atlas to have a go live license.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Ajax
Posted by Ken Tucker on Monday, March 20, 2006 11:42 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Sql Server 2005 Service Pack 1

Sql Server 2005 Service Pack 1



I see there is a CTP for a Sql Server 2005 service pack available. Here is a link for anyone interested.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Sql
Posted by Ken Tucker on Sunday, March 19, 2006 11:42 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Dynamic Help Window in VB Express

Dynamic Help Window in VB Express



The Dynamic Help window is not supported in visual basic express.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: VB
Posted by Ken Tucker on Saturday, March 18, 2006 11:42 AM
Permalink | Comments (0) | Post RSSRSS comment feed

Dot Net User Group

Dot Net User Group



My local computer club SCTPA folded today. I am trying to start a dot net user group in Brevard county Florida. Any one interested in joining should send me an email.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: User Group
Posted by Ken Tucker on Thursday, March 16, 2006 11:42 AM
Permalink | Comments (0) | Post RSSRSS comment feed

More WMI events

More WMI events



I was playing around with using the wmi _InstanceModificationEvent. I created a sample which will keep an acurate list of the screen size. Like all wmi programs you need to add a reference to system.management for this to work. My sample requires a listbox on a form.



Imports System.Management

Public Class Form1
    Dim WithEvents w As ManagementEventWatcher
    Dim q As WqlEventQuery
    Delegate Sub LoadList()

    Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        w.Stop()
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Try
            q = New WqlEventQuery
            q.QueryString = "SELECT * FROM" & _
                        " __InstanceModificationEvent WITHIN 1 " & _
                        "WHERE TargetInstance isa ""Win32_DisplayConfiguration"""
            w = New ManagementEventWatcher(q)
            w.Start()
        Catch ex As Exception
            Trace.WriteLine(ex.ToString)
        End Try
        GetDeviceSettings()
    End Sub

    Private Sub GetDeviceSettings()
        ListBox1.Items.Clear()
        Dim moReturn As Management.ManagementObjectCollection
        Dim moSearch As Management.ManagementObjectSearcher
        Dim mo As Management.ManagementObject

        moSearch = New Management.ManagementObjectSearcher("Select * from Win32_DisplayConfiguration")

        moReturn = moSearch.Get
        For Each mo In moReturn
            ListBox1.Items.Add(mo("Caption").ToString)
            ListBox1.Items.Add(String.Format("Height {0}", mo("PelsHeight")))
            ListBox1.Items.Add(String.Format("Width {0}", mo("PelsWidth")))
        Next

    End Sub

    Private Sub w_EventArrived(ByVal sender As Object, ByVal e As System.Management.EventArrivedEventArgs) Handles w.EventArrived
        For Each p As Process In Process.GetProcesses
            Trace.WriteLine(p.MainWindowTitle)
        Next
        ListBox1.Invoke(New LoadList(AddressOf GetDeviceSettings))
    End Sub
End Class

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: WMI
Posted by Ken Tucker on Monday, March 06, 2006 11:12 PM
Permalink | Comments (0) | Post RSSRSS comment feed