How To Make Commond Dialog Active Window?
I have a program that can be minimized or in the tray and the common dialog is called when something happens in the browser..But my problem is that the common dialog when it pops up is not the active window the browser always stays active window..I have tried using setactivewindow api call but it doesnt seem to have an effect on the common dialog window..Does anyone know how I can fix this?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Commond Dialog Control
Alright is there a way to have the common dialog box never be able to switch the path that is given. for example. Say I only want the user to be able to save and open files from the folder happy in the c drive. So now I can say to start in the directory C:happy but is there a way so that the user can't leave that folder. I would use file boxes but they are so un professional looking compared to the common dialog. Thanks!!
Printer Status Using Commond Dialog
How can i find out if the printer is offline or not using the Common dialog?
Also, is it possible to copy a printfile to a printer through the commond dialog?
/Anders
Edited by - anders@dac.se on 5/3/2004 3:23:15 PM
Commond Dialog Made Me Trouble !!!! It Refresh ... HELP
i try to do programming that show image from the database record BUT if they want to change , it can change by click icon then will open window by common dialog BUT it alway refresh and dont open the image and my trouble is i add database to read when form load and it load again ... mean new image that i want it can change cant work!!!! how to slove ?
ps. it dont effect with new record it only make problem with update record
How To Make Window Active
I am writing a vb program to run with my AutoCAD program. What I am looking to do is when I hit "OK" on my program, the AutoCAD window is set to the activate window. That is, if I type something, it will type on my AutoCAD window, and not my program window. I hope you understand what I'm looking for.
Make Window Active
Hi, All
I am Looking for API which allows moving focus from one window to another. I need to make my VB form active after Internet Explorer displayed some web page. Could not find so far…
Thanks a lot
Make My Program The Active Window
Hi there!
Please could you help me to make my vb application the active window if for any reason another application is the active window?
API - Make Another Program The Active Window?
How can I use api to make another program the active window when a command button is clicked?
(Macro Program).
Also how can I find the handle of the window im trying to make active?
Make A Form The Topmost Active Window?
Hello,
How do you make a form become the top and active window (on top of any/all other windows/apps)?
Of course setting the windowstate to vbnormal doesn't do this, and I've tried the AppActivate, but it doesn't work either.
Here's how I'm testing to see if it works:
Blank form that starts minimized and has a timer set to 5 seconds.
In the timer event, I have the following code:
Code:
me.WindowState = vbNormal
AppActivate "Form1"
Timer1.Enabled = False
Of course, I'd replace the AppActivate with whatever does what I'm looking for.
Any ideas?
Thanks!
tk
Using The API, Can You Make Active Window Modal And Then Reset
I have a process that appears at this point to require using SendKeys (I know, I hate that part also). If I have to use that option, I would like to make the active window modal so they get to their intended destination.
If it is possible, how do I save the current "Modal state" for the active window, change it and then reset it. Thanks!
Have a great day!
j2consulting@yahoo.com
How To Make A Program That Will Run Keystroke Commands Without The Window Being Active
How to Make a program that will run keystroke commands without the widnow being active?
this question isn't exactly clear so i'll give an example of what i'm looking for.
I'm tryin to make a program that will run commands for me in the background for me of another program
so i don't want the VB program i make to pop up at all i want it to be able o run minimized and still be able to pick up
keystroke commands that i program into it.
is that possible?
Edited by - Casp on 6/16/2004 7:43:00 AM
Active Window, That Isnt Active.? Look
ok say i have 2 programs open, my program and another one
they are running sidebye side. and the other program HAS to be active to work (it simulates mouseclicks)
my program will not be the active window but is it possible to still type in it.. i wanting MY program to be a multiuser chat program and im able to chat in it while the other program is running
Get Active Window Handle / Minimize Window
Hello,
I have two (hopefully) simple questions that I hoped could be answered.
How do you obtain the currently active window's handle? I have tried GetActiveWindow, it doesn't seem to work.
How do you minimize a window through the use of the window handle? I do not want to have to focus on the window I am trying to minimize.
Thankyou
Edit: I just thought of another question I need answered.
Could somone please tell me how to use the API SetCursor, and whether SetCursor persists through a restart?
Quote:
Private Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long
Code For SAVE Commond Button Only Plz..
Dear Friends,
Please send me the code for the following:
Private Sub cmdsave_Click()
The following are some details to write code:I just need the code for SAVE button only. That is also for just 3 fields.
Database = IRC.mdb
Table = CUSTOMERS
Public db As ADODB.Connection
Public rs As ADODB.Recordset
CNAME (This field to enter the Company name)
CITY (This field to enter the City name)
SPERSON (This field to enter the Sales Person name)
...Margaret
Creata A Folder With Commond Button
Hai. got a question here. Can i create a folder in my hard drive with a click on the "CREATE" commond button on my form. Let say the path is "c:My DocumentsMy Application My Cool Stuff". Can i do this?. Can someone provide me with the code please!!!!!!. Thanks and Have A Nice DAy.
Printing Active Form Thru Common Dialog
I'd like to print the current form but do not want to use "Screen.ActiveForm.Printform" because this code will print the form without asking the user anything.
How can I print the current form thru common dialog so the user can choose how many pages or orientation?
Anybody had experience with this, please help me. Thanks in advance.
Common Dialog And Active Desktop Problems...
Hey all,
Long time not posted... Hehehehe
Anyway, i have 2 questions:
1) A rather simple one:
Can i force an open dialog to only a specified path (the initdir value) all the time. That is disallow the user to browse the file system, and force him to browse the contents of only the initial directory specified??? If yes, how to do it???
2) I'd say a bit more complicated:
This is the registry path that stores the wallpaper position.
Key -> HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerDesktopGeneral
Value name -> WallPaper
In order to set an htm, jpg, gif or other non bmp files as wallpaper (an active desktop), i need to edit this registry path. Now i know how to retrieve the Active Desktop status (Enabled/Disabled) and change its value if needed. But the wallpaper change wont take effect until a computer reboot.
Well, as u can imagine, it's really frustrating to reboot everytime the wallpaper is changed (this takes the fun out of my program ).
What is the solution to this DILEMNA?????
Thank you all in advance!
How To Know A From Window Is Not The Active One?
Hi,
I'm making a simple chat system and I want the taskbar entry of the form to flash when I recieve a message... the flash thing is finished the problem is that I only want it to flash if the window is not the active window from all windows in explorer... and for that I need to ahve some kind of if statemente when I recieve a mesage asking if this the window is active, if it's not I run the commando to flash the taskbar otherwise nothing happens, how do I know that active window thing?
And another thing... I wnat it to stop flashing when the user restores (meaning the form window will become active) the window, I just have to put the command to stop flashing when the widnow becomes active, how do I know that too?
Thanks.
Active Window
I think this is not going to be very tough for you! When my form is loaded, i have put a message box.But when the message box is displayed,I want the form to be the active window and not the message box. Can you help me?
Thank you
Active Window
hi guys! can you please give an idea about determining what window is acive?
Active Window
how do i show which window is active? either my app or another app??
Active Window?
hi, im looking for a way to find the active windows caption (in other apps running on my system) and if possible the file name of the thread that owns the window, eg:
file: "iexplore.exe"
caption: "Extreme Visual Basic Forum - Microsoft Internet Explorer"
any ideas?
Set Active Window
Hello all,
Ive been trying to do this:
Minimize my app and set actve the window behind my app. Ive been looking around the API and I have figured out how to minimize and how to set the active window, but I dont know how to get the handle of the window behind my app. Anyone has any idea, thankz!
(CloseWindow will minimize but no pass the active window to the one behind..)
XVB
Getting Active Window
I just need to know if my program has focus. The GetActiveWindow API I had read does not work on XP, so I tried it, and it doesn't.
Basically, what I'm trying to do is flash the window (like AOL Instant Messenger) if something happens in my program while it doesn't have focus. I've got flashing down, but I can't figure out how to find if it has focus.
Thanks !
Active Window Help.
I want a msgbox to appear when aol intant messenger becomes the active window. The title of the window is Sign On i tried this (i kinda guessed on the script for active window sum1 plz correct me)
-----------------------------------------------------------------------
If activewindow = "Sign On" Then
MsgBox "hi"
End If
End Sub
Active Window
if I know the static title bar of an app, could I detect if its the current active window?
thanks
Dimava
MDI - Top Or Active Window
I have an MDI application and want to allow the user to switch between windows by right clicking on a Goto button. If the one they want to see is not there it is loaded and becomes the active window. If it is already there but hidden - how do I bring it to the front and make it the active window?
Active Window
does any one know how i can make a mdi child form the active window?
thanks
VB Active Window
Hello Everybody
I really need your help !!
Is there any way, in VB, of telling a program, On Load, to not be "The New Active Window" ?! In other words.. say i'm chatting on mIRC, and my EXE starts, I don't wanna click back on mIRC for it to stay active. Just like when MSN Messenger's user-just-connected notification.
Thanx Louispg
Active Window
If I press a command button (Command1), I want a message box for EVERY program (other then mine) I click on to display that program's caption. How can I do this? Any help would be GREATLY appreciated. Thanks in advance. Later,
-zer0 flaw
Active Window
as u guys suggested i used the following code to open a web site
from VB.
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal
hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal
lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long)
As Long
Dim OpenPage As Long
OpenPage = ShellExecute(Form1.hwnd, "Open", "http://www.vbexplorer.com",
0&, 0&, 0&)
How do i make sure the Browser is the Active window.
because my form keeps coming
Thank u again
Active Window
halo guys,
I got application with a lot of non modal forms.
The problem that are facing currently is :
I want the last form before I lost focus from the application, to be shown when the application is on focus later.
Due to the non modal form, the form that are shown up is always the menu form.
I had try to use the activate event of the menu form, but the event also running while i move from form to form within the application.
Do you guys got any solutions how to solve this problem?
Thanks
aliank
Active Window
Someone out there please tell me how you can code a form so that it can tell if it is currently the active form.
If you are going to suggest ZOrder or the VBE class please be specific as I have had no luck with either so far.
Thanks
Active Window To Jpg
i,m needing assistance on an app im Working on , it's basicly A Screen
grabber app that monitors the keyboard and anytime something is typed
it captures the active window every 10 seconds, and saves it to a jpg
file, but i seemingly can't save to jpg it always saves as bloated BMP
files of 3.4Mb a peice how can i save to jpg thanks
>
Is Window Active??
I am extracting information of a child window in another application but I want to ensure that the child window used is the active window (The child currently selected). Do I have to EnumProp to get this information? If so what atom string do I use to find this (I was just reviewing the API documentation and couldn't find a listing on this)? Is There an easier way like IsWindowActive or something like that?
I don't want to check if the window is visible because it may be visible but covered up by another window. I need to know if it is the active window on top. This application uses an MDI interface if I haven't mentioned that already.
Thanks in advance!!
API Get Value From Active Window
I've created an API that enumerates all the active windows, to find one specific open window.
No I need to retrieve a field value from that specific window.
Any idea how to do so?
Active Window
I am trying to get the title of active window using API calls as shown below. For some reason, it works only when the application itself is active. When the application is inactive and some other windows are active, textbox is simply blank.
Private Declare Function GetActiveWindow Lib "user32" () As Long
Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" _
(ByVal Hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Function ActiveWindowCaption() As String
Dim strCaption As String
Dim lngLen As Long
' Create string filled with null characters.
strCaption = String$(255, vbNullChar)
' Return length of string.
lngLen = Len(strCaption)
' Call GetActiveWindow to return handle to active window,
' and pass handle to GetWindowText, along with string and its length.
If (GetWindowText(GetActiveWindow, strCaption, lngLen) > 0) Then
' Return value that Windows has written to string.
ActiveWindowCaption = strCaption
End If
End Function
Private Sub Timer1_Timer()
'show the title of the active window in textbox
Form1.Text1.Text = ActiveWindowCaption
End Sub
Does anyone know what's wrong? Thank you in advance.
-Shin
The Active Window
I wanna make my form window the active window so no other window can be active. My form will be the only active window, how would I do this?
Active Window
I Have a timer running in my app which pops up a menu on right click on any control on my GUI (on certain conditions ).
Now when i minimise my app and and working on excel or word, i still get my popup menu on right click on sheet or doc, bcos the timer is still running.
Is there any way to determine which is the current window or active window so that i can handle that in timer code.
Thanks in advance.
-Sihi
Common Dialog Active X Control Not Found In Excel 97!
I created a spreadsheet in Excel 2000 which also requires use by Excel 97 users. The Microsoft Common Dialog control is used on the spreadsheet. However, when I run this spreadsheet on an Excel 97 machine - the ActiveX control appears as a "X" and does not work!
Can anyone offer solution to my problem?
Many Thanks.....
Marcel Price
How To Determine If The Window Is Active Or Not
Hey, im needing my program to know if the form is the active window, or if it is set in the background.
For the sake of simplicity, lets say i have a timer. The timer should ONLY be enabled when the form form is the active window, and when another window is selected as active, the timer will become disabled.
What API would i use to determine if the window is active or not. Ive ran across an API that causes the window to be active, but i havnt found one yet that will send back some kind of data that will let the application know if its active or not.
Thanks
|