Click here to Skip to main content
15,921,840 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionProblem Sending an Email from Desktop App Pin
All Time Programming2-Sep-10 22:31
All Time Programming2-Sep-10 22:31 
AnswerRe: Problem Sending an Email from Desktop App Pin
DaveAuld2-Sep-10 22:54
professionalDaveAuld2-Sep-10 22:54 
GeneralRe: Problem Sending an Email from Desktop App Pin
All Time Programming2-Sep-10 23:11
All Time Programming2-Sep-10 23:11 
GeneralRe: Problem Sending an Email from Desktop App Pin
DaveAuld3-Sep-10 0:34
professionalDaveAuld3-Sep-10 0:34 
GeneralRe: Problem Sending an Email from Desktop App Pin
All Time Programming3-Sep-10 0:32
All Time Programming3-Sep-10 0:32 
GeneralRe: Problem Sending an Email from Desktop App Pin
DaveAuld3-Sep-10 0:34
professionalDaveAuld3-Sep-10 0:34 
QuestionHow to change bool flag status on the main windows mobile form by pressing button on the other windows mobile form Pin
acont1-Sep-10 22:27
acont1-Sep-10 22:27 
AnswerRe: How to change bool flag status on the main windows mobile form by pressing button on the other windows mobile form Pin
Eddy Vluggen2-Sep-10 9:12
professionalEddy Vluggen2-Sep-10 9:12 
acont wrote:
So when user press the button, it will call the following method on the first form:


No, it will call a method on an object that has the class-type as defined for the class "MainForm". There's two of those objects; one that's your actual mainform, and that you use to open the second form, and then there's a new object of the same type, created in the SecondMenu method.

acont wrote:
Then it's closing the second form and goes back to the main form. but the isSecondActive valuse is still false.


It's closing the second form, and the mainform contained therein (in the private variable firstForm). Then it goes back to the original mainform. The boolean is set in the second instance, the original object isn't changed.

How about passing a reference to your mainform in the constructor of the second form? You could cache a reference to that instance, changing things on that would correctly change the original object.
I are Troll Suspicious | :suss:

Questioni am asking for answers and not lectures from you guys Pin
imak31-Aug-10 7:21
imak31-Aug-10 7:21 
AnswerAlmost a repost - please ignore Pin
dan!sh 31-Aug-10 8:21
professional dan!sh 31-Aug-10 8:21 
GeneralRe: Its not a repost but a bit more specific questoin let me explain Pin
Richard MacCutchan31-Aug-10 12:00
mveRichard MacCutchan31-Aug-10 12:00 
GeneralRe: Its not a repost but a bit more specific questoin let me explain Pin
imak31-Aug-10 20:30
imak31-Aug-10 20:30 
AnswerRe: i am asking for answers and not lectures from you guys PinPopular
Tom Deketelaere31-Aug-10 22:06
professionalTom Deketelaere31-Aug-10 22:06 
AnswerRe: Read winform control properties via reflection Pin
dan!sh 31-Aug-10 8:20
professional dan!sh 31-Aug-10 8:20 
QuestionSOLVED - Secure the Software [modified] Pin
All Time Programming31-Aug-10 0:05
All Time Programming31-Aug-10 0:05 
AnswerRe: Secure the Software Pin
dan!sh 31-Aug-10 1:01
professional dan!sh 31-Aug-10 1:01 
GeneralRe: Secure the Software Pin
All Time Programming31-Aug-10 3:27
All Time Programming31-Aug-10 3:27 
GeneralRe: Secure the Software Pin
dan!sh 31-Aug-10 5:13
professional dan!sh 31-Aug-10 5:13 
AnswerRe: Secure the Software Pin
Eddy Vluggen31-Aug-10 8:37
professionalEddy Vluggen31-Aug-10 8:37 
AnswerRe: Secure the Software Pin
Expert Coming31-Aug-10 20:31
Expert Coming31-Aug-10 20:31 
AnswerRe: Secure the Software Pin
All Time Programming2-Sep-10 22:16
All Time Programming2-Sep-10 22:16 
Questiondatagridview cell color Pin
jogisarge27-Aug-10 8:27
jogisarge27-Aug-10 8:27 
AnswerRe: datagridview cell color Pin
Dave Kreskowiak27-Aug-10 10:45
mveDave Kreskowiak27-Aug-10 10:45 
AnswerRe: datagridview cell color Pin
Eddy Vluggen30-Aug-10 9:09
professionalEddy Vluggen30-Aug-10 9:09 
AnswerRe: datagridview cell color Pin
All Time Programming2-Sep-10 22:41
All Time Programming2-Sep-10 22: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.