Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. AdamVBWylde

    Close a window

    An easier way would be... If App.PrevInstance Then MsgBox "Already running" end Else MsgBox "Not running" End If
  2. AdamVBWylde

    Registry - CURRENTUSER\Control Panel\Appearance\Schemes

    Does anybody know what the structure of the schemes saved under the 'CURRENTUSER\Control Panel\Appearance\Schemes' registry key is, and how to manipulate it? I want to add/change/select the schemes programatically and I just can't work it out... (even just how to change the scheme...
  3. AdamVBWylde

    Add to task bar (not system tray)

    Have a look at... http://www.domaindlx.com/e_morcillo/scripts/type/default.asp If you include the type library IActDes.tlb from the zip file tl_adsk.zip in your project then you can do the following... dim tbl as new taskbarlist call tbl.addtab(hwnd) msgbox "I have an entry in the...
  4. AdamVBWylde

    Find if a data variable contains a time

    Yeah - I'd thought of the Instr method, but need to support other languages where : may not be the separator. DateValue works perfectly. Thanks...
  5. AdamVBWylde

    Find if a data variable contains a time

    Does anybody know how to work out if a date variable contains a time please? Eg. If you are debugging and hover over a date variable it either shows '1/1/2001' or '1/1/2001 10:59' - but how do I test for the existance of the 10:59 portion. Thanks PS - It is not good enough for me to test for...
  6. AdamVBWylde

    Round Button

    You will need to use the CreateEllipticRgn and SetWindowRgn APIs. Remember to delete the regions you create using DeleteObject API after or you will get memory leaks. The best way would be to create an ActiveX control that displays different pictures or text for up and down states, and apply a...
  7. AdamVBWylde

    How to make image shrink or stretch to fit a defined picture box?

    Add a picture box (picturebox_source) with visible=false and autosize=true. Add another picture box(picturebox_dest) that is visible=true and autoredraw=false. Add this code to the paint event of picturebox_dest as 1 line... Call picturebox_dest.PaintPicture(picturebox_source.Picture, 0, 0...
  8. AdamVBWylde

    System Tray icon popup menu problem

    The problem is that the window handling you tray icon is not active when you click to display the menu. Set the window to the active window using API SetForegroundWindow(Hwnd) just before you popup the menu. The window will then receive the lose focus event when you click off the menu, and...

Part and Inventory Search

Back
Top