cancel
Showing results for 
Search instead for 
Did you mean: 

how to close the messagebox

Former Member
0 Kudos
180

hello to everyone..

i made a MessageBox("Do you want to continue?", 2, "ok, "cancel")...when i click the "cancel " button ,and how i can close this messagebox.???

View Entire Topic
Former Member
0 Kudos

thank for ur answer. but i mean if i click the "cancel" button, that like the windows form 's "cancel" button. the messagebox can close .

Former Member
0 Kudos

Hi Peng,

I don´t understand so well what you mean, but it seems you need sometinhg like this:

Dim res As Integer
res = oApplication.MessageBox("Do you want to continue?", 1, "OK", "Cancel")
if res= 1 then
  ... add your code here for action OK...
else
  ... add your code here for action Cancel...
end if

I hope help you!!