|
-
Jul 28th, 2007, 03:54 PM
#1
Thread Starter
New Member
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?
-
Jul 28th, 2007, 04:03 PM
#2
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".
-
Jul 29th, 2007, 07:24 AM
#3
Thread Starter
New Member
Re: Help with Windows Application
Well I am using VS 2005, but I can't find where to create that type of project... It does not appear to be one of the project types listed. Sorry if it's obvious, still learning.
Last edited by Skisy; Jul 29th, 2007 at 07:28 AM.
-
Jul 29th, 2007, 07:58 AM
#4
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!
-
Jul 30th, 2007, 03:00 AM
#5
Thread Starter
New Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|