Article Options
Recently Viewed
Premium Sponsor
Premium Sponsor

 »  Home  »  Upgrading  »  Multiple Forms in VB.NET. Part 3 - Using Events in Multiple Forms
 »  Home  »  Windows Development  »  Win Forms  »  Multiple Forms in VB.NET. Part 3 - Using Events in Multiple Forms
Multiple Forms in VB.NET. Part 3 - Using Events in Multiple Forms
by Ged Mead | Published  09/03/2003 | Upgrading Win Forms | Rating:
Ged Mead

Ged Mead (XTab) is a Microsoft Visual Basic MVP who has been working on computer software and design for more than 25 years. His journey has taken him through many different facets of IT. These include training as a Systems Analyst, working in a mainframe software development environment, creating financial management systems and a short time spent on military laptop systems in the days when it took two strong men to carry a 'mobile' system.

Based in an idyllic lochside location in the West of Scotland, he is currently involved in an ever-widening range of VB.NET, WPF and Silverlight development projects. Now working in a consultancy environment, his passion however still remains helping students and professional developers to take advantage of the ever increasing range of sophisticated tools available to them.

Ged is a regular contributor to forums on vbCity and authors articles for DevCity. He is a moderator on VBCity and the MSDN Tech Forums and spends a lot of time answering technical questions there and in several other VB forum sites. Senior Editor for DevCity.NET, vbCity Developer Community Leader and Admin, and DevCity.NET Newsletter Editor. He has written and continues to tutor a number of free online courses for VB.NET developers.

 

View all articles by Ged Mead...
Multiple Forms in VB.NET. Part 3 - Using Events in Multiple Forms

Article source code: multipleforms3.zip

As with the previous articles in this series, this one is also aimed at .NET Newbies and Upgraders. It tries to explain concepts as simply as possible, with the greatest use of plain English and minimum use of technical terms. The aim is to get the core ideas across as quickly as possible, so you can achieve the results you desire now; the technical details can follow in time. I know that many will not agree with this approach, but as a relative .NET Newbie myself, I know just how frustrating it can be trying to plough through a mass of technical detail in the early days when all you really want to do is, well, get started!

In this article, we are going to look at another topic on ways of dealing with multiple forms. As promised at the end of Part 2, we are first going to take a look at a way of passing data between multiple forms, but this time the user doesn't need to click a button to fire up the event.

Using Events

In our example project, we will have two forms. As the user enters data into a textbox in one form, this data will be copied to a label in the second form. Once again, although we're using a simple textbox for this example of the technique, the core idea can be extended for use in many much more sophisticated ways.

So, create two Windows Forms and name them EventsForm1 and EventsForm2. We'll be using EventsForm1 as the 'main' form, which is the one that has the label to receive the input data, and EventsForm2 as the form with the input textbox.

Here's the code we need to create an instance of EventsForm2. First, in EventsForm1, we declare a Form variable.

' This must be declared outside of any code blocks
    Dim WithEvents f2 As New EventsForm2()

Note that this has been declared WithEvents. This is important and if you leave it out, the main form will not be aware of what we are about to do in the second form.

And I thought that as we are being more dynamic in this Part, we would also instantiate and show the second form without user intervention. Or, in other words, we'll put it in the first form's load event and both forms will appear to the user at the same time.

Private Sub EventsForm1_Load(ByVal sender As Object_
    ByVal e As System.EventArgsHandles MyBase.Load

    If Not IsNothing(f2Then
        If Not f2.IsDisposed Then
            f2.WindowState = FormWindowState.Normal
            f2.BringToFront()
            f2.Show()
        Else
            f2 = New EventsForm2()
            f2.Show()
        End If
    Else
        f2 = New EventsForm2()
        f2.Show()
    End If

    '  Make sure it can be seen OK
    f2.Left = Me.Left + Me.Width + 2
    f2.Top = Me.Top

End Sub

Apart from the couple of lines at the end of that block, which just ensure that the two forms can be seen side by side, the instantiation code is the "test before instantiating" code which we covered in Part 1. (The code in Part 1 is quite well commented if you want to see the details.)

Add Some Controls

If you were to run the project at this point, you will be rewarded with two control-free forms side by side on your screen. Time to add some GUI items then.

In EventsForm1, add a Label. The size isn't critical, but you should allow for several lines of text to be visible. We'll name this label lblData.

In EventsForm2, add a Textbox. Delete the default Text property (usually this will be 'TextBox1') so that the user will see an empty textbox. Also set its MultiLine property to True. Finally, rename it as TB1.

The Events Code

Just to quickly recap what we are trying to do here: When the user types something into the textbox TB1 in EventsForm2, we want the text also to be displayed in the label in EventsForm1.

Let's add in the code to achieve this. We first need to declare an Event. We'll call this event TextHasChanged.

Here's the declaration; note that it has to be placed outside any code blocks, subs, etc.

Public Class EventsForm2
    Inherits System.Windows.Forms.Form

    '  Declare this event
    Event TextHasChanged()

Now, we need something to fire up this event. The obvious candidate in this particular scenario is the built-in TextChanged event of the textbox, so let's put some code in there to raise the warning flag that we are creating here.

Select the textbox TB1 in the code window and put this code in its TextChanged event handler:

Private Sub TB1_TextChanged(ByVal sender As Object_
    ByVal e As System.EventArgsHandles TB1.TextChanged
    '  If the user enters something here, then show it in the
    '  first form
    RaiseEvent TextHasChanged()

End Sub

All this does is to flag up the fact that text has changed by raising the Event that we declared and called TextHasChanged.

What will happen each time the user enters any character into the textbox is that the TextHasChanged event is raised. (This includes any editing of the text with the Delete or BackSpace keys too).

However, there's no point in waving the flag around (raising the event) if there's no lifeguard (in this case EventsForm1) looking out for it. So, finally, we'll tell EventsForm1 what to do if the TextHasChanged event in EventsForm1 is raised. (Technically, this is known as receiving the event.)

Back in EventsForm1, if you go into the Code Window and click on the left hand combo, you will see that the Object we have named f2 is available in that drop down list of Objects. Select it and then click on the right hand list of Events. You will see that our newly created event TextHasChanged is now included in the list of events, along with all the usual Windows Forms events that you'd expect to see there.

So let's select that item from the list and we will be able to put some code in the TextHasChanged Event's Event Handler:

Private Sub f2_TextHasChanged() Handles f2.TextHasChanged
    Me.lblData.Text = f2.TB1.Text
End Sub

You'll understand that all this code really does is to copy the text from the textbox on the other form into the label on this form. But because we have linked this event to react to every change of character in that textbox, the user will see the text displayed in the label dynamically as it is being typed. If you run the project now and type in some text, you will see this in action.

Summary

There are of course always alternative ways of achieving the same result, but I took the example of a textbox used here as a simple demonstration of the sort of thing you can do with passing events between multiple forms. It's sometimes difficult to find examples that aren't too artificial, but hopefully this basic example will be enough to show you how to use the technique in a variety of more advanced and exciting ways, according to your needs in projects and applications. I hope you find it a useful introduction to the very basics of Events, as well as simply showing you another way of passing data between multiple forms.

My thanks to fellow vbCity Member George Poth for proofreading this article and for creating the attached Visual Studio Solution from the narrative.

Related devCity.NET articles:

How would you rate the quality of this article?
1 2 3 4 5
Poor Excellent
Tell us why you rated this way (optional):

Article Rating
The average rating is: No-one else has rated this article yet.

Article rating:4.65034965034967 out of 5
 143 people have rated this page
Article Score78463
Article Series
Related Articles
Comments    Submit Comment

Comment #1  (Posted by Vipul Bhatt on 09/22/2003)

Hello.
I need to create an application where I can move between forms by clicking "Back" & "Next" buttons present on all form.
Can U please tell how that can be done ?
 
Comment #2  (Posted by XTab on 09/23/2003)

Hi,

I think you'll find various of doing what you are looking for are described in the first article in this series.

Cheers,
XTab
 
Comment #3  (Posted by Steve on 10/20/2003)

This article was great! Very simple and easy to follow. I was really struggling to find help on the developer network and your article saved the day.

Thanks
 
Comment #4  (Posted by yan19454 on 11/19/2003)

The article is helpful. Thanks.
 
Comment #5  (Posted by jo on 11/26/2003)

At last I found an article that deals with events between forms. Saved my day too! This article is really useful. Simple and concise. Can be easily expanded to more scenarios.
Thanks a lot!
 
Comment #6  (Posted by Sam Striano on 12/16/2003)

VERY WELL DONE!!!
 
Comment #7  (Posted by XTab on 12/17/2003)

Thanks for the positive feedback! It's always very encouraging when you're not quite sure if the articles are of any real use.
There's another one in the pipeline which will deal with the particular problems of startup forms.

 
Comment #8  (Posted by vb_student on 01/30/2004)

Hello,

I am creating an application that has more than one form. Let me outline the problem here:

In form1, i populate a datagrid from a database table, using a dataadapter and a dataset. Now, how can I access this datatset in form2?

Thanks!
 
Comment #9  (Posted by XTab on 01/31/2004)

Hi
I've got good news and bad news. The good news is that this question is covered in the Multiple Forms Part 4 article; the bad news of course being that it hasn't made it onto the site yet (although it is written).

If you want to email me at editors@vbcity.com and confirm an email address at which I can contact you, I'll send you a draft copy of the article, which I am fairly confident will solve your problem.

Cheers

XTab
 
Comment #10  (Posted by vb_student on 02/02/2004)

Thanks ! I have sent my email address to editors@vbcity.com
 
Comment #11  (Posted by Michael on 02/12/2004)

Good job man! :)

 
Comment #12  (Posted by Bharti on 04/16/2004)

I found the article very interesting. I am having problem of a different kind and was wondering if this is what I need to do to solve it? I have a form on which labels and buttons are drawn at load time depending on the number in the database. I have no problem with doing this, but when I change the text on the labels it does not reflect it on the form unless the form application is shut down and restarted. Can you suggest a way of refreshing the text in the labels? I have tried to refresh the form, but that did not work. Thank you for your help.
 
Comment #13  (Posted by XTab on 04/16/2004)

Hello Bharti,
I could probably be of more help if I knew what code you used to try and change the text. Would you like to email me at xtab@vbcity.com with the snippet(s) you have tried and I'll see if I can help.
 
Comment #14  (Posted by Brent Hedden on 04/29/2004)

Having read all six articles in this series now, I must say that I'm most impressed. This is my first experience in Visual Basic (ANY version) and I must say that I've learned more just in these short articles that I did in a semester of college class. I'm glad that there are resources available like this and skilled people willing to share their knowledge and insight. Thanks!
 
Comment #15  (Posted by geetha on 05/17/2004)

Mr. Xtab,

I found the articles are interesting and helpful. I am working on a windows application that has multiple forms.
My problem is :

In Form1, i populate a datagrid from a database table, using a dataadapter and a dataset. The data is displayed in the datagrid in the form of multiple rows(under each diferent columns having different labels). How can i populate a list box in Form2 with particular row data
 
Comment #16  (Posted by Rosana de Oliveira on 06/01/2004)

Excellent article. Your article helped me with my project.
 
Comment #17  (Posted by ANgel Lindo on 06/19/2004)

I've tried to declared an object of FORM1 in FORM2 but when I debug it doesn't run but when I put in comments that new object I runs, basically what i'm trying to do is, send info from FORM2 to FORM1 being the FORM1 the main.
 
Comment #18  (Posted by XTab on 06/21/2004)

Hi ANgel Lindo
I don't fully understand what you have in mind, but I wonder if perhaps one of the other articles in the series might hold the answer for you? Certainly some of them do show various ways of passing data between forms in a project, some of them quite basic; whereas this article above (#3) concentrates on Events, which tends to be a bit more complicated.

I'd suggest that you have a read through Parts 2 and 4 of this series and see if that gets you on track. If not, then please do post a follow-up with more detail and I'll try and help if I can.
 
Comment #19  (Posted by Mario Villalobos on 07/16/2004)

Excelllent article and example easy to use easy to learn thanks a lot my friend
 
Comment #20  (Posted by Art Heyman on 10/19/2004)

Many thanks ; much better and more useful than anything at the Microsoft site
 
Comment #21  (Posted by wilson durano on 11/01/2004)

how about if i have an MDI form and a child Form. i've already did it but it does'nt work.. thanks also for this article it helps me alot..
 
Comment #22  (Posted by an unknown user on 01/10/2005)
Rating
Fine to read your text ..... why Microsoft don't write like that ?
 
Comment #23  (Posted by an unknown user on 01/16/2005)
Rating
Great article, very good for newcomers to vb.net. It is very easy to understand, and it helped me a LOT
 
Comment #24  (Posted by an unknown user on 01/26/2005)
Rating
Clear, concise and organized!
 
Comment #25  (Posted by an unknown user on 02/03/2005)
Rating
Very clear and easy to understand.
One of the easiest to understand i have read. P Thompson - NetFX Media Limited (UK)
 
Comment #26  (Posted by an unknown user on 02/14/2005)
Rating
hi,
i was wondering if you have anything on multiple forms, accessing public subs... i have already handled multiple forms but im having problems in accessing the subs.. mainly because the values of the tables that i have somehow gets earase whenever i jump from form to form..

 
Comment #27  (Posted by an unknown user on 02/16/2005)
Rating
because i get the information which i want for my project
 
Comment #28  (Posted by drey on 03/05/2005)
Rating
very nice tutorial, in fact the best i have seen so far on multiple forms,
 
Comment #29  (Posted by an unknown user on 03/08/2005)
Rating
Thank you. This is very helpful article, especially if you read the full series (part 1, 2 and 3). Well done.
 
Comment #30  (Posted by an unknown user on 03/25/2005)
Rating
Excellent series. Well written, concise, and PERTINENT! Microsoft needs to hire you as head editor for their .net documentation team!
 
Comment #31  (Posted by an unknown user on 04/05/2005)
Rating
Excellent. I am having a problem causing the event to occur in form2 instead of form1. I realize that this is just the reverse BUT I cannot get it to work.

But this article is great !
 
Comment #32  (Posted by KriGo on 04/12/2005)
Rating
Great article(s), simple and concise. This is what I've been looking for a while. Bookmarked (and recommended) this excellent site! Waiting for Part 4 to be published.
 
Comment #33  (Posted by XTab on 04/13/2005)
Rating
Thanks :-} You can now find Part 4 here: http://www.devcity.net/Articles/117/1/multipleforms4.aspx

 
Comment #34  (Posted by an unknown user on 05/04/2005)
Rating
Thanx for your free source
Saiedhacker
www.Saiedhackerpro.persianblog.com
 
Comment #35  (Posted by an unknown user on 05/18/2005)
Rating
what is mean multiple Inherits in vb.net?
 
Comment #36  (Posted by Steven on 05/24/2005)
Rating
Hie all, actually a question here, can all the samples and explanation used for MDI ? any difference? thanks for directions.
 
Comment #37  (Posted by muthu on 06/05/2005)
Rating
it's been really good. my greetings for that.

in this i have one doubt...

if i create 5 instance forms of one form , in that point time, i need to pass some information in the 3'rd instances form only.. how do i pass? how i i differenciate that one from other instances??cau u pls help me out..
 
Comment #38  (Posted by an unknown user on 06/05/2005)
Rating
it's made really simple to understand an y people and teh concept is clerly structured...
 
Comment #39  (Posted by Ged Mead on 06/05/2005)
Rating
Hi James, Although I haven't tested it out, I'm sure that the samples will all work in an MDI environment.
 
Comment #40  (Posted by Ged Mead on 06/05/2005)
Rating
Hi Muthu, Each instance of a form will have its own variable referencing it, so you just need to remember which variable refers to that 3rd copy that you want to deal with.
 
Comment #41  (Posted by an unknown user on 06/06/2005)
Rating
it clears up working with multiple forms nicely... especially passing data between forms.
 
Comment #42  (Posted by an unknown user on 06/06/2005)
Rating
it clears up working with multiple forms nicely... especially passing data between forms.
 
Comment #43  (Posted by an unknown user on 06/08/2005)
Rating
Excellent series of articles. I am a veteran VB6 developer but started only recently the swith to .NET. I first read a couple of relatively good books on the matter, but when I tried to port one of my old VB6 applications to .NET I ran into problems almost immediately. Your articles got me out of trouble more than once. Thanks and keep up the good work.
 
Comment #44  (Posted by Bean on 06/29/2005)
Rating
How would one ensure only a single instance of any given form has been instantiated? That's about the only thing I've found missing from your article (or am I perhaps completely missing it?)

Otherwise, excellent job!
 
Comment #45  (Posted by Ged Mead on 06/29/2005)
Rating
Yep, you'll find some alternative ways of limiting forms to a single instance in the Part 1 article of this series. You can access it here: http://www.devcity.net/Articles/94/multipleforms.aspx
Regards
Ged Mead
 
Comment #46  (Posted by Parisien on 07/07/2005)
Rating
thank you Xtab for this 3 part Articles !!

However, i have a littel question : How can we share for example a data base connection ?
I explain : i have many forms and i want to create a data base connection in the first forms and make it visible by all other forms. I close this connection by closing application !!

Really very good Articles !
 
Comment #47  (Posted by Ged Mead on 07/07/2005)
Rating
My preferred way of doing that is to put the database connection code in a separate Module. You can then access it from any form (or other module) and it isn't affected by the closing of a particular form.
By the way, there is also a Part 4 article to the series: http://www.devcity.net/Articles/117/1/multipleforms4.aspx
Regards
Xtab
 
Comment #48  (Posted by an unknown user on 07/26/2005)
Rating
Thanx Ged,you are excellent
 
Comment #49  (Posted by Lloyd Arcales on 08/03/2005)
Rating
your great man
 
Comment #50  (Posted by an unknown user on 08/03/2005)
Rating
reasons aplenty!!!
 
Comment #51  (Posted by John on 08/13/2005)
Rating
Nice to find a tutorial that works, done by people who know what they are doing!
 
Comment #52  (Posted by an unknown user on 08/29/2005)
Rating
This article is very simple to follow yet very useful.Thanks for providing this kind of helpful article.
 
Comment #53  (Posted by an unknown user on 09/03/2005)
Rating
Useful...
 
Comment #54  (Posted by Sankar.S on 09/14/2005)
Rating
Your Note is very usefull one for .Net Users...Thank u once again for u and ur friends

With Love,
Sankar.S
 
Comment #55  (Posted by an unknown user on 09/17/2005)
Rating
Useful. Thanks
 
Comment #56  (Posted by SamuelK on 09/17/2005)
Rating
Very useful article
 
Comment #57  (Posted by an unknown user on 09/19/2005)
Rating
Understands what newbs need! trying to make an example too 'realistic' can make it impossible to find something that relates to what you're doing. General, artificial example like this is easy to adapt to what I'm trying to do.
 
Comment #58  (Posted by an unknown user on 09/21/2005)
Rating
i like it, very helpful
Thank you so much
denisianum
 
Comment #59  (Posted by an unknown user on 09/23/2005)
Rating
I have been using this site recently to assist me on a particular project. I found this article to be very easy to understand and simple to follow. I can incorporate the method into my design. Thanks a lot. I love this site!

 
Comment #60  (Posted by an unknown user on 10/19/2005)
Rating
This guy was born to teach.
Write a book before you die.
 
Comment #61  (Posted by Vidyaraj.V on 10/21/2005)
Rating
This article is excellent to get the basic idea to handling more than one forms using for a particular goal.I got a clear picture to handle the objects and events.Thanks....
ur Vidya


 
Comment #62  (Posted by an unknown user on 12/19/2005)
Rating
really usefull, and all you need to know in one place. Thank you.
 
Comment #63  (Posted by an unknown user on 12/21/2005)
Rating
Almost a day searching about this subject. Thanks!!!
 
Comment #64  (Posted by an unknown user on 01/21/2006)
Rating
This is fairly detailed however when I implement this method in my own program it only works the very first time it is called (raised). I'm trying to trigger changes to 3 datagrids on one form when information on the second form changes. To test it out I used the simple textbox example which worked only when I first auto-populated an entry in the form load event of the second form. Any ideas anyone?
 
Comment #65  (Posted by an unknown user on 01/24/2006)
Rating
Your first paragraph express my sentiments exactly. You should write a book. Thanks!
 
Comment #66  (Posted by an unknown user on 03/22/2006)
Rating
helped me nicely with a problem i had good thing for search engines
 
Comment #67  (Posted by an unknown user on 04/18/2006)
Rating
Easy to understand, no fancy talk.
 
Comment #68  (Posted by an unknown user on 04/25/2006)
Rating
At last an article written in a way that makes it easy to understand. This answered a problem I have trying to solve for ages
 
Comment #69  (Posted by an unknown user on 05/04/2006)
Rating
Very well presented in very practical, true to life terms. This is very different from most other presentations which present code detached from reality. I cannot help but have suspicions that many authors simply want to prove to everybody they know something, pretend to be generous without any intention of sharing what they know. Thank you Mr. Mead.
 
Comment #70  (Posted by an unknown user on 05/16/2006)
Rating
it is very compact and simple
 
Comment #71  (Posted by an unknown user on 07/24/2006)
Rating
I didn't know how to take an variables from one form to another, so the article helped me very much. thanks
 
Comment #72  (Posted by an unknown user on 08/05/2006)
Rating
because this is really nice and it well suited to my requirement.
i have one more doubt can i find a particular form which is created using new keyword..
 
Comment #73  (Posted by an unknown user on 08/05/2006)
Rating
RE: have one more doubt can i find a particular form which is created using new keyword.. I'm not exactly sure what you want to do there. As space in this comments list is limited, I recommend that you post a question up in the VB.NET Newbies forum and I'll look out for it (unless someone else answers it first!)
 
Comment #74  (Posted by an unknown user on 08/14/2006)
Rating
hi, a great article. but i have a qn. how can i change the visibility of a picture in a form from a module (say dependin on an imput i'm sending to a function the the module)? i couldnt get that working. thanks for the help.
 
Comment #75  (Posted by an unknown user on 08/14/2006)
Rating
hi, a great article. but i have a qn. how can i change the visibility of a picture in a form from a module (say dependin on an imput i'm sending to a function the the module)? i couldnt get that working. thanks for the help.
 
Comment #76  (Posted by an unknown user on 10/16/2006)
Rating
Excellent article for a beginner
 
Comment #77  (Posted by an unknown user on 10/16/2006)
Rating
Excellent article for a beginner

Thanks,
-=A J E E S H=-
 
Comment #78  (Posted by an unknown user on 10/25/2006)
Rating
I wish all articles out there were as useful. Thank you.
 
Comment #79  (Posted by an unknown user on 11/13/2006)
Rating
Great help. Well written and very easy to follow.
 
Comment #80  (Posted by an unknown user on 11/13/2006)
Rating
i appreciate what u've done.all the
articles are accurate,simple, n perfect
thanx a lot
George-GHANA
 
Comment #81  (Posted by GEORGE YEBOAH on 11/13/2006)
Rating
i appreciate what u've done.all the articles are accurate, perfect, n simple.
thanx a lot
 
Comment #82  (Posted by Lindsay on 12/05/2006)
Rating
Hi, i was wondering if you could tell me how to code something to where when i click on a checkbox a new form appears, and when you click "ok" you go back to the original form(the 2nd one closed) and your check box is still checked...but if you click "no" then the new form still closes only your checkbox on the original form is unchecked....

acutally i was wondering if thats even possible....ooo and another thing...

i have an imput box, but i NEED to use a Do...While...Loop (for a project) and so i want to have it where if something is entered in the input box the program will continue, but if the person presses the "ok" button without entering anything a message box appears saying "enter your name" and then the input box reappears....

i had it working to where it would loop the message box if the person didnt enter anything, but if i tried to push cancel it wouldnt let me get out of the program...i was wondering if there is anyway to somehow manipulate the do..while...loop to where if you press "cancel" then the program ends

if you cant help me i Totally understand...i was just wondering if anyone had any idea if you could do these things...
 
Comment #83  (Posted by an unknown user on 12/06/2006)
Rating
Thanks, its very simple example.
 
Comment #84  (Posted by an unknown user on 12/19/2006)
Rating
Thank u so much for this
 
Comment #85  (Posted by an unknown user on 12/26/2006)
Rating
The caveat about VB2005 reduces the praise.
 
Comment #86  (Posted by an unknown user on 01/20/2007)
Rating
Very good
 
Comment #87  (Posted by an unknown user on 04/25/2007)
Rating
it's about time somebody explained things simply
 
Comment #88  (Posted by an unknown user on 05/08/2007)
Rating
Hi,

Article is very nice.Helped me....

Rgds,
Surendra
 
Comment #89  (Posted by an unknown user on 05/29/2007)
Rating
Worked exactly as expected first time
 
Comment #90  (Posted by an unknown user on 06/10/2007)
Rating
The article is helpful. Thanks
 
Comment #91  (Posted by an unknown user on 06/11/2007)
Rating
The event solution is the idea of the century. Thanks
 
Comment #92  (Posted by an unknown user on 07/06/2007)
Rating
2 reasons first it was easy to follow and understand second no one else posted it easily to find

thanks
 
Comment #93  (Posted by an unknown user on 07/06/2007)
Rating
2 reasons first it was easy to follow and understand second no one else posted it easily to find

thanks
 
Comment #94  (Posted by an unknown user on 07/19/2007)
Rating
TQVM
 
Comment #95  (Posted by an unknown user on 09/24/2007)
Rating
I spent an hour looking for this! This was the 1st example that was so well explained and worked perfectly. I learned very easily from this.

Thanks
 
Comment #96  (Posted by an unknown user on 10/06/2007)
Rating
there is no instruction for closing the MDIchile forms.
 
Comment #97  (Posted by an unknown user on 10/17/2007)
Rating
excelent
 
Comment #98  (Posted by an unknown user on 01/01/2008)
Rating
nice! i get it. i like your rudimentary yet concise style! fewer words will leave me with questions; anymore will leave me tired. newbies get tired easily :) keep this up!
 
Comment #99  (Posted by an unknown user on 01/24/2008)
Rating
This is really good.
 
Comment #100  (Posted by an unknown user on 02/15/2008)
Rating
This article is very useful. It is very easy to follow. Thank you!
 
Comment #101  (Posted by an unknown user on 02/15/2008)
Rating
This article is very useful. It is very easy to follow. Thank you!
 
Comment #102  (Posted by an unknown user on 05/16/2008)
Rating
Great, I looked for days to find out how to create a event when a subform changed. This is just the right thing.

Thanks a lot

Klaus
 
Comment #103  (Posted by an unknown user on 05/16/2008)
Rating
Great, I looked for days to find out how to create a event when a subform changed. This is just the right thing.

Thanks a lot

Klaus
 
Comment #104  (Posted by an unknown user on 02/09/2009)
Rating
Badly need your help. In the absences of a decent time machine, fiction remains the most sturdy vehicle for visiting other eras.
I am from Grenada and now study English, give true I wrote the following sentence: "Many genealogical researchers are not aware of how to write a bibliography or source footnotes."

8-) Thanks in advance. Effie.
 
Comment #105  (Posted by an unknown user on 06/05/2009)
Rating
Thank you for the 3 part series on Multiple Forms from a newbie to Visual Studio 2005
My background is VB6 and access VB
I found this very informative and helpful
To plagiarize your previous commenters
Saved my day too! This article is really useful. Simple and concise
VERY WELL DONE!!!

 
Comment #106  (Posted by an unknown user on 06/06/2009)
Rating
Hi
Your articles was very good and easy to understand

I hope you can help me with somthing I want done

Have 2 forms a form1 has a grid with a drop down combo box and next to it i have a button for advance search. When the button is clicked it shows form2 where the user can do an advance search once the search item is found the user double clicks on form2 and it returns to from1 position the combo box to the selected item from form 2.
When and item is selected it populates other fields in the Grid this must also be acheived when it returns from from2.
 
Comment #107  (Posted by an unknown user on 08/15/2009)
Rating
Excellent article.
 
Comment #108  (Posted by an unknown user on 09/09/2009)
Rating
It was really clear and simpl
 
Comment #109  (Posted by an unknown user on 10/13/2009)
Rating
cool! Excellent article.
 
Comment #110  (Posted by an unknown user on 10/15/2009)
Rating
Hi Ged,
Thanks very much for taking the time and effort to write an excellent article - very easy to read and easy to understand. Much appreciated!!
Steve
 
Comment #111  (Posted by an unknown user on 11/28/2009)
Rating
very useful and easy to follow
 
Comment #112  (Posted by Daniel on 03/21/2010)
Rating
Please can you explain, i have 4 forms, how do i write the string to carry whatever the user enter from form1 to form4, and submit to database?
 
Sponsored Links