Visual Inheritance - handling button click [Resolved]
I created Form1 with a button and a textbox on it. I then added Form2 to the project, and changed
VB Code:
Inherits System.Windows.Forms.Form
to
VB Code:
Inherits WindowsApplication2.Form1
That of course, got me the basic look of Form1 on Form2. Now, I'd like to handle the click event of Button1. How can I do that?
Re: Visual Inheritance - handling button click [Resolved]
Quote:
Originally Posted by kulrom
That's because you didn't build your inheritable form before start to inherit from.
1st Rebuild (recompile) your project. This step is very important. When the project is rebuilt the code is output in a DLL instead of an EXE. If you don't do this step you will not be able to inherit the form ... especially in another project.
regards :thumb:
eh I know that:) it still has problems with visual inheritance... sometimes it "eats" up the code that's written for controls too :) (ie,the inherited controls disappear and so do their event handlers)
Re: Visual Inheritance - handling button click [Resolved]
Quote:
Originally Posted by kulrom
In that case we should pray for it that next VS.NET version (2005) will haven't certain bug :wave:
yes:D:D
so far it seems like they've redecorated the toolbar with a truly useless and ugly gradient. :(