Hello,
I can find no reason for this code to run twice. Can you help me?
It may have something to do with it being a overrides sub but stepping
through during debug does *not* bear this out.
In the base class form...
\\
Protected Overridable Sub btnInsertCmptPr ofile_Click(ByV al sender As
System.Object, _
ByVal e As System.EventArg s) Handles btnInsertCmptPr ofile.Click
Throw New NotImplementedE xception
End Sub
//
In the derived form...
\\
Protected Overrides Sub btnInsertCmptPr ofile_Click(ByV al sender As
System.Object, _
ByVal e As System.EventArg s) Handles btnInsertCmptPr ofile.Click
'Get profiledata from master
Call InsertCmptProfi le()
'Creates two new row objects in code and saves them to the database
Call InsertValveForC ylinder()
'Retreive new and current data
Call ClearAndReloadF orm()
End Sub '<<(stepping through in debug mode) the code from here returns
to the top of this Sub and starts over. Why?
//
While stepping through the code I discovered that it just runs the
derived code block twice. Why? What is the correct why to make it run
once?
Thank you,
dbuchanan
I can find no reason for this code to run twice. Can you help me?
It may have something to do with it being a overrides sub but stepping
through during debug does *not* bear this out.
In the base class form...
\\
Protected Overridable Sub btnInsertCmptPr ofile_Click(ByV al sender As
System.Object, _
ByVal e As System.EventArg s) Handles btnInsertCmptPr ofile.Click
Throw New NotImplementedE xception
End Sub
//
In the derived form...
\\
Protected Overrides Sub btnInsertCmptPr ofile_Click(ByV al sender As
System.Object, _
ByVal e As System.EventArg s) Handles btnInsertCmptPr ofile.Click
'Get profiledata from master
Call InsertCmptProfi le()
'Creates two new row objects in code and saves them to the database
Call InsertValveForC ylinder()
'Retreive new and current data
Call ClearAndReloadF orm()
End Sub '<<(stepping through in debug mode) the code from here returns
to the top of this Sub and starts over. Why?
//
While stepping through the code I discovered that it just runs the
derived code block twice. Why? What is the correct why to make it run
once?
Thank you,
dbuchanan
Comment