Link9228's Q&A profile
Visual Studio Tools for Office Parse Control on Action Pane by VSTO
Hi all, I have a User Control added to the Action Panel of a Excel doc, and I also have a DataGridView on this user control data binded with a DataSet. Now, I want to retrieve the DataSet of that DGV control in ThisWorkbook.cs file, how can I do so I created a reference to the user control and find the DGV control successfully, but the myDgv.DataSource or myDgv.DataMember properties are all null and empty, although myDgv is not empty. Control myForm = (Control)Globals.ThisWorkbook.ActionsPane.Controls[myForm]; DataGridView myDgv = (DataGridView)myForm.Controls[myDgv]; CurrenyManager cm = (CurrencyManager)BindingContext[myDgv.DataSource, myDgv.DataMember] ) Thanks! This should work as long as ...Show All
Visual Studio FolderAdd
Hi, to add a recipe to a menu <CommandBar Name="ProjectAdd" /> can be specified. There is SolutionAdd and ProjectAdd , however FolderAdd does not exist. How can I add an entry to the add menu of a project folder Regards, Alexander You need to use < CommandBar Name = " Project Add " /> this also works for project folders. HTH, -Victor. ...Show All
Software Development for Windows Vista Workflow Hosting:WCF NT-Service or WEBServices???
Hi, I'm currently trying to find out which hosting environment would be better in case we need to host workflows Though I have found out that both the above options are very much capable of hosting Workflows I would still like to dig a little deeper and know which one could be more beneficial in case we have web farms,third party messaging and reporting requirements etc.This is because I developed only small prototypes and now I'm on my way to develop a large web application using ASP.NET 2.0.I was making sure that I'm well informed befor I take a step further. Thanks, CRP Here is a good blog post on the various place you can host your workflow runtime and some of the advantages / disadva ...Show All
SQL Server Access Permissions on server scoped objects for login
We are having problems with the response times from UPS WorldShip after switching from SQL Server 2000 to 2005. I think that the problem can be fixed from the database end by setting the permissions correctly for the user/role/schema that is being used by WorldShip to connect to the server but, I'm not sure how to do it. The Setup Client UPS WorldShip 8.0 running on XP Pro SP2 Connecting via Sql Native Client via SQL Server Login Connection is over a T1 via VPN Server - SQL Server Standard Edition on Windows Server 2003 2x3ghz Xeon processors w/ 4gb ram The user that is being used to connect runs under it's own schema and role and only needs access to two tables in a specific database on the server. What UPS WorldShip see ...Show All
.NET Development Rong in calculation !!
Hi I got a funy problem I could not solve look at following code and run : Dim S As Single = 2345.235 Dim D As Double = 3456.456 MsgBox(2345.235 * 3456.456) MsgBox(CType(S, Double) * D) Dim Dt As New DataTable Dt.Columns.Add("s", GetType(Single)) Dt.Columns.Add("d", GetType(Decimal)) Dt.Columns.Add("r", GetType(Decimal), "s * d") Dim R As DataRow = Dt.NewRow R!s = 2345.235 R!d = 3456 Dt.Rows.Add(R) MsgBox(2345.235 * 3456) MsgBox(R!r) after running u will find out : 8106201.5871600006 8106201.9584589843 8105132.16 8105132D as u can see non of each groups are same!!!! so , I ...Show All
.NET Development using x64 COM Dll in VB.NET
We are in the process of porting our app to x64. We have a COM dll that builds and registers a varietly of interfaces. We also have a VB app that implements these interfaces. When we build a 64 bit version of our com DLL and register the output, our VB app can no longer find the reference to these interfeaces. If I try to re-add the reference to the COM dll through project properties I cannot find our DLL listed in the COM tab. I even tried targething the VB app directly to x64 versus anycpu. Is there a trick I am missing here How do I add this as a reference Presuming your VB app is built for 64-bit. You should be able to see the reference in the COM tab if you are registering under the right hive. Coul ...Show All
.NET Development Can not publish ASP.NET pages in IIS.
For some reson I cant deploy my webpages in IIS. I have been using VS.NET 2005 to develop some small assignments and using the internal webserver in 2005 to view them. But now I wanted to use some of my webservices remotely and I put them in my wwwroot. The errors I get is: Either when going to the webservice with my browser: -------------------------------------------------------------------------- XML-tolkningsfel: ej valformat (XML-interpretationfault: not well formed) Adress: http://localhost/affarslabben/ (Address: *) Radnummer 1, Kolumn 2: (Row 1, Column 1) <%@ page language="C#" autoeventwireup="true" inherits="_Default, App_Web_gkpoqx7k" %> -^ ---------------------------------------------------- ...Show All
Visual Basic usign windows service to copy file through network(LAN)
How could i do to copy a file to a shared folder ( that shared folder is on server ) by using Windows service when I ran code : File.Copy("c:\\tempFile.txt","\\\\192.168.0.1\\SharedFile\\tempFile.txt",True) in windows application, it worked well. But when i used windows service, that code didn't work. It seems that shared folder is not found when you use path:"\\\\192.168.0.1\\SharedFile\\tempFile.txt". It seems that Windows Service will run under another desktop which is different from the logoned interactive desktop. So how could i access shared folder by using windows service Please give me some advice. Any ideas will be welcomed ok, I thought you were using the .NET Fil ...Show All
Visual C++ What is the ALT/MFC Trace Tool?
What is the ALT/MFC Trace Tool Is there any documentation Thanks JEK VS 2005 <Tools> <ALT/MFC Trace Tool> What's there is pretty sketchy. I played around with it after my eailer post. I could use some better documentation.. JEK ...Show All
Visual Studio 2008 (Pre-release) XAML to C# Code Covertor
Is there a way to convert XAML code to a C# code that can then be linked into a project or solution There are several samples in the SDK like FontDialog that work fine by themselves but adding them to a solution that has WPF windows and Windows Forms, the XAML will not compile. It will not give a reason except for error messages stating that methods like InitializeComponent could not be found. This is becoming a showstopper as one can not re-use code. It would be great that all samples have a programmatically created UI version also till such time tools catch up with XAML. Thanks if its just xaml then the xaml can be parsed to get the c# object. Do you mean create the object itself(with xamlreader.Load()),&nbs ...Show All
.NET Development Get Folder contents ??
hi all.... i want to get the contents of folder (contents = files) and but their names in a rich text box is there any method or any way to do that :S thanx.... note : if this question not realy clear i wanna explain more :D Have a look at the Directory class and it's GetFiles method. ...Show All
Visual C# Open a new web page without saving
I use WebBrowser 2.0 control to edit an html page.When I open a new page, one dialog shows and ask me to save or cancel saving the old page. How can I open a new page immediately without saving And how can I customize this dialog ( example : change message in this dialog, change the text of button ...). ...Show All
Architecture Transaction across Applications
HI, We have a Web application that consists of a Sharepoint web site with ASP.NET pages as web parts. In the admin module of the application, we have a provision to add a user. On adding a user through the application, the user is added in 3 places, namely in Active Directory (AD), SQL Server database and in Sharepoint database. All this is a part of ASP.NET code with no transaction happening through out the user creation. Now is there any way to impose a transaction in this process That is, until all three AD, Sharepoint and SQL Server databases are up and running and the creation of user happens with no errors, the new user must not be committed in all three databases. This is very critical as it causes inconsistency if the u ...Show All
Smart Device Development How to open PocktPC Calculator application..
How can I open the Calculator application in the Windows Mobile at a click of a button Thanks, Vijay Why can't you use the "Process" class in the System.Diagnostics namespace i.e. Process.Start See the help in Visual Studio for examples.... ...Show All
Visual Studio Team System Presharp
Hi, want to know where I can download Presharp. I think it's part of another tool. I don't know which one. Any help would be appreciated. ...Show All
