Am I Stupid ?... 
Author Message
 Am I Stupid ?...

Hello to all.

I got a little problem again #:-(..

Maybe it is something really stupid... but I can't find the so solution..
it is following:

I am trying to make an aplication where I create a selfmade MyMsgbox.. so
what I did is for example two forms.. one holding the execution and the
other for the created MyMsgbox.. .. I create this message box to inform
about an error. Ok.. Executing the application when I do Load the form that
holds the MyMsgbox it does not stay there and whaits till I press ok in the
mymsgbox form... it just returns back from where I loaded it previously...
the question is :

How can I make that a form keeps the execution flow of the program till I
do detect an
event in this form !! That is to say... How can I emulate a normal VB
Msgbox ?

Thank you

Albert.



Wed, 17 Mar 1999 03:00:00 GMT  
 Am I Stupid ?...

Hi

When you call "MyMsgbox.show" you must do this way

"MyMsgbox.show 1" or "MyMsgbox.show modal"

Good Luck
--
Paulo Oliveira
JCLE informtica e servi?os, Lda. Telf/Fax:(01)3466973



Quote:
> Hello to all.

> I got a little problem again #:-(..

> Maybe it is something really stupid... but I can't find the so solution..
> it is following:

> I am trying to make an aplication where I create a selfmade MyMsgbox.. so
> what I did is for example two forms.. one holding the execution and the
> other for the created MyMsgbox.. .. I create this message box to inform
> about an error. Ok.. Executing the application when I do Load the form
that
> holds the MyMsgbox it does not stay there and whaits till I press ok in
the
> mymsgbox form... it just returns back from where I loaded it
previously...
> the question is :

> How can I make that a form keeps the execution flow of the program till I
> do detect an
> event in this form !! That is to say... How can I emulate a normal VB
> Msgbox ?

> Thank you

> Albert.



Thu, 18 Mar 1999 03:00:00 GMT  
 Am I Stupid ?...

Quote:

>How can I make that a form keeps the execution flow of the program till I
>do detect an
>event in this form !! That is to say... How can I emulate a normal VB
>Msgbox ?

see show in the help
-------------------------------------------------------------

 http://home.rica.net/wmingee      


Thu, 18 Mar 1999 03:00:00 GMT  
 Am I Stupid ?...

Quote:

> I am trying to make an aplication where I create a selfmade MyMsgbox
> so what I did is for example two forms.. one holding the execution and
> the other for the created MyMsgbox.. .. I create this message box to
> inform about an error. Ok.. Executing the application when I do Load
> the form that holds the MyMsgbox it does not stay there and whaits
> till I press ok in the mymsgbox form... it just returns back from
> where I loaded it previously. the question is :

> How can I make that a form keeps the execution flow of the program
> till I do detect an event in this form !! That is to say... How can I
> emulate a normal VB Msgbox ?

Use the show method with vbModal constant: frmMyMsgBox.Show vbModal
If using VB3, vbModal can be substituted with a nonzero value (1).

Peter Larsson



Thu, 18 Mar 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Am I stupid or is it VB? [Recordsets]

2. Am I Stupid ???

3. Using MSMAPI ocx: Am I stupid or what?

4. MDI-problem-am i stupid or is it a bug -2 icons in menubar

5. Am I stupid? :)

6. Locking error, DataControl Error, or am I stupid ?

7. Bug in D3DXQuaternionRotationMatrix - or am I stupid?

8. Am I stupid? ShellExecute woes

9. Am I stupid? :)

10. Locking error, DataControl Error, or am I stupid ?

11. Access Gurus needed for this one !! Or maybe I am just stupid!

12. Is this a bug, or am I stupid (or both)?

 

 
Powered by phpBB® Forum Software