Bin Laidand's Q&A profile
Windows Forms GDI+ graphics and viewport
Hello, I am using .NET 2.0 and building a custom control. There are multiple graphics elements that I would like to render on the surface. When drawn together they form the complete control image but need to be managed separately because they might have different scale, units, move indendently, and are updated at different times for different reasons. My idea was to maintain several buffers or graphics objects that I could use draw into an ...Show All
Visual Studio Events.get_TextEditorEvents - LineChanged Problem
Hello, I'm writing an add-in in VS.NET 2003 and need to wire up the TextEditorEvent.LineChanged event for an individual document (actually an HTMLDocument). However, the eventhandler method never seems to get called. Please see code sample below: Basically, the class that the below code is part of (called EditorWindow) is a wrapper for a Window object along with some corresponding objects and information. OnInit() gets called when an ...Show All
SQL Server parent/child text File Import
I have a file with a parent child records in the same file. My game plan is to get it into a table recognize the parents and put them in the parent table and recognize the children and put them in the children table. The problem I am having is the flat file import chokes on it because the column withs are different from line to line (parent / child). Any thoughts or suggestions would be apprecaited. Mardo You'll need to import the data ...Show All
.NET Development project location
Hi. I'm new to vb.net and just installed it. I try to put my projects on my network drive because I have lost a lot of files from hardware crashes. Unfortunately, vb.net doesn't seem to like that idea. It gives me the error 'project location is not fully trusted by .net runtime'. Can anyone tell me how to resolve this Thanks, Marilyn You might have to keep track of your solution file ...Show All
Visual Studio Team System MSTest.exe error
Hi, When I run my unit tests using the IDE all my tests passed and when I run the same tests using MSTest.exe all the tests failed. Please advice! Thanks, I think I need more info, maybe you have some kind of precondition you need for run unit tests which is not executing correctly when you run them from command line like copy to unit test run folder some test files or some connection to database ...Show All
.NET Development Problem rendering svg text
It sounds like you're seeing gaps due to ExternalLeading. Consider getting better control of your output by using the TextRenderer.DrawText method. It takes a TextFormatFlags argument that you can set to Bottom, Top, ExternalLeading, etc. ...Show All
Visual C++ VC2005 %50 Slower then VC2003
I just migrated a graphics application from VC2003 to VC2005. After building it, I ran a small benchmark & found that VC2005 code was about %50 slower. The Application does a great deal of floating point and integer calculations. It also converts doubles to int quite a bit (the VC2003 version used SSE to handle this). The VC2003 version used /G7 and /Ow (which are not available in VC2005) Compiler Switches Used: (vc2003)/arch ...Show All
Windows Forms How can I catch the event when user click the "X" button?
Hi, all When click "X" button, I don't want the App to exit just want to hide, then use notifyIcon to ReShow How can I catch the event when user click the "X" button Thanks... use the forms closing event. then e.close =  ...Show All
SQL Server ODBC & Multi-threading
I'm working on a C# (2005) app that requires shooting a large number of queries via Odbc, wait until the last one is done and then compute an overall result. Since the queries are not interdependent, I would like to get them to run concurrently on multiple threads. I did manage to get several queries run on different threads but the response time for the same query varies dramatically when another query is running concurently (even on a di ...Show All
Visual C# How to expose property in C# container for webbrowser control?
I'm trying to write an app in C# that hosts the webbrowser control (I'm using .net framework 1.1). I have worked out how javascript on a web page can call methods on the C# container and pass parameters, but I also need to have properties on the C# container exposed such that javascript on the web page can use them. Is there a simple way to expose a public property to do this Hi KCurtis, Thanks for you ...Show All
Visual C# Visual c# beta 1
I'm not sure if this is the appropriate forum for this, but I guess it is close. I recently downloaded and installed visual studio .net beta 2. Before installing I uninstalled all .net framework v2, and VS.net beta 1. I also have a version of VS.net 2002 on my machine that I cant uninstall because I use it to develop software for my company. I didnt realize that you have to uninstall ALL visual studio.net versions to install th ...Show All
Windows Forms transparent labels
I have a control with a graphic. I put some labels over it, and set the background to transparent. This doesn't mean the graphic shows through, it means the background color shows through. Do you know how to get a truly transparent background o ...Show All
Visual Studio Express Editions How to Check if Integer Divisable by 100
How could I check if an integer is divisable by 100 For example 100, 200, 300, 400, ... Thanks, That worked ...Show All
Visual C# Resource: Loading an HTML page into a WebBrowser control
Hello, I've created a resource file and I stored some HTML pages and some images in it. And now I want to load the html page when a button is pressed into a WebBrowser control How can I do that How the link between the HTML pages should look like How can I show the images stored in the same resource file Your help would be greatly appreciated. ...Show All
Visual Studio Team System TFS Warehouse : Cannot insert duplicate key row in object 'dbo.Work Item History'
Hi, The following error appears in the Event log. (Single instance installation) Any Idea Thanks Arno An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 12/29/2005 4:52:37 PM Machine: FOUNDATION Application Domain: /LM/W3SVC/3/Root/Warehouse-2-127803451113551466 A ...Show All
