EricT's Q&A profile
Visual C# strange excepstion
I've an app that have been written in vs 2003, today I convert it to vs 2005 but when I want to run this program (in debug mode or not) this exception occurred. Ex.Message: "DragDrop registration did not succeed." What's wrong in my app that cause this exception Please do the following, 1) include the following using System.Net; using System.Threading; 2) add the [STAThread] Attribute just before ur main func ...Show All
Windows Forms UserControl, BindingSource and DataGrid -UPDATED
Hello, here's my situation : I've got a usercontrol, that contains fields generated from dataset by Visual Studio 2005. I've another dataset that is bind to a DataGrid, always generated using VS2005 drag and drop. I need to filter the rows of this 2° dataset on IdRubrica, that's the primary key of the user control's bind. What's the best way to do that have I to set a foreign key on Table1.IdRubrica -> Table2.IdRubrica for loa ...Show All
SQL Server Retrieving url parameters
I have a 2 reports - Product Master and Product Details. I have the ProductID parameter being passed properly from the Master via the URL to the Details Report, but the Details report doesn't seem to be picking up the paramater from the URL and keeps prompting for the ProductID. What settings should I be configuring in my Details report to say - "Get the parameter from the URL" I've tried multiple configs within the Report Param ...Show All
Visual C# Checking values of variable at runtime.
I have created a C# project using Visual Studio 2003. I have declared a string variable 'strTest'. I want to check the values of strTest.Substring(0, 2) at runtime. I tried checking its value in quickwatch window but getting the following error: error: 'strTest.Substring' does not exist I get the same error for strTest.ToUpper() etc. but its working fine in vb.net. Can anyone plz suggest a solution. Thanks. Ashok ...Show All
Smart Device Development Where can I download Calc.exe from?
Does anyone know where I can get the standard calculator that comes with most PDAs (and computers) for either ARM or THUMB processors from I've been trying to port an application between 2 devices, and the app makes use of calc.exe that came with WinCE 3.0. The new device (WindowsCE.net) doesn't have a calculator in it strangely enough... pls check this link which has info on other forums/news groups w ...Show All
SQL Server Access is denied error on bulk insert using UNC filename
I want to do a bulk insert of a file located on a different machine then the SQL Server database. machine1 and machine2 are running Windows Server 2003 Standard Edition. SQL Server v8.0 is running on machine2. Neither machine1 nor machine2 are in any domain. (These are servers at a hosting company.) I use a UNC filename to specify the file to load. It looks something like this: \\machine1.someplace.com\report ...Show All
.NET Development Visual Studio .NET project templates for creating Windows Communication Foundation (Indigo) applications
I am getting started with using WFC services and wanted to know what project template I should use Are there any project templates available Thanks Ralaph Ralph, we have a few templates available for WCF projects in our add-on pack for Visual Studio. You can download the version that goes along with the Janurary WinFX CTP here [1]. You don't actually need a WCF-specific template to get st ...Show All
Visual C++ COM & .NET interop
Help. I have been able to instantiate a .NET interface from my COM object, but I need the .NET class to call back my COM object that created it. In .NET, I tried the following: namespace TransportIP { [uuid("017A8699-5130-4a5c-B07F-CF740F0845B0"),] public __gc __interface IClientTransport { void AsyncCallBack(String *pBuf); }; ...Show All
.NET Development how to Decryption data?
<%@ Page Language="VB" ValidateRequest ="false" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <script runat="server"> Private Sub En(ByVal sender As Object, ByVal e As EventArgs) If Len(mykey.Text) > 0 Then Dim EnStr As String = mykey.Text Dim Temp() As Byte = ASCIIEncoding.ASCII.G ...Show All
SQL Server Publishing SQL Express June CTP as a "Prerequisite"?
Hello, I have not conducted extensive testing yet, but I have installed the June CTP of SQL Express and everything is working fine with my Beta 2 copy of VS.NET 2005. I see that "SQL Server 2005 Express Edition Beta" is listed in the "Choose which prerequisites to install" list of the VS.NET 2005 project settings for a basic Windows Forms Application. My question is: Is this functionality expected to work fine in the Beta 2 for ...Show All
Windows Forms Executing embedded JavaScript in SVG within a webBrowser control?
I'm developing a Windows app (.NET 2.0) with a webBrowser control in the form, to display vector data. The browser contains an SVG document in an 'embed' tag. The viewer I have installed is Adobe's 3.01 plugin. The SVG source is a local file, and I have EcmaScript specified inline in my SVG code. I'd like to trigger execution of EcmaScript within the SVG document from my C# code, for instance when a user clicks a checkbox on ...Show All
Architecture When to factories and interfaces in a component
Hello everyone. When developing a component should I always handle creation of objects with a factory Should the objects that my component contains always be fronted with an interface For example a component to manage a user account database being consumed in-proc by an ASP.NET web app. Which do you think a better design in most cases for the UserMgr component : 1.) using UserMgr; public void Page_Load { IUsers users = ...Show All
.NET Development WSE and Asynchronous WebMethod issue
Hey, Does anyone know why asynchronous webmethods don't seem to work outside of ASP.NET in IIS I am trying to follow the example from the MSDN article below, and it works fine in ASP.NET under IIS but not in WSE hosted outside IIS. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconCreatingAsynchronousXMLWebServiceMethod.asp I tried the Begin/End signature and hosted it in WSE and it worked somewhat, but imme ...Show All
Smart Device Development Hangup/Disconnect GPRS connection
I had try the cmhelper, but the disconnect button did not really hangup/disconnect the Pocket PC GPRS connection. Is there anyway to disconnect the pocket PC's GPRS after the GPRS connection had been established Thanks Hi, You can use the ConnMgrReleaseConnection API to remove the GPRS connection. You can use the CM_GPRSEntries Configuration Service Provider to remove the GPRS setting itself, if you know ...Show All
Visual Studio Team System Change in Webtest coded.VB is not getting affected in Webtest
All, Once we record and create a webtest and convert it to webtestcoded. Doing any change in webtestcoded will this also change in the webtest, or is Webtest and webcoded test seperate entity. Thanks They are separate entities. Once you generate a coded test, your test project now has 2 distinct tests. Modifying one does not affect the other. ...Show All
