kilroytrout's Q&A profile
Visual Studio Adding Project to existing source safe nodes
I have taken a project(vs.net 03) that was in source safe and removed all the source safe files and references. Then i converted the project to vs.net 05. Now the problem comes in with that i want to put this project back into sourcesafe under the exisitng project folders etc. I want to load it as a totally ew version but in the same project folder. Can anyone help me with this Hi Michael, If the project you're talking about is a web project, you should not bind it to the same location where VS2003 project was. The reason is that web projects in Vs2005 don't have a project file to track which files are p ...Show All
Windows Forms Using an ActiveX COM component in C# class library
Hi, I m trying to use an ActiveX control that i developed using VC++6, in a C# class Library. well, I created the two assemblies using AxImp and i added both of them as referenece. After that i have created an instance like this private AxATMActiveXLib.AxATMActiveX m_ax= new AxATMActiveX() Now i m trying to call a method like this m_ax.AboutBox(); Now, its throwing me an InvalidActivexState Exception. I know, i not creating the instance right, but i m not been able to figure our how to get around this problem. Please help Thanx ...Show All
Windows Forms Gridview validation problem
I have a integer column on a gridview of a webform. The problem is that the user can put in a character (like an "A") in the field and when the update button is selected the user gets an ugly message. What is the best way to deal with this problem Well, to start with, convert your boundfields to be TemplateFields. In that way you can give meaningful names to your input boxes like "txtCompanyName" which can be used in the aspRequiredFieldValidator. For example using your bound field <code> <asp:TemplateField > <EditItemTemplate> <asp:TextBox ID=" ...Show All
SQL Server Installing SQL Server 2005 Integration Services
I tried removing and reinstalling SQL Server 2005 Developer Edition for three times, including "all-at-once" component installation and "component-by-component" and I just can't get Integration Services to install. Here is the setting: - I have WinXPPro SP2 - I had SQL2K and removed it - I installed SQL2k5 (as described above) I am getting the following error: Microsoft SQL Server 2005 Integration Services -- A component that you have specified in the ADD_LOCAL property is already installed. To upgrade the existing component, refer to the template.ini and set the UPGRADE property to the name of the component. This component of course is no ...Show All
SQL Server Layout of report parameters
Hi all Is there any way to change the way the report parameters are displayed Presently they are just in a tabular format. I am after displaying them as follows: --------- ---------- ------------- ------------- _____________________________________________________ ---------- ------------- The horizontal line is there to group the parameters. Is that possible Thanks heaps ...Show All
Visual C# Setting Exchange Master Account SID
Hi, Can you provide an example of setting the msExchangeMasterSID for a mailbox, in case you want to delete the NT account that owns it I already know how to set Active Directory properties, my problem is where do i get this SID, is it a GUID of another object in the domain etc Thanks Vin Hi Vin, I am just checking to see how this is going. Please drop me a quick note at your convenience to let me know the current status of this issue. If you have any concerns, please do not hesitate to let me know. Thanks, and have a great day! :) Best regards, Peter Huang ...Show All
Software Development for Windows Vista DrawThemeBackground and Glass
I have a custom window class that supports tool windows that have a slightly smaller caption than the standard tool window class (similar to Photoshop). When theming is available, it uses the DrawThemeBackground API to paint the caption area and min/max/close buttons. My app is getting glass O.K. in all other windows, yet DrawThemeBackground is displaying an opaque caption area and plain ol' buttons. I'm guessing I need to do something more. I watched Jeff's presentation ("Great looking apps...") several times. I don't know if DWM is the answer to getting glass in my custom captions, but it did prompt me to seek out more informa ...Show All
Visual C# How do I write data to an access database through a form
I have created an Access database with the fields/columns " Name ", " Entry time ", " Exit time " and " Date ". My objective is that whenever a person enters the computer (sort of a public PC), they have to type that info in the database file manually. But what I really want is a way of making them type it in a simple C# application, with four text boxes (instead of opening the mdb file manually). For that I created a simple form with 4 txt boxes and a button (and labels, etc). The person types the "name" in the first one, the "entry time" in the second one, the "exit time" in the third one and the "date" in the fourth one. When the person c ...Show All
Visual Studio Tools for Office Unable to Reference office.dll in VS 2005 project
I have created an Outlook addin in VS 2003 and wanted to port it over to VS 2005 and .net 2.0; however, I dont seem to be able to reference the office.dll in the project in vs2005. It is properly registered in the GAC and is still visible from VS2003. Even when I point directly to the dll it doesnt seem to recognize it. When I compile the code I get the following error: Error 1 The type 'Microsoft.Office.Core.CommandBars' is defined in an assembly that is not referenced. You must add a reference to assembly 'office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'. J:\EDMGProjects\CET03136\ESNP\Code2.0\EsnpOutlookAdd ...Show All
Visual Studio Team System Can't connection Project Portal
Hello~~~ I have installed TFS RTM Workgroup Edition. I'm using Windows Server 2003 R2 with Active Directory. After installation, I can open Documents, Reports at Team Explorer. And I can connection Windows SharePoint Services Site Administration using the link at Team Project Setting->Group Membership Dialog. But if I try to connect with Show Project Portal... , the browser request authentication. If I try to logon with TFSSETUP, the message is displayed "You are not authorized to view this page". I tried with administrator account too. But it's not worked. Could you help me Thank you. ...Show All
Smart Device Development Using an ActiveX control
I'm trying to use an Windows CE ActiveX control in a C# Form. The documentation for AXHost states: You typically do not use the AxHost class directly. You can use the Windows Forms ActiveX Control Importer (Aximp.exe) to generate the wrappers that extend AxHost. When I run AxHost, I get the following error: AxImp Error: Did not find a registered ActiveX control in 'c:\wf\WMPCEOCX.dll'. Is there something else I should be doing Thanks Hello, There are, unfortunately, multiple problems with this scenario. First, CF does not provide an implementation of AxHost, and does not support ActiveX hosting "out ...Show All
Visual Studio Tools for Office Can't find project templates in VS 2005
I have Visual Studio 2005 Professional installed as well as Microsoft Office Professional Edition 2003 installed. I installed VSTO from here without any difficulty, but I still don't see any project templates in Visual Studio. Am I doing something wrong Do you not have something like http://msmvps.com/photos/c_vs_deployment_and_all_geek_talk/picture84353.aspx In your new project wizard, it should be under language (Visual C# or Visual Basic) > Office ...Show All
Visual C++ split delegate in to array and using each element...
delegate void myDelegate( int i); ref class funcs{ public : static void func1( int i){Console::WriteLine( "func1 printing value: {0}" ,i);} static void func2( int i){Console::WriteLine( "func2 printing value: {0}" ,i);} static void func3( int i){Console::WriteLine( "func3 printing value: {0}" ,i);} }; myDelegate^ myDel = gcnew myDelegate(funcs::func1); myDel += gcnew myDelegate(funcs::func2); myDel += gcnew myDelegate(funcs::func3); int myTestInt = 23; This works just fine: myDel(myTestInt); But why does this not work and how do I get it to w ...Show All
Visual Basic Process.start question
When using a process.start command to start a media player and play a song at a file location, is there a way programatically to tell when the song or media has completed playing Fred This is a little bit of a tricky question because if a media player is in an executable file, chances are it's relying on an API at some level. When you have an application depending upon the API there are several ways to to tell if a song has completed. I've used the MCIsendstring inteface with the windows media player. There were several modes. I could tell the player to play the song... however the player with non-interruptible in the tha ...Show All
Smart Device Development VS2005 PDA deployment
With VS2003 the target directory could be set to anything say \SD Card\Program Name But in 2005 I have to use one of the preset options how can I change this Many thanks Slim You don't. Just set “InstallDir” macro to default folder somewhere in “Program Files” (%CE1% macro). WCELOAD will substitute it with storage card name if particular device has it and user choose to install to it. ...Show All
