Paul Arena's Q&A profile
.NET Development Performance of Type.InvokeMember vs MethodInfo.Invoke
At first glance I'd say MethodInfo.Invoke() would obviously be faster than Type.InvokeMember(). I just wrote a little program to verify that assumption: Type myObject = ... int numTries = 1000; MethodInfo method = myObject.GetMethod( "StaticMethod" , BindingFlags .Static | BindingFlags .Public); DateTime startInvokeMethod = DateTime .Now; for ( int i = 0; i < numTries; ++i) method.Invoke( null , null ); DateTime endInvokeMethod = DateTime .Now; txtOutput.Text += "\r\nTime taken to invoke " + numTries + " times on method: " + (endInvokeMethod - startInvokeMethod).ToString() + " secs\r\n" ; DateTime startInvokeOnType = DateTime .Now; ...Show All
.NET Development Asynch Web services???? WTF!!!
Sorry bout the title but I am getting pretty flustered. Essentially I am trying to find a simple answer. I am currently trying to develop a WS interface using... VS2005 WSE 1.0 I know weird combo but that is because IBM refuses to support anything else (DIME). Anyway I am trying to figure out how to do a web service Asych and everything I have read says I need a line similar to service.HelloWorldCompleted += new HelloWorldCompletedEventHandler(this.HelloWorldCompleted); However, this won't compile cause the WSDL doesn't make a function called HelloWorldCompleted. Does anyone PLEASE have any ideas thx P.S. The full code Imports testAsych.localhost Public Class Form1 Private Sub Form1_Load( ...Show All
SQL Server Table transfer errors
Hello, I am trying to transfer a database from one server to another using the Import Export wizard in SSIS and I am consistantly getting this error on 2 different tables so far. - Execute the transfer with the TransferProvider. (Error) Messages * ERROR : errorCode=-1073451000 description=The package contains two objects with the duplicate name of "output column "ErrorCode" (79)" and "output column "ErrorCode" (14)". helpFile=dtsmsg.rll helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC} (Microsoft.SqlServer.DtsTransferProvider) This error message is beyond cryptic and when I click on the link it sends me to a web page the just tells me that there is no informat ...Show All
Visual C# Conditional References
I probably named my thread wrong, but I didn't know what to call it. Basically, I'm making an application which interfaces with various media players. To do this, I reference and use each media player's COM library/interface. This all works fine, however, to use the COM the user must have the specific media player installed. So theoretically, at the moment, for someone to use my application they would have to have all media players supported by my program installed, this is a major downfall. So I was wondering if there was a way to conditionally 'reference' these COM interfaces, in such a way that I can ask the user which media player(s) he would like to support and then use those interfaces, therefore avoiding a problem ( Or I can also si ...Show All
SQL Server data reader source in data flow problem
hi all, i have a package in ssis that needs to deliver data from outside servers with odbc connection. i have desined the package with dataflow object that includes inside a datareader source. the data reader source connect via ado.net odbc connection to the ouside servers and makes a query like: select * from x where y= and then i pass the data to my sql server. my question is like the following: how do i config the datasource reader or the dataflow so it will recognize an input value to my above query i.e for example: select * from x where y=5 (5 is a global variable that i have inside the package). i did not see anywhere where can i do it. please help, tomer You can set an expression on ...Show All
Windows Forms dataGridView; selecting cells
When the user presses the enter key, I want the next cell (in the same row) to be selected. How can I achieve this in a dataGridViewControl Instead of determining the next cell by hand, I found it more convenient to simply reuse the TAB-Key behaviour (basically I wanted to behave the Enter-Key the same as the Tab key): public class HorizontalDataGridView : DataGridView { protected override bool ProcessDataGridViewKey(KeyEventArgs e) { if (e.KeyCode == Keys.Enter && moveHorizontally) return ProcessTabKey(Keys.Tab); else return base.ProcessDataGridViewKey(e); } protected override bool ProcessDialogKey(Keys keyData) { if (keyData == Keys.Enter && moveHorizontally) return ba ...Show All
Software Development for Windows Vista Application Opens By Itelf Fine, But When Opened With Process it fails to load components
Hey Guys I am trying to find out why this happens. If I try to open an application written in vb6(yah I know) under vista using a .net component using Process.Start it fails to load some components properly. But When I open it from explorer it opens up just fine and does what it is supposed to do. Any reason/explaination of why this may happen. Using Windows Vista Enterprise Edition. I am thinking it has something todo with security but honestly I don't know. Thanks for any help offered. The C# app is using 2.0 plus it is not the one creating the activex components that is the vb6. Which is outputting that error for me on the Process.Start but not on the explorer run. ...Show All
Windows Forms How to create a multi-selection list view for a touch screen?
I am currently developing an application meant to run on a terminal with a touch screen. I have a list view and I would like to modify it so that every time the user touches an item it becomes selected. If the user touches the selected item again, the item is unselected. It should also support ‘multi-selection’ meaning that if the user touches items 5, 7, 9 and 10 they should all be selected and then if the user touches item 7 only 5, 9 and 10 should remain selected. How can I modify the list view to achieve that Thanks, Dom. To make this work, you'll have to completely take over the left button mouse click handling from the control. Here's an example in VB.NET. Add a n ...Show All
Visual Studio Express Editions TableLayoutPanel Flicker
I am using a Tablelayoutpanel, that contains around 200 lables. That are feed with data every 3 seconds. When this is done the tablelayoutpanel flickers. How can I stop this Hi, I'm just wondering... in this case, wouldn't it be better to use the DataGridView (or similar control), bound to the data source and just keep updating the data source What kind of data are you displaying Andrej ...Show All
.NET Development tool for winapi
Is there any tool that can map the .Net functions with the winapi functions ie when i select the method File.Open(path) to see the api functions that are called. The source code for the base classes (like System.IO.File), the CLR and the compilers is available as a download from MSFT. For extension classes like those in the Windows Forms namespace, you can use the excellent free Reflector disassembler . ...Show All
SQL Server Accessing an SSRS report from the web, being prompted for Guest signon screen
I have a sql server 2005 application that uses asp and some canned reports that I built using SSRS. All reports run from the server but not when to try accessing from another computer on the network. I get a prompt from windows that requests me to enter a password for the Gurest account. The Guest account is not selectable. Does anyone know how to supress the signon page I am using sql 2005 workgroup edition. I would like the users to go directly to the ssrs report without any logon screen. Thanks Rich James, I am running windows XP, and Windows Authentication on virtual Directories. The web application works fine reading and writing to sql ser ...Show All
Visual Studio 2008 (Pre-release) TreeViewItem width to fit control & transformation
Hi! 1)Is there any way to set TreeViewItem width in such way that they fit eaxactly all free space in the TreeView. (smth like items in listbox) I cannot manually set it in code because treeview width is defined automatically. 2) How can i apply transformations only to the treeview item and not to its child elemwnts (All effects are applied at node expansion, i tried to set RenderTransform of child elements to null but it didn't help) Or maybe i can perform all transformations before node is expanded but just after + button is clicked but i didn't find necessery event Thank you LEE D Thank you very very much!!! My mistake was explict assigning of ControlTemplate. I assigned template for every treeviewitem ...Show All
Visual Studio Team System Availability and Licensing?
Does anyone know when this edition is expected to ship Also, will you be able to upgrade from the old MSDN Universal to VSTS Databasa Professionals JonM - The team is still targetting the initial release before the end of the year (2006). I'll need to let someone else answer the upgrade question as I'm not up to speed on the licensing aspects. thanks, ...Show All
Visual Studio Team System Failed to create New Team Build Type
Hi, I trye to create a New Team Build Type, but it does not work. An error box is displayed with the next message: "Failed to retrieve data from the server. Please verify that the Team Foundation server is running and try again." But the TFS is running normally, and I work without any problem. I'm using a workgroup version of the TFS, and I'm an administrator of the Server... Can you help me please 17 $\ C:\Company\Projectos\ 1 37 $\Project\ d:\Builds\Project\BuildTest3\Sources\ 1 39 $\Project\ d:\Project Builds\Company.MMIBuild\Project\Company.MMIBuild\Sources\ 1 44 $\Project\ D:\Project Builds\Company.MMIBuild\Project\Company.MMIBuilds\Sources\ 1 47 $\Project\ d:\ProjectBuilds\Company.MMIB ...Show All
Visual Studio Express Editions Link
Hi, im new to C++ and I was would like to know how to make a link in it. What do I need to add to the click event Thanks, jrcdude. Could you please give me a sample project Just a 1 form application with a link that works I would like to see if I'm doing something wrong. Thanks, jrcdude. ...Show All
