Dpowes's Q&A profile
Visual Studio Inspecting the DataBindings property
I am trying to discover the properties of the components on a Form using automation, and all goes well until I get to the DataBindings property. It displays as a System.Windows.Forms.ControlBindingCollection. I can get ahold of this object and get its BindingSource, but I cannot figure out how to get ahold of the BindingSource.DataSource. I know it's bound to an object and I can see the correct object in the debugger, but when I call BindingSou ...Show All
Smart Device Development Windows service
Hi! Does anyone know how to create a windows service in windows mobile using the compact framwork (C#). I wish to have an application run at boot time and then just display a little icon on the main desktop screen to show the application is running.. Im going crazy here! is this possible at all Thanks in advance! Lawrence If you are looking for something like windows services, then the ...Show All
SQL Server How Can I Change the data type of the parameter for the Deployed Stored Procedure ??
Hi I have Try to Create Stored Procedure in C# with the following structure [Microsoft.SqlServer.Server. SqlProcedure ] public static void sp_AddImage( Guid ImageID, string ImageFileName, byte [] Image) { } But when I try to deploy that SP to SQL Server Express , The SP Parameters become in the following Stature ...Show All
Visual Studio Tools for Office ActionsPane with a Shared Addin
Hi, I need to add an ActionsPane with a Shared Addin to a Word Document but I can not find the way... I have a user control and when the user creates a new document i want to show the user control in the task pane. Can i do it with a Shared Addin With VSTO I found the way, but i didn't find with a shared add-in. It is possible Thanks a lot, Juan Hi Juan, From my understanding, VSTO don't provide an application level custo ...Show All
Visual Basic No Openforms Property in My.Application
I am working with VS 2005, VB on an XP machine. Application.OpenForms or Sstem.Windows.Forms.Application.OpenForms are OK But My.Application DOES NOT have an openforms property . Neither in Intellesense or when I enter it VS (Background compiler or compiler) Error 9 'openforms' is not a member of 'WindowsApplication1.My.MyApplication'. C:\Net20\ProjectsTest\WindowsApplication4\WindowsApplication4\Startup.vb 36 13 WindowsApplic ...Show All
Visual C++ Nested template default arguments not recognized
For whatever reason, when I try to compile the following code (or similar), the VS 2005 compiler generates an error (C2976, causing a few other errors): template < class _U > class UClass { public : template < class _V, int _X = 1, int _Y = 1 > class VClass { public : _V myV1[_X]; _V myV2[_Y]; }; template < class _W, int _X = 1, int _Y = 1 > class WClass { public : _W myW[_X]; _U myU[_Y]; } ...Show All
SQL Server Tool for MySQL to MS SQL Server 2005
Hi, I'm in search of a nice tool to convert the database from MySQL to SQL Server 2005, where the schemas of both the DB are different. I just want to move the data from one database to another with column mapping.. Can any pls suggest me a nice tool for this issue Early reply is appreciated... thanking you VarShant Am I correct to assume that SQL 2005 Express does provide SQL Server Integration Services. I too ...Show All
Visual C# strange performace question, maybe a bug?
The method DrawLine1 is much faster than DrawLine2 and DrawLine3, why the parameter white_line is always true. // draw horizontal line in binary image public static unsafe void DrawLine1(byte* baseline, int x1, int x2, bool white_black) { Trace.Assert(x1 <= x2, "the first point must less than end point"); int xhi1 = x1 >> 5; int xlo1 = x1 & 31; int xhi2 = x2 >> 5; in ...Show All
SQL Server Error in TransactionOption in SSIS
Hi, I was trying to maintain transactions between my tasks, so I set the TransactionOption property as Required to the Parent Container ( For Each Loop Container ). But I am getting the following error while executing my SSIS package. "Error: The SSIS Runtime has failed to start the distributed transaction due to error 0x8004D01B "The Transaction Manager is not available.". The DTC transaction failed to start. This could o ...Show All
Visual C# In C# override printf() used in C++ dlls ?
Hi, I am developing a C# application which uses several C++ .NET assemblies. These C++ .NET assemblies uses several old un-managed C++ dlls, which again calls printf() as the main user/developer feedback. What I am wondering, is if I can somehow override the printf() method used in the old-style C++ unmanaged dlls, to catch the contents (what is being printed) and e.g. print it into a text control in my C# Form If possible, I would like ...Show All
Visual Studio 2008 (Pre-release) DLinq and null values and defaults
Is there any way to specify how DLinq handles null values - for example: [Table] public class Thing { string name; [Column] public string Name { get { return name; } set { name = value; } } } CREATE TABLE Thing ( Name NVARCHAR(120) NOT NULL CONSTRAINT DF_Thing_Name DEFAULT(N'No Name') ) ... results in an INSERT command that specifies NULL for [Name] when it would be helpful to indicate DEFAULT. Using stored procedures wil ...Show All
Visual C# program exit????
i trying to learn c# but when i try start/debug it. i say The program '[3864] WhatDay1.exe' has exited with code 0 (0x0). it does whit all the labs so fair help me plz what does this means and how to fix it Or open a console window (Start menu, Run, type in "cmd" without the quotes, and click OK). Change to the bin\Debug directory where your project is, and type in the name of the project exe file to ...Show All
.NET Development DllImports, APIs and TextBoxes! Oh No!
I have the handle of a text box on a form in another process (not .Net), and I want to either read its contents, or hook it so I can read new-content as its added to the the text box. So far, I have only been able to find material on setting the selection and disabling the context menu. If some one could point me at relevant a code samnple (Vb, VB.Net, C#) that would be awsome. You can send the WM_SETTEXT messag ...Show All
Visual Studio Team System methods listing the contents of the repository
How do I get a listing of the version control repository using the private assemblies I haven't found any methods which return Microsoft.TeamFoundation.VersionControl.Common.VersionControlPath, and Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer doesn't have any obvious candidates. ++Alan I think GetItems() does what you want. ...Show All
SQL Server Linked Server in SQL(2005) Job
I have a linked server to Sybase using MSDASQL. I can query the tables from the linked server using SQL Management Studio (windows login). When I put the same query into a job, it failed to work. The query is simple: SELECT * from MyLinkedSvr.RemotDB.dbo.RemoteTable The linked server setting include the login mapping, which maps my windows login and sa to the remote sybase login. I'm using SQL 2005 9.0.1339 on Windows2000 Pro w/ SP4. SQ ...Show All
