A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label microsoft. Show all posts
Showing posts with label microsoft. Show all posts

Outlook 2007 reminder windows always on top

Hit Alt-F11, navigate to Project1 | Microsoft Office Outlook Objects | ThisOutlookSession

Simple way 

Private Sub Application_Reminder(ByVal Item As Object)
    If TypeOf Item Is AppointmentItem Then
    MsgBox "Message text", vbSystemModal, "Message title"
    End If
End Sub


(source)

Sophisticated way

Private Declare PtrSafe Function FindWindowA Lib "user32" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Private Declare PtrSafe Function SetWindowPos Lib "user32" ( _
ByVal hwnd As Long, ByVal hWndInsertAfter As Long, _
ByVal X As Long, ByVal Y As Long, ByVal cx As Long, _
ByVal cy As Long, ByVal wFlags As Long) As Long

Private Const SWP_NOSIZE = &H1
Private Const SWP_NOMOVE = &H2
Private Const FLAGS As Long = SWP_NOMOVE Or SWP_NOSIZE
Private Const HWND_TOPMOST = -1

Private Sub Application_Reminder(ByVal Item As Object)
Dim ReminderWindowHWnd As Variant
On Error Resume Next
ReminderWindowHWnd = FindWindowA(vbNullString, "1 Reminder")
SetWindowPos ReminderWindowHWnd, HWND_TOPMOST, 0, 0, 0, 0, FLAGS

End Sub

(source)

Windows "add or remove programs" list is empty

First of all, just wait for a few minutes. The list may appear after some time.

If still no luck:
  • Highlight and copy the entire bolded text below: 
    • cmd /c REGEDIT /E "%userprofile%\desktop\uninstall.txt "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ 
  • Click on Start > Run and paste in the text you have just copied. Hit Enter. 
  • A notepad document should appear on your desktop called uninstall or uninstall.txt 
  • Open it to view the contents
    • Look for the "UninstallString" values and copy those into the Start > Run box to uninstall programs


Thanks to tomshardware.co.uk

How to change a shape type in Visio

Install the "Super Utilities and Tools" add-in from Paul Herber's Sandrila Ltd.

Use the 'Shape | Substitute' command.