English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how to make a form disable the way like a messagebox disables its main form?

2006-10-18 23:26:59 · 3 answers · asked by Goshenite G 1 in Computers & Internet Programming & Design

I am using visual basic 6.0 yet i want to create a custom-made message box for designs.

2006-10-18 23:29:27 · update #1

3 answers

for example:

If you want to disable form1 when you show form2, do this code

Private Sub Anything()
'Wherein anything is a procedure that will open form2
form2.show vbmodal
'or maybe form2.show vbmodal, me
End Sub

Try this and know it works! ^_^ Belive me :D

2006-10-19 00:17:26 · answer #1 · answered by RoseOnPlayer 2 · 0 0

It's called a modal form. Look it up in the help of whatever language you are using.

In Delphi for example, use

childForm.ShowModal;

instead of

childForm.Show;


Rawlyn.

2006-10-19 06:29:34 · answer #2 · answered by Anonymous · 0 0

Try this Link

http://www.microsoft.com/mspress/books/sampchap/5960.asp

2006-10-19 06:53:28 · answer #3 · answered by Joe_Young 6 · 0 0

fedest.com, questions and answers