Professor X's Q&A profile
.NET Development DataReader rows into a collection object
Hi, I have a datreader object with 100 rows, i created a collection object[ arraylist / hashtable] and stored all the rows to the collection object. I dont want to keep the connection opened that's the reason i stored the data to the collection object and killed the datareader object. But the problem is I wanted to retrieve the value using column names not by index. For this I looped thru the column names from datareader, how do I merge these two objects Any help is highly appreciated. The datareader gets the data....the datatables persist the data in structured memory...you can also utilize custom cl ...Show All
Visual Studio File Open Filters
Where does the shell's Open File dialog (File, Open, File...) get its list of filters from I've searched the registry and can't find any of the filters that appear there. I would like to: 1: add my list of files to the filter and 2: set my filter to the default if this dialog is opened when a node of my project heirarchy has focus. Thanks. http://msdn2.microsoft.com/en-us/library/bb165750(VS.80).aspx ...Show All
Windows Forms Using XSD schema for field validation when databinding to XML
I'd like to create an application, part of which involves the customer creating XML documents compliant with a government standard schema. Much of the data will be filled in automatically, but parts will be manually entered by the customer. For the customer data, I want to create a few simple forms for data input. I thought I could use data binding for this. I would like each input field on the form to be validated against the schema definition of that element in the xml file, rather than just validating the finished file all in one go. I know that InfoPath can do this sort of thing, but there does not appear to be a framework in Windows for ...Show All
Windows Forms Creating a shape for a window
I know how to make a window a certian shape and dissable the title bar but how do you allow it to be moved in the same way as a normal window. Like lets say i make a window that is shaped like a cd and it has no titlebar but i would like to click anywhere on the cd and move it on the screen i agree ...Show All
Software Development for Windows Vista small problem
Hi, While exposing a Workflow via Web Service, in the new Web Service Code file, we used to inherit the WorkflowExample.Workflow1_WebService instead of directly from the WebService base class as shown below. public class Service : WorkflowExample.Workflow1_WebService { } can any one say like "If I want to use two workflows into this Web Service How I have to inherit the Namespaces." In the workflow I am using WebServiceReceive and WebServiceResponse Activities. not sure if I get it, should I convert my sequential workflow to event driven When I open event view of the workflow WebServiceRecei ...Show All
SQL Server How to invoke C# code from SSIS? Can we script in C# for Script Task?
How to invoke C# code from SSIS Can we script in C# for Script Task thanks With the introduction of VSTA which supports C# for scripting, will SSIS support C# i.e. will it upgrade its script engine to VSTA ...Show All
Visual C++ OK, What is with the statements enclosed inside [] operator regarding threading?
I keep looking around to try and figure this out. I keep seeing code with something like [STAThread] on a line by itself. Now, I have figured out that it sets the type of apartmenting you can do. And you seem to use it like the using namespace statements to define if you are going to hae a sta or a mta, but where in the world does the syntax for this statement come from Is this strictly a COM feature in which it overloaded the [] operator Just wanted to make sure I didn't miss some new language element that I may need. Also, I seem to have gathered that you only need to mark things as STA or MTA usi ...Show All
.NET Development webcam
Is it possible for me to interact with my logitech webcam and if yes any ideas on where to start ...Show All
SQL Server Parameters collection
I have a function defined in Report->Report Properties-> Code Tab which I want to access the parameters collection to look for a Debug flag. I get the following error: c:\Reports\ReportMockup.rdl There is an error on line 4 of custom code: [BC30469] Reference to a non-shared member requires an object reference. How do I access the Parameters collection within my custom code Try... report.Parameters!parameter _name.Value Thanks Tomson McCabe :) ...Show All
Visual C# Remote Shutdown Problem (i'm C# Noob :-P)
Hello, Since a month or two i'm learning and programming with C#. (i'm using Visual Studio 2005 version 8.0 beta2 with .NET framework 2.0 and stuff, the newest, got it from my dad be he only uses C++ and C and "says" he thinks of going over to C#) I'm living on my own a sometimes my brother comes over. (we've created a network between our pc's) and sometimes he stays over but forgets to shutdown his pc, or has the feeling he'll be back soon to shut it down. well anyway, I though of a programm but it doesn't work. maybe it's the privilege's or i'm not experienced enough and don't know what code I miss (probably) (we are now using a remote pc ...Show All
.NET Development How can I know the reference count of an object?
To diagnose memory leak problem, it's convenient to know the "reference count" of an object. Is there any API that could let me I know that e.g.: object obj = ... ... int count = GetReferenceCount(obj); if (count > 0) { Debug.WriteLine(...); } When the window stays blank, can you scroll the window or click the menu I can scroll it and click the menu after the progress bar (showing the log file is being loaded) disappear, so I think its work has finished. In general, the CLR Profiler will show the result in several seconds on my machine. ...Show All
Smart Device Development how to add toolbar in menu created by SHCreateMenuBar
Hi, I am trying to add Toolbar beside the menu created by SHCreateMenuBar in ECV++ 4.0, how do I do I can't get the pictures in the bar! Thanks in advance Hi, I got it. If I disturbed or wasted ur time with my silly question I am really very very sorry. ...Show All
Visual Studio Team System Team Foundation Process Templates
Is there any way I can consult the Process Templates that Team Foundation Server has on I want to run this consult and then display the result into a DataGridView. Thanks a lot. Here is a simple console program to list the templates. IProcessTemplate has members that return XML - you could bind that to the grid. You would invoke the sample below as follows: templateheaders http://<your_server>:8080 using System; using System.Collections.Generic; using System.Text; using Microsoft.TeamFoundation.Server; using Microsoft.TeamFoundation.Client; namespace TemplateHeaders { class Program { static void Main(str ...Show All
.NET Development ConflictOption.CompareRowVersion and Oracle
Hi, We are using Oracle 10g with VS 2005 (C#), and we want to use optimistic concurrency control. We also want to use DataSets as Business Entities and want the CommandBuilder to generate the Update, Insert and Delete SQL statements automatically based of course on the Select statement. I’ve managed to get it all working, but I want to use a Timestamp column in the tables with the ConflictOption set to CompareRowVersion as the optimistic concurrency mechanism. But when the command builder generates for example the Update statement, it only inserts the primary key columns in the where clause, and not the timestamp column as well. ...Show All
Visual Studio My package fails to load in VC++ Express 2005
We have developped an editor package four our custom resource files that works perfectely in VS.Net 2003 and 2005. Unfortunately, despite I have changed my package registration so that it writes the keys under 'VCExpress' in the registry, my package fails to load in VCExpress. The error message is "Package load failure Package 'OxyEdt Pakage' has failed to load properly..." I have a valid PLK, and I checked that my package registers properly by using sysinternals' regmon. Is there some kind of restriction on 3rd paty packages under VC Express Thanks for your help -Reginald ...Show All
