Click here to Skip to main content
15,908,166 members
Home / Discussions / C#
   

C#

 
GeneralRe: Removing the Close button on Modal Dialog Pin
Robert Rohde31-Oct-06 19:21
Robert Rohde31-Oct-06 19:21 
AnswerRe: Removing the Close button on Modal Dialog Pin
Robert Rohde31-Oct-06 19:23
Robert Rohde31-Oct-06 19:23 
GeneralRe: Removing the Close button on Modal Dialog Pin
sam#31-Oct-06 19:33
sam#31-Oct-06 19:33 
GeneralRe: Removing the Close button on Modal Dialog Pin
Robert Rohde31-Oct-06 21:29
Robert Rohde31-Oct-06 21:29 
AnswerRe: Removing the Close button on Modal Dialog Pin
Stefan Troschuetz31-Oct-06 21:27
Stefan Troschuetz31-Oct-06 21:27 
GeneralRe: Removing the Close button on Modal Dialog Pin
bankai1231-Nov-06 1:46
bankai1231-Nov-06 1:46 
QuestionGet Data from Lookup Form Pin
MJay31-Oct-06 16:28
MJay31-Oct-06 16:28 
AnswerRe: Get Data from Lookup Form Pin
luckykhalid31-Oct-06 18:48
luckykhalid31-Oct-06 18:48 
There are many ways to accomplish your task.
1) Best way would be to make a custom event. As you told that you dont know much about delegates so I think it will be even difficult for you.

2) Make a static method in FormA and call it from FormB's click event handler by either passing it this (FormB object) as an argument if FormB is not class variable in FormA. In that method get all the values from FormB and then you could just close FormB or even destroy it.

3)In the click event handler of FormB, get its Parent by FormB.Parent, this will yeild you the reference to FormA's object. Now you could do anything with it.

You can use any of the above mentioned way. Hope it helps.

Regards
Khalid

GeneralRe: Get Data from Lookup Form Pin
MJay31-Oct-06 20:00
MJay31-Oct-06 20:00 
QuestionCalling DLL from C# .NET 2005 - Some problems in parameters Pin
datvpsc7731-Oct-06 16:07
datvpsc7731-Oct-06 16:07 
AnswerRe: Calling DLL from C# .NET 2005 - Some problems in parameters Pin
Judah Gabriel Himango31-Oct-06 17:57
sponsorJudah Gabriel Himango31-Oct-06 17:57 
QuestionRe: Calling DLL from C# .NET 2005 - Some problems in parameters Pin
datvpsc7731-Oct-06 19:25
datvpsc7731-Oct-06 19:25 
GeneralRe: Calling DLL from C# .NET 2005 - Some problems in parameters Pin
datvpsc7731-Oct-06 19:29
datvpsc7731-Oct-06 19:29 
GeneralRe: Calling DLL from C# .NET 2005 - Some problems in parameters Pin
Judah Gabriel Himango31-Oct-06 19:59
sponsorJudah Gabriel Himango31-Oct-06 19:59 
QuestionWorking around the lack of friend classes Pin
matt cole31-Oct-06 14:04
matt cole31-Oct-06 14:04 
AnswerRe: Working around the lack of friend classes Pin
Christian Graus31-Oct-06 15:51
protectorChristian Graus31-Oct-06 15:51 
GeneralRe: Working around the lack of friend classes Pin
Judah Gabriel Himango31-Oct-06 18:02
sponsorJudah Gabriel Himango31-Oct-06 18:02 
AnswerRe: Working around the lack of friend classes Pin
Leslie Sanford31-Oct-06 18:09
Leslie Sanford31-Oct-06 18:09 
QuestionEdit DataRow in a DataSet Pin
teejayem31-Oct-06 13:27
teejayem31-Oct-06 13:27 
AnswerRe: Edit DataRow in a DataSet Pin
Tamimi - Code31-Oct-06 19:10
Tamimi - Code31-Oct-06 19:10 
QuestionHow to Encrypt Data and Save to Registry ? Pin
hdv21231-Oct-06 10:47
hdv21231-Oct-06 10:47 
AnswerRe: How to Encrypt Data and Save to Registry ? Pin
Christian Graus31-Oct-06 10:51
protectorChristian Graus31-Oct-06 10:51 
GeneralRe: How to Encrypt Data and Save to Registry ? Pin
hdv21231-Oct-06 13:21
hdv21231-Oct-06 13:21 
GeneralRe: How to Encrypt Data and Save to Registry ? Pin
Christian Graus31-Oct-06 15:52
protectorChristian Graus31-Oct-06 15:52 
GeneralRe: How to Encrypt Data and Save to Registry ? Pin
matt cole31-Oct-06 19:07
matt cole31-Oct-06 19:07 

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.