manishv_MSFT's Q&A profile
Windows Forms Customizing TableLayoutPanelDesigner
Hello, I'm developing a custom control that is to be used in a custom forms designer that I created. The control should have exactly two cells behaving like cells in a TableLayoutPanel, so I thought I'd build my control as an extension to TableLayoutPanel. Now I need to customize its designer, since I do not need all the design-time options that TableLayoutPanelDesigner offers. Problem is: TableLayoutPanelDesigner is an internal class, and can therefore not be inherited! Now I was wondering what my options are... I was thinking about developing a custom designer from scratch (extending from ParentControlDesigner). How to achieve ...Show All
Visual Studio Team System Code Coverage not worknig properly during a team build
Hello I have a problem with the team builds. In my proj file I have specified to build my solution, to run tests without specifying any test list. All my tests run correctly. I have a web site referencing four other DLLs. As I want to enable code coverage for my DLLs, I have edited the testrunconfig file to enable code coverage. So I select my four DLLs (in release mode) in the CodeCoverage tab of the editor. When I launch my builds, I see results only for two DLLs out of the 4. (Note that one of the 4 DLLs is empty so I can understant not to receive any result for it, but one missing has some code in it and some tests using it ...Show All
Visual C++ error LNK2019: unresolved external symbol
I'm getting this error, and I cant find out whats wrong! Can anyone help me flatetrimming_test error LNK2019: unresolved external symbol _les_pci_entitet referenced in function _pdi_main This is my code: #include "stdafx.h" #include <math.h> #include <windows.h> #include <stdio.h> #include <conio.h> extern "C" { #include <pdi.h> } /* Entity digitise mask */ //#define DIG_ALL_ENTS "-255" //#define DIG_SURF_ENTS "50-61" //#define DIG_POINT_ENTS "4" //PROTOTYPER extern "C" long les_pci_entitet( char * EdgeCam_entitet); extern "C" void pdi_ ...Show All
Visual Basic Login Trigger
I need a way to let my programming (running on a Windows 2003 Server machine) get triggered when a user logs on a computer in the domain controlled by this server. The server is the only DC of the domain. Can you help please you need to create a login script http://support.microsoft.com/Default.aspx kbid=198642 http://msdn.microsoft.com/library/default.asp url=/library/en-us/script56/html/5593b353-ef4b-4c99-8ae1-f963bac48929.asp ...Show All
Visual Studio Team System MSF Certification
I completed the 1846A course - and I wish to become an MSF practitioner. What's the certification that I should pursue I can no longer find 74-100 in the exam list (which used to be the MSF Practitioner exam) - the only one that comes close is the 70-301 one. Please advise. There will be some churn in the MSF exams as we transition to MSF v4.0. I suspect that is why the current MSF Practitioner exam has been withdrawn. David ...Show All
Smart Device Development TextBox OnClick
(Compact .Net 1.0) TextBox does not have a OnClick EventHandler to use. So I created my own TextBox class and subclassed TextBox and I override OnClick. This compiles but when clicking on the TextBox the method never gets called. Is there any way to get notified when the TextBox is clicked or selected I tried catching the OnGotFocus event, that works great except if the focus is already on the TextBox and the user click on the box again. I need something to capture this case and OnGotFOcus does not get fired. Anu suggestions Thanks You can hook the underlying WM_LBUTTONDOWN or WM_LBUTTON ...Show All
SQL Server *.msg files cannot be searched in SQL 2005 without extended MAPI
Hello, I have a table where I store *.msg files. I wanted to use full text search capability within SQL 2005 to search within the *.msg files for its content. There are filters that I can use to do that. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=254432&SiteID=1 But, there is a problem - the problem is that for any of these filters to work one needs extended MAPI on the SQL Server Box. This is highly undesirable to any DBA as the only way to install extended MAPI on a box is to either install the outlook client or an exchange tool. Any suggestions as to what one can do - whether I am right in the first place reg ...Show All
SQL Server package configuration file issue
I have created a simple package with SQL table to table load. I also created and stored connection information in xml configuration file. the package protectionlevel is "DontSaveSensitive". While i try to run the package I believe it doesn't pick up the configuration file.. and throws the below error: (but it runs fine with other protectionlevel setting). Error at Data Flow Task [OLE DB Source [1]]: The AcquireConnection method call to the connection manager "Server1.Stage.etluser" failed with error code 0xC0202009. pl ignore this post ( i don't know how to delete this post) ...Show All
.NET Development Editing app.config
As part of creating a Login form, I'm trying to open app.config so that once the user has selected a server, and entered their user name, I can edit the ConnectionString within app.config to include these details (but not the password, of course!), so that the user doesn't have to enter them next time they login. Using an example in Help (ConfigurationManager class) I've tried the following code: Dim updateConfig As System.Configuration.Configuration updateConfig = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None) However, I get the following message: "An error occurred loading a configuration file ...Show All
SQL Server Calling SSIS packages from within a Script task
Hello, I was wondering if someone could point me in the direction of any sample code or documentation that allows you to execute SSIS packages from within a Script task In SQL Server 2000 DTS this was accomplished by instantiating the DTS.Package object and calling either the LoadFromSQLServer or LoadFromStorageFile method. I have not been able to find any similiar logic in the SQL Server 2005 SSIS environment. Any help would be greatly appreciated. Thank you, Gordon Radley I have tried as you explained. Nothing happened. I have a top package from here I call another package which co ...Show All
Visual C++ C++ header files and forward declarations
Anybody either have some good tips, or point me to some sources with good tips for avoiding problems with header file includes when classes reference each other, i.e. class A has a member variable (or reference or pointer to B) and B has a member variable (or reference or pointer to A) Forward declaration tips would also be welcome! Thanks. Caveat(s): Kind of ugly, and defeats the purpose of strong language typing. Runtime execution TestProg ------------------------------------------------------------------------------ #include <iostream> using namespace std; // Quick enum to identify which ugly type y ...Show All
SQL Server RS by SQL Express
Dear Friends I installed RS by SQL Express, but i have a problem, RS was installed in W2003 server and i try to connect by Dataset to other DB, this is a SQL2000 in W2000, when i disigned the report and i see the view the report show me the result, but when i deploy teh report and i try to see by web the report dont respond and show the error "The dataset don;t connect or this function isn't disponible in this version", why is the problem, and who i resolve this problem. Tahnk you Hi, RS Express could only run report against the local data source. To use remote data source, you will need standard/enterprise editi ...Show All
Microsoft ISV Community Center Forums Left Joins with Multiple Conditions in VBA
Hello, I am trying to run a query in Excel VBA. The query has a left join with a two conditions -- every time I run it excel crashes. If I remove the brackets enclosing the two conditions, the query fails. The query itself is correct because if I run it directly in Oracle it works. Also I can run it thru excel via Date->Import External Data but not thru VBA. Also if I restrict myself to one condition instead of two it works thru VBA. Any one have any insights into what the problem could be Or any proposed workaround... Thanks in advance. Saleem Dim db As Database Set db = OpenDatabase("", dbDriverPrompt, False, "ODBC;DSN=FM;") Query = " ...Show All
SQL Server CLR Stored procedure to access Ole datasource, how?
I tried to write a CLR stored procedure using C# in SQL 2005 to access an Access database. When I use the OleDbConnection class in System.Data, the procedure throws SecurityException at runtime. Output as following: System.Security.SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.PermissionSet.Demand() at System.Data.Common.DbConnectionOptions.DemandPermission() at System.Dat ...Show All
Visual C++ error about"cannot be marshaled as an unmanaged structure"
i got a struct like: --------------------- public ref struct OutPacket{ int m_replyIndex; List<MainInfo^>^ m_mainInfos; }; --------------------- when i pass it to another process, i have to transfer it to intptr : --------------------- IntPtr pnt = Marshal::AllocCoTaskMem(Marshal::SizeOf(outPacket)); Marshal::StructureToPtr(outPacket,pnt,true); return pnt; --------------------- then i got a message: ********* err = {"Type 'CProcess.OutPacket' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed."} ********* i think the trouble is that i have to process a "List<>&q ...Show All
