473,320 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to close a message box that is called from another procedure

63
I simply want to close a message box that is called from another procedure. I don't want to alter the other procedure - I want the message box to appear but then the macro that I am writing to simply close the message box that gets called (so effectively cliecking ok on it!)

Help! it's driving me mad!
Jul 2 '10 #1
1 1147
vb5prgrmr
305 Expert 100+
API time, FindWindow to find the owner window, EnumChildWindows to find the dialog and then once again to find the button along with SendMessage with the WM_GETTEXT const and SendMessage once again with both the WM_LBUTTONDOWN and WM_LBUTTONUP messages. That is once you have the handle of the button to send the messages to...



Good Luck
Jul 2 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mark Oueis | last post by:
Is there any way I can retrieve the result set of a Stored Procedure in a function. ALTER FUNCTION dbo.fn_GroupDeviceLink ( @groupID numeric ) RETURNS @groupDeviceLink TABLE (GroupID numeric,...
4
by: NickName | last post by:
Since RDMBS and its language SQL is set-based would it make more sense to call a given stored process "Stored Sets" instead of current theorically misleading Stored Procedure, as a measure to prod...
4
by: Daniel Miller | last post by:
My LogFile class contains a StreamWriter object. How can I ensure that its Close() method will be called if my program crashes? I don't want to leak file handles! ;)
1
by: Ed | last post by:
I would like to call another on_click procedure but fail... e.g. Sub try() call button2_click() ' what should i put in (??, ??) since I don't know the source and asg... in order to call button...
3
by: Gary | last post by:
Hi, I have my main form1 and I want to close it and then show form2, in VB6 I used the following code... unload me form2.show in VB.net I got this far
1
by: Jason | last post by:
I have an ASP.NET application in which I would like to call my button click event on the page load if certain criteria are met. What is the correct syntax to be able to programmatically have my...
1
by: Alex | last post by:
Hello All, I am new to ASP.Net and would like to know how to place the results from a stored procedure that I call into another form within my project. Currently, I can see my results in my grid...
8
by: bevanward | last post by:
Hi all I have a large data set of points situated in 3d space. I have a simple primary key and an x, y and z value. What I would like is an efficient method for finding the group of points...
1
by: Jeff Williams | last post by:
I have an application using dial monitors which is used in an aution room. The auctioneer has a form showing details of the current lot number. As he changes to the next lot number I need to...
1
by: nekha | last post by:
how to send alert message to another member now iam in online using scripts
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.