Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: Locking excel file while writing Pin
KaurGurpreet13-Jun-10 22:21
KaurGurpreet13-Jun-10 22:21 
AnswerRe: Locking excel file while writing Pin
Rhys Jacob13-Jun-10 23:39
Rhys Jacob13-Jun-10 23:39 
GeneralRe: Locking excel file while writing Pin
KaurGurpreet14-Jun-10 0:14
KaurGurpreet14-Jun-10 0:14 
GeneralRe: Locking excel file while writing Pin
Pete O'Hanlon14-Jun-10 0:40
mvePete O'Hanlon14-Jun-10 0:40 
GeneralRe: Locking excel file while writing Pin
KaurGurpreet14-Jun-10 20:55
KaurGurpreet14-Jun-10 20:55 
GeneralRe: Locking excel file while writing Pin
Pete O'Hanlon14-Jun-10 22:52
mvePete O'Hanlon14-Jun-10 22:52 
QuestionAODL ans .xls files Pin
SummerBulb13-Jun-10 21:34
SummerBulb13-Jun-10 21:34 
QuestionDatagridview CellValidating [Solved] Pin
jojoba201113-Jun-10 21:34
jojoba201113-Jun-10 21:34 
private void dgvFactorSell_CellValidating(object sender, DataGridViewCellValidatingEventArgs e)
        {

if (dgvFactorSell.Rows[e.RowIndex].Cells["CStoreCode"].EditedFormattedValue != null && dgvFactorSell.Rows[e.RowIndex].Cells["CStoreCode"].EditedFormattedValue.ToString() != "")
                        {
                                                  e.Cancel = true;
                        }}


now when i am in this cell and if it doesnt content any data and if i click the close button of form it doesnt do any thing (i mean it doest close the form and remain in the same cell)



ANS :http://s.codeproject.com/script/Forums/Images/smiley_smile.gif

I My Self Solved it ! Smile | :) Smile | :)

bool FlagIsClose = false;
const int HTCLOSE = 0x14;
const int WM_NCLBUTTONDOWN = 0xA1;
protected override void DefWndProc(ref Message m)
 {
   if (m.Msg == WM_NCLBUTTONDOWN)
     {
       if (m.WParam.ToInt32() == HTCLOSE)
        {
          FlagIsClose = true;
        }
     }
   base.DefWndProc(ref m);
 }


modified on Monday, June 14, 2010 8:46 AM

QuestionReport Service - passing XML paramter to filter data Pin
thenewbee13-Jun-10 21:21
thenewbee13-Jun-10 21:21 
QuestionData Passing between two different Application Pin
Priyagdpl13-Jun-10 20:06
Priyagdpl13-Jun-10 20:06 
AnswerRe: Data Passing between two different Application Pin
Md. Marufuzzaman13-Jun-10 20:31
professionalMd. Marufuzzaman13-Jun-10 20:31 
AnswerRe: Data Passing between two different Application Pin
Abhinav S13-Jun-10 21:45
Abhinav S13-Jun-10 21:45 
QuestionDo stuff while button pressed down? [solved] Pin
la0113-Jun-10 16:52
la0113-Jun-10 16:52 
AnswerRe: Do stuff while button pressed down? Pin
Luc Pattyn13-Jun-10 17:18
sitebuilderLuc Pattyn13-Jun-10 17:18 
GeneralRe: Do stuff while button pressed down? Pin
la0113-Jun-10 17:46
la0113-Jun-10 17:46 
GeneralRe: Do stuff while button pressed down? Pin
Luc Pattyn13-Jun-10 18:02
sitebuilderLuc Pattyn13-Jun-10 18:02 
GeneralRe: Do stuff while button pressed down? Pin
la0115-Jun-10 13:33
la0115-Jun-10 13:33 
Questionneed help Pin
aaga513-Jun-10 9:56
aaga513-Jun-10 9:56 
AnswerRe: need help Pin
Luc Pattyn13-Jun-10 10:03
sitebuilderLuc Pattyn13-Jun-10 10:03 
AnswerRe: need help Pin
Lutosław13-Jun-10 12:26
Lutosław13-Jun-10 12:26 
AnswerRe: need help Pin
Abhinav S13-Jun-10 18:18
Abhinav S13-Jun-10 18:18 
QuestionProblem to use letters ( c: , d:) with the physical drive: Pin
muteb13-Jun-10 7:32
muteb13-Jun-10 7:32 
AnswerRe: Problem to use letters ( c: , d:) with the physical drive: Pin
Henry Minute13-Jun-10 8:14
Henry Minute13-Jun-10 8:14 
AnswerRe: Problem to use letters ( c: , d:) with the physical drive: Pin
Luc Pattyn13-Jun-10 8:21
sitebuilderLuc Pattyn13-Jun-10 8:21 
QuestionConnection string Pin
humayunlalzad13-Jun-10 3:01
humayunlalzad13-Jun-10 3:01 

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.