Help with Windows Application
Using Visual Studio 2005, and currently still quite new to it, .NET has it's fair share of differences to VB 6.0 and other languages and even those I have not yet mastered.
I was trying to do a simple task. I opened a New File, a windows application...deleted the form that it loaded up as I only wanted to make a button, typed in the code, which all seems to be correct, but it will not run the script properly. Because it says that "Form1.vb is not part of WindowsApplication blah blah blah..." So I looked at the code where this error was originating from (not from the new class I created to make my button) and it basically is looking for the form I deleted as a startup form, but I was told previously that it wasn't necessary, then when I try running my button script with the forum script still there nothing happens it just loads the form without the button.
Could someone help please?
Re: Help with Windows Application
Are you using VS.2005?
If you want to create user control than you need to creat "Windows Control Library" project not "Windows Application".
Re: Help with Windows Application
Well I am using VS 2005, but I can't find where to create that type of project...:ehh: It does not appear to be one of the project types listed. Sorry if it's obvious, still learning.
Re: Help with Windows Application
Are you actually using Visual Basic Express 2005 and not Visual Studio 2005? If so, then you won't have that type of project option.
Create a Class Library, delete the auto generated class file and then add your User Control. That will work just fine. Good luck!
Re: Help with Windows Application
Ah I've been stupid, I posted on my other computer which has VS when I had this problem then when I reposted saying I couldn't find the option I was on this computer which has VB Express.
Thanks