wch_net's Q&A profile
.NET Development Binding XML to datagrid and only showing and editing subelements in C#
Hi our application has some xmlfiles I'm making a small frontend for in C#, in this we have a structure simular to <config> <Product> <InfoText>...</InfoText> <InfoText>...</InfoText> </Product> </config> What I want is to bind that XML to a datagridview and only show the InfoText Elements and let those be editable and make it so that saving propagates it back to the XML File. I'm having a really hard time wrapping my head around how to do this, especially using Xpath and datasets to build the link inbetween. I was hoping someone could help me out, hopefully with an example! Thanks in advance Please use XmlDataDocument. And Set DataMember of DataG ...Show All
Visual Studio Tools for Office Programmatic access to Outlook appointment categories?
Hello, I'm new to the VSTO world, so please bear with me. I'm using VSTO 2005 with Outlook 2007. I want to customize the categories associated with appointments in Outlook. In Outlook when creating an appointment, the user can choose to customize the categories (i.e. associate a name with a color). How can I acheive that programmatically Also, can I add other colors to be used for categories, or am I constrained to the 26 existing options Also, what are the best online resources for learning how to use VSTO 2005 with Outlook 2007 I've searched online for some reference material, but don't want to waste time with mediocre tutorials. Thanks a lot for any help. Nevermind, I figured it out. Globals .ThisApplication.Session. ...Show All
Software Development for Windows Vista XAML Based WF Linked to Assembly
I am trying to set up an XAML based workflow where all of the activities are either common activites or defined in a custom assembly. I am loading the xoml file at runtime using an XMLReader to load the xoml file, then calling CreateWorkflow with the XMLReader. After working with this a bit I was finally able to get the workflow to load correctly. The workflow starts with a While Activity. The While activity calls a member of my custom SequentialWorkflowActivity class named 'ContinueLooping'. 'ContinueLooping' sets args.Result = true; This should result in a continuous loop, however, the workflow always completes right away. If I put a message box in the 'ContinueLooping', I never see the message box. If I change the name of the 'ContinueL ...Show All
Visual C# adding name to the row and column of datagridview in windows c# application
hi, how can i add name to the row and column of a datagridview in a windows c# application through dataset. actually i want to creat the matrix view using dataset. can anyone help me out thanks & regards Isaiyavan Babu Hi again, now how will i do it with asp.net gridview as i tried with the above codes but i received the error : " index out of scope" thanks & regards Isaiyavan ...Show All
Windows Live Developer Forums Problem With My Program On V4 3D
Hello! I have my code that allows people to click on a pushpin and send it to a text box and then get directions from a locations. It worked great in 2D, but in 3D you can not click the pushpin. I will put the code below and could anyone tell me why it will not allow me to click on the pushpin and send it to the textbox Thanks! <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script> <script> var map = null; var pins = new Array(null); function GetMap() { map = new VEMap('myMap'); ...Show All
Visual C# remove element from an array of string
hi everybody, I have an array of string myArray[0] = "Hello World"; myArray[1] = "This is a sample code"; myArray[2] = "Delete me"; how do I delete element 2 or I need to copy everything but element 2 I don't know what would be best in this case and if I have a lot of informations. thanks hi., I agreed with ShellShock. I develop like that because it is array of string (not ArrayList). If it is ArrayList, there is not much problem. You can do like this.: ( I assume it is ArrayList) myArrayList.RemoveAt ( myArrayList.IndexOf ( yourSearchString ) ); And you can also convert ArrayList to Array of string. For example: string[ ] copyStr = ...Show All
Visual C++ Builds with IDE, but with msbuild LNK1104: can't find libc.lib??
I'm converting a VC6.0 console application to use 2005. I have one project that will build fine using the IDE, but when I use the command line: msbuild MyProject.vcproj /p:Configuration=Release ... I get a fatal link error LNK1104: cannot open file 'LIBC.lib' I'm new to Visual Studio and Windows applications in general. I did some searching and found the link error is likely caused because libc.lib doesn't exist past VS6.0, and this project is trying to link with a binary that was compiled with VS6.0. I'm not sure what exactly that means, but okay, sure. Per the suggestions of other posts, I made sure compiler switches /MD{d} are being used (the old workspace used /ML{d} ), then I tried telling the Linker Input to ignore libc.c. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I want to use a simple fx shader on a simple loaded model
What I want to do seems very simple to me. I want to do this - Load a 3D model using ContentManager.Load<Model>(...) Load a shader Effect from a .fx file using ContentManager.Load<Effect>(...) Render the 3D model using the shader from .fx file. Can anyone give an example of this that is as straigh forward as humanly possible It does not seem like this should be a difficult thing to do, but I have no idea since I've never used shaders. Also, if anyone has a simple .fx file I can use to test my code, that would be great! I'd love to give my Buttermilk game / GUI engine the power of shaders! Thank you for reading! Very very useful :) One thing I don't understand clearly are the Effect.P ...Show All
Visual C# Create a folder with permissions set to This Folder, subfolders
Basically my app creates 4 folders that gives a specific user certain permissions. I can create the folder find, and i can give the user the correct permissions, but by defaulse it has Apply To set to this folder only, so if the user creates a folder, they wont have permissions to access it. I want to give it permissions that Apply to: This folder, subfolders, and files. I have spent hours upon hours trying different things, and trying to find the answer anywhere. Any help is greatly appreciated. Here is my code to create the folders: string mailDataPath = "E:\\Data\\MailData\\" + logonName; string userDataPath = "E:\\Data\\UserData\\" + logonName; string userProfilePath = "E:\\Data\\UserProfile\\ ...Show All
SQL Server Problem with non multi-value paramters after installing SP2 CTP
Hello, I just installed the new SQL 2005 sp2 CTP on my stand alone report server. Now whenever a parmeter is not multi-value I get One or more data sources is missing credentials when clicking off the parameter. If I set the parameter to multi-value it works fine but confuses the users. Does anyone know how to debug this or if a fix is available Yes it was working before I installed the service pack. Thanks for the reply. When will SP2 be released I have a lot of pissed of users screaming at me that they can't get reports. Also I am not sure what you are talking about with the dependent paramters. I have attached the XML of my report. Could you show me what I need to c ...Show All
Windows Forms DataGridView AutoGenerateColumns=false bug
I keep manually resetting the AutoGenerateColumns = false on my DataGridViews that are bound to custom collections and they keep resetting themselves back to the original state. What a pain. Is this a bug Could I be doing this differently Thx. I have been having the same problem. It's got to be a bug. Yes, what a pain. If I figure anything out, I'll let you know. ...Show All
SQL Server Any clues why DTExec.exe is slower than Business Intelligence studio(SSIS Shell)?
All, I have a simple package in SSIS that reads approx 2.5million rows from SQL2k5 source and exports it into 4 Foxpro files. The way I do it is as below 1) use and oledb source to read data from SQL2k5 2) use a conditional split component to divide the source into 4 streams ( I do a recId % 4 = 0, 1, 2, 3 to give 4 streams) 3) use an OLEDB destination to export to the 4 prexisting foxpro tables. This thing runs amazingly fast when I run(F5) it from Business Inteligence studio, but it is atleast 10 times slower when rightclick the package and execute using dtexec.exe I can't figure out why! any clues I would elimiate the 64 bit /32 bit problems because export to foxpro only works in 32 bit mode and my package has been configur ...Show All
SQL Server SQL parameter Syntax
Guys, Wahts the right way to specify a parameter in an Execute SQL Task when the param is a varchar should I use apostrophe's around the or not I have two SQL tasks .. one where the query is specified like : WHERE FIA.BaseCurrency = Which SSIS likes and doesn't complain about...(the but then I have another query.. [below].. which SSIS complains about unless I have apostrophes around the So its like: AND FIA.BaseCurrency = ' ' So.. which should it be The problem for me here is that when I DO put the apostrophes around the I get no results back from the query... PJ The problem query: SELECT ForeignCurrency, RateFromFile AS YesterdaysRate --The ISNULL just protects us from situati ...Show All
Visual Studio 2008 (Pre-release) Reading and Writing image "Rating" metadata
I'm looking for a way to read and modify "Rating" metadata that Vista uses to rate image files. I'm able to read the rating although I noticed that the rating is written in several places in metadata... and I'm not sure which Vista is using... it looks like all of them are changed at the same time and are kept in sync... so do I have to modify all of them to keep them in sync /xmp/Rating / xmp/xap:Rating /app1/{uint=0}/{uint=18246} When I'm trying to modify the rating... nothing happens... I'm using this code Stream fileStream = new System.IO. FileStream (path.LocalPath, FileMode .Open, FileAccess .ReadWrite, FileShare .ReadWrite); BitmapDecoder decoder = BitmapDecoder .Create( this .fi ...Show All
Visual Studio 2008 (Pre-release) Xamlpad source code or extensibility
Is the source code project for Xamlpad publicly available I'd like to be able to experiment with XAML with application objects in addition to the standard WPF objects within a modified Xamlpad. Failing source code availability, is there any way of getting Xamlpad to load application assemblies the source code of xamlpad is not available..however, there is a EditingExaminer sample code in teh sample section which has code very similar to that of xamlpad. ...Show All
