From one newbie to another :)
If you add a module (Add new item..module) to your project and within that module u type something like
Friend Withevents refOwner as Form1
and then in the form1.load event u type
refOwner = Me
U can then display alle form2, form3, form4s that u like and in...
Hi all..
I have three datatables.
Employees containgin emID and emNAME
Position containng posID and posNAME
An employee can have many positions within the firm, and a position can have many employees. Henceforth I created a third table
employeePos containing emID and posID
I have created a...
Hi all.
I figured it out. Had forgotten "as new" in a line. Sorry for wasting ur time.
That's what I get for progging long into the nightly hours I guess..another 2 hours wasted :(
Hi again..yet another question about event handling.
This is my code:
Private Sub Canvas_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.fyllDataset()
InitiateWindows()
FormDisplay.Show()
AddHandler...
Thanks alot...I think I see the light now.Though it made me realize that my current ongoing VB project is about as flexible as the Rocky Mountains. Thanks for the help River
Thanks for the quick response Riverguy :)
Here's a quick followup...apart from the fact that i might not be good design...why not just let the Game class call( when the game is finished) a gui class function that handles the code to let the user know the game is finished? why use an event...
I'm not sure I grasp the finer points of event calling and handling in vb.net. This code for example:
Sub TestEvents()
Dim Obj As New Class1()
' Associate an event handler with an event.
AddHandler Obj.Ev_Event, AddressOf EventHandler
Obj.CauseSomeEvent() ' Ask the object to raise...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.