Matt Hohn's Q&A profile
Windows Forms Error icon tooltip not visible when editing a cell
Hi, I copy/paste the code from the DatagridView FAQ "How do I show the error icon when the user is editing the cell " but the errorTooltip isn't diplayed when the user move the cursor over the error icon (but the CPU is 100% !!!!) I'm using a datagridview bounded to a dataview Any idea Thanks for your help That is correct. To correctly show the error icon and have the tooltip correctly show when its over the icon you'll need to create a custom DataGridViewCell that overrides GetErrorIconBounds. Without doing this, the grid still thinks the error icon is under the editing control. -mark ...Show All
Visual Studio Tools for Office VSTO Deployment
Hi all We have just started our work with VSTO enabled documents. We have made our first Proof-Of-Concept solution, which works in our development environment. So now we have come to the next level, deciding and implementing our deployment strategy. So I was wondering if any of you could provide some help, links to guides, or just general comments on "how-to". Our primary deployment strategy is to store both the actual templates and the managed code dll on the network. Currently we have only one dll pr template - but that may change when we get more and more templates, and are able to reuse some of the code. So in a deployment ...Show All
SQL Server How do I edit an Imported DTS package in SSIS???
I have used the wizard to import a DTS package from a SQL 2000 server to our new SQL 2005 server and need to make edits to reference the new server and database. I am able to see the package within the SQL Management studio under Integration Services, but I cannot find it in the Development studio What am I missing Thanks The development studio is an offline tool that works on file packages only. Export the package from SQL Server / IS and add it to a project in BIDS. ...Show All
Visual C# Visual Studio 2005 Express Edition: Continue execution after unhandled exception
Thanks for the time. Having a Delphi backgound I am used to raising exceptions for almost anything that could go wrong. I'd catch the exception, add a user friendly message and raise another exception. This is more a VS Editor related question than exception handling itself. The thing is whenever I throw a new exception outside of a try...catch block a "Exception was unhandled" dialog box appears and the editor will not continue execution. When running the EXE this functionality work as I require it to, but while debugging I would like to continue and the exception should be displayed on sceen. I'm sure this is a new addition to th ...Show All
.NET Development uploading images onto an SQL database through ASP page
Laptop Spec: XP Pro Programming languages: ASP.NET, C#, SQL Server sorry again for consecutive posts, I'm new to all of this. I am trying to create an aspx page with a user interface that will allow me to insert an mp3 file onto my database. The code I have currently is: ------------------------------------------------------------------------------------------------------------------------------------------------- <%@ Page Language="C#" Debug="true" %> <%@ import Namespace="System.IO" %> <%@ import Namespace="System.Data.SqlClient" %> <%@ import Name ...Show All
Windows Forms How to wrap a OleControl using AxHost?
Hi All, I have a previous program in which have a window containing a OleControl. I used Win32 SDK "OleSave" to keep properties of the OleControl into a file. When the window is opened, properties of the OleControl can be loaded and set by "OleLoad". Now, I want to migrate the previous program to .NET using C#. I know that System.Windows.Forms.AxHost can wrap a OleControl well. How can I get those properties stored by "OleSave" Thanks, LHW ...Show All
Visual C++ Dialog boxes as controls
I have a dialog-based application where I have created a blank dialog as a main dialog window. Let's call it MainDlg. I also created a resource template for a dialog that it is to be used as a control. This control is a tester and I plan on having two of them in the client area of MainDlg. Using the class wizard, I created a class for this dialog called CTesterDlg. I created two member variables of type CTesterDlg in MainDlg , m_dlgTester1, m_dlgTester2. In the main dialog's InitDialog method, I call Create for the two instances and am able to position them where I want using their SetWindowPos methods. So far, so good! In my te ...Show All
.NET Development Remoting (PerformanceCounterCategory class)
hello: i want to get the Performace counter categories of the remote PC. i am using the PerformaceCounterCategory.GetCategories(string machineName) method for retrieving the desired info. But every time i get an error of "Access Denied". I don;t know why it is so I have tried remoting for this problem but this time i got an error that "PerformanceCounterCategory is not marked as serializeable". Is there any solution for the problem (either by using the remoting mechanism or the anyother). Please post your replies as soon as you can becuase its urgent. Regards Shoaib An "Access denied" error is saying that you don't have enough permissi ...Show All
Windows Forms VS 2005 Winform designer Issue
I am getting the following error whenever i tried to open forms in VS 2005 solution in design mode. I tried rebuilding the solution several times, but still the issue persists. I referred couple of messages in the forum and applied the resolution provided in those, but still the issue persists. I am stuck and not able to do any modification to the controls and their properties. Is there is any fix available for this issue One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Clicking on each error will take ...Show All
SQL Server this is so cheap
There has to be a way of controlling the width of the drop down box for multi-value parameters. Users are practically laughing at me when I show them their report and they can only see the first 1/4 of the text in the drop down box. what am I supposed to tell them Keep sliding the stupid bar back and forth It is these seamingly easy things that drive me nuts. You are wrong, it's not cheap, it's "free". That is after you spend a few tens of thousands on SQL server. What do you expect ...Show All
Software Development for Windows Vista WorkflowRuntime.GetWorkflows() does not return any instance
Hi In my WF application if i call workflowRuntime.GetWorkflow(instanceId) then it returns correct workflow instance but if i call workflowRuntime.GetWorkflows() then it returns a list with 0 item. I host my workflow in ASP.NET and get WorkflowRuntime using this statement: WorkflowRuntime workflowRuntime = WorkflowRequestContext.Current.WorkflowRuntime; There is no problem with console application. What is this problem And how can i get all running workflow instances in this situation Thanks. Nguyen, When you call GetWorkflows(), only the workflow instances that are in memory are returned. Calling GetWor ...Show All
Visual Basic DbNull date
In my VB6 code I had: If isdate(txtdate.text) then rs![DTE] = cdate(txtdate.text) else rs![DTE] = vbNull endif After converting to VS2005, it appears I can no longer set a db field to DbNull. I get this error ''UPGRADE_WARNING: Use of Null/IsNull() detected. Click for more: 'ms-help://MS.VSExpressCC.v80/dv_commoner/local/redirect.htm keyword="2EED02CB-5C0E-4DC1-AE94-4FAA3A30F51A"' rs.Fields("DTE").Value = System.DBNull.Value Any thoughts I went to the URL specified and it was no help to me. ...Show All
Visual Studio Team System Work Item tracking through web parts?
Hi, Is it possible to perform work item tracking through web parts in project website Could we use Microsoft share point service to make it possible to add requirements/bug through web client (w/o installing VS 2005 in client machine) Thanks, Saurabh it should be possible, all of the calls are available through Webservice Calls. However, there is currently a 3rd party tool in Beta that does this through the web already: http://www.devbiz.com/teamplain/ You could provide a link to its website in the portal instead. ...Show All
Visual Studio Express Editions TreeView question #2
Hi Is there any way to get a TreeView which is being populated with Files to read the appropriate file icons for each of the files I do have a useful program (Audacity) which can rip icons from files, but I suspect that would be a rather long and laborious procedure. Is there any inbuilt function or method to do this kind of thing Even just the system file icons would do most of the job for me. It is a bit boring when I just have one folder icon and one file icon to display in the TreeView. How are you populating the files If you are doing it and not a binding it's easy. If you are using a binding ... I'd say ...Show All
Smart Device Development PPC device problem w/ VS2005 application
hello all, i have a program that i upgraded from eVC to VS2005 using the eVC++ upgrade wizard add on. i was able to successfully upgrade the application (or at least i think i did), and it compiled correctly in VS2005. when i transferred the app over to the PPC device (running PPC magneto) and tried to run it, i get the following error message: "The file 'app name' cannot be opened. either it is not signed with a trusted certificate, or one of its components cannot be found. you might need to reinstall or restore this file" i'm thinking the problem has to do w/ the trusted certificate, but not 100% sure, as i've never dealt ...Show All
