One Last Question ( I promise )

  • Thread starter OHM \( Terry Burns \)
  • Start date
O

OHM \( Terry Burns \)

On a user form, how can I trap the close X in the top right hand corner to
prevent it from closing unless I have processed my validation function ?

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
 
J

Joost Verdaasdonk

Hi,

Look up QueryClose event of you're form! (F1)
And use it's Cancel property

Enjoy,
Joost Verdaasdonk
 
O

OHM \( Terry Burns \)

Sh1t, I missed that I was looking for Close

Cheers

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Arrghhhhhhhh 8
Document Title On new Documents Vs Save Name 3
File | New | Templates 0
Help Needed On Template Launcher 4
How to tell if a document is new ? 5
Thanks 0
Speech Recognition Files Error 0
Remember Me ? 2

Top