Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I check if a specific registry entry exists? Pin
Graham Nimbley18-Jun-06 13:12
Graham Nimbley18-Jun-06 13:12 
QuestionRename Directory/Folder Pin
QzRz18-Jun-06 9:28
QzRz18-Jun-06 9:28 
AnswerRe: Rename Directory/Folder [modified] Pin
Graham Nimbley18-Jun-06 10:58
Graham Nimbley18-Jun-06 10:58 
GeneralRe: Rename Directory/Folder Pin
QzRz18-Jun-06 11:43
QzRz18-Jun-06 11:43 
Question3 Button clicks to one form Pin
Saamir18-Jun-06 6:21
Saamir18-Jun-06 6:21 
AnswerRe: 3 Button clicks to one form Pin
Jun Du18-Jun-06 10:21
Jun Du18-Jun-06 10:21 
QuestionRe: 3 Button clicks to one form [modified] Pin
Saamir18-Jun-06 12:09
Saamir18-Jun-06 12:09 
AnswerRe: 3 Button clicks to one form Pin
Jun Du18-Jun-06 17:15
Jun Du18-Jun-06 17:15 
There seems to be some confusions in your code.

SASA_1 wrote:
I am assuming I create this function in the ADD form,...


Not exactly. What I created in the previous post is an event handler(delegate). When a button on the MDI form is clicked, the event will be handled in the MDI form, not the ADD form. Thus, the event handler has to be defined by the MDI form class.

That being said, from within the event handler, the MDI form still can call into the ADD form any proper way you want. For example, in the event handler, you may define a button type parameter and pass it to the callback function of the ADD form. Then, the ADD form may take different action based on which button is clicked.

Hope this helps.



- It's easier to make than to correct a mistake.
GeneralRe: 3 Button clicks to one form Pin
Saamir19-Jun-06 7:42
Saamir19-Jun-06 7:42 
QuestionDataGrid in Windows Application Pin
Mohammad Daba'an18-Jun-06 4:54
Mohammad Daba'an18-Jun-06 4:54 
AnswerRe: DataGrid in Windows Application Pin
Nader Elshehabi19-Jun-06 0:57
Nader Elshehabi19-Jun-06 0:57 
QuestionIs there any way to display a linked text? Pin
printscreen1234518-Jun-06 4:38
printscreen1234518-Jun-06 4:38 
AnswerRe: Is there any way to display a linked text? Pin
Ed.Poore18-Jun-06 8:15
Ed.Poore18-Jun-06 8:15 
AnswerRe: Is there any way to display a linked text? Pin
Graham Nimbley18-Jun-06 11:16
Graham Nimbley18-Jun-06 11:16 
GeneralRe: Is there any way to display a linked text? Pin
printscreen1234518-Jun-06 20:22
printscreen1234518-Jun-06 20:22 
GeneralRe: Is there any way to display a linked text? Pin
Graham Nimbley19-Jun-06 11:41
Graham Nimbley19-Jun-06 11:41 
GeneralRe: Is there any way to display a linked text? Pin
printscreen1234520-Jun-06 18:55
printscreen1234520-Jun-06 18:55 
QuestionEasy question! [modified] Pin
Squee!18-Jun-06 4:13
Squee!18-Jun-06 4:13 
AnswerRe: Easy question! [modified] Pin
User 665818-Jun-06 4:36
User 665818-Jun-06 4:36 
JokeRe: Easy question! Pin
Squee!18-Jun-06 9:22
Squee!18-Jun-06 9:22 
QuestionDCC Transfer - C# Pin
MaxWAT18-Jun-06 4:10
MaxWAT18-Jun-06 4:10 
AnswerRe: DCC Transfer - C# Pin
Mr. VB.NET20-Jun-06 2:13
Mr. VB.NET20-Jun-06 2:13 
QuestionDate Regulare Expression Pin
Mohamed El Gohary18-Jun-06 4:09
Mohamed El Gohary18-Jun-06 4:09 
AnswerRe: Date Regulare Expression Pin
Guffa18-Jun-06 4:15
Guffa18-Jun-06 4:15 
Question.Net version Pin
Stanciu Vlad18-Jun-06 1:09
Stanciu Vlad18-Jun-06 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.