That's incorrect Dan.
If I put this :
function loadXML(file) {
var moz = (typeof document.implementation != 'undefined') &&
(typeof document.implementation.createDocument != 'undefined');
var ie = (typeof window.ActiveXObject != 'undefined');
var xmlDoc;
if (moz)...
Hi, I got a question about loading an XML file in javascript. I'm using it to create a table dynamically.
Everything's working fine using I.E., the structure file of the XML file has been loaded correctly into firefox as well, since I can see the names of the nodes. It's only the data that seems...
I didn't find an article about it yet, but as we have 2 similar examples now of raise events not working while creating the instance of a (different) class, while the same events are working correctly on another place in the code, it seems very likely.
I will give this thread a high rating, cause it's important to see (not only for me) you can't raise an event while creating an instance of a class. One of my colleague had the same problem on a page, where multiple other raise-events were working correctly, but one failed.
Thanks a lot Jubble...
That's it jubble !
It works like you say it, you have to create a new instance of the class, afterwards declare addhandlers and then initialize the class.
So :
Private WithEvents ucAnamnese As mlaMaaltijd.Anamnese
Private Sub frmMaaltijd_uTreeMouseUp(ByVal sender As Object, ByVal e As...
Sorry, something must have gone wrong while deleting the comment-lines :) I put the AddHandler before the declaration for testing, as the raiseEvent should have been executed when the line "ucAnamnese = New mlaMaaltijd.Anamnese(logGebruiker, sCurrentPatient, "R")" was executed, when I put the...
Public Class Anamnese
Inherits System.Windows.Forms.UserControl
Public Event VolgendePatient(ByVal OpnNr As String)
Public Event VorigePatient(ByVal OpnNr As String)
Private WithEvents ucDieetopvolging_A As mlaMaaltijd.Dieetopvolging_A
Private WithEvents ucDieetopvolging As...
Public Class frmMaaltijd
Inherits MedLucasNet.frmBase
Private WithEvents ucHistoriek As mlaMaaltijd.Dieethistoriek
Private WithEvents ucAnamnese As mlaMaaltijd.Anamnese
Private WithEvents ucBevraging As mlaMaaltijd.Bevraging
Private logGebruiker As udtLogGebruiker
Private sCurrentPatient As...
The If-statement is working correctly, it's the most important if-statement on this page and deciding which of 2 data-subjects is loaded ( and that part is working correct ;-) ). I can try to add a printscreen if I find how to add an image.
... Can't find it.
With or without addhandler, the...
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.