C# .NET - Best Way To Update Parent Form After Child Form Closes c#

Asked By hariharan v on 24-Nov-12 08:01 AM
please help......


example code....
Robbe Morris replied to hariharan v on 24-Nov-12 10:05 AM
Wire up a public event on the child form for any activity you want to trigger on the parent form.
In the parent form, when you create the instance of the child form and before you do a .Show(), subscribe to the events of the child form.

This is referred to as "event driven programming".
hariharan v replied to Robbe Morris on 27-Nov-12 03:18 AM
thanks
help
Hello. First post, but been doing a bit of I can get from C#. One of the big changes I want to make is event-driven code (rather than the linear flow I had in Java). I have spent a week or so searching Google, talking to a couple of programming friends, and just chewing on it in my brain. I think I have an ok basically where I'm at with it. I have searched Google for c# info on 'event-driven code', 'delegate marshal thread', etc to try and put this all together, but I'm microsoft.public.dotnet.languages.csharp Sent: Sunday, May 18, 2008 4:33 PM Subject: Re: Event Driven Code and Thread Control Yeah, but I just want to learn C# too :-) Thanks
Hi! In an Excel workbook with 2 pages the 2nd is hidden. If 1).Cells(1, 1).Interior.Colorindex = 3 End Sub Could someone help? Thank You! Excel Programming Discussions MS Excel (1) Worksheets (1) Interior (1) Sheets (1) Excel (1) Workbook (1) Worksheets Object ThisWorkbook' is there an other way to make this happen? Like the inbuilt 'Activate' event can't we create an 'Unhide' event? Thanks. Private Sub Worksheet_Activate() For x = 1 To Worksheets.Count If Sheets(x).Visible = True on the wrong sheet change to Sheet hide / unhide does not of itself trigger an event. However it normally (always if done manually) it has the effect of activating or deactivating a sheet in the activeworkbook. The simplest way is to trap the activate event of all sheets at workbook level and format the cell as required, but only if your code could go in (say) an addin or your Personal. Regards, Peter T keywords: Event, Driven, Procedure description: Hi! In an Excel workbook with 2 pages the 2nd is hidden
on your button , it will direct you to a autogenerated code window, C# is an event driven programming so every thing here are events.(here your click on the button, is a Click event.so you have to specify what jobs to be performed on a particular event ) private void button1_Click( object sender, EventArgs e) { label1.Text = textBox1.Text; } here you assign label's text property as Textbox's text keywords: EventArgs, Click, event driven programming, button label, textbox description: dataset if i am using a textbox , button , label . . . . . add if
it possibly to create dynamic user forms(UF) that still have the ability to have event driven logic? Here is a simple example. Non dynamic uf structure. You have a UF (Non_Dynamic_UF of the combo box controls. THE QUESTION IS, can I also dynamically add in the EVENT DRIVEN logic that updates CBX2's list items whenever CBX1 changes that is demonstrated in the go about doing it? If it can't be done, . . . . dang it! Thanks everyone. Excel Programming Discussions MSForms.ComboBox (1) MCBX2.AddItem (1) MCBX2.Clear (1) MCBX1.Value (1) MComboEvents.Create found it much, much easier to add all the controls I want with all the event procedures that I want and just use the .visible property to hide / show the controls doesn't help that much. I'm trying to get away from this type of programming to allow the overall size of the project to be smaller by using a single it possibly to create dynamic user forms(UF) that still have the ability to have event driven logic Here is a simple example. Non dynamic uf structu
Hello, I am new to C# programming and I am using delegates for the event- driven application and found them very useful. Are there any applications where delegates may not be keywords: Are, there, any, disadvantages, of, using, delegates, ? description: Hello, I am new to C# programming and I am using delegates for the event- driven application and found them very useful. Are there any applications where
Hi, I have a simple question: If with ASP.NET model I HTML element how if had a framework object (as if I programmed a Win application: event-driven) why are there javascript framework libraries like YUI, prototype, elaJa etc., that allow to program brand of milk? Cause people as a programmers are different. Also .NET is server side programming, YUI, prototype is a client side programming. So they need to coexist. They serve different purposes. You can not do shadow effect of other JavaScript libraries. George. asp.net does a good job of looking like an event driven api like winforms but it has several limitations. every event requires posting all form input to the server, the server regenerating the html, and the
have an account on a corporate mail server; against which I run some rules and event driven VBA code. All works well. I recently added a new mailbox (attached mailbox) that I can receive / write emails etc. Unexpectedly I am unable to run rules or see event triggers in this mailbox. Is this possible? What do I need to do to switch use the new Stores collection. - - Ken Slovak [MVP - Outlook] http: / / www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http: / / www.slovaktech.com / products.htm Hi gratefully received. Cheers - - Regards, Nigel nigelnospam@9sw.co.uk You can use the Items.ItemAdd event on any folder, including folders in delegate mailboxes. - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com samples on www.outlookcode.com. - - Ken Slovak [MVP - Outlook] http: / / www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http: / / www.slovaktech.com / products.htm Hi Dmitry How would I use that? I do not see this event in the ThisOutlookSession class. Thanks Nigel You can do that the same way you handle COM events from any object that supports it: declare the variable "With Events", provide the event handlers and make sure the variable stays alive (i.e. it must be a global
small example Repeater is the control to display data Trigger is a special type of event driven stored procedure. It gets initiated when Insert, Delete or Update event occurs. Views the virtual tables which are created from the real table, which looks same can keep the view consistent without needing to rebuild your code. Function- The Transact-SQL programming language provides three types of functions: • Rowset functions Can be used like table references in A function in T_SQL is something that is similar to a function you use in programming language, which accepsts some paramters, does some logic and returns the results Hope you got can be used for simple reporting purposes. It http: / / www.codersource.net / asp_net_repeater_databind.html basic event-handling like Init , Load , Unload etc., This also supports some basic formatting of data and advantages in using functions in a program they are: 1. It facilitates top down modular programming. In this programming style, the high level logic of the overall problem is solved first while the details
is use of events and delegate? Hi, events and delegates are used to raise the event when the value of the object or its properties value changed. See the following articles acting for another. In C#, a delegate means a method acting for another method. An event is a message sent by an object to signal the occurrence of an action. The it could be triggered by some other program logic. The object that raises (triggers) the event is called the event sender. The object that captures the event and responds to it is called the event receiver. In event communication, the event sender class does not know which object or method will receive (handle) the events it
amazing, i think this is working!!! this is the output from some debug subscribe to presenter's events model subscribes to presenter events presenter subscribes to models GotCriteriaDictionary event presenter subscribes to view's events view subscribe to presenter's GotCriteriaDictionary event view raises event GetCriteriaDictionary presenter catch event from view GetCriteriaDictionary presenter raise event to model GetCriteriaDictionary model catches event from presenter GetCriteriaDictionary model gets data into sortedDictionary to pass back upstream model raise event GotCriteriaDictionary and pass back CriteriaDictionary in eventargs object presenter catches event from model and raises