Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to get out from the outer for Pin
Xmen Real 17-Mar-09 3:35
professional Xmen Real 17-Mar-09 3:35 
GeneralRe: how to get out from the outer for Pin
Pete O'Hanlon17-Mar-09 3:42
mvePete O'Hanlon17-Mar-09 3:42 
GeneralRe: how to get out from the outer for Pin
Eddy Vluggen17-Mar-09 6:04
professionalEddy Vluggen17-Mar-09 6:04 
Questionhow can i change the sample rate and sample size of wave files Pin
ahmedhassan9617-Mar-09 0:12
ahmedhassan9617-Mar-09 0:12 
QuestionVS 2008 - Setup project: Change Link Icon in Program Menu Pin
dj_jeff17-Mar-09 0:10
dj_jeff17-Mar-09 0:10 
Questionhow to catch these events? Pin
abhiram_nayan17-Mar-09 0:01
abhiram_nayan17-Mar-09 0:01 
AnswerRe: how to catch these events? Pin
Eddy Vluggen17-Mar-09 0:50
professionalEddy Vluggen17-Mar-09 0:50 
GeneralRe: how to catch these events? Pin
abhiram_nayan17-Mar-09 1:02
abhiram_nayan17-Mar-09 1:02 
hey Eddy, thanks for replying. I've been scratching my head since...

Basically, I want to create an xml for every excel sheet the user saves and when he reopens the excel sheet, I am supposed to open the corresponding xml. Thus, I used the WorkbookBeforeClose http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.workbook_events(VS.80).aspx[^]event and my whole aim is achieved if *the user is saving the sheet first and then closing ms excel*

However, the problem is, when he is trying to save the sheet by: Press the Close(X) button and when the pop up which says "Do you want to save changes to filename.xls? 'Yes' 'No' 'Cancel'" shoots up and IF he is choosing 'Yes' here, am not able to achieve the same. The reason being, the WorkbookBeforeClose event is invoked as soon as he presses the Close(X) button on the top right corner of ms excel.

I want to somehow be able to know whether the user has chosen 'Yes' or 'No' from the pop-up. Can I?! If yes, kindly tell me how?!

Regards.
GeneralRe: how to catch these events? Pin
Eddy Vluggen17-Mar-09 1:41
professionalEddy Vluggen17-Mar-09 1:41 
QuestionWhat's name of this code ? Pin
Mohammad Dayyan16-Mar-09 23:28
Mohammad Dayyan16-Mar-09 23:28 
AnswerRe: What's name of this code ? Pin
DaveyM6916-Mar-09 23:30
professionalDaveyM6916-Mar-09 23:30 
Questionopenfiledialog Pin
abu anas alazuneh16-Mar-09 23:06
abu anas alazuneh16-Mar-09 23:06 
AnswerRe: openfiledialog Pin
SeMartens16-Mar-09 23:07
SeMartens16-Mar-09 23:07 
AnswerRe: openfiledialog Pin
Christian Graus16-Mar-09 23:08
protectorChristian Graus16-Mar-09 23:08 
AnswerRe: openfiledialog Pin
iamalik16-Mar-09 23:31
professionaliamalik16-Mar-09 23:31 
AnswerRe: openfiledialog Pin
Xmen Real 17-Mar-09 0:00
professional Xmen Real 17-Mar-09 0:00 
QuestionHow to get "Name" or any ther property of the virtual SerialPort Pin
Suun16-Mar-09 22:18
Suun16-Mar-09 22:18 
AnswerRe: How to get "Name" or any ther property of the virtual SerialPort Pin
Christian Graus16-Mar-09 22:52
protectorChristian Graus16-Mar-09 22:52 
AnswerRe: How to get "Name" or any ther property of the virtual SerialPort Pin
Xmen Real 16-Mar-09 22:57
professional Xmen Real 16-Mar-09 22:57 
Questionupload excel from local drive Pin
Mangesh Tomar16-Mar-09 22:17
Mangesh Tomar16-Mar-09 22:17 
AnswerRe: upload excel from local drive Pin
Greg Chelstowski16-Mar-09 22:53
Greg Chelstowski16-Mar-09 22:53 
GeneralRe: upload excel from local drive Pin
Mangesh Tomar16-Mar-09 23:34
Mangesh Tomar16-Mar-09 23:34 
GeneralRe: upload excel from local drive Pin
Mangesh Tomar17-Mar-09 0:24
Mangesh Tomar17-Mar-09 0:24 
GeneralRe: upload excel from local drive Pin
Greg Chelstowski17-Mar-09 0:46
Greg Chelstowski17-Mar-09 0:46 
QuestionFixed columns in DataGridview in windows C# Pin
Rami.P16-Mar-09 21:49
Rami.P16-Mar-09 21: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.