Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
QuestionUpdating databse table on basis of Excel sheet Pin
Priya Prk18-Nov-09 22:54
Priya Prk18-Nov-09 22:54 
QuestionRe: Updating databse table on basis of Excel sheet Pin
musefan18-Nov-09 22:59
musefan18-Nov-09 22:59 
AnswerRe: Updating databse table on basis of Excel sheet Pin
Priya Prk18-Nov-09 23:01
Priya Prk18-Nov-09 23:01 
GeneralRe: Updating databse table on basis of Excel sheet Pin
dan!sh 18-Nov-09 23:10
professional dan!sh 18-Nov-09 23:10 
GeneralRe: Updating databse table on basis of Excel sheet Pin
Priya Prk18-Nov-09 23:14
Priya Prk18-Nov-09 23:14 
GeneralRe: Updating databse table on basis of Excel sheet Pin
dan!sh 18-Nov-09 23:26
professional dan!sh 18-Nov-09 23:26 
AnswerRe: Updating databse table on basis of Excel sheet [modified] Pin
musefan18-Nov-09 23:24
musefan18-Nov-09 23:24 
QuestionDrop down control. Pin
Sasmi_Office18-Nov-09 20:18
Sasmi_Office18-Nov-09 20:18 
AnswerRe: Drop down control. Pin
dan!sh 18-Nov-09 20:21
professional dan!sh 18-Nov-09 20:21 
GeneralRe: Drop down control. Pin
0x3c018-Nov-09 20:22
0x3c018-Nov-09 20:22 
GeneralRe: Drop down control. Pin
dan!sh 18-Nov-09 20:28
professional dan!sh 18-Nov-09 20:28 
GeneralRe: Drop down control. Pin
Sasmi_Office18-Nov-09 20:38
Sasmi_Office18-Nov-09 20:38 
GeneralRe: Drop down control. Pin
Shameel18-Nov-09 21:27
professionalShameel18-Nov-09 21:27 
GeneralRe: Drop down control. Pin
dan!sh 18-Nov-09 23:09
professional dan!sh 18-Nov-09 23:09 
GeneralRe: Drop down control. Pin
Nguyen Thanh Quyen18-Nov-09 22:39
Nguyen Thanh Quyen18-Nov-09 22:39 
GeneralRe: Drop down control. Pin
dan!sh 18-Nov-09 22:45
professional dan!sh 18-Nov-09 22:45 
AnswerRe: Drop down control. Pin
0x3c018-Nov-09 20:21
0x3c018-Nov-09 20:21 
GeneralRe: Drop down control. Pin
Sasmi_Office18-Nov-09 20:37
Sasmi_Office18-Nov-09 20:37 
Questionhow to avoid a leave event after it is called Pin
eyalle18-Nov-09 19:30
eyalle18-Nov-09 19:30 
hello,
im looking for a solution with a slight problem that im sure it is possible, but i cant find anything about it on the web.
In my code, im calling a leave event out of a control that check's if the control has made any changes (txtBox, combo Box...) raising a question telling the user that changes weren't saved.
if the user click's on Cancel button, i want him to stay in the control and not actually leave like he initially did.
How can i do it ?
Thanks

private void TabControlChars_Leave(object sender, EventArgs e)
        {
            DataTable charChanges = null;

            if (charsTypeDT != null)
            {
                charChanges = charsTypeDT.GetChanges();
            }
            else if (charsDT != null)
            {
                charChanges = charsDT.GetChanges();
            }

            if (charChanges != null)
            {
                DialogResult result;
                result = MessageBox.Show("Changes were made without saving !!\n"
                               + "All Changes will be lost ...", "Warning", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
                if (result == DialogResult.Cancel)
                {
                    ???
                }
            }
        }

AnswerRe: how to avoid a leave event after it is called Pin
dan!sh 18-Nov-09 19:48
professional dan!sh 18-Nov-09 19:48 
AnswerRe: how to avoid a leave event after it is called Pin
Shameel18-Nov-09 21:29
professionalShameel18-Nov-09 21:29 
GeneralRe: how to avoid a leave event after it is called Pin
eyalle18-Nov-09 21:32
eyalle18-Nov-09 21:32 
GeneralRe: how to avoid a leave event after it is called Pin
Shameel18-Nov-09 22:51
professionalShameel18-Nov-09 22:51 
Questiongrid to database Pin
Member 59031018-Nov-09 19:20
Member 59031018-Nov-09 19:20 
AnswerRe: grid to database Pin
Abhijit Jana18-Nov-09 19:27
professionalAbhijit Jana18-Nov-09 19:27 

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.