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 strongm 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. wanmaster

    validation fails when moving controls

    I've made a basic page that handles all common functionality and design. All pages in the project derive from this page, and contain only some server side controls and text (no form, no head or body tags etc.). This content is 'moved' to the basic page in the Init() event. This all works fine...
  2. wanmaster

    Unable to install SQL Server

    Thanx! You end up with so many cd's, you don't know what to install annymore ;-) Remedy
  3. wanmaster

    Unable to install SQL Server

    I'm trying to install MS SQL Server 2000 (Prof.). But after I click "install database server" it stops. No error, no warnings, nothing.. Has this something to do with the system's security settings or file protection? I'm logged in as administrator, I tried to install it from a cd...
  4. wanmaster

    SetForegroundWindow() api function is not working sometimes -- why?

    Loop until GetForegroundWindow() matches the destination window, or use SetWindowText (or SendMessage and WM_SETTEXT) to place the text without making it the foreground window. Remedy
  5. wanmaster

    How to make apps on topmost and set active?

    There are some other functions to activate a window (ShowWindow, SetForegroundWindow, SetActiveWindow), but they won't set it topmost. Are you sure you get the right handle to those particular windows? Remedy
  6. wanmaster

    FormFields in word

    Never mind, already found a solution.. Remedy
  7. wanmaster

    FormFields in word

    I'd like to generate a letter (word document), by using formfields and replacing their values with data found in an access table. This works fine. The only thing left: I would like to generate multiple letters (based on the same template) into a single word document. So that if I open the...
  8. wanmaster

    C++ to VB

    I don't understand the CByte thing for VB. For C++ I can understand, 'cause you need to cast it to a pointer to a variable of type "byte". But I would think that VB needs an uncasted long for any pointer. It's a bit difficult for me to test without writing a lot of code, but doesn't...
  9. wanmaster

    subclassing menus

    When it comes to subclassing menus, my posts a couple a weeks ago might help (thread711-416853). Icons in menus can be added using then SetMenuItemBitmaps or ModifyMenu (using the MF_BITMAP flag) function. I've done this before, but I can't seem to find any source code on my pc's. But there...
  10. wanmaster

    EM_POSFROMCHAR and TextBox

    I found a piece of code that might be helpfull. The description is in German, but the sample code is quite clear, so that shouldn't be a problem. http://www.vbapihelpline.de/const/constk.php4?Func=EM_CHARFROMPOS&Letter=Textboxen Remedy
  11. wanmaster

    maximize program

    Or use FindWindow(Ex), if you know its (unique) classname, parent window etc.. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function ShowWindow Lib "user32&quot...
  12. wanmaster

    Enumerate Favorites Folder and Create a Menu structure

    Just want to say thanks for the compliment. If you'll post your question regarding the mysterious x-button as a new thread, I (or others) might be able to help you. Hooking window procedures can easily lead to strange side-effects, so that could be the problem. And provide sample code, that...
  13. wanmaster

    Allow only one instance of an application to run?

    Just use: If App.PrevInstance Then End No winapi calls needed. Remedy
  14. wanmaster

    Enumerate Favorites Folder and Create a Menu structure

    Ah, in that case, remove this bit of code: If hMenu Then DestroyMenu hMenu hMenu = CreateMenu() I used this to make sure that the favorites menu isn't created twice (by destroying every menu on the window and create a new one). That's not the best to do it, to say the least. Just being lazy...
  15. wanmaster

    window region

    Well, at least you got something to play with.. I've got about the same configuration as you, processor is a bit slower though. Maybe time for a new computer... (and hey, it's almost christmas!) Remedy
  16. wanmaster

    Enumerate Favorites Folder and Create a Menu structure

    Glad I could help you out.. About the "one problem": Do you mean: how can I create a menu for a directory other than the favorites folder? Or: how can I create any menu (using winapi)? Remedy
  17. wanmaster

    Is window active??

    I haven't tested it, but can't you just use: Private Declare Function GetActiveWindow Lib "user32" () As Long Remedy
  18. wanmaster

    Deleting an INI section

    I'm not sure, but I think (comparing with c++): vbNullChar = Chr$(0) vbNullString = NULL (but still a string) The latter is a bit weird, but you could say that it's not Chr$(0), not "", but sort of a null of type string. Remedy
  19. wanmaster

    Enumerate Favorites Folder and Create a Menu structure

    ...As FILETIME nFileSizeHigh As Long nFileSizeLow As Long dwReserved0 As Long dwReserved1 As Long cFileName As String * 260 cAlternate As String * 14 End Type '// MENU Private Declare Function DrawMenuBar Lib "user32" (ByVal hWnd As Long) As Long Private...
  20. wanmaster

    Enumerate Favorites Folder and Create a Menu structure

    One idea: the WindowProc function must be placed in a module (not in a form). Remedy

Part and Inventory Search

Back
Top