LeeC22's Q&A profile
Visual Studio Tools for Office the differents between Interop and Tools?
Hi. wats the different between Microsoft.Office.Interop.word and Microsoft.Office.Tools.word which one is better Thanks Interop is the object model provided by the (Primary) Interop Assembly - the "translator" between an Office application's COM object model and .NET Framework managed code. What this provides can be used in a Shared Add-in, a Windows Form, a Console Application... Anything. Tools.Word are constructs provided by the VSTO tool that extend what Interop provides. It makes it easier to work with some aspects of the object model; for example: - you can write Bookmark.Text = "abc" and the bookmark will be around the text, instead of using Bookmark.Range.Text and needing to recrea ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Quick question regarding accessibility of 360 hardware with XNA.
Hello everybody, First of all, let me say that I think that the concept of XNA rocks, and I'm very happy that Microsoft actually released a cheap "SDK" for the 360. Secondly, has there been a list compiled of things that are off-limits to developers All I know of that is off-limits is the networking. From what I've read, I assume that the DVD drive is out and so are any system/other game files on the 360. But I can't believe that these are the only things off-limits... I mean, can we really access everything on the 360's GPU and CPU (note that I'm not talking about every register because it isn't assembly language) I think a complete list of everything that is inaccessible would really help those on the "fringe" o ...Show All
SQL Server cannot rename instance of analysis server.missing reg key
when i use the rename instance tool i get this error saying it cannot find the regestry key hkey_local_Machine\wow6432Node\Microsoft\Microsoft Sql Server\90 When i look for this key, it doesnt exist. My installation went perfectly. what is going wrong but i am using the 32 bit version of sql server 2005, and its on a 32 bit pc. theres no way i can install the 64 bit version as my machine wont even run the setup file ...Show All
.NET Development File watcher(When any modification in file)
Hi, I am using file watcher concept in .net ,When any event occur it will call. But I want ,other than file watcher concept like XML based watcher,How can I watch the file through XML.Please help me....(When any modification occur in client side folder, It will uploaded to the Server.This is my work) Thanks, justin(Navya) Hi, Thanks for ur reply.I think the file watcher works 80% only,some times it cannot work thats what i am trying to another concept.Reply me please ,Is any other possible way to watch the particular File.Please Rely me. Thanks . justin(Navya) ...Show All
Visual Studio Team System Visual Studio hangs when doing tree compare
When trying to perform a tree compare within Source Control Explorer, Visual Studio hangs indefinitely. The folder I am trying to compare can even hold only one small text file and I can reproduce this. When alt+tabbing through windows to make Visual Studio active, the window description is described as "Compare", instead of something like "Start Page - Microsoft Visual Studio". Additional info: In source control explorer, I right click on a folder, select Compare, and you expect to see the Compare window to select options. Basically the modal compare window is just not visible... BUT if I hit enter on the keyboard, it goes through the compare operation and the Tree Difference tab is di ...Show All
Windows Forms Bound ComboBox or DataGridView unselected Items not updating
The following code does not update all the items in the ComboBox or DataGridView. Only the currently selected item is updated. The DataGridView items will update as they are selected. The unselected ComboBox items however do not update. Do I need to capture an event and use ResetItem It seems like the databinding would take care or this Imports System.ComponentModel Public Class Form1 ' This is the BindingSource used to bind the list to the ' DataGridView control. Private WithEvents customersBindingSource As New BindingSource() Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim iDemoCustomer0 As DemoCustomer Dim ...Show All
Visual Studio 2008 (Pre-release) Encryption and Signature in message mode.
Hi How do I set Encryption and Signature when using message mode I saw in the trace viewer that the default behavior for any binding was not to encrypt anything - Is that correct Can I encrypt / Sign only part on the message manu > How do I set Encryption and Signature when using message mode Something like this <security authenticationMode="UserNameForCertificate" requireSecurityContextCancellation="false" messageProtectionOrder="SignBeforeEncryptAndEncryptSignature" requireDerivedKeys="true" requireSignatureConfirmation="false"> The messageProtectionOrder can be set to SignBeforeEncrypt or EncryptBeforeSign as well ...Show All
Windows Forms When/Where should I instantiate the control when placing on the designer
I'd like to pre-populate some properties of a control when drag'ndrop from the toolbox onto the custom designer. When should I set these properties During the onselection, drag event, or somewhere else Thanks, Alan I'll try as you suggested and post my experience. Alan Martin Thorsen - MSFT wrote: This is going to be really tricky. The problem is that the TableLayoutPanelDesigner hooks OnControlAdded on the TableLayoutPanel. In this method, we set ColumnSpan/RowSpan to 1. ComponentAdded is called before OnControlAdded, so even if there was a way to do it in ComponentAdded, it would get overriden later. I am not sure I understand your scenario, but you could do something really hacky: ...Show All
.NET Development Programmatic detection of Web site and virtual directory
Hello, I have a utility component that is used in different applications, both Web and non-Web. To perform certain actions, components needs to detect its execution context - wether it runs as Web application or stand-alone process, and if it's the Web, then find out the site and virtual directory names. Is there inexpensive (in terms of performance) way to achieve this I know Web-specific properties can be obtained using specialized Web requests, but the component is very lightweight, I don't want to reference System.Web from it. And the environment may be non-Web. Does CLR provide some helper methods for this Thanks Vagif Ah ok, but then I think your best bet is to check if the ASP.NET intrinsic objects are created (not ...Show All
Visual Studio Tools for Office Bugs on feedback
This question is addressed to MSF people: I have posted some bugs related to VSTO on the feedback site of visual studio but till now no one acted on them. How long usualy it takes to respond to a bug Also if you may have a look at them and post any workarrounds or solutions. Posted bugs: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=237414 https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=237403 Thanks Thanks Geoff for your explanation, I've just received two notifications that Microsoft have received the bugs and working on them :-) I understand your bugs resolution process and appreciate your efforts getting them resolved no matter what. The o ...Show All
Visual Studio Tools for Office Only have Office 2007 installed, can't install VSTO 2005 (1st ed.) templates
Help! How can I get the templates from VSTO 1st ed. onto my machine running Office 2007 and VSTO 2d ed. VSTO 1 won't let me install it on my machine that has only Office 2007 on it. (I put Office 2007 on a testing machine because I still have to write and support tools for Office 2003, and did not want the versions of Office to conflict.) Tech info: I'm running Win XP SP2 and Visual Studio 2005 Pro, SP1. N.C. Gordon It's not clear what you mean by "VSTO 1st ed." and "VSTO 2d ed." Since you have VS 2005, I'm assuming you mean VSTO 2005 (Word & Excel document-level customizations plus Outlook Add-ins, all Office 2003) in the first case and VSTO 2005 SE (Add-ins for six Office app ...Show All
Visual C++ authentication question
hi all i have a gui....but i want that person will be able to use the gui only if his user name and password matches with which is stored in the system.....i have 2 edit box for username and password in the gui......so once the person presses authenticate button..........it shud compare it with wat is stored in system.......n if it matches then only he will be able to use other functionality.....so my question is how do i retrieve wat is stored in the system n compare it with wat user enters...... thanks kunal As cgraus points out, this is probably not the best way to validate users, and not even what you really want or need. If you still feel the urge to do so, however, the LogonUser method s ...Show All
Visual C++ mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
I create a project by 'ATL Project' wizard. Then I set 'Dynamic-link library(DLL)', 'Allow merging of proxy/stub code' and 'Support MFC'. I don't add any code in it. I can build it first time. But after close it and reload it, I get a link error: mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) My VS is: Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Professional Microsoft Visual Basic 2005 77626-009-0000007-41984 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 77626-009-0000007-41984 Microsoft Visual C# 2005 Microsoft Visual C++ 2005 77626-009-0000007-41984 Microsoft Visual C ...Show All
Visual C++ Running External Programs
I've created an application that runs an external program using the system () command. It works very well, except every time it runs the command prompt window is opened before running the external app. This is something that I do not want to appear. I've looked at the _exec and _spawn functions, but haven't had any luck at getting them to work properly. Does anyone know of a way to run an external program without the command prompt window appearing Thanks. I didn't have any success getting ShellExecute to work. I went to voidnish.com and went through your tutorial, "A newbie's elementary guide to spawning processes". I couldn't get even the simplest examples to work. Do any changes have to be made for Visual 2005, or do I ne ...Show All
SQL Server Linking Access to SQL Server
Hi, I have an existing Access DB with many Tables, Forms, Queries and Reports. I need to put a SQL Server Back end on this database. Do I need to code a mirror images of these objects or is there some way to export these into SQL Server Also, where do I deal with assigning usernames and passwords Access or SQL Server. I need to have different views for different users based upon their rights (user, admin) Thanks, Mark There is a full upsizing process that will handle all this for you. Read more here: http://www.microsoft.com/sql/solutions/migration/access/default.mspx ...Show All
