domhorton's Q&A profile
Visual Studio Tools for Office Adding Panel or UserControl to document host item
I don't see Panel in the toolbox when customizing a host document (Excle Sheet). Is there a way to add my own panel and/or a User Control to the host document If I can add listboxes, textboxes, buttons, etc. why not allow to add a Panel as well. It sounds like you're dragging the UserControl.cs file (or whatever it is named for your project) from Solution Explorer onto the worksheet surface. When I try that, I also get the .cs file's path and name added to the worksheet. What you want to do instead is to drag the user control from the Toolbox onto your worksheet. When you add a user control to your project and then build your project, a draggable user control component is added to the Toolbox, under ...Show All
Visual Studio Express Editions Change background of Button.
I am new to VC++. And I want to make a simple form in which there is only one button or any similar thing. And when I press that button it's backgorund color should be changed. (E.g. Default Background colour is red. When First pressed background color of button becomes green. When again pressed that button background colour again becomes red.) If anybody can help me. Mayank Parmar mayankparmar2000@hotmail.com Software Engineer. India. Your check for flag == 0 in WM_PAINT means you only paint your control once. You'll get WM_PAINT message all the time. You want to make sure you consistently draw your control in your WM_PAINT message handler. ...Show All
Windows Forms Run an application after Install.
Hi, I've created a setup project and add an Installer class to do my custom Action. When the installation is end i want to run my application : To do that I use the method Process.Start public override void Commit(IDictionary savedState) { base.Commit (savedState); string DirMain= System.Windows.Forms.Application.UserAppDataPath; DirMain = DirMain+"Hip\\Hip.exe"; System.Diagnostics.Process.Start(DirMain); } When I'm in a administrative windows account that run correctly but when i'm with a user with no privileges i've an error message of the JIT : ” JIT Debugging failed with the following error: Access is denied.” I search in the msdn and the solution is to add the user to the Debugger Users gro ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Ray and BoundingBox Intersection - how to find the exact point of intersect?
I've been implementing the functionality described in the How to: Detect whether a user clicked on a 3D object. I get the mouse coordinates and use the near and far clipping planes, draw a Ray using these points etc, all good so far. I have a bunch of little cubes bouncing around the XY plane, I can hover over one with the mouse cursor, it comes to a halt as I want it to. Now, I'm trying to implement some sort of basic "select and drag" functionality. What I'd like to do is move the currently "grabbed" cube towards the unprojected coordinate of the mouse. This, however, isn't really working out. 1. When I do the intersection test of a ray and a cube's boundingbox, is it possible to obtain the coordinates of th ...Show All
Visual Studio Express Editions express?
does anyone know the difference between visual C++ express and visual c++ by other languages i kinda more ment english. since this is an english forum. but it doesnt matter. thanks for the answer. but why did they call it express then ...Show All
Software Development for Windows Vista Visual Studio 6.0 SP5 setup on Vista Beta 2 (5384)?
Does anyone know how to get around the MDAC check in the Service Pack 5 setup of Visual Studio 6.0 For some reason it doesn't detect MDAC 2.5 or higher which it requires (even though Vista obviously has a later version - 6.0) and the setup will not continue from that point. I've tried every registry key I could think of to trick it into thinking MDAC is installed. Thanks Ted. You'll need a non-Vista machine and copy over or use the trick I mentioned, until someone can figure out what the SP5/SP6 setup process is using to determine whether MDAC is installed. I've tried using filemon and regmon utilities from www.sysinternals.com but have never been able to figure out what it's checking. Can ...Show All
Visual C# Convert object do dictionary
i all I have this method in my app: public bool MTProcess( string PathOut, string PathControl, params object [] arr) In arr parameter i received a dicitionary and i want do cast this arr to a private dictionary inside this method! Any help! Change the array to a dictionary object or change the dictionary object to array before passing. Once the cast is in place, the parameter will no longer be an array. Craig Maslowski ...Show All
Visual Studio Express Editions How to set debug options for new project, so Debug configuration will actually debug?
I am using VC++ Express, with the R2 SDK, to develop (well, learn to develop ) Windows Win32 apps, learning from e.g. Petzold. This is going fine i.e. I can successfully compile, build etc. For new projects, I am selecting General - Empty Project (the Win32 option only offers a template for Win32 console application). The IDE does of course show me Debug and Release options - and depending on which I choose, the exe does end up in the appropriate sub-folder within my project folder tree. BUT, the debug option does NOT compile/link for debug. So if I do F5, then I get the error message box telling me that this project was not built for debug etc. And the appropriate folder contains none of the extra files that are associated with i ...Show All
SQL Server Access DB2 on AS/400 using IBM OLE DB Provider
Hi, I am using the IBM OLE DB Provider (IBMDASQL) provided with Client Access (IBM) to access a DB2 database on an AS/400 (iSeries). Using an OLE DB Source in the data flow and Access Mode set to "OpenRowset" this works fine (even though I think it is quite slow). However, when I change the Access Mode to "SQL Command" my data flow fails at the OLE DB Source component - not giving me any meaningful error description (only the mysterious "... the error is specific to the component..."). Using and SQL Command to access the data is important to me, since I need to put a WHERE-statement on the rows returned from the source. /Michael PS: I am not able to use the MS OLE DB Provider for DB2 (as far as I know it is only shipped with HIS ). ...Show All
Windows Forms How to handle Ctrl-Drag on design surface?
Hi, We've got a custom designer working, we can drag items from our toolbox onto the design surface without any problem. However, we want to handle dragging while holding down control - this should create a copy of the control. When ctrl-dragging, the icon changes to a + to indicate that this is what it's going to do, but on releasing the mouse, nothing happens! The MSDN magazine example from March 2006 has the same 'feature'. What do we have to do to enable the creation of the new control Many thanks, Gary Hi, A drag and ctrl-drag off the toolbox should be handled the same way. It doesn't really make sense to make a copy of something you are dragging off the toolbox. Can you point me to the sample code tha ...Show All
Visual Studio 2008 (Pre-release) What is a sandbox?
Hi all: I want to connect my Xbap page with SQL database using SQL data Adapter and DataSet I try to do this but there is an error this error is: Startup URI: D:\walaa Work\XEmployee\XEmployee\bin\Debug\XEmployee.xbap Application Identity: file:///D:/walaa%20Work/XEmployee/XEmployee/bin/Debug/XEmployee.xbap#XEmployee.application , Version=1.0.0.0, Culture=neutral, PublicKeyToken=6b995c520c9daad7, processorArchitecture=msil/XEmployee.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6b995c520c9daad7, processorArchitecture=msil, type=win32 System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e ...Show All
Visual Studio Express Editions Need Book
I am using visual C++/CLI. So please does anybody knows a book to lern ADO.net and C++/CLI Ricardo 8a Here some links http://www.amazon.com/Pro-Visual-C++-NET-Platform/dp/1590596404 http://www.learningtree.co.uk/courses/uk510.htm And C++ has no good mechanism of interaction with ADO. Some mechanism y ou should make it youself! Be c areful ! .NET platform is a "p aradise" for hackers ! ...Show All
Visual Studio Team System Project Output Directories in Team Build
Most of my VS projects have the output directory defined in the project settings as /bin, however when I run a Team Build, no bin directories are created, there are just obj directories. Why is this and can I change it because in some circumstances (like building a windows service) some of the output is not copied to the obj folder, it is copied to the Binaries folder. Check this post out, seems to address the problem that you ( and I) are having. http://blogs.msdn.com/aaronhallberg/archive/2007/06/07/preserving-output-directory-structures-in-orcas-team-build.aspx cheers Tim ...Show All
SQL Server Alternative to DTC? - SSIS Transactions - Quick Question
Hi: I would like to have my SSIS tasks to be transacted, but due to infrastructure issues in our network, cannot utilize DTC, because our SQL Boxes are situated where the DTC cannot communicate. Are any other alternatives Is it a feasible alternative Please let me know. Thanks. MA2005 wrote: Hi: I would like to have my SSIS tasks to be transacted, but due to infrastructure issues in our network, cannot utilize DTC, because our SQL Boxes are situated where the DTC cannot communicate. Are any other alternatives Is it a feasible alternative Please let me know. Thanks. This link should help: http://msdn2.microsoft.com/en-us/library/ms137690.aspx ...Show All
Visual Studio VSS 2005 -- Same source control you get with VSTS?
I'm very unclear about the difference between VSS2005 and the Source Control included with Visual Studio Team Foundation Server. Questions: Is the price for VSS2005 per seat (CAL) or something else The docs for VSS2005 indicate that it supports remote access over http. So would I be buying a server or a client Is this the same source control that ships with VS TFS or is it something different For my client TFS is total overkill for a team of three developers. Thier developers do work from home so remote access (not over a VPN) is an important requirement. Thanks!! Have you seen this article Choosing Between Microsoft Visual Studio Team System and Microsoft Visual SourceSafe ...Show All
