Click here to Skip to main content
15,914,111 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralError when trying Update on SQLDataAdapter Pin
Knappen4-Aug-02 5:07
Knappen4-Aug-02 5:07 
Generalupdate database in vb.net Pin
devil6663-Aug-02 11:41
devil6663-Aug-02 11:41 
GeneralRe: update database in vb.net Pin
Nick Parker7-Aug-02 2:59
protectorNick Parker7-Aug-02 2:59 
GeneralHelp!! VB.NET Custom DataGridColumn Problem ... Pin
afphinfan12-Aug-02 5:42
afphinfan12-Aug-02 5:42 
GeneralAcess Form Controls Pin
Bruno Lemos2-Aug-02 0:48
Bruno Lemos2-Aug-02 0:48 
GeneralWeb Services Implementation Guide Pin
Stanford Powers31-Jul-02 18:33
sussStanford Powers31-Jul-02 18:33 
GeneralRe: Web Services Implementation Guide Pin
Jason McBurney1-Aug-02 11:25
Jason McBurney1-Aug-02 11:25 
GeneralMDI QueryUnloads Pin
Jason McBurney31-Jul-02 5:07
Jason McBurney31-Jul-02 5:07 
Okay, I have an mdi application that I want to close (by pressing the go away button) it has one child form open, which contains dirty data. Due to the nature of "WetWare" (users) issues I display a dialog that says "You have dirty data did you really mean to save it, or would you like to abandon your changes?" This is done in the queryUnload of the mdi child. If the user choose to saves we get stuck in an infinate queryunload event loop.

Private Sub Form_QueryUnload(cancel As Integer, _
UnloadMode As Integer)
writelog "Query Unload"
Debug.Print "hwnd:= " & Me.hwnd
cancel = Not (CheckSave())
end sub

Private Function CheckSave() As Boolean
''False I was unable to save something,
''or the user canceled
''true life is good. I am successful and or compleate
if not dirty then
... New form
... show form
<user get="" their="" opinion="" here="">
... unload form
... set form = nothing
end if
end function

Am I missing something or should this work? What kind of restrictions is there in the queryUnload event. None of the ms documentation mentioned that form creation is a bad idea Smile | :)

Any sugesstions would be appricated .
GeneralRe: MDI QueryUnloads Pin
Tom Welch31-Jul-02 5:14
Tom Welch31-Jul-02 5:14 
GeneralRe: MDI QueryUnloads Pin
Colin Leitner31-Jul-02 5:17
Colin Leitner31-Jul-02 5:17 
GeneralRe: MDI QueryUnloads Pin
Roger Wright31-Jul-02 5:26
professionalRoger Wright31-Jul-02 5:26 
GeneralRe: MDI QueryUnloads Pin
Nick Parker31-Jul-02 5:30
protectorNick Parker31-Jul-02 5:30 
GeneralRe: MDI QueryUnloads Pin
Jason McBurney31-Jul-02 11:22
Jason McBurney31-Jul-02 11:22 
Generalpath help needed !! Pin
drmzunlimited31-Jul-02 2:43
drmzunlimited31-Jul-02 2:43 
GeneralRe: path help needed !! Pin
chris foote1-Aug-02 10:32
chris foote1-Aug-02 10:32 
Generalpath help needed !! Pin
drmzunlimited31-Jul-02 2:42
drmzunlimited31-Jul-02 2:42 
GeneralMSComm with DTREnable Pin
Anonymous30-Jul-02 23:09
Anonymous30-Jul-02 23:09 
GeneralTry Catch Finally and variable declaration Pin
Zyxil30-Jul-02 10:26
Zyxil30-Jul-02 10:26 
GeneralRe: GotDotNet won the race Pin
Zyxil30-Jul-02 10:31
Zyxil30-Jul-02 10:31 
GeneralDebug a VC++ DLL from VBA Pin
Ryan B.30-Jul-02 10:13
Ryan B.30-Jul-02 10:13 
GeneralRe: Debug a VC++ DLL from VBA Pin
Vi230-Jul-02 19:57
Vi230-Jul-02 19:57 
GeneralVB Textbox Accept Code Pin
rlewistx30-Jul-02 9:03
rlewistx30-Jul-02 9:03 
GeneralRe: VB Textbox Accept Code Pin
Colin Leitner30-Jul-02 9:27
Colin Leitner30-Jul-02 9:27 
GeneralRe: VB Textbox Accept Code Pin
Richard Deeming31-Jul-02 0:59
mveRichard Deeming31-Jul-02 0:59 
QuestionWhy Doesnt This Work Again? Pin
Ryan B.30-Jul-02 8:35
Ryan B.30-Jul-02 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.