Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 18th, 2005, 1:32 PM   #1
George Giolfan
Newbie
 
Join Date: Aug 2005
Location: Romania
Posts: 13
Rep Power: 0 George Giolfan is on a distinguished road
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 ?
George Giolfan is offline   Reply With Quote
Old Nov 18th, 2005, 8:58 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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)
Rory is offline   Reply With Quote
Old Nov 19th, 2005, 2:50 AM   #3
George Giolfan
Newbie
 
Join Date: Aug 2005
Location: Romania
Posts: 13
Rep Power: 0 George Giolfan is on a distinguished road
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.
George Giolfan is offline   Reply With Quote
Old Nov 19th, 2005, 6:50 AM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Where exactly does the language reference state this?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 19th, 2005, 9:10 AM   #5
George Giolfan
Newbie
 
Join Date: Aug 2005
Location: Romania
Posts: 13
Rep Power: 0 George Giolfan is on a distinguished road
"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.)
George Giolfan is offline   Reply With Quote
Old Nov 19th, 2005, 10:43 AM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Found it on MSDN. Interesting... I'm curious as to why they didn't just remove it altogether, if they felt it was useless.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 19th, 2005, 8:42 PM   #7
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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 }.
Rory is offline   Reply With Quote
Old Nov 21st, 2005, 11:02 AM   #8
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Because that would confuse you crazy VB programmers?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Nov 21st, 2005, 11:05 AM   #9
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
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!
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Nov 21st, 2005, 11:21 AM   #10
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Well, if it's optional, why would you do that?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:55 PM.

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