Dealing With Different Coding Conventions/Styles In Visual Studio?
Sep 1, 2010
I'm working on two different projects - both in VB.NET/Visual Studio 2008 (as much as I'd like to move to 2010).
I find I'm confusing the different coding standards that I'm supposed to follow. IE - Project1 wants variables named in a Hungarian-style notation like 'iSomeValue'; the does not want a prefix. One project requires an _ prefix on private class-level variables - etc...etc...
Are there any tools I can integrate with VS 2008 that will let me easily swap between pre-defined styles and format my code for me?
View 1 Replies
ADVERTISEMENT
Dec 26, 2011
Visual Studio is no longer building with visual styles... This is what is should look like (sorta): This IS what it looks like...
View 4 Replies
Jul 28, 2010
Does anyone else wrestle with getting VB.NET Linq code formatted the way they want it in Visual Studio? What are some tricks you have for how do you deal with it? I know that Visual Studio lets you uncheck the option for "Pretty listing (reformatting) of code", but most of the time it's a really handy setting to keep on. And with a team of developers who could have other settings, that's not really a viable solution. So my questions are:How have you dealt with formatting multiline Linq statements in VB without fighting with Visual Studio's code formatting?Is there a particular style guide for Linq in VB.NET that is recommended? Something that is readable, and that Visual Studio likes without the reformatting nightmares? My original question may not have had the clarity I desired. Here's a more concrete example. [code]
Everything is all nicely formatted and lined up, but any changes to the query result in Visual Studio borking the formatting and only an immediate CTRL-Z will stop it. Which is fine if there's a standard way that VS would like to see multiline Linq formatted, but if not, then the constant reformatting VS tries makes no sense. I'm trying to see if I missed some standard or how others in the community deal with this effectively. (BTW - using tabs instead of spaces for indents.
View 2 Replies
May 26, 2009
Code Coring Experience Live Meeting the Visual Studio Team Visual C# and Visual Basic languages continue to evolve towards feature parity, strive to simplify programming and deployment with the Microsoft Office APIs, and allow easy interop to dynamic languages. In the tools space, Visual Studio 2010 offers greater support for Test-Driven Development, where tests are written before product code as an iterative approach to software design. In this interactive session you will get a chance to connect with the two Program Managers DJ Park and Dustin Campbell as they walk through the feature areas they feel will have the greatest impact to you and your development teams.
[Code]...
View 1 Replies
Jan 5, 2011
iv got visual basic 6.0 and im trying to change the naming conventions because i need to change them to 2008 standards the code is for a basic book shop.im looking ofr the code for the calcualte button on a till.you enter the title,quantity and price.then it updates for extended price 15% discount and the discounted price. There is also a running total of no of books sold and the total no of dicount given in € the code is
[Code]...
View 5 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
May 2, 2012
how to disable XP visual styles in VB?I unticked "Enable XP visual styles", but application still has XP visual style. I want to achieve that application will be in Windows Classic color scheme look. Basically the same what you can do in windows settings, but that`s for entire windows and I want it for my application only and default on every computer, where application will be installed.
View 3 Replies
May 25, 2012
i want to use a custom visual style what is this one on deviantart on my vb.net form how do i make it work?
View 3 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
Feb 11, 2011
I need to make a program that can disable visual styles in windows 7.I also need to know how to enable it again.
View 8 Replies
Mar 28, 2008
I have a number of ActiveX controls which make use of consituent controls (edit boxes,combo boxes etc). I'm using these in a VB .Net 2005 project.When I run the application within the IDE, all the ActiveX controls display correctly with the XP visual styles.But when I run the built assembly, the ActiveX controls display without XP visual styles
View 3 Replies
Mar 14, 2012
add custom Visual Styles to .net 2010 form?
View 1 Replies
Jan 4, 2011
I have created a VB.NET Class Library that exposes some COM Interop sub routines. These in turn show various forms that are contained within the Class Library. When the forms are shown from VB6 they do not inherit the visual styles of the operating system and act like VB6 controls.
I gather that this probably by design but is there some way to force/control visual styles manually in the .NET assembly? I would imagine that if I use a manifest in my VB6 app then everything will use the correct style but I would like to be able to control this myself if possible because we are using 3rd party controls in VB6 that do not require a manifest.
View 1 Replies
May 26, 2009
I've done much research in how to turn off visual styles for a custom drawn control, and coming only close on how to do this.
The problem I am seeing is that Application.EnableVisualStyles affects a boolean which tells the control how it should paint itself. I don't have a problem with styles being enabled, but rather getting a button to be drawn without using the visual styles rendering function.
Public Class LookupButton
Inherits Button
#Region "Disable Themes"
[Code]....
Method 2 simply does not do anything, nor would I want to use it, since it calls unmanaged code.
Method 1 does the right thing for the button, disabling the theme, but of course it does way more than that causing the entire window/app to blink with/without visual styles. And even if this did work, I wouldn't use it because it effects the entire application.
We need visual styles enabled on progress bars, since marquee will be used on a few database calls.
The button has an image ontop of it which gets cut off by the visual styles rounded corners. And there are a few more controls which would be benificial to turn off visual styles as well.
If there is anyway to manipulate the ButtonRenderer so it does not render using visual styles, this is the solution I am looking for. Having no styling for any buttons is preferable.
This is for a project I am working on for my company. We have Visual Studio 2005 .NET Team Edition (per customer request), and are gold certified (which I don't want to give up community support/supporting the community, but is there any programming forums for us where our answers could be answered before 24 hours and/or the questions goes into consideration when microsoft develops tool?).
To me it seems silly to have Visual Styles enable-able for the whole application, when dealing with the windows api, individual windows/controls can easily be themed or unthemed.
View 6 Replies
Apr 19, 2011
When I draw a line on the form using Visual Basic Power Packs the ends of the line are squared off. Is there way to round them off? In code I could write something like this to do it:
vb.net
Dim pn As New Pen(Color.Black, 5)
pn.StartCap = Drawing2D.LineCap.Round
pn.EndCap = Drawing2D.LineCap.Round
How could I do it with Power Packs?
View 3 Replies
May 6, 2012
I'm sure I'm doing something wrong because I can't see how the problems I'm having with controls' appearance in Win7 can be normal. When "Enable XP visual styles" is enabled in my application, my progressbars never fill and gridlines don't show in Listviews. Disabling XP visual styles fixes those problems, but then everything looks like Win98 and that's no solution.
[Code]...
View 16 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
Apr 19, 2011
I am using VB.Net 2008. I am using a 3rd party dll in my app that requires xp visual styles to be turned off, or that a manifest file be added to my app to re-direct comctl32.dll (link to 3rd party workaround:[URL]
I tried creating the manifest according to: [URL] This did not change the issue. Perhaps I did not add the manifest properly?
Here are the steps I tried:
1. Add xml file to app and name it MyApp.exe.manifest
2. Add the xml file to my resources.
The above did nothing so I removed it and then:
3. Add xml file to app and name it Comctl32.dll.manifiest
4. Add the xml file to my resources.
That did nothing either.
Here is the manifiest I tried adding:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
[CODE]...
View 5 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
Dec 1, 2010
Just wondering how i can enable visual styles with the application framework option disabled - it would be nice to have the ability to use the xp+ theming while having a bit more flexibility
View 6 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
Sep 20, 2010
I was just wondering does the Visual Basic allow any html, CSS doing so I can make my applications look nice and user friendly? If not which ones do besides VWB.
View 3 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
Nov 25, 2009
I am just wondering how I can add Direct X references to Visual Basic in Visual Studio 2010 Beta 2. I cant find them in the .NET reference list, or the reference list, or anywhere. I downloaded the Direct X SDK for August 2009, but I can not add the .dll files to the reference list. Is there anything I can do to add them? I need the references for programming reasons.
View 5 Replies