mcnamaragio's Q&A profile
Visual Studio Team System Adding FxCopCmd.exe to Post-build event command line options
Hi, I have followed the steps for VS 2005 integration at this page: http://www.gotdotnet.com/team/fxcop/Docs/FxCopCmd/FxCopCmd_VS.html and everything has worked correctly. I wanted to push the integration a step further. So I opened one of my project's properties and under Build Events / Post-build event command line I entered this information: "C:\Program Files\Microsoft FxCop 1.35\FxCopCmd.exe" /p:"D:\Astrum Development\XStrata\Vega Nickel\AstrumFxCop.FxCop" /c When I build my project, after my project has been built, it starts FxCop, performs the analysis it tries to write the error message, but instead the output windows shows an error message saying : Cannot load PDB file. The results from FxCop aren't displayed, and oftentimes thi ...Show All
Visual Basic how can I use the sender object to determine which of the panels fired the event?
given the following; Private Sub Panel_MouseDown( ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PanelDrawingLeftTop.MouseDown, PanelDrawingRightTop.MouseDown, PanelDrawingLeftBottom.MouseDown, PanelDrawingRightBottom.MouseDown how can I use the sender object to determine which of the panels fired the event Isn't it a cast Thank you, -Greg and also Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load AddHandler Panel1.MouseDown, AddressOf OnPanelMouseDown AddHandler Panel2.MouseDown, AddressOf OnPanelMouseDown End Sub Private Sub O ...Show All
.NET Development retreiving database name
I have a program that can connect to different databases but there is always one running on the system that the program is being executed on I would like to know if there is a way for it to automatically determine what the computer name and database name are. For example one system uses welldaq/dbinfo to connect to the database where as another uses welldaq/database and yet another uses lab/dbinfo I would like to be able to put my program on any one of these systems and have it automatically detect the database. How would I go about doing this ...Show All
Visual Studio Express Editions MULTIPLE INSTALLATIONS
Sorry for this probably stupid question but I've installed c# on my computer and i want to install it on a computer that dosen't have the internet. can i just copy the files on to the other computer and run setup.exe or do i have to download the *.img file or is there another way You will have to download the image file (.img or .iso) and burn a cd to use during installation. Since the other computer is not connected to the internet, the registration-free cd install is the only way to go. Let me know if you have any other questions. ...Show All
.NET Development ClickOnce + Windows StartUp Registry
Hi, i have a click-once application that should run as the user logs in the machine. No problem. The application just adds an entry at the windows registry. But every time that my clickonce application its updated the registry entry is no longer valid because the application version has already changed. Any work-arounds How can I set up my click-once app to starts automatically when the users log-in the machine tks public static class ClickOnceHelper { public static void AddShortcutToStartupGroup( string publisherName, string productName) { if ( ApplicationDeployment .IsNetworkDeployed && ApplicationDeployment .CurrentDeployment.IsFirstRun) ...Show All
Visual C++ Using Visual Styles in VC++ 6
Can anybody give me a sample code for using visual styles in VC++ 6. I wanted to display texts using XP's font and style. Urgent. Hello Re: Using Visual Styles in VC++ 6 Such questions (on VC++ 6.0) are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
SQL Server slq reporting 2005
is there any sampel web site where i can learn how to create a reports in sql server 2005 i'm interested in: 1) how to pass parameters to report thanks. i have .aspx page and in that page i have reportviewer control and i able to connect to report server i need a good way to pass the parameters, what i mean by that, i have 3 parameters (age, zip, phone) that will pass this info to report.rdl and based on my param my report will execute. so my question is how do i pass this paramters from .codebehind (c#) thanks ...Show All
Visual Studio 2008 (Pre-release) Referencing another element in XAML
How do you reference another element in XAML Say I had this: <Button x:Name="button" /> <MyControl OtherElement="button" /> I'd like the OtherElement property of MyControl to explicitly reference the "button" instance. As I have it above, it's just passing in a string. Is there a Markup Extension for getting the reference to the named element Basically say in my example the OtherElement property was declared as a get/set property returning a FrameworkElement. In that case I want to be able to set a reference to a FrameworkElement to that property, not the name of an element. So will the following return the reference to the Button control named "button" and set that refe ...Show All
Visual Studio Express Editions Locking Mouse
Hi ive been looking for days to find the code that will lock "Block" the mouse move event from being processed... So far i've tried the code: actHook= new UserActivityHook (); actHook.OnMouseActivity+= new MouseEventHandler (MouseMoved); public void MouseMoved( object sender, MouseEventArgs e) { Cursor .Position = Ace; } where Ace is the point that the mouse was at last. This doesn't work unfortunatly as i can still move the mouse around... That event is hooked with a class called UserActivityHook (declared as actHook) (not my class) UserActivityHook public event MouseEventHandler OnMouseActivity; I'm thinking that Cursor .Position is only repainting the cursor and while the mouse ...Show All
Software Development for Windows Vista NetUserEnum call fails on vista when going across domains
I have a parent and a child domain. The vista machine is in the parent domain, when i try to get the user accounts on the child domain rfom the vista machine its gives me a access denied (5) even though i am logged in as a enterprise admin. The same code that i have outlined below works on XP\2000 etc. I use NetWkstaGetInfo to get information of the users workstation. The (WKSTA_INFO_100) structure member (wki100_langroup) has the name of the domain (Parent domain in this case as the vista machine is on the parent domain) then i use the NetGetAnyDCName to get any domain controller on the parent domain. I run the NetGetAnyDCName again with the domain controller from the parent as the first argument to get a domain controller from the chi ...Show All
Visual Studio Express Editions MessageBox Centering
Is there a way in VisualBasic 2005 to bring up a message box centered related to my application, rather than centered relative to the entire screen I'm using 1280 x 1024 screen and my application (with a fixed size) doesn't cover the entire screen. Most of the times, my application window is closer to one of the edges of the screen and its message boxes pop up away from my application, in the middle of the screen. Thanks in advance for any tips. You could just use a new forum put ontop of your first one and make it cisible when they click a button, then not visible or hide when they click and "Ok" button. Hope this helps - ItsMe!!! ...Show All
Visual Studio 2008 (Pre-release) How to add a row to a table in a RichTextBox?
I would like to add a command to my application to add a row to a table in a RichTextBox. Using reflector I can see that there is already code inside WPF to do this: There is EditingCommands.InsertTable, EditingCommands.InsertRows etc., but they are all internal. RichTextBox in its constructor even calls TextEditor.RegisterCommandHandlers, which registers command handlers for all these internal commands. And these command handlers are even implemented in the TextRange.EditTables class. Alas, all of this is only internal. I used the analyzer of reflector to see if there is any public way of accessing this functionality, but there doesn't seem to be. Has anybody successfully implemented table commands in a WPF RichTextBox ...Show All
SQL Server How to solve conflicting component ID's
Hello, I have 3 packages in one solution: package A is the main package and calls packages B and C using 2 "Execute Package Task"s. package B is a package constructed from scratch. package C is a package started by file copying the package B .dtsx file in Windows Explorer and then adding/removing/renaming content. If I run packages B and C separately they work fine. If I run package A, package B is started and finishes correctly. Then package C is started and stops somewhere in the middle. I guess this is because some of the component id's within package C are identical to those in package B ( I checked in the dtsx packages using Notepad. ) and somehow SSIS remembers the precedence constraints of package B ...Show All
Windows Forms new windows update offer cannot install
In the windows update page we are offered the new update program, great, however after accepting install the active x that is required to download in order to install does not appear. I do not get an error message, just a page that does nothing. I have checked all I know how to do, is there a problem with this new offer unfortunately this is the wrong place to post your question, these are development forums and not technical support. the best place to ask would be over at the appropriate newsgroups: www.microsoft.com/communities Thanks! ...Show All
.NET Development Interop troubles with excel
I asked this in the VB forum, but think it is more suited here. My application (VS2005) uses the interop assembly 11.0 to communicate with excel. 11.0 is the version for excel 2003. When I put the application on a client machine, it's fine provided the user has excel 2003 and either the PIAs are installed, or I distribute the dlls with my application. However, I've just tried this on a machine with O2007 and it's not working. I have installed the O2007PIAs on the client machine. Any ideas I assumed the O2007PIAs would be compatable with O2003... Conversion to late binding is going well, however I have one issue.. Referencing an excel cell via the PIAs was done numerically in the format (row, c ...Show All
