chen_k's Q&A profile
Software Development for Windows Vista Windows Worflow Designer
Where can I get documentation and examples of using the cancelActivity (located on the second tab of the workflow designer - on the bottom). The first tab is the workflow, second tab is the cancelActivity (for which I cannot find examples and detailed info), the third tab contains the FaultHandler activity. I would like to learn how the cancelActivity is used and whether or not it releases all resources prior to cancelling a workflow during execution process. Please email me at john_portnov@adp.com with any detailed info and/or examples of using the cancelActivity in the Windows Workflow designed (Sequential Workflow with Console project ...Show All
.NET Development Web service and Active Directory??
Dear all: I have a web site in a AD domain, and the authentication mode is "Windows". Then, I need to call the web service from a windows form application after users login into domain. How to get correct credentials for calling the web service automatically Thanks a lot. If you are accessing a webservice (secured with windows authentication) from a windows forms app you can set the Credentials property of the VS.Net generated webservice proxy class Dim proxyclass as new <yourWSproxyclass> proxyclass.Credentials = System.Net.CredentialCache.DefaultCredentials ...Show All
Visual Studio 2008 (Pre-release) Problem when the service is hosted in windows application
Hi, I've hosted my service in a windows application and started the hose on form load. My client is also a windows application which sends data as xml. But I get TimeoutException when I call the operation. It couldnt contact the server. I appreciate your help in giving some pointers. Thank you, Praisy. Can you please add a code sample that illustrates your problem Thanks, Guy Burstein http://blogs.microsoft.co.il/blogs/bursteg ...Show All
Visual Studio Tools for Office A very technical (I think) VSTO startup question
What is different on a system before VSTO customized document is loaded and after Let me explain. We've got a Word customization that takes 58 seconds to load the first time after a reboot, but only 18 seconds thereafter. Our customization is installed in the GAC, is NGEN'd, and rather large. We have a shimmed managed Word addin that starts .NET CLR with the STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN flag so that multiple documents don't require all of our assemblies for each document. We've also found through experimentation that loading a differently customized document (i.e. a new Word VSTO project) before loading our customized doc ...Show All
SQL Server SetDefaultInitFields "TextBody" for Stored Procedure
Following the suggestion in Michael Wories column, have found really nice performance optimization using SetDefaultInitFields (in my case, for the datatype parameter of columns). Tried to use SetDefaultInitFields for the "TextBody" parameter of Stored Procedures, and I get an error saying that "TextBody" is not a valid property for a StoredProcedure. Any thoughts on what might be the issue Thanks! Andy B I tried this and it works fine. Server server = new Server (); server.SetDefaultInitFields( typeof ( StoredProcedure ), "TextBody" ); I would t ...Show All
Visual Studio Express Editions VC++ new (new slot in vtable) - Is the help wrong or is it a bug?
In the help under - New C++ Language Features - and - new (new slot in table) - there is an example. But if I try to run this it produces compiler warnings and does not give the output that it should from the example. Which is wrong The example is :- // newslot.cpp // compile with: /clr ref class C { public: virtual void f() { System::Console::WriteLine("C::f() called"); } virtual void g() { System::Console::WriteLine("C::g() called"); } }; ref class D : public C { public: virtual void f() ne ...Show All
SQL Server Mdx Query doubt about years?
Hi, The below query which has hardcoded year ending values works fine. What i want to do is if I pass on last 3 years or last 4 years etc as parameter along with current year it should bring back the results accordingly for the required years. with member [YearEnding].[CurrYear] as '[YearEnding].[All YearEnding].[2005]' select non empty {[Product].Children, Product.[All Product]} on columns, non empty Filter({ {[Measures].[stock Quantity Ola] } * { [YearEnding].Children} }, (([YearEnding] = [YearEnding].[2005]) or ([YearEnding] = [YearEnding].[2004]) or ([YearEnding] = [YearEnding].[2003])) ) on rows from ...Show All
Visual C# Auto-incremented columns
I have a database table with an auto-increment column ID that is also set as my primary key. How would I go about adding a new row to my table I tried using the databaseTableAdapter.Tables["table_name"].Rows.Add() but when I don't give a specified value for my ID field it throws an error. Are there any ways that I can add a new row programatically while leaving that field alone to auto-increment Thank you -Bryan hi, which type of databases you use , what is the error message that you get , would you post your code best regards ...Show All
Visual Studio Team System Team Build - Security
Hi, we would like to implement multiple team-build types, but only certain users must be allowed to execute certain team-builds. I have not found a way to ristrict which users may execute a specific team-build. Will this be an RTM feature - or must we use alternatives for all restricted Team-Build functionalities The TeamBuild report shows who the build was was requested by. This is in the Requested By row in the Summary section. This name is not available to the build process. ...Show All
Visual C# Removing elements during iteration through a Dictionary
I'm trying to iterate through a Dictionary and remove some of the elements according to some criterion. I get an InvalidOperationException that says: "Collection was modified; enumeration operation may not execute." IDictionary<IPAddress, DateTime> peers = new Dictionary<IPAddress, DateTime>(); foreach (KeyValuePair<IPAddress, DateTime> peer in peers) { if (peer.Value < DateTime.Now) { peers.Remove(peer.Key); } ...Show All
SQL Server Textbox goes to new page and doesn't split across pages if height is too big
I have a text box that contains a memo field. It's located in the middle of the report page. If the data is too big to fit on the bottom half of the report, then it goes to the next page. This leaves a blank bottom half on the first / initial page. How can I get the textbox to split across pages and not go to a new page automatically Thanks! Similar or same issue... In "print layout" mode... I have a text box (in a single-column table with header, no footer) that contains a large amount of text that is too big to fit on any page (not just the first page). Pre-SP2, the repor ...Show All
Windows Forms Binding of dynamically created controls
hi, i have a form which creates in the loop i am creating them nicely here is my code for that Sub createcontrols() Dim i As Integer = 1 Dim j As Integer = 1 Dim k As Integer = 64 For i = 1 To Me.txtloop.Text ...Show All
Visual C# Getting Names of System Data Sources in Windows
Hi, How can I get the names of the System Data Sources in Windows from my C# code Thank you. Shakeel When you create a database, e.g. in MS Access you can set it as an ODBC data source on the System level. I want to get the names of all databases that have been set as System Data Sources from my C# code. Hope that explains it. :) Shakeel ...Show All
Visual C# Multiple languages on the same WinForm
Hello, I must write an application that must support input fields for a "left-to-right" language (as English) and input fields for a "right-to-left" language but on the same form . The keyboard is bilangual (QWERTY and a "right-to-left" language). When the user enters a left-to-right language input field, the keyboard keys must be QWERTY. When the user enters the right-to-left language input field, the keybord keys must automatically switch to the second language. Is it possible with C#.NET/WinForm/Textbox Thanks in advance, Stephane. Please find a solution ...Show All
Visual Studio Team System instance field naming convention
In the following code sample, class TestClass { private int age; public int Age{ get {return age;} } } If I decide to use Age for the public property name, what is the recommended naming convention for the related private instance field Any comments are welcome. Microsoft does not provide naming conventions or guidelines for internal members, however, I have seen the following used internally: private int _Age; private int _age; private int m_age; private int m_Age; It is really comes down to a matter of choice and what you feel comfortable with. ...Show All
