Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:31
Baeltazor14-Jul-09 1:31 
GeneralRe: Logic behind... Something? Pin
Rajesh R Subramanian14-Jul-09 1:49
professionalRajesh R Subramanian14-Jul-09 1:49 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:51
Baeltazor14-Jul-09 1:51 
GeneralRe: Logic behind... Something? Pin
Luc Pattyn14-Jul-09 2:11
sitebuilderLuc Pattyn14-Jul-09 2:11 
GeneralRe: Logic behind... Something? Pin
OriginalGriff14-Jul-09 2:13
mveOriginalGriff14-Jul-09 2:13 
GeneralRe: Logic behind... Something? Pin
Luc Pattyn14-Jul-09 2:39
sitebuilderLuc Pattyn14-Jul-09 2:39 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 9:21
Baeltazor14-Jul-09 9:21 
AnswerRe: Logic behind... Something? Pin
musefan14-Jul-09 1:31
musefan14-Jul-09 1:31 
From what I can gather you have a number of tab pages that contain basically the same controls but can contain different data. when you close all tabs then you want to check certain data and prompt for a save if need be. Is that correct?

What I would do in this instance is create a custom control that will basically be the only control on each of the tab pages. This control will have all your other controls however you choose to lay them out. This custom control should then have a function called ValidateClose() or something that does your tests and prompt the user or whatever. This can then be called in side the foreach loop of each tab when you are closing them all.

using a switch block is basically the same as if else if logic, so use which ever you prefer.

Hope that makes sense and offers some help

Life goes very fast. Tomorrow, today is already yesterday.

GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:35
Baeltazor14-Jul-09 1:35 
Questionc# function for Image Compression Pin
GauravKP14-Jul-09 1:11
professionalGauravKP14-Jul-09 1:11 
AnswerRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 1:14
sitebuilderLuc Pattyn14-Jul-09 1:14 
JokeRe: c# function for Image Compression Pin
musefan14-Jul-09 1:19
musefan14-Jul-09 1:19 
GeneralRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 1:42
sitebuilderLuc Pattyn14-Jul-09 1:42 
GeneralRe: c# function for Image Compression Pin
musefan14-Jul-09 2:42
musefan14-Jul-09 2:42 
GeneralRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 2:44
sitebuilderLuc Pattyn14-Jul-09 2:44 
AnswerRe: c# function for Image Compression Pin
benjymous14-Jul-09 1:42
benjymous14-Jul-09 1:42 
AnswerRe: c# function for Image Compression Pin
Ennis Ray Lynch, Jr.14-Jul-09 6:15
Ennis Ray Lynch, Jr.14-Jul-09 6:15 
QuestionWindow Service memory leak Pin
himanshu256114-Jul-09 0:36
himanshu256114-Jul-09 0:36 
AnswerRe: Window Service memory leak Pin
Luc Pattyn14-Jul-09 1:11
sitebuilderLuc Pattyn14-Jul-09 1:11 
GeneralRe: Window Service memory leak Pin
himanshu256114-Jul-09 19:40
himanshu256114-Jul-09 19:40 
GeneralRe: Window Service memory leak Pin
Luc Pattyn15-Jul-09 0:12
sitebuilderLuc Pattyn15-Jul-09 0:12 
GeneralRe: Window Service memory leak Pin
himanshu256115-Jul-09 1:38
himanshu256115-Jul-09 1:38 
GeneralRe: Window Service memory leak Pin
Luc Pattyn15-Jul-09 1:50
sitebuilderLuc Pattyn15-Jul-09 1:50 
AnswerRe: Window Service memory leak Pin
PIEBALDconsult14-Jul-09 6:24
mvePIEBALDconsult14-Jul-09 6:24 
GeneralRe: Window Service memory leak Pin
himanshu256114-Jul-09 19:42
himanshu256114-Jul-09 19:42 

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.