Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   Visual Basic 2005 Express Edition IDE (http://www.programmingforums.org/showthread.php?t=7065)

George Giolfan Nov 18th, 2005 1:32 PM

Visual Basic 2005 Express Edition IDE
 
Solution Explorer
How can I add a link to a directory of items (for example a set of images I use in every project) ?
I keep data for my application in external XML file. I want to edit those files in the IDE, keep a copy as source and put another in the directory of the executable generated by Visual Basic (only when it does not exist or the existing one is old). So I add an XML file, I set "Build action" to "None" and "Copy to output" to "Copy if newer". This works fine until I rename the directory which contains the XML file.
Code generators
I want complete control of the code being compiled.
After I disable "Application framework", there are still files like "My Project\*.Designer.vb". Furthermore, I once got an unhandled exception in one of those files. I want to remove them. What can I do ? (Prior to the release of the Express Edition, I could only use third-party editors, so I am used to writing everything by myself. However, IntelliSense and the integrated debugger are just too useful to ignore and keep using a simple editor.)
Requirements
Has anybody managed to use the IDE on older configurations such as 96 MB RAM ? (I mean really use, not just start and watch the virtual memory page file reach 300 MB while the application is not even repainting its windows.)
Code editor
I consider the "Then" keyword useless (I never use If <condition> Then <statement>"). How can I disable such behavior ?

Rory Nov 18th, 2005 8:58 PM

Quote:

Originally Posted by George Giolfan
I consider the "Then" keyword useless (I never use If <condition> Then <statement>"). How can I disable such behavior ?

If you never ever conduct a comparision anywhere in your code, then it is not likely to do much.

If you remove the project framework and the application namespace... you have no application.

In fact I'm not sure if this is meant to be a joke or not. (that's three if statements right there for free)

George Giolfan Nov 19th, 2005 2:50 AM

I only use statements like :
:

If Condition
    Statement
End If

The language reference states that the "Then" keyword is optional in this case. While having "Then" makes Visual Basic easier to understand, there is no actual need for it. I don't type it, but the code editor keeps inserting it.

Ooble Nov 19th, 2005 6:50 AM

Where exactly does the language reference state this?

George Giolfan Nov 19th, 2005 9:10 AM

"If...Then...Else Statement (Visual Basic)"
ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_vbalr/html/790068a2-1307-4e28-8a72-be5ebda099e9.htm
(I have .NET Framework 2.0 SDK and Visual Basic 2005 Express Edition installed.)

Ooble Nov 19th, 2005 10:43 AM

Found it on MSDN. Interesting... I'm curious as to why they didn't just remove it altogether, if they felt it was useless.

Rory Nov 19th, 2005 8:42 PM

Interesting, but I think in some circumstances you'd need to insert () around the expression to avoid ambiguity. Why not do away with the end if and replace it with a }. :rolleyes:

Ooble Nov 21st, 2005 11:02 AM

Because that would confuse you crazy VB programmers?

java_roshan Nov 21st, 2005 11:05 AM

Quote:

Originally Posted by George Giolfan
I only use statements like :
:

If Condition
    Statement
End If

The language reference states that the "Then" keyword is optional in this case. While having "Then" makes Visual Basic easier to understand, there is no actual need for it. I don't type it, but the code editor keeps inserting it.

In Visual Basic 6, it wud pop up a message box saying "Expected End of statement" ...
According to me, that's an improvement!

Ooble Nov 21st, 2005 11:21 AM

Well, if it's optional, why would you do that?


All times are GMT -5. The time now is 9:53 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC