Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using one message box while clicking one command. But now when the command message box is shown the form disappears. Before it was working properly.

This is the command:
VB
Private Sub Command4_Click()
If Text2.Text = "" Then
   MsgBox "Enter Member ID"
   Text2.SetFocus
   Exit Sub
End If
.
.
.
.
.
end sub
Posted
Updated 20-Sep-11 9:49am
v2
Comments
Sergey Alexandrovich Kryukov 20-Sep-11 16:33pm    
What was "before"? Lost it?
--SA

1 solution

This discussion[^] seems similar to problem. Unfortunately is does not give a definite solution, but they suggest the problem might be that the form is non modal.

The last message[^] is:
HarvestR wrote:
As my main form is the first loaded, it may be not modal.

I'll try to set the background form as first form of the project, then make it open the main frame modal.

Thanks for the idea, I'll test this

Perhaps you might try a similar approach and see if it solve your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900