Best Practice Regarding Interface Organisation Visual Studio Projects?
Apr 30, 2012
Single file for all interfaces or one file per interface definition? Balena & Dimauro's of book of 'Pratical Guidelines' advocates a single file called Interfaces.vb/cs to hold all interface definitions. Their aim is to minimise the proliferation of small files, where each holds a single interface definition.I can see benefits to both approaches. Does anyone have any strong views or experience that strongly supports one approach?
View 2 Replies
ADVERTISEMENT
Nov 4, 2008
The issue at hand is that when I try to run my projects from within Visual Studio (2008 with freshly installed SP 1 ), one fifth of the times it hangs, showing me this lovely dialog telling me that visual studio is currently busy, and that I can either switch to the busy part, or continue waiting - and nothing happens when clicking either buttons.Thing is, it never continues from that point, and the only solution I found so far was to close down the process called blabla.vshost.exe. At this point my Visual Studio will either give me message saying 'Error: Unable to run project' and I can run the project again, and hope it'll work this time, or Visual Studio will say that an error occurred and then it restarts VS leaving me to reload the project.
I think it has something to do with building the .exe. I believe VS studio hangs when the .exe is already in use by vbhost.exe, and it therefor cannot overwrite the old exe-file.
View 2 Replies
Apr 7, 2011
I have two projects made in vc++ & vb.net of visual studio 2005.now i a third project in vb that integrates above two.I HAVE SEARCHED GOOGLE and result is negative
View 4 Replies
Mar 16, 2012
Basically, the question is: Where (and in which format) should I store textual developer documentation associated with my Visual Studio projects?
To elaborate: XML comments are great, but they don't cover all use cases. Sometimes, you'd like to describe the class architecture of the project at a high level, add usage notes to your library or just leave any other kind of message to future generations of developers working on this project.
I'd like to add these documents directly as files into the Visual Studio project, to ensure (a) that they are available to the developer without further searching and (b) they are version controlled (using the same svn/git/whatever repository as the source code).
Currently, I add a folder _Documentation to the project and use text files, but I'm not sure if this is the best solution. Visual Studio does not have an option for automatically word-wrapping text1, and manually fixing line breaks after each change is annoying. On the other hand, Word documents don't work well with version control, and TeX is too much of a hassle to set up and teach on each developer PC.
Is there a well-established best practice for this?
1 I know that there's Edit/Advanced/Word-Wrap, but this only affects the display, not the file itself.
View 3 Replies
Apr 14, 2012
we are new to Visual Basic Programing, We are working on a project, which has modules. My team worked on these modules and prepared 3 separate Visual Studio Projects. Now, I want to combine then into one Visual Studio Project for Integration purposes
View 2 Replies
May 4, 2012
I'm creating a new website in Visual Studio 2010 Ultimate / vb and I want to add things to it, to jazz it up. So I'm adding new projects from the VS online templates. It seems there are many more projects in c# than vb. I'm trying to figure out if it's okay to add a c# and razor project to a vb website, because if not, I'll start the website in c#.
Will mixing languages between projects within your website present issues in the future when it comes time to build and publish? Or is it recommended I begin the website in c# (since there are more projects within VS) and keep the languages the same throughout the website?
View 3 Replies
Jan 3, 2008
When I try to add a new project to our existing Visual Studio solution, it now adds a ProjectSection(WebsiteProperties) for ALL projects in the solution, although only three of 24 projects are web sites.
Only an Undo Checkout can undo this.
What is causing this new behavior (Visual Studio 2005 SP1 v8.0.50727.762 (SP.050727.7600)) ?
How can I disable it?
View 6 Replies
Oct 26, 2010
In Visual Studio 2005, I can't seem to get the Intellisense menu to pop up at all when I click CTRL+Space. This seems to be limited to VB.NET files. I have tried creating new Visual C# and C# web projects, and it works fine there. There also doesn't seem to be a problem in things like CSS files in VB.NET projects. But when I create a new VB.NET web site, CTRL+Space does nothing. I have tried resetting all the Import and Export setting. That didn't work either.
View 1 Replies
Jun 2, 2011
I need to migrate projects that was made in visual studio 2003 but this projects includes several applications that acts as the base for different clients and every client has its own personalization of the product.visual studio 2008 use an architecture in order to turn everything into a single system with differents configurations?
View 1 Replies
Apr 29, 2010
I couldn't find a quick answer on the official pages,is it possible to write VB projects in the express edition of Visual Studio that connect to a SQL Server that is not the included 'Express' server ?
View 1 Replies
Jun 12, 2009
In the "old days" I was working with Linux to create C/C++ programs (really really BASIC...HA!...programs, just learning to program in the courses as an intro) by creating a text file with the source code that was then fed to the compiler/linker that then spit out the executable binary.
[Code]....
View 2 Replies
May 31, 2011
I'm running Visual Studio 2010 on a terminal server, and have been, with relatively few problems, for some time. This morning I fired up my PC and over the UK's long weekend, the following issue seems to have developed.I've got a bunch of projects (but not all of my projects, and not all of the projects in a given solution) complaining that a particular file (which does not exist on the computer) cannot be opened, and so those projects will not compile anymore. Here's the error:
Error 31 Unable to open module file'C:Users[username]AppDataLocalTemp2.NETFramework,Version=v4.0.AssemblyAttributes.vb':
System Error &H80070003&
I could simply copy the file into that directory and be done with it, I'm pretty sure that will work,EDIT: Okay, now things have gotten to a whole new level of weird. I've rebooted the server, I get the same error message, only now the file it is asking for exists and can be opened in Visual Studio with no problems. another part of the IDE still insists that it's unable to open the module file.
EDIT 2: Can't delete the file because it claims to be open in another program, but I've logged off and logged on again, and there shouldn't be anything accessing it.
EDIT 3: Because there's a wall of comments below his answer, I'll mention here that Jared's suggestion to delete the SUO file for the solutions having the problem (not files specifically to do with any of the problem projects, strangely) was what solved this, eventually.
View 2 Replies
Feb 21, 2012
The Adventureworks database is used extensively for tutorials in Visual Basic applications. This has many tables that can be bound to a solution. What I would like to know is, when using such a large database with many tables and using lots of them, is it better to construct your program with a number of projects all under one solution or to put everything into a single project. If you use a number of projects, what is the syntax for accessing each module from a menu strip in your main form? I know how to do this in a single project - all you do is Form(x).show. In Adventureworks, you have a table for Employees that could be put into a single project with a number of forms - one for data entry, one for displaying all of the employees, a filter to a single employee, etc., etc.
If two small projects rely on each other for some reason, again the syntax for linking them could be an issue. Would it be better to combine them into a single project? My reason for asking is that I would feel safer if I created an application on a project by project basis and then brought them all together in one solution. This way they can be tested individually and then linked together where necessary. Making a disastrous mistake in one then only requires a small re-write rather than the headache caused by a total crash of the whole solution. I would like to know which option professional developers take. I am using Visual Studio 2008 Professional and SQL 2005 Express
View 5 Replies
Nov 16, 2010
I'm currently trying to call a WCF service dynamically See here, therefore, I'm trying to understand what happens behind, when I add a service reference by the GUI of Visual Studio... What's generated..? An object is created and an implicit reference is created...
Are the references contained in a specific container, a sort of pool?
View 1 Replies
Dec 1, 2011
I'm currently making an dynamic interface using the latest version of DevExpress. I finished making the DockManager with multiple DockPanel in it but there's only one problem.If you look on screenshot #1 you'll notice that in the center of Visual Studio, there's no DockPanel (screenshot #2) container for those document tabs. Also, those document tabs CAN'T dock inside side panels, but side panels CAN dock inside document panels (see screenshot #3)
That is what I'm trying to do. You can see how far I am right now on screenshot #4.
So here's a summary of my questions
1) How could I make some kind of main document panels that are filling the blank space between my side DockPanel?
FOUND! Using DevX's DocumentManager as the MDI.
2) How could I make those panel undockable inside side DockPanel but make the opposite possible?
FOUND! Using DevX's DocumentManager as the MDI.
3) How to make the panels "maximizable" like this (see screenshot #5) when outside the main window ?
4) By default, the tabs are located at the bottom of a stack of DockPanel, but I would like them to be ALWAYS located at the top, would it be possible?
FOUND! Using DevX's DocumentManager as the MDI.
[Code]...
View 1 Replies
Oct 27, 2009
In C# code, we can just right click on the class name and then select refactor and then extract the interface for that class. I wonder if this could be done on VB. Im using the same IDE VS 2008
View 1 Replies
May 10, 2010
In VS2008, I can stub out interface members with the following code using TextSelection to insert the implement line and then "simulate" the Enter key by inserting a new line. However, it doesn't work anymore in VS2010.
CodeClass cclass = {Target_Class};
TextSelection txtSel = {After_Class_Declaration_Line};
foreach (string i in interfacesFullName)
[Code]....
View 1 Replies
May 11, 2008
Does anyone know how to turn off the blank space delimiter of a dot? I have no idea how I turned it on, but now there's a dot where every whitespace charater would be in the IDE's code window.
View 2 Replies
Oct 12, 2011
WebMatrix is a web development and deployment tool by Microsoft so how is this compared to Visual Studio? which Use C# Razor Syntax is that more better coding.
[Code]...
View 2 Replies
Sep 15, 2009
I have to compile projects which was compiled in Visual Studio 6 in Visual Studio 2005. When i compiled i got a set of same error. I opened the project for VS6 by selecting File->open->project/solution and tried to build a solution by Build option but i am getting the following error.
[Code]...
View 7 Replies
Apr 11, 2011
Is it possible to open visual studio express files with normal visual studio?
View 2 Replies
Nov 27, 2009
I have to develop an application using MS Visual Studio 2005 or above with the following objective:
* The application should allow users to create as many new forms as they want and each form should behave like a MS Visual Studio WinForm. By saying that it should be a container for drag and drop of controls from the toolbox that I will develop....
* Once the user design's each screen to his taste by placing various controls on the form, he should be able to save the form as a screen. Of course I have to provide functionality for each of the controls such as if he drags a button on to the form, he should be able to specify what action it has to perfom when clicked when the application is put into run mode. Quite similar to regular windows form button.
* My application should have two modes: a DESIGN MODE, where user can drag, drop controls and specify what they should do when put into RUN MODE. This is quite similar to MS Visual Studio designer.
* Last but not least is to be able to access the application via the browser with the same look and feel his desktop version.
View 2 Replies
Nov 26, 2009
I have to develop an application using MS Visual Studio 2005 or above with the following
objective:* The application should allow users to create as many new forms as they want and each form should behave like a MS Visual Studio WinForm. By saying that it should be a container for drag and drop of controls from the toolbox that I will develop....
* Once the user design's each screen to his taste by placing various controls on the form, he should be able to save the form as a screen. Of course I have to provide functionality for each of the controls such as if he drags a button on to the form, he should be able to specify what action it has to perfom when clicked when the application is put into run mode. Quite similar to regular windows form button.
* My application should have two modes: a DESIGN MODE, where user can drag, drop controls and specify what they should do when put into RUN MODE. This is quite similar to MS Visual Studio designer.
* Last but not least is to be able to access the application via the browser with the same look and feel his desktop version.
View 3 Replies
Feb 17, 2010
Will i be able to successfully install 2010 beta 2 side by side 2008? because i want to test 2010 features and some development toolkits such as silverlight while i don't want to uninstall my visual studio 2008 professional.
View 2 Replies
Mar 20, 2009
I have a Visual Basic project and when working and modifying code, the compiler will crash and then a message will say something like "Microsoft visual studio encountered a problem and was shut down." I've tried editing code from the solution and the project. Both produce the error. Usually occurs when adding an "IF...Then..." condition. May work for hours but then crash. Solution will compile and build.
View 3 Replies
Jan 29, 2012
How to create a Random quiz? I use groupboxes for every questions that i have because it has 10 items per quiz then i have 10 groupboxes. Another problem is, i was planning to create a .swf file in my visual studio project actually a button to make it more fascinating to use but it is possible to have a .swf file on my project and every time i click the button on ".swf" file the visual studio form will appear.
View 5 Replies
Jul 3, 2010
I need to write a paper on the comparison between (Microsoft Visual studio 2005 to develop web applications using asp.net) and (visual basic and Netbeans to develop j2ee applications using java).I need suggestions for good webpages,journals or documents which can help me out here. I have to write at least 1500 words so any suggestions are welcome.
View 1 Replies
Jan 17, 2011
In a while loop, I am writing a progressively increasing integer value (between 0 and 100) to the Value attribute of a ProgressBar control, when it disappears from the window in which it resides. I have verified at the time that it disappears that the Min is 0, Max is 100, and Value is a valid integer in range.
View 9 Replies
Aug 5, 2011
Does anybody know which version of Visual Studio 2010 contains the full set of Visual Basic SharePoint Templates? I am about to embark on a project to create Visual Web Parts to be used in a SharePoint report.
At the moment I am using Visual Studio 2008 and even though the WSPBuilder is installed none of the relevant SharePoint templates are present.Having searched SO and the web, most advise to install the templates via the Visual Studio command prompt: devenv /installvstemplates
Alas the Visual Studio command prompt is also missing from my VS2008 installation.So, the question remains: which version of VS2010 contains what I need for pain-free SharePoint development? There is a rather large price different between VS2010 Professional and VS2010 Premium, so can anyone tell me if the cheaper version (VS2010 Professional) contains all the Sharepoint templates?
View 3 Replies
Mar 20, 2009
How do I disable the background compiler for Visual Basic in Visual Studio 2008?
For my sins, I have to work on a large VB.NET project and it often locks up for 20 seconds at a time whilst doing the very helpful background compilation
I'd rather work blind between compiles and be able to do some work.
View 1 Replies