C# - Change The Order Of Constructors Listed In IntelliSense In Visual Studio?
Aug 2, 2010
I have defined a class with multiple constructors so that the underlying interfaces are immutable once the object is instantiated. I would like one of the constructors to be the "default" constructor for when a user types the following in Visual Studio:
var obj = new MyClass( Dim obj As New MyClass(
Currently when I go to instantiate the object, the constructors aren't listed (in Visual Studio IntelliSense) in the order I declared them in my class. Is there a way to mark up my constructors so that their methods appear in a particular order during instantiation in Visual Studio IntelliSense?
I'm trying to put newlines in my XML Comments in VB.Net. I've read two other posts about C#, XML multiline comments in C# - what am I doing wrong? Adding line breaks to comments for Intellisense But the suggested <para> or <br/> tags don't work. This,
When working in a VB.NET project in Visual Studio (2008 specifically, but hopefully the answer applies to any version) is it possible to have intellisense/auto-complete only show the "All" tab instead of the "Common"/"All" tab? Or alternatively, have it default to the "All" tab.
I am using Visual Studio 2010 Prof. In C# I can create my own Enumerator and use it like this:MyEnum value = Now, Intellisense will suggest a value of MyEnum. In VB, when I write:Dim value As MyEnum = I get a huge list of every types. When starting to write my enumerator value (could be a word like "sunny") it filters out some types but I would like to have it like in C#. Anyway I will use the MyEnum type and no "String nor Objecte nor IntPtr...".
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.
When editing C# code in Visual Studio 2010, the ENTER key makes IntelliSense complete the current suggestion, without adding a new line. In VB.NET, the default IntelliSense behavior for the ENTER key is to add a new line after completing the current suggestion.
How can I configure IntelliSense to change the VB.NET behavior to the C# one?I already know that I could press TAB or SPACE, but out of habit I always end up hitting ENTER (and changing line).
I am writing my first class-library in VB.NET. My idea is to distribute this library so others may use it in their applications.However, perhaps due to my lack of experience in writing and structuring the library and the classes therein, I noted that the methods/properties are ALL being shown in the IntelliSense of Visual Studio.
The thing is that many of them are only used within the library itself and should NOT be used by the developers (could create a disaster) when they incorporate my library in their application - only a few should be visibile i.e. the ones which are needed by the developer.Thus, my question is: is there a way to hide certain methods/properties of my library from Visual Studio's IntelliSense? Maybe something similar to REM?
EDIT: as mentioned - this is my first library and I now understand that my question could be intepreted in two ways:
1) how to hide something from IntelliSense
2) how to prevent a developer from using and calling certain methods/properties
Of course, the end-result that I want is that the developer is not able to access AT ALL certain methods/properties i.e. No. 2 above.
When you change a dataset schema (example you add a new table) in Visual Studio 2010 (Visual Basic), you must rebuild your project in order to use the new table in a control, is that a new thing or is this a bug?
ETA: Visual Studio 2010 VB Express edition exhibits the same behaviour. ETA: Visual Studio 2010 C# Express edition does NOT exhibit the same behaviour.
In VisualStudio 2008 VB Express edition, I specify the following comments:
If I compile the file and examine the .xml, I see that the comments are being included in the reverse order to what I specify ie. Part3 appears before Part2 appears before Part1.
Additional behaviour: If inline comments are interspersed between the external includes, they are all written to the xml first and then the includes (in reverse order)!
let there be an option called 'Turn off unintuitive xml comment behaviour'
I write an HTML file with MS Word, and use it on my application. The problem is that I need to close Word or Visual Studio in order to save the file, or compile the code, because each one reserves the file permission rights. The html file is only written by word, and only read from VS. At compile time, the file is copied to execution directory. Is there a way to give both programs simultaneous permission rights?
if I forget to enter a value in a cell in my gridview a loooong error who says thar that the indata format is wrong. anyone who know where in visual studio I can make this error a bit more understandable for others?
how can we change style of form in visual studio?when ever we create any form in visual studio it is always rectangular in shape.if we want any other shape like circle and ellipse than how it will be done??
I upgrade my computer to win 7 64 bit and run visual studio 2008, When I try to debug my old dotnet application (orgiinal from XP) it wont allow me to change any code while stop and debug. It said 'Change to 64 bit application is not allowed.
i just got visual studio 2010 professional edition and it automatically opens up C++ i need it to open up a menue where i can choose visual basic or c++ just like at my college.
how to change the kerning (space between characters) in vb.net? For example, i would like to change "STRING" to "S T R I N G". If possible i would like to be able to create my own font where i can specify the kerning as i wish!
Ok, so I've got this Visual Studio 2008 Project I was working with about a year ago perhaps. And this project had a datagrid that was linked to an external database running on a server off the internet. Now, this databinding was all done using Visual Studio 2008's built in features. But how can I now change the binding to a different server, without destroying the project? I've noticed that a lot of the code that Visual Studio creates makes a mess. So manually trying to change the datasource has allways f*cked up the whole project for me.
I'm not all that good with this stuff, that's why I used the built in features of Visual Studio. But I noticed that several things appear, like a binding source, and a dataset. Is it possible to do this? Perhaps even better, making these settings be controlled after the program has been compiled. The way it is now, it's all hard coded after compiling, and that kinda sucks. I remember trying to do this about a year ago, trying to bind these settings to variables stored in settings. But I never got that to work. Just throwing around ideas here
I created a VB Console app and it defaulted to .NET 4 but I need it to be .NET 3.5. I've been looking but all the references I find say to change it on the 'Compile' tab in properties but I don't have a compile tab or anything else that lets me change the target framework.
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.
I am using in built sql server 2005 which comes with visual studio 2008 in my project.This is my connection string.SQLConnection oConnection = new SQLConnection("Data Source=.SQLExpress Initial Catalog=Fas");
When I try to open the connection like oConnection.open() I am getting error like "Login failed for this user. User is not associated with trusted connection."By some googling I get the idea that I am using Windows authentication mode. So how can I change it to mix mode authentication? I dont have separate sqlserver installed on my system. It is same that comes with visual studio 2008
We have upgraded our project from Visual Studio 2008 to Visual Studio 2010 without any issues until now. Our project contains a folder call Libraries which contains different versions of Oracle ODP.NET DLL's as well as different versions of Telerik DLL's. Our project contains references to one of the versions of each. The problem is once we remove the reference and re-add it by browsing to the new version, again inside the Libraries folder inside the project, it adds the reference, but to the same version we just removed. We can even copy the DLL to our desktop, remove the reference and add to the new one on our desktop and it still will point to the Libraries folder version???. The only we we can actual change the reference to the new DLL is by manually changing the path in the .vbproj file, which is obviously not going to work for us. The same behaviour worked perfectly in VS 2008. We switch our references quite often, when new versions come out, but also far more often to QA different versions of ODP.NET and Telerik Control DLL's, so manually editing the .vbproj file is becoming quickly cumbersome. If I browse to a specific version at a specific path, Visual Studio should ALWAYS do what I'm telling it to do..
I did some seaching and came across a few other people with the same issue. This better not be as designed and if it's a bug, which I believe it to be, when will it be fixed?[URL]..
I have written a small application that will allow the user to use DreamScenes on there desktop in Windows XP but i can't get the screen to refresh to reflect the desktop changes. The refresh routine i have used will only work once....This program is part of an application i am writing to allow users to customize/modify the windows xp source.Here is my code:
Imports System.Collections.ObjectModel Public Class Form1 Dim DSNAME As String
Every time I make even a very small change to a form in the form designer, when I try to move off the screen to write code, or run the application, VS 2010 takes up to 1 hour to figure out what the small change was, process it and then let me continue. Is there some fix that I am missing to make VS 2010 be able to handle small changes to the form_designer, or is this just the way it is?
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.
I have a combo box bound to a datasource. I need to change one combo box (of many) to order the items in descending order.I'm guessing I could order the collection in the dataset, but that will mean all my combo boxes will be reordered?
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.