bmellow's Q&A profile
Visual C# In C# ,is there any similar to "vbCrLf" in visual basic ?
When I manipulate with a string , i dont know the way similar to "vbCrlf" in visual basic . Please help me a little , thank you very much.Maybe its easy for many people here. I think that this is that you need. :) System.Environment.NewLine ...Show All
Visual Studio How do I run tests in MSBuild?
I just started playing around with the Test Project in Beta 2. I created unit tests and webtests and I'm wondering how do I run these tests as an msbuild task. MSBuild does not ship with tasks that allow you to do this - however, if you are using one of the Visual Studio Team System editions, you will be able to use TeamBuild (which is built on top of MSBuild) in order to accomplish this. I also suspect that there will be a lot of movement in the community around this area - so watch this space But in the mean time, for more details, post questions to the Team System forums for more information. Faisal Moh ...Show All
Visual Studio Express Editions Locking down the toolbars??
Hi everyone I'm enjoying the product so far, however I have one little quirk I'm trying to fix. Currently, whenever I click on a file in the Solution Explorer, I lose the "Text Editor" toolbar. Then when I click on a .h/.cpp file I want to edit, I get the toolbar back again (which re-adjusts the toolbars, forcing the editing pane to lower a bit) So what ends up happening is that the UI workspace is constantly growing and shrinking as I'm adding new files to the project then editing them. It's mega annoying and I want to find a way to *permanently* leave the Text Editor toolbar enabled. thanks! ...Show All
Visual Basic Singleton Pattern - Shared/Synclock confusion...
Given the code below, I am trying to implement a "double-checked" constructor for a singleton pattern essentially.... What has me confused is how I should handle my locking. In examples I found it often showed the simple "SyncLock Me" approach to lock a section of code. When I try to use this in VB.NET 2005 (Beta 2) I get an error stating that Me isn't allowed for non-instance members. In this case, using a shared constructor, what should I be doing differently The code below I've tried to lock on the shared object itself, but on the 1st hit it is 'nothing' which you can't SyncLock on 'nothing'..... Am I ...Show All
Visual Basic Could we please have a Visual Studio Installer... For VB
I like making programs and creating installers. The trouble is most installers cost lots of cash and the free ones aren't much good. It would be nice if there was a fully customisable installer creator. It could work similar to the publish feature included in BETA 2 and could give you the option to launch one or more of the executables or files on the installation complete screen. There is suggestion on the Microsoft Product Feedback Cente r that asks this very thing. If you want vote for it, visit: Better Setup and Deployment story for VS.NET setup projects ...Show All
Visual Studio Express Editions How to use C# sqlConnect.connectString for MS SQL server 2005 Express?
what's wrong with these lines String connectionString = "Data Source=(local);Database=loler;Integrated Security=SSPI" ; SqlConnection cx.open(); it give me exception as: {"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"} System.Exception {System.Data.SqlClient.SqlException} Is that I have to set something in the SQL server configuration manager ...Show All
Windows Forms vb .net: Listbox item bolding
The problem is to bold the item in listbox where "read = 0", which is gotten from the database. Private Sub hae_viestit() mydata.Clear() Dim conn As New MySqlConnection(Form1.yhteys) Dim myCommand As New MySqlCommand Dim myAdapter As New MySqlDataAdapter myCommand.Connection = conn myCommand.CommandText = " SELECT message_id, ...Show All
Visual Studio Team System Connect to team foundation server tool moved
I just downloaded and installed Visual Studio 2005 Team Suite Release Candidate 1. The tool to connect to the Team Foundation server is no longer under the Tools menu. See http://msdn2.microsoft.com/en-us/library/ms181474 . Does anybody know where it was moved to As I understand it, you're right. Actually, I believe you buy the license and you get Team Explorer for free . But (again as I understand it), a license is included with a VS Team Edition and there might be a few additional licenses included with the server purchase. ...Show All
Visual Basic Frequent VB Compiler Error...
Hi! My Visual Studio 2005 always encounters a VB compiler error when I debug my program... Microsoft has offered this fix: FIX: You may receive Visual Basic compiler error messages when you are developing a Visual Basic 2005 project in Visual Studio 2005 http://support.microsoft.com/kb/915038/ Question is... why can't the fix be downloaded if it is a fix why contact microsoft support when doing so no answer is forthcoming I tried searching everywhere for msvb7.dll but couldn't fine a latest version: Msvb7.dll 8.0.50727.93 29-Mar-2006 Has somebody downloaded the file care to share it with me please send to jrb700@ ...Show All
Windows Forms Column length in datagrid
Hello, I would like to set the lenghts on the columns to cut down on how much the user has to adjust to view the data. Any Ideas I played with the TableStyle Collection in visual studio but could see any change. If anyone can give/point me to an example or book that would be great. shawn ...Show All
Visual C# formating a slave drive with c#
I have been looking around for this question for so long. Does anyone know how to access a slave drive or network drive through C# to format it We figured that one out on the "erase network drive". Thanks for the post though! ...Show All
Windows Forms Big Timer Problem
Hello i'm trying to use a Timer in a Server Application by i'm having quite a difficult problem First of all because the Application.Run(formObject) method stops executing the rest of the program, i had to move everything related to networking to another Thread So my main is StartNewThread for Network; Application.Run In the Networking thread i wait for a message from the client (in a "endless" loop), when i receive that message i start the timer, that's where my problems begin. The timer doesn't start. I saw in another Post in the Forum that i should use Application.DoEvents() each time to loop runs Now here's where things become ...Show All
SQL Server Flat file produced but need line returns
My Integration Services creates a flat file using OLE DB Source and then a Flat File Destination. The flat file is created from data from my data source with is just a table with many rows. Each row in my flat file .txt is appended onto each other, there are no line returns after each record. How can I put in a return after each row in my flat file that is outputted from the Flat File Destination component in conjunction with the properties in my Flat File Connection Manager. What am I missing here in order to ensure each row from my table creates a carriage return in my .txt flat file Right, but Notepad only proce ...Show All
Windows Forms Good magazine?
Does anybody know a good magazine convering not just asp.net but windows forms as well thanks <a href="http://www.code-magazine.com/">CoDe Magazine</a> is fantastic. It's new but I've found more than half (and sometimes all) of the articles in an issue of use. The articles are usually long and, at least for now, there's a lot less advertise ...Show All
Visual Basic indexible Enum / Structure
Good morning! I really need something that has the intellisense features of an enum or structure, but that can be iterated through with a for loop. Consider the example below; I need the calling class to use intellisense, but I need to be able to cycle through each of the variables within locals to do things like read their initial values from disk, or fill an array full of their values. There a many variables within locals, so I would like to avoid creating a separate array with each of their names as a string. Anyone have a suitable alternative ''' LOCAL (NON-PLC) VARIABLES Public Enum Locals Tku ...Show All
