Click here to Skip to main content
16,009,255 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionConection Pooling [modified] Pin
Sinchan Nikam17-Jul-06 1:30
Sinchan Nikam17-Jul-06 1:30 
AnswerRe: Conection Pooling Pin
Dave Kreskowiak17-Jul-06 1:50
mveDave Kreskowiak17-Jul-06 1:50 
Questionrichtextboxes and .doc files Pin
giddy_guitarist17-Jul-06 0:26
giddy_guitarist17-Jul-06 0:26 
AnswerRe: richtextboxes and .doc files Pin
Dave Kreskowiak17-Jul-06 4:39
mveDave Kreskowiak17-Jul-06 4:39 
QuestionRe: richtextboxes and .doc files Pin
giddy_guitarist17-Jul-06 9:37
giddy_guitarist17-Jul-06 9:37 
AnswerRe: richtextboxes and .doc files Pin
Dave Kreskowiak17-Jul-06 12:15
mveDave Kreskowiak17-Jul-06 12:15 
QuestionSave Changes Pin
slSoftware17-Jul-06 0:18
slSoftware17-Jul-06 0:18 
AnswerRe: Save Changes Pin
giddy_guitarist17-Jul-06 0:38
giddy_guitarist17-Jul-06 0:38 
ok , first You have to set a flag/variable to go "true" when theres a change

Then u add the code :
<br />
Private Sub Form_Unload(Cancel As Integer)<br />
If change = True Then<br />
    Select Case MsgBox("The text has changed." + Chr(13) + "Do you want to save the changes", vbYesNoCancel")<br />
        Case vbYes<br />
            'Code for saving            <br />
             Cancel = 0'This unloads the form<br />
        Case vbNo<br />
             Cancel = 0'Same here<br />
        Case vbCancel<br />
            Cancel = 1 'This stops the form frm being closed!<br />
    End Select<br />
End If


Smile | :) Hope that helped!

Gideon
GeneralRe: Save Changes Pin
slSoftware17-Jul-06 0:59
slSoftware17-Jul-06 0:59 
QuestionHow to make code run with 2.0 framework Pin
g6gak16-Jul-06 23:42
g6gak16-Jul-06 23:42 
AnswerRe: How to make code run with 2.0 framework Pin
mr_lasseter17-Jul-06 2:27
mr_lasseter17-Jul-06 2:27 
GeneralRe: How to make code run with 2.0 framework Pin
g6gak17-Jul-06 2:40
g6gak17-Jul-06 2:40 
QuestionHow to add an element to a SOAP envelope? Pin
Peter van der Veen16-Jul-06 23:40
Peter van der Veen16-Jul-06 23:40 
QuestionFilter dataset Pin
ravihd16-Jul-06 22:16
ravihd16-Jul-06 22:16 
AnswerRe: Filter dataset Pin
GuruPandian16-Jul-06 23:26
GuruPandian16-Jul-06 23:26 
GeneralRe: Filter dataset Pin
ravihd16-Jul-06 23:37
ravihd16-Jul-06 23:37 
QuestionHow to create dynamic classes from XML file? Pin
Amol Ravatale16-Jul-06 21:45
Amol Ravatale16-Jul-06 21:45 
QuestionData storage [modified] Pin
codeadair16-Jul-06 21:22
codeadair16-Jul-06 21:22 
AnswerRe: Data storage Pin
Dave Kreskowiak17-Jul-06 1:45
mveDave Kreskowiak17-Jul-06 1:45 
GeneralRe: Data storage Pin
codeadair17-Jul-06 1:53
codeadair17-Jul-06 1:53 
GeneralRe: Data storage Pin
Dave Kreskowiak17-Jul-06 2:47
mveDave Kreskowiak17-Jul-06 2:47 
GeneralRe: Data storage Pin
codeadair17-Jul-06 14:20
codeadair17-Jul-06 14:20 
Questionvb.net HTML viewer (and editor) Pin
t3j016-Jul-06 21:09
t3j016-Jul-06 21:09 
AnswerRe: vb.net HTML viewer (and editor) Pin
Rizwan Bashir16-Jul-06 21:59
Rizwan Bashir16-Jul-06 21:59 
GeneralRe: vb.net HTML viewer (and editor) Pin
t3j017-Jul-06 4:49
t3j017-Jul-06 4:49 

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.