User defined type not defined error in VB 6 under Windows 7.The compiler is automatically highlighting the first line of the function declaration for you when the error appears.That means the error occurs somewhere within that line.Sometimes thats not as helpful as youd like, but in this case, it manages to tell you quite a lot.Specifically, the only user defined type really, the only type at all that appears in the function declaration is MSComctl.Lib. Button. What the compiler error message is telling you here is that it doesnt know what a MSComctl.Lib. Button is. It therefore assumes its a user defined type because it often doesnt know what the user is talking about.Microsoft Enterprise Library Error Handling In Vb' title='Microsoft Enterprise Library Error Handling In Vb' />Either way, the fix is simple you need to tell the compiler what an MSComctl.Lib. Button is. In this case, it guessed wrong in assuming that it is a user defined type.Its actually a button control provided in the Microsoft Windows Common Controls Library.To tell VB 6 about this control, you need to add the corresponding component to your project.Follow these steps From the Project menu, select Components.In the dialog box that appears, scroll about 23 of the way down the list to the Ms.Place a check by both the Microsoft Windows Common Controls 6.Microsoft Enterprise Library Error Handling In Vb6Microsoft Enterprise Library Error Handling In Vb MsdnNET Framework pronounced dot net is a software framework developed by Microsoft that runs primarily on Microsoft Windows.It includes a large class library named.CodeGuru is where developers can come to share ideas, articles, questions, answers, tips, tricks, comments, downloads, and so much more related to programming in.Microsoft Common Controls 2 6.Dont worry if yours have a different service pack designation.Click the OK button.If youre quick, youll see some additional controls being added to your toolbox.These are the controls provided by the component libraries that you just added.Among those controls is one called Button. The Adobe Product That Installed Media Encoder Mac Torrent . Finally, try to compile and run your project againeverything should be fine this time, because now the compiler knows what the MSComctl.Lib. Button type is.In case you still dont, its a button that appears on your toolbar.The toolbar control is provided by the Common Controls library, and it includes a type that defines an individual button appearing on that toolbar.