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...
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...
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
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
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...
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...
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...
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
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"...
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...
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...
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
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
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
...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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.