Kensino's Q&A profile
Visual C# 100% cpu load ?
hi. i see this on several machines: while simply editing a source file, cpu load goes up to 100% and stays there. the ide gets extremely unresponsive. load won't go down, even after we waited for 30 minutes. the only way to get working again is a) kill the ide b) _and_ remove the ncb file however, this only solves that for some time: ultimately, the ide will use up 100% cpu again, and we need to kill it again. any ideas what would be causing this WM_THX thomas woelfer http://www.die.de/blog Thomas - We've just released the July CTP. You can find it here ( http://lab.msdn.microsoft.com/vs2005/get/ ). ...Show All
Visual Studio How do I debug code in design mode (i.e. running under the IDE) using VS2005 RTM?
I have a problem using the new RTM version of Visual Studio 2005. I write a lot of custom components and a lot of the functionality I provide is available at design time, which I need to test and debug. In previous versions of Visual Studio I would just boot up a second VS instance for the same project and attach it to the first to debug, but that does not work in VS 2005 RTM. If I try attaching a second version of the project (DEVENV.EXE) to the first nothing happens, i.e. none of my breakpoints will be hit. However I have noticed that there is a {appname}.vshost.exe process running, but when I attempt to connect to that instea ...Show All
SQL Server SqlDependency "invalid statement"... why?
Folks, Hoping you can help explain why I get this error. I'm setting up an SqlDependency and things are starting to come together, but the following SELECT query results in a callback with type = Invalid and source = statement. However, I don't understand why that should be, as the select works fine "standalone": You can’t monitor text columns, that against the contract. See the BOL for the limitations of SQLDependency and Query Notifications. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Basic Trouble with my buffer.
I have a program that reads a file and sets all the bytes into the buffer, then takes certain bytes from the buffer and places them into certain NumericUpDown controls. But, I cannot figure out how to write the bytes back to the file. I got a function that writes the buffer to the file but the buffer is not updated before writing it back to the file. Say, I change the value of one of the NUD's and click on a Save button. I cannot figure out how to update the buffer with the new value before writing it back out to the file. I have looked through help and the Object Browser and cannot find anything that even remotely helps me. Thanks in a ...Show All
Visual Studio Team System Unit Testing Web Service that returns DataTable type
I am trying out the team testing facility in VS 05 against a web service and am not sure what the intended use is, and can't find a good example. I have a webservice with one method which returns a data table, and have used the "Create Unit Test" option to generate a test method which has created the proper web reference in my test project, providing generated class to interact with the service. The response from the web service method is being packaged in what appears to be a generic type for xml responses. This type is being cast from object on return from the service, but does not seem to be capable of being cast to any other type, ...Show All
Visual C++ To detect any 'Enters' pressed
Hi, How about detecting any 'Enters' pressed in the keyboard How can we have a thread for detecting this Thks & Rgds, HuaMin What is your idea To get all hits to the enter key in all applications Or just your Application or just a window of your application What do you want to solve To answer this question I need more infos about the problem. ...Show All
Windows Forms Custom buttons for adding/removing DataGridView items and validation
I have my own controls which extend DataGridView and BindingSource; I want to make another change to those - do not allow the user to add and remove rows in traditional DataGridView way, but to use add and remove buttons in BindingNavigator instead. Everything works fine, until I start using row validation. I can make it so that the rows cannot be added as long as there exist rows that have not been validated. But I still have the following problems: 1) a row that cannot be validated, cannot be deleted - I believe that happens because every time I try to hit the delete button, my grid control has to lose focus, so it tries ...Show All
Software Development for Windows Vista Problems building samples from Platform SDK
I have installed the "Microsoft Platform SDK" and followed Brian Johnson's instructions ( http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx ) to enable it to be used with "Visual C++ 2005 Express Beta 2", successfully (hooray!). I then wanted to build some of the samples in the SDK. I first tried building in the command line for "Microsoft Visual C++ Toolkit 2003" (which I had previously downloaded), and received linker errors mentioning "cannot open file LIBCMTD.lib". I tried building in the command line for the "... Beta 2" and got a dialog box saying that the file Hcrtf could not be found. I then went back to trying to ...Show All
Visual C++ Newbie DLL question
I have written a C# class and compiled it as a DLL. I am now trying to use some of the methods in a Visual C++ project (not .Net). Is this possible While you cannot directly use a C# assembly in a native C++ application there are a couple ways you can do it indirectly: 1) Use tlbexp.exe to generate a COM wrapper for the C# assembly and then use COM to access it. 2) Write a C++/CLI wrapper around the C# assembly and then use the C++ wrapper in your code. ...Show All
Visual C# Get a list of Delegate on Event
Ok, What I want to do is retreive all the delegate that is attached to an event. Let's say i'm attaching several deletages to a button: IE: myButton.Click += new System. EventHandler ( this .myButtonClick1_Click); myButton.Click += new System. EventHandler ( this .myButtonClick2_Click); myButton.Click += new System. EventHandler ( this .myButtonClick3_Click); myButton.Click += new System. EventHandler ( this .myButtonClick4_Click); Is there any way I can get my 4 eventHandler later on in the code Something like ArrayList EventHandler myButton.Click.GetAllDelegates(); I need to get the list because I want t ...Show All
.NET Development Storing asian text in sql server express using sqlclient
I have a problem storing Chinese text in an sql server express 2005 database which runs on a western version of XP. There is no binding in my app. The data is typed in a user form and in a button_click event stored in a table using the command object of the sqlclient, executing sql statements like insert or update. Everything's fine, except that Chinese text will not be stored in the tables correctly, instead of the characters I only get question marks. In the sql server express managing tool, I am not able to type in Chinese characters into the fields directly either, but I am able to copy and paste them there. That way the Chines ...Show All
.NET Development Application Configuration Settings error "is a type but is used like a variable"
I'm trying to write to an application settings file. I'm using VS2005 and am following the example found at http://msdn2.microsoft.com/en-us/library/ms171565.aspx I added a settings file to the application and it modified my app.config as you see below: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > & ...Show All
.NET Development VB.NET 2.0 - DataGridView Selection - how to eliminate?
Hello, I am displaying a datagridview that is refreshed as records are added, etc from a different portion of the screen; how can I disable the selection so that the user cannot select any item on the grid, thus changing it's color Thanks! Jim Josh, I have set the readonly property to true; but when the grid is displayed the first row is always selected (or if I change the selection property to cell, the first cell is selected). I don't see an option for Selection = none. I don't want the row to be colored in the blue; and thought there has to be a way to disable the selection of either rows, columns o ...Show All
Windows Forms default toolbox tab for usercontrol
Is it possible though an attribute or any other way to specify the default tab for a usercontrol to be added to the toolbox instead of defaulting to the "Windows Forms" tab I am developing an application that implements many user controls and I would like them grouped together in the toolbox instead of mixed in with all the standard controls ...Show All
Visual Studio Tools for Office Desperate for help - getting my Add-In to run
Hi; Ok, I have built two new test Add-Ins, one under VS 2003/.net 1.1 and one under VS 2005/.net 2.0. Both run fine on my system (the .net 1.1 requiring winword.exe.config set to 1.1). But my existing Add-In which I have built and tried to run under both VS 2003 and VS 2005 - nothing. It doesn't start, it never even hits the object constructor in the debugger, and Word says nothing. How do I find out what is wrong thanks - dave Hallelujah, Hallelujah - the choir breaks out in song, the dark clouds part, the sun shines down, the dark lord of hidden errors has been banished from the kingdom. thank you! I changed the LoadBehavor from ...Show All
