Click here to Skip to main content
15,894,546 members
Home / Discussions / C#
   

C#

 
QuestionHow to Unhide the Hidden form Pin
Ravindra Bisen6-Sep-10 23:36
Ravindra Bisen6-Sep-10 23:36 
AnswerRe: How to Unhide the Hidden form Pin
OriginalGriff6-Sep-10 23:44
mveOriginalGriff6-Sep-10 23:44 
AnswerRe: How to Unhide the Hidden form Pin
Luc Pattyn7-Sep-10 1:52
sitebuilderLuc Pattyn7-Sep-10 1:52 
GeneralRe: How to Unhide the Hidden form Pin
DaveyM697-Sep-10 2:04
professionalDaveyM697-Sep-10 2:04 
GeneralRe: How to Unhide the Hidden form Pin
OriginalGriff7-Sep-10 2:18
mveOriginalGriff7-Sep-10 2:18 
AnswerRe: How to Unhide the Hidden form Pin
DaveyM697-Sep-10 2:01
professionalDaveyM697-Sep-10 2:01 
GeneralRe: How to Unhide the Hidden form Pin
Hum Dum8-Sep-10 0:25
Hum Dum8-Sep-10 0:25 
GeneralRe: How to Unhide the Hidden form Pin
DaveyM698-Sep-10 1:53
professionalDaveyM698-Sep-10 1:53 
With regard to your first question - getting data from FormReader to FormStart:

Do NOT use method A. It works but it is a nasty hack that as things get more complex you will regret!
Method B does not require any change to the access modifier of FormReader. The sender parameter will (normally) be the FormReader instance. So, inside the handler add something like this:

C#
FormReader formReader = sender as FormReader;
if(formReader != null)
{
    // You can now use formReader. to access any properties/methods
}


There is another method if you want FormReader to inform FormStart that there is data it may be interested in - you can raise a custom event in FormReader and subscribe to that in FormStart. Have a look at this tip[^], this tip[^], then this article[^] if this would fit your case better.
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: How to Unhide the Hidden form Pin
DaveyM698-Sep-10 1:57
professionalDaveyM698-Sep-10 1:57 
AnswerRe: How to Unhide the Hidden form Pin
Luc Pattyn7-Sep-10 2:32
sitebuilderLuc Pattyn7-Sep-10 2:32 
QuestionSave/Load Class Pin
_Q12_6-Sep-10 19:05
_Q12_6-Sep-10 19:05 
AnswerRe: Save/Load Class Pin
SeMartens6-Sep-10 20:41
SeMartens6-Sep-10 20:41 
GeneralRe: Save/Load Class Pin
_Q12_6-Sep-10 23:28
_Q12_6-Sep-10 23:28 
GeneralRe: Save/Load Class Pin
_Q12_7-Sep-10 8:10
_Q12_7-Sep-10 8:10 
QuestionRe: Save/Load Class Pin
Ravi Bhavnani7-Sep-10 10:29
professionalRavi Bhavnani7-Sep-10 10:29 
AnswerRe: Save/Load Class Pin
_Q12_7-Sep-10 12:34
_Q12_7-Sep-10 12:34 
GeneralRe: Save/Load Class Pin
Ravi Bhavnani8-Sep-10 4:42
professionalRavi Bhavnani8-Sep-10 4:42 
AnswerRe: Save/Load Class Pin
c0ax_lx8-Sep-10 4:57
c0ax_lx8-Sep-10 4:57 
AnswerRe: Save/Load Class Pin
_Q12_8-Sep-10 20:04
_Q12_8-Sep-10 20:04 
AnswerRe: Save/Load Class Pin
_Q12_10-Sep-10 19:26
_Q12_10-Sep-10 19:26 
QuestionProblem installing sql server 2005 express through code. Pin
MayukhSen6-Sep-10 18:42
MayukhSen6-Sep-10 18:42 
QuestionreportAppFactory.OpenDocument throws Invalid Cast exception (No such interfaces supported) [modified] Pin
amitcoder836-Sep-10 18:00
amitcoder836-Sep-10 18:00 
AnswerRe: reportAppFactory.OpenDocument throws Invalid Cast exception (No such interfaces supported) Pin
Richard MacCutchan6-Sep-10 21:37
mveRichard MacCutchan6-Sep-10 21:37 
GeneralRe: reportAppFactory.OpenDocument throws Invalid Cast exception (No such interfaces supported) Pin
amitcoder836-Sep-10 23:19
amitcoder836-Sep-10 23:19 
GeneralRe: reportAppFactory.OpenDocument throws Invalid Cast exception (No such interfaces supported) Pin
Richard MacCutchan7-Sep-10 1:09
mveRichard MacCutchan7-Sep-10 1:09 

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.