Click here to Skip to main content
15,884,629 members
Home / Discussions / C#
   

C#

 
QuestionContrast settings Pin
abcurl12-Apr-11 4:01
abcurl12-Apr-11 4:01 
AnswerRe: Contrast settings Pin
Pete O'Hanlon12-Apr-11 7:05
mvePete O'Hanlon12-Apr-11 7:05 
GeneralRe: Contrast settings Pin
abcurl12-Apr-11 17:37
abcurl12-Apr-11 17:37 
GeneralRe: Contrast settings Pin
DaveyM6912-Apr-11 21:20
professionalDaveyM6912-Apr-11 21:20 
GeneralRe: Contrast settings Pin
Pete O'Hanlon12-Apr-11 21:41
mvePete O'Hanlon12-Apr-11 21:41 
QuestionWorks in one project but not another. [modified] Pin
twohowlingdogs12-Apr-11 3:45
twohowlingdogs12-Apr-11 3:45 
AnswerRe: Works in one project but not another. Pin
BobJanova12-Apr-11 3:59
BobJanova12-Apr-11 3:59 
GeneralRe: Works in one project but not another. Pin
twohowlingdogs12-Apr-11 5:23
twohowlingdogs12-Apr-11 5:23 
This is the code I used in the resultsWindow:
private void cmdClose_Click(object sender, EventArgs e)
{
    SearchCriteria sc = (SearchCriteria)Application.OpenForms["SearchCriteria"];
    sc.Close();
    SearchCriteria.impDS.Dispose();
    this.Close();
}

This is the code from the previous project:
SearchInput si = (SearchInput)Application.OpenForms["SearchInput"];
si.Close();
SearchInput.ds1.Dispose();
this.Close();

So you can see I do the exact same thing and the other code works fine without checking. I agree that there are better ways. Thanks for pointing out checking what ShowDialog returns. I'll look into doing that.

BobJanova wrote:
Pulling the rug out from underneath an executing form like that is rude

I didn't mean to be rude. Sniff | :^)
Laugh | :laugh:
I have nothing more to say.

AnswerRe: Works in one project but not another. Pin
Eddy Vluggen12-Apr-11 8:05
professionalEddy Vluggen12-Apr-11 8:05 
GeneralRe: Works in one project but not another. Pin
twohowlingdogs12-Apr-11 8:21
twohowlingdogs12-Apr-11 8:21 
AnswerRe: Works in one project but not another. Pin
Luc Pattyn12-Apr-11 8:58
sitebuilderLuc Pattyn12-Apr-11 8:58 
Questionhow to load form with many controls Smooth on Winform ? Pin
Gali197812-Apr-11 1:57
Gali197812-Apr-11 1:57 
AnswerRe: how to load form with many controls Smooth on Winform ? Pin
Luc Pattyn12-Apr-11 2:15
sitebuilderLuc Pattyn12-Apr-11 2:15 
AnswerRe: how to load form with many controls Smooth on Winform ? Pin
gaohe812-Apr-11 3:14
gaohe812-Apr-11 3:14 
GeneralRe: how to load form with many controls Smooth on Winform ? Pin
Manfred Rudolf Bihy12-Apr-11 3:19
professionalManfred Rudolf Bihy12-Apr-11 3:19 
GeneralRe: how to load form with many controls Smooth on Winform ? Pin
wizardzz12-Apr-11 6:24
wizardzz12-Apr-11 6:24 
AnswerRe: how to load form with many controls Smooth on Winform ? Pin
Manfred Rudolf Bihy12-Apr-11 3:21
professionalManfred Rudolf Bihy12-Apr-11 3:21 
AnswerRe: how to load form with many controls Smooth on Winform ? Pin
wizardzz12-Apr-11 6:23
wizardzz12-Apr-11 6:23 
QuestionHow to check items in a Collection contains common property? Pin
John-ph12-Apr-11 0:27
John-ph12-Apr-11 0:27 
AnswerRe: How to check items in a Collection contains common property? Pin
OriginalGriff12-Apr-11 0:38
mveOriginalGriff12-Apr-11 0:38 
GeneralMessage Removed Pin
12-Apr-11 1:10
John-ph12-Apr-11 1:10 
GeneralRe: How to check items in a Collection contains common property? Pin
OriginalGriff12-Apr-11 1:31
mveOriginalGriff12-Apr-11 1:31 
GeneralRe: How to check items in a Collection contains common property? Pin
John-ph12-Apr-11 3:48
John-ph12-Apr-11 3:48 
AnswerPlease don't remove messages. Pin
Pete O'Hanlon12-Apr-11 1:52
mvePete O'Hanlon12-Apr-11 1:52 
GeneralRe: Please don't remove messages. Pin
Luc Pattyn12-Apr-11 2:41
sitebuilderLuc Pattyn12-Apr-11 2:41 

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.