carem's Q&A profile
Windows Forms VS 2005 slow
I see this as well, VS 2005 is terribly slow (though way better than the beta). Diabling auto toolbox population helps, but the problem is that I need items from the toolbox all the time, so this is not a viable option for me. My apologies, this was supposed to be a reply to the thread "Sluggish performance 2005 final release - Us or MS ". Eyvind. ...Show All
SQL Server I have an error while connecting to sql server 2005
When I try to connect to server in SQL Server Management Studio TITLE: Connect to Server ------------------------------ Cannot connect to OMER. ------------------------------ ADDITIONAL INFORMATION: 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) (Microsoft SQL Server, Error: 2) Can you help me Hi, i think thats a configuration issue: http://www.da ...Show All
Visual Studio Inter add in communication
Hi, I have ToolBox (EnvDTE80. Windows2. CreateToolWindow2(...)) and another add in need to send string data to this window. Is there some easy way how to accomplish this I wanted to use PostMessage / SendMessage but, EnvDTE80. Windows2. Window.HWnd is reserved and always return 0. Thank you. The best way is to define a private interface that the control implements. CreateToolWindow[2] returns the programmatic object of the control that has been created, simply cast this returned object to the interface, and you can start calling the methods and properties on the interface that you define. Craig ...Show All
Visual C# Generics and inheritance - program to interfaces, not concrete implementations
I have some problems regarding generics and the (best) practice of programming to interfaces, not concrete implementations. Sample: public interface IRepository < T > where T : DomainObject { // ... } public class CountyRepository : IRepository < County > { } County is a sub-class of DomainObject. In a unit test, I’d like to use a generic Template Method , hence programming against IRepository < DomainObject > rather than CountyRepository . The sub-classes are implementing a method for creation of the ...Show All
Visual Studio Cannot get IVsCodeWindow from 'docCookie'
I faced with the following problem. When user closes a document, I catch IVsRunningDocTableEvents.OnBeforeDocumentWindowShow event which comes with valid (non zero) 'docCookie' parameter. As I understand, 'docCookie' is a value representing the document. Then, I need to get access to the text of that document. So, How can I get IVsCodeWindow interface from docCookie You have to go through the get the IVsWindowFrame interface to get to the actual CodeWindow interface. Start by getting more information about the document using the docCookie value by passing it throught the IVsDocumentTable::GetDocumentIn ...Show All
.NET Development SqlDependency and Notification
Hello, I am using this blog entry:http://blogs.msdn.com/dataaccess/archive/2005/09/27/474447.aspx for my own application to notify when data changes. I'am using following code, but vs keeps on telling me, that the dependency isn't startet. Can somebody give me the right VB.NET code I understand c# not very well :( Thank you: Public Class Form1 Public Shared conStr As String = "Data Source=DEVMOBILE2\SQLEXPRESS;Initial Catalog=Northwind;Persist Security Info=True;User ID=;Password=" Public Sub DoDependency() Dim conn As New SqlClient.SqlConnection(conStr) Try conn.Open() Dim cmd As ...Show All
Windows Forms Adding Image to the DataGridView editing column
Hello all. I'm trying to add an image to the first column of a DataGridView. I mean - the column in which we click to allow selection of the row (I don't know its exact name), not the the grid.Columns[0] column. How can I had create custom paint events for this control Thanx Eli. Thanks a lot!!!!! I was searching for a way to add an image to a datagridview row head ... and you ...Show All
Visual Studio How Can I Get the total of (TImeSpan) type column in Crystal report ??
Hi I have column in Crystal report with (TImeSpan) type , and I want to get the total of that column !!! How Can I Get the total of (TImeSpan) type column in Crystal report And thanks with my best regarding Fraas right click on your (timespan) field in the details section, then in the menu goto insert then to Summary from there follow the directions Carl ...Show All
Windows Forms How to split the column Heading of Datagrid in Two rows
In vb.net The column Heading of one of columns of the Datagrid is Normal Rate of Change As I have 9 columns to this grid I had set the width for this column 110 Then heading is truncating I want to wrap this heading as Normal Rate Of change I have difficulty could someone please let me know how to do this Thanks Hello Every Body I am also ...Show All
Visual Studio 2008 (Pre-release) Buttonquestion
hi, is it possible to create a button that doesn't have a square shape, but for example the shape of an "L" This would help me a lot. tnx in advcance, Kimme sure you can. You simply need to create a ControlTemplate for your button and define your wanted geometry. So either you create your own button and define its template or just add a button and apply the style which define the attended template. ...Show All
Visual Studio Express Editions it works!
hi, i saw one MSDNTV video, and the vid was about new feture sin desing environment and code completion. that man was worging with web developer tool, and he was showing some tips about creating a class, and its properties. i saw that it was very useful way, by only pressing TAB you get some code already generated, and marked fields to write your own names. a very cool way is to write properties. he showed that its enough to wite "property" and click Tab and the property is automaticaly generated with get and set methods, i decided to test it on c# express edition, but i saw that it doesn't work, maybe i have to configure something ...Show All
.NET Development Detecting traffic on various Protocols/Ports
Hi all, Just started diving into System.Net and System.Net.NetworkInformation. I want to write an app that detects when packets start to move over various protocols/ports. For example, I'd like a component in the app to raise an event when outbound packets are sent over port 80. I've looked over the various client and listener types in System.Net and System.Net.Sockets, but they're all concerned with providing client server functionality. I just want to attach to existing connections. Is there a managed way to do this Thanks in advance, Jim The short answer is no. The long answer is that moni ...Show All
Visual C++ How can I add an *.ico file into my toolbar????
Hello, I like to add my external icon file (*.ico) in my toolbar in project. Can you please show me Thanks. vcboy wrote: Hello, I like to add my external icon file (*.ico) in my toolbar in project. Can you please show me Thanks. You could load the icon (LoadIcon), add it to a CImageList, and associate the image list with your toolbar (CToolBarCtrl::SetImageList). ...Show All
Visual C++ Unresolved Token and other link errors when migrating from VC++ 2003 to VC++2005 Express
Hello all, Here is the situation. I am migrating an existing solution from Visual C++ 2003 to Visual C++ 2005 Express. I have the Platform SDK installed as well. The solution contains two mixed mode projects. One is essentially a managed wrapper dll for a 3rd party static win32 library. I do not have access to the source for the 3rd party library. The other project is a managed executable that utilizes the wrapper dll. These projects worked fine under 2003 but now when I build the DLL project I get the following errors and I am trying to find out why. I have gone through and removed the dependency on _vcclrit.h via the i ...Show All
SQL Server copying data to SQL Server from an Oracle database
What is the most straightforward way to copy tables and views from an oracle database into a sql server 2005 database thanks for any suggestions. Marilyn Mount your Oracle server and database as a linked database in your SQLServer environment. Then perform a standard insert-select (or select into). If you also must make data transformations you should use DTS (or what's the name nowadays is). Best regards Nils Nordenbrink ...Show All
