Tom K's Q&A profile
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
Visual Studio Tools for Office How to add dynamic controls to Excel Add-in
Hello, I have an Excel Addin and i need to create dynamic controls on the worksheet. Can someone tell me if this is possible and/or give me a sample Dynamic controls I need to create are dropdowns, date control etc. The issue i am facing is I don't have a "Tools.Excel.Workbook/Worksheet" instance in Excel Addin app. Is this by-design or an i missing something Is there a work around This tool needs to work on Excel 2007, so Workbook solution is not an option. thanks, Shyam PS: I am using VSTO 2005 SE, with C#. Hi Shyam There's no way to add Windows Forms controls to a worksheet if you're not using the full VSTO document-level tool. This tools puts a COM ActiveX wrapper around th ...Show All
Visual Studio ReportViewer.refreshreport method missing!
Hello I'm using the VS reportviewer on my asp.net application. I've seen many examples using the reportviewer.refreshreport to force a reportviewer refresh after setting up parameters. Well.. In my environment this method is missing. Do you have any idea why I don't have this method available Thanks Ez lemaradt, bocs. < asp : Wizard ID ="Wizard1" runat ="server" DisplayCancelButton ="True" DisplaySideBar ="false" OnCancelButtonClick ="Wizard1_CancelButtonClick" OnFinishButtonClick ="Wizard1_FinishButtonClick" OnNextButtonClick ="Wizard1_NextButtonClick" OnPreviousButtonClick ="Wi ...Show All
Visual Studio Team System A contributor cannot access work items??
Hi, I am the project admin in team system and i recently added a user as a contributor in the project but for some reason he cannot access the work item folder (Red x) and even worse, he cannot do any check in because we have the work item policy activated and he cannot select a work item from the list. He gets the following error when he tries to acces the work item tab: The query has encountered an error Object reference not set to an instance of an object I have added many users and this is the first time that it happens Has anyone ever had this problem Could it be a bug I also read a post where someone said that it could be a network config issue but i haven't found any difference between his machine and mine... ...Show All
Software Development for Windows Vista Communication with the underlying transaction manager has failed.
Does anyone know how to resolve this exception. Exception: Message: Communication with the underlying transaction manager has failed. Stack Trace: System.Transactions.TransactionManagerCommunicationException: Communication with the underlying transaction manager has failed. ---> System.Runtime.InteropServi ces.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component. at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 p ropgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& tran sactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionS him& transactionShim) at System.Tran ...Show All
SQL Server parameters in reporting services
hello to everybody. can anyone give me some info (some links)on how to create parameters in RS my problem is that i pass all the values as selection but when i push the button i get all the results. so the problem must lie in the connection of the parameters with the questioning. can anyone describe the procedure than u in advance Hi : If you are using the cube to create the reports and using the usual BI studio interface - then you can create parameters by dragging them onto the "Filter" section on the MDX browser pane - and then checking the "Parameter" option. However, if you are looking to customise the list you choose therein, then you can individually write spe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotating points in 3D
I am working with some vector graphics that consists only of an ordered set of 2D points in XY space. The order of points determines the path that a line is drawn through them. I would like to be able to rotate the points in 3D so that I can flip and rotate the vector picture. After performing a rotate of some degree I want to be able to write the new set of points to an array or file or whatever. I also want to be able to display my vector image in a Window. So I have two questions: 1) Is there anything in DirectX that will help me rotate some XY points in a 3D space and then give me the resulting XY coordinates 2) What do I use to draw these points to the Window using DirectX In the past I have used normal Windows drawing me ...Show All
SQL Server Cannot shut down VS after using report designer
Routinely when I use BIDS to work on a report design, I cannot close BIDS because I get a message box that says: Microsoft Visual Studio cannot shut down because a modal dialog is active. Close the active dialog and try again. Of course, there is no visible dialog open. I actually have to terminate the process from task manager. I do not get this problem when using SSIS or SSAS. Only SSRS. Any Ideas Thanks! BobP FYI... I encountered this problem today for the first time. I was creating a new report in a project by selecting an existing report, right-clicking on it and selected COPY. I then did a CTRL-V to paste it into my project. The new report name was "Copy of...". I renamed the report and then ...Show All
.NET Development Something like the MFC CWinThread class in .NET 2.0
Hi reading the documentation of .NET 2.0 about threading programming I understant that it's possibile to create and run threads which execute a particular function. But I cannot find something like the MFC CWinThread class which is a persistent process waiting for incoming messages: it has its own message map and is events callbacks. Is there a class in .NET making the same job as CWinThread Marco The .NET equivalent is to start a new message loop in your second thread: Application.Run(new Form2()); Calling Form.ShowDialog() works too, as does MessageBox.Show(). Be careful and follow the .NET rules about accessing controls from other threads (Control.Invoke() et al). ...Show All
.NET Development Cannot establish Remoting Connection to Service on Domain Controller.
I have built a Service and have been running it on an XP computer for over a year. The service works great and I can establish a connection to it using remoting no problem. I have recently moved the service to a Windows 2003 Domain Controller. The service executes fine, but I can no longer establish a remoting connection over the TCP port. Is this due to a security policy on the DC What policy or permission do I need to modify to allow the remoting to work any thoughts Thanks I think that is the issue, the server is not allowing the connection to the port. Is there a policy which controls this ...Show All
Visual Studio Team System Product Documentation for Team Edition for Database Professionals
The product documentation is now live on MSDN for Team Edition for Database Professionals. You can find it here: http://msdn2.microsoft.com/en-us/library/aa833253(VS.80).aspx Going forward, you will see more or less monthly updates to the content. If you have suggestions or requests for additional documentation, please feel free to let us know. Continuous publishing updates for May are live as of June 6, 2007. Included are the following new topics for Service Release 1: Overview of Files and Filegroups How to: Add Files and Filegroups How to: Define Variables for Database Projects Overview of Cross-Database References How to: Create Cross-Database References How to: Define Full-text Catalogs ...Show All
Visual C# Pet Shop for C# 2005 ...
Hi folks ... I realize this might be better in the asp.net forum, but posting a thread there seems to be a bit of a mystery. Please excuse the location. I'm wondering if there is a "Pet Shop" demo for C# and asp.net that is more recent than the 3.0 version, and works w/ Visual Studio 2005. Thanks DB here you go... http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnbda/html/bdasamppet4X.asp ...Show All
Smart Device Development UDP Client mobile Client For Communicating to desktop pc
Hi, I developed the socket client application on mobile and socket server application on the desktop pc using the SOCK_STREAM both application commnunicating through active sync . But when i am creating same application for UDP using SOCK_DGRAM the application can not communicate through active sync . in client app sendto function of the winsock is succeeded (not returning any error ) but data not receive at the server end . Whats reasons is active sync not supporting the UDP socket communication how this can achieve Give me any details to make this possible . Thanks in advance This is "by design" - ActiveSync over serial connections like emulator ...Show All
Visual Studio Subtract the value of 2 textboxs
Dear friends, I need to subtract the content of 2 textbox inside a ReportViewer and insert the value in another one. How can I do it Thanks Hi Pedro. Could you please tell us about the solution you found to this problem Thanks for your help Alberto ...Show All
.NET Development SMTPMAIL error (bare LF)
Hi I got this error went using SMTPMAIL, "System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x800ccc6a. The server response was 451 See http://pobox.com/~djb/docs/smtplf.html." Can someone on how to end the email Thanks in advance. Hi, that mail server seems to act more strictly according to the specified RFC while others let you get away with almost correct mails. Try this: msg.Body = "Test Message\r\n"; o ...Show All
