mon's Q&A profile
Visual Studio Tools for Office VSTO 2005 Outlook AddIn - SenderEmailAddress property returns null
I am using the following code to retrieve the sender's email address and I keep getting null for the SenderEmailAddress property value. I was under the assumption that this property works in Outlook 2003. private void ThisApplication_ItemSend(object Item, ref bool Cancel) { Outlook.MailItem mailItem = (Outlook.MailItem)Item; string senderEmailAddress = mailItem.SenderEmailAddress;   ...Show All
SQL Server Incremental Extraction
Does anyone know whether you can dynamically configure the SQL used for the source (in an OLE DB Source) in a data flow. I used to used some ActiveX in DTS so that I could set a different value in the Where condition of the SQL statement for each datapump. Using this code, I could use a different date for each datapump source based on data I have stored in my destination database. I know that I could use SSIS variables but this would mean that I would have one variable per "datapump". I would prefer to use a single variable to store a recordset and then, using the content of the recordset, selectively update ...Show All
Visual Studio VS .NET 2003 Pro Installation Problems
Hi, When I try to install Visual Studio .NET 2003 Professional, it just sits doing there doing nothing while displaying "Generating setup script" -- for hours. When I cancel, it asks me if I want to rollback, and then again, does nothing -- I can't even close the window. I have Windows XP Pro + SP2. Can somebody please help! Regards, Siddharth Do you have any logs generrated in your %temp% folder They may help indicate why your machine is hanging. ...Show All
Visual Studio 2008 (Pre-release) Simulate Keyboard Message
Hi, I have virtual keyboard and I was wondering how can I simulate KeyDown event for the textbox. Should I use RaiseEvent In my MFC virtual keyboard version I was sending message WM_CHAR to the edit box in my button click handler. What do I have in WPF instead Appreciate any help. While I don't have a direct answer, my suggestion would be to have a look at the Automation namespace . It allows you to automate (go figure) all kinds of input. HTH, Drew ...Show All
Windows Forms Global application error handler
Is there an easy way to define a global error handler for my windows app Something to catch the exceptions that fall through any other specific try / catches I may have I've tried the following 2 methods and errors still seem to escape my try / catch block: 1. Attach a handler to the ThreadException event of the application. 2. Put a  ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Particle Effect for DX 9.0c
Hi there. I try to make a Particel Effect for DX 9.0c but it don’t want to work!! Can anyone help me Or have anybody a source code for that!!! It would help me very much. Thank you very much !!!!! You are going to have to give us a little bit more information than it's not working. What doesn't work Have you had a look at some tutorials online that focus on particle effects What I suggest you do is list what you need help with specifically such as, and overview of what you are trying to do, also include some information on what you have tried. Particle effects could be made using screen space q ...Show All
Software Development for Windows Vista Final state for the satatMachine workflow
Hi, CompletedStateName is the property of the stateMachine workflow, it is for the final state. Is it ok for a stateMachine WF that doesn't have the final state It will be runing forever and will never be completed. My group leader suggests that I should use stateMachine WF that doesn't have the final state for our project. Is there any problems to do that Thanks Brain You should have a CompletedState for a State Machine workflow. It might help if I understand a bit more about what you are trying to accomplish. ...Show All
Windows Forms Updating a text box while loop is running with count
OK. This is another thing that is bugging me.... I have a loop that goes through and reads a file 1 line at a time. Everything works as expected. However, I want to update the screen with the current record number. It will be displayed in a simple text box which is not enabled for writing, so its used only to display messages. I have&nb ...Show All
SQL Server Auto List Members
In SSMS I have "Auto List Members" and "Parameter Information" turned on for the text editor/all lanuguages but it does not work in the text editor when connected to a SQL Server 2000 DB. Any suggestion would be appreciates. SSMS does not support intellisense for the SQL Editor/TSQL. (as of this time) :) ...Show All
Visual C++ Problem with decimals
I'm a student and am taking a C++ class. I am just learning so when another student came to me with question I didn't know how to answer it and neither did the teacher. Basically the student tried to get the modulus with out using the mod funtion. Here's the code: int w = 0; int n = 23; int d = 5; double x = 0; cout.setf(ios::scientific); w = n/d; x = n/ static_cast < double >(d)-w; n=x*d; when run 'n' comes out to be 2 not 3 like it should be. Everything else worked 'w' is 4 and 'x' is .6. I was just wondering why this would happen. If anyone could help that would be great. ...Show All
Visual Studio Team System Agent/Controller Name value pairs
I'm trying to find out a little more about how these are used, but I'm not having much luck looking through the documentation. So far the only information I've seen about these is this: Attributes Set of name/value pairs that can be used in agent selection. Default attributes: Name, OS. Sets of similar attributes can be assigned to tests. These attributes are used to determine which test can be run on a specific agent. For example, a test might require a particular OS. Is there any more detailed information about exactly how these attributes are used and/or how to associate specific attributes with specific ...Show All
Visual Studio Express Editions Cannot UNINSTALL Visual Studio 2005 Express Editions
I noticed that several people have had this problem when attempting to install a VS2005 Express package, but I'm having it when attempting to uninstall. I also receive the same error message: "suite integration toolkit executable has encountered a problem..." My installation of .NET 2.0 is up to date, as well as that of SP2 and MSSQL (I'm only mentioning this because while Googling for a solution I saw that some people suggested that upgrading these first would help). Is there a solution for this Or, is there a way to safely remove the installations manually Specifically, I need to uninstall the Express editions of Visual Web Devel ...Show All
Windows Forms Getting the children in right z-order from the MDI-container
Hello, I have to store the current opened forms of an application (MDI) to view these in correctly the same way on reopening the application the next time. What I have made was to iterate over the forms by using the property 'MDIChildren' of the class 'System.Windows.Forms.MdiClient'. It's working fine with one restriction. It's not the right z-order, the returned forms are sorted by the order in which the children were added to the form. My question is now, can I get the forms sorted by the current z-order or can I get the z value (or something equivalent value) from the form itself. Maybe anyone has a solution or an idea for a ...Show All
Visual C++ Event HAndler for ATL Com Control using VC++ 8.0
Hi, I was going through the ATL Samples found in MSDN online. I tried developing the sample Polygon ATL Control but I got stuck in the 5th step where we need to add event to the ATL COM Control by implementing IConnectionPoint Interface. But to my surprise I could not get Message Icon in the Properties window for that COM Control Class event though I had selected the required Connection Points and implement the two functions which would get fired for the Click event. So I request anybody could help me in providing walk through to get the Message icon in the Visual Studio IDE 2005 and finally add an event to the ...Show All
Smart Device Development VB 2005 Smart device HRESULT E_FAIL COM failure
Attempts to create a new smart device app with VB 2005 compiled for PC 2003 or Win CE 5.0 result in an immediate error message of: "HRESULT E_FAIL has been returned from a call to a COM component." No other info about the error A console VB app ( not smart device) can be created and compiles correctly. This is a very basic scenario and should be working fine. Can you please provide the following information so that we can narrow down further to see what is happening with your install of VS 1) Build of VS you are using (Beta2 or RC0 or RC1) 2) Does it happen when you try to create smart device app for VC# 2005 3) Does it happen fo ...Show All
