p33's Q&A profile
.NET Development Combining two ICollections into one IDictionary
Given two ICollections, where the first one contains strings, and the second one contains Objects, is there a standard way to combine them into one IDictionary where the strings from the first provide the keys, and the Objects from the second provide the values An example would be a ConnectionStringBuilder class. It contains two ICollections, .Keys and .Values. I would like to make one HashTable out of those. Right now I CopyTo() an array for both and then loop through one array and use the indexer to extract keys and values and use those to build up my HashTable. Any tips Thanks in advance! As an ov ...Show All
Visual Studio Team System Team Build failure
Using beta3, I have a team project (solution) containing 3 projects. When I do the team build on this solution I get the following errors: Build FAILED. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(2797,9): error MSB3491: Could not write lines to file "obj\CadetCommandBase.vbproj.FileList.txt". Access to the path 'd:\builds\CadetCommand\CadetCommandTest\Sources\CadetCommandBase\obj\CadetCommandBase.vbproj.FileList.txt' is denied. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3021,9): error MSB3491: Could not write lines to file "obj\CadetCommandBase.vbproj.FileList.txt". Access to the ...Show All
Windows Forms Comunication between two forms
Hi at all, i need to set the DataSource of my grid situated in FormA from FormB. How can I do Is it possible thanks i'm a newbie mikunos The following code may help u. Form1 Code -------------------- public static DataSet Ds = new DataSet(); private void Form1_Load( object sender, System.EventArgs e) { DataTable dt = new DataTable(); dt.Columns.Add("Name", typeof (System.String)); dt.Columns.Add("Address", typeof (System.String)); DataRow dr = dt.NewRow(); dr["Name"] = "Nirmalya"; dr["Address"] = "Kolkata"; dt.Row ...Show All
Software Development for Windows Vista knowing wich activity idled the workflow.
Hello I have a workflow that has several HandleExternalEvent actvities. I would like to know wich activity was the one that set the workflow on an idle state. Thanks in advance, Matias One way would be to use Tracking service to find the last HandleExternalEvent activity that executed before the workflow idled. For an example of how to use tracking please see the WF sample: SimpleTrackingSample Thanks, Vignesh ...Show All
Visual Studio How to migrate / implement CustomStorage in June CTP?
Hi! I migrated my old DSL to the June CTP, it was almost painless, but the custom code what I had didn't compiled because I used custom storage for some of my properties and the MetaAttributeInfo class is gone which was used for such operations. Can someone tell me how to migrate / implement custom storage for June CTP Thanks, Attila Attila We use a different approach altogether. You don't need to use MetaAttributeInfo (which incidentally in the June CTP is renamed to DomainPropertyInfo). Instead you must implement your own methods to get and set that particular property. Give your DomainProperty called MyClass.Foo th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rotation matrix: absolute rotation instead of relative?
Hi, When multiplying rotation matrices for rotating around x, y and z-axes R = Rx * Ry * Rz ( http://en.wikipedia.org/wiki/Rotation_matrix ), I get a relative rotation matrix, meaning that rotation around Y is not the original Y-axis, but the new axis that has "occured" after rotating around X. What I want to do, is to have absolute rotation, so that the Y-rotation is performed around the original Y-axis, and not the new one (absolute rotations instead of relative). If you know the math for this, I would appreciate if you let me in on it :-) Thanks!! > I get a relative rotation matr ...Show All
Visual Basic License Agreement Dialog
I'm creating a setup project for an application and I would like to present a EULA to the user. I using the supplied License Agreement Dialog and am supposed to set the LicenseFile Property to the rtf file that contains the EULA. The file was added to the project Simple enough right However when I do a test install the EULA is not shown. Does anyone have any idea as why this is happening Thanks I played around with this and it sounds like you may have an incorrectly formated .rtf file. Did you happen to take a .txt file and just change the extension to .rtf That was the only way I got this to happen. Robert ...Show All
SQL Server Add a DateLoaded column to input data
OK, I *know* this is trivial, and please feel free to giggle, but after years of DTS 2000 my poor brain can't make all the jumps neccesary to cope with SSIS 2005. I have a Transfer data task. Source input (non SQL Server) has x columns, SQL Destination has x+1 columns, where the extra column is a non-null smalldatetime column DateLoaded. This will be populated with the Date & time the row was added. In DTS I do this either by adding a GetDate() equivalient to the Source SQL statement (which I can't do in this case) OR by an ActiveX script to put DATE()+TIME() in the final column in the Transfer pane of the designer. This must be ea ...Show All
Visual Basic Help converting vb6 code to vb.net: Creating a VPN connection
I need some help here. I found some VB6 for creating a VPN connection and connecting to a connection using this link: h ttp://home.iprimus.com.au/billmcc/PlatformVB/ The code works great using VB6, but I've been breaking my head over converting it to VB.NET code. Can someone please help me out here and help me convert the code Thanks. Could you please post the correct link, this link doesn't go to the correct page, it only gives the default navigation setup as its a framed site. If in doubt, right click in the page you want and go to properties, and copy the url from there. As far as I know, you can't cre ...Show All
Visual Studio 2008 (Pre-release) Getting Started sample not getting service.exe
Hi, Well, I have been trying to get this first sample "Getting Started" going for a very very long time, and so far, I've been pulling my hair out just trying to figure out what is going on. My question is, when i compile the "Getting Started sample" which is from WIndows SDK, it compiles fine, and I find client.exe but I can not find service.exe anywhere. Neither under Getting Started/service/bin folder which produces service.dll file and service.pdb nor under wwwroot/servicemodelsamples/bin directory. I got the console based sample going but I really want this IIS based samples to work as well. Any help woul ...Show All
SQL Server make XML column not case sensitive
Is there any way that an xml column in sql can be made to not be case sensitive So you can search for the text() of a node matching say 'open' (properties.exist('property[. = "open"]') and get all results back where the property text = "OPEN" or any other not case sensitive combination of "open". Collations are not supported in SQL Server 2005 for XQuery. In order to perform your collation-sensitive comparison, you should promote the value out of the XML instance using the .value() method and perform the comparison in T-SQL. ...Show All
Visual Studio Team System Welcome!
Welcome to the Team Foundation Server - Version Control Forum! Use this forum to discuss topics related to Team Foundation Server - Version Control, which includes: Branching Merging Shelving Software Change Management Team Foundation Server Proxy Visual SourceSafe Converter (VSSConverter) etc. For more information, see: - Team Foundation Server Dev Center ( http://msdn.microsoft.com/vstudio/teamsystem/team/ ) - Team Foundation Server - Version Control Documentation ( http://msdn2.microsoft.com/en-us/library/ms181368(VS.80).aspx ) - Team System References ( http://msdn.microsoft.com/vstu ...Show All
Windows Forms Menus not fading in/out in VS2005 / .NET 2.0
Hello, I'm using VS2005 Pro July CTP with the .NET Framework 2.0 that ships with it. Things are generally working well but I have noticed that I am not able to get the fade-in, fade-out style/animation on my menus... including menus from a MenuStrip as well as context menus. Of course, the feature is enabled at the OS level, and all other menus fade in appropriately (including Office 2003). Is there some default option that I am overlooking, or is there a known issue with this I have tried experimenting with the RenderMode option, but still can't get the fading. I appreciate the help, --Mike I filed a bug: ...Show All
Software Development for Windows Vista Handling concurrent development of workflows
Hi, how does everyone handle several developers working on the same workflow We're developing a code based state machine workflow and need several developers to concurrently change different parts of the workflow. However, due to the generated components (.designer.cs but mainly .resx and .layout) the merging is almost impossible. How are people handling this Would using a XOML based workflow be more appropriate If so, is there a way to convert an existing code based wf to XOML Thanks -- Nuno Numo, I think the following sample should help you: http://www.masteringbiztalk.com/blogs/jon/PermaLink,guid, ...Show All
SQL Server Dynamically change the DataFlow Queries
Hi Guys, This is Ravi. I'm working on SSIS 2005 version. I have created the DTSX file from the SQL Server and executed it successfully from my .NET 2005 code. Now I have a requirement that I need to dynamically change the Source database query. ie., based on the user selection I need to get the data from different tables of SQL and put it into an Excel file. Can anyone help me in this.. Regards, Ravi K. Kalyan Mascon Global Limited. You can only change the query if the metadata of the data-flow is unchanged thereafter. If this is the case then read this: http://blogs.conchango.com/jamiethomso ...Show All
