Bibble's Q&A profile
Windows Forms add image to listview subitem
Hi, I am trying to add an image to a subitem of my listview , how can I do this if not possible, are there any other alternatives thanks in advance! By default only the root items have images. You should however be able to override this by drawing the subitems yourself. Handle the ListView.DrawSubItem event and add your custom drawing code. ...Show All
Visual Studio Team System Using CustomTask To Generate BuildNumber
I've written a custom task to take the build number generated by Team Build and re-format it so there is no decimal between the ISO date and the build number. However, when I launch the build from Visual Studio every second one fails with the below error, if I simply start the build again a new build number gets allocated and it works... Target InitializeEndToEndIteration: UpdateBuildNumberDropLocation BuildNumber='TB 6.5 Debug_2006091815' DropLocation='\\BRIVSTS02\Drops\TB 6.5 Debug_2006091815' C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(165,5): error : System.Web.Services.Protocols.SoapException: The build number TB 6.5 Debug_2006091815 already exists. Please ensure that th ...Show All
.NET Development Application blocks with console applications.
Can somebody tell me if I Can use Microsoft Logging Application Block with console applications. If yes, then how becoz I am new to console applications. Regards, Of course yes, you can :) How There are no differences, you can use iy as usually in another kind of application. Just configure it in your app.config and use: LogEntry le = new LogEntry (); le.TimeStamp = System. DateTime .Now; le.Categories.Add( "Test Category" ); le.Message = "Logging Application Block Testing" ; le.EventId = 1001 ; le.Title = "Message Text" ; le.Priority = 1 ; Logger .Write(le); Console .ReadLine(); ...Show All
Microsoft ISV Community Center Forums ShellExecute Function
Is it possible to use the ShellExecute Function to open the Bloomberg program Hello! I know that the Shell can open programs belonging to the Windows family. However I was referring to Bloomberg (not part of the Windows family). Does anyone know if it is possible to open a program not belonging to the Windows family I would have tried it but I am vacation (that I dont have time to enjoy) and I do not have access to Bloomberg from here. I would very much appreciate an answer! Thank you very much! ...Show All
Visual Studio Team System Restore TFS to a different server
The Back Up-Restore process was made according to the following articles: BackUp 1) http://blogs.msdn.com/vstsue/articles/511396.aspx Restore 2) http://msdn2.microsoft.com/en-us/library/ms252516.aspx A backup-copy of TFS on the <Serv_1> had been made and then restored on the <Serv_2>. When TFS had started it gave the sequence of the following errors in Application Event Log: Event Type: Error Event Source: TFS Services Event Category: None Event ID: 3021 Date: 26.05.2006 Time: 16:29:14 User: N/A Computer: Serv_2 Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. ...Show All
Windows Forms Default value
Good Morning: I have a data entry application being developed. I have default values on the input screen whenever the users clicks on the '+' to add a new record. This is currently working now, my defaults are on the SQL Server table, when you add a new record the default values populate the fields on the screen, this is fine. I added another column to the table, set its default value on the SQL Server table side, but when I add a new record, the default does not populate to the table. I think there is another place to set the default value, but I can't remember where or what is involved. Any help appreciated. Mike you can use the Datagridview event: dataGridView1.DefaultValuesNeeded +=new ...Show All
SQL Server Handling errors in SSIS
When I have an alternet Data Flow in an event handler, caused by a record failing to be inserted due to a unique-key constraint violation, does this increment the number of errors, counting towards the MaximumErrorCount How can I NOT count it as an error The thing is, I need to insert 300,000+ records each day, and some may be duplicates from data already in the table. So I set a unique key constraint on the table, and if during the load, it fails, it will trigger an alernate data flow to load the error records into another table. But if someone tries to load a file that already has been loaded, for example, all the records would be duplicates, which would be equivelant to 300,000+ errors, and I don't want to keep setting the MaximumEr ...Show All
SQL Server question about different query results with wildcard
Hi, I'm working with a third party app on SQL Server 2000, and from what I can gather, programmed in C# & VisualFoxPro. When we search with Note contains 94949 we get 571 results, when we search with Note contains 94949* we get 575 results. There should be at least a hundred different entries that start with "94949-1" so I expected the query with the wildcard to return something like 680 results, not an additional four rows. Searching with Note contains 94949-1* got 483 results Note contains 94949-10* got 0 results Could someone explain or point me to more documentation on the difference results we get Thanks Hi Arnie, thanks for your response. My situation is more basic than wha ...Show All
Visual Studio 2008 (Pre-release) Where are DataContract and DataMember Attributes defined?
Hi, could anybody please tell me where are DataContract and DataMember Attributes defined I installed July CTP version (dotnetfx3setup.exe), and can not find DataContractAttribute and DataMemberAttribute defined inside System.ServiceModel.dll. I only find defination for DataContractFormatAttribute using Object viewer inside VS 2005. Thanks, ...Show All
Visual Basic Printing in Data Report
I am using data report as a reporting tool for my program, now the problem I am having is the software is going to be used on multiple computers in the network & each can be connected directly or through network (shared printer) to the computer & when user prints any report the report should come in A4 size & PORTRAIT orientation. Where as practically each computer settings are different. So is there any way by which I can set, the printer selected by the user, to my requirements & after the report I can reset the settings Ok, I can ask user to select the printer before printing/displaying the report so that I can format the report & change printer settings as per my requirements... Please help me............... ...Show All
Visual C++ Function pointers, pointers and references confusion
I'm struggling to get my head around this, I'm not entirely sure what is happening here. Wondering if someone could offer a detailed explanation as I can't find an answer elsewhere. In project InterfaceDLL which is a static lib although Interface.h does not make up part of the static lib. class DLLManager holds Interface * m_pInterface; in DLLManager.h. Interface is a struct in Interface.h declared in Interface.h not inside the struct and as extern "C":- bool GetInterface( Interface ** pInterface ); typedef bool ( *GETINTERFACE ) ( Interface ** pInterface ) Inside DLLManager.cpp in function LoadDLL() GETINTERFACE _GETINTERFACE; _GETINTERFACE = ( GETINTERFACE ) GetProcAddress( m_hDLL, "GetInterf ...Show All
Visual Studio script for Clean build
Hello guys, I am new to MSBuild. My problem is that i am writting a script which build all the projects in particular folder and i set its configuration property to "Release" at command line as "/p:configuration=Release" . But before it , I need it to do clean solution. so i write following code , i need it to clean solution before it configured it in Release,so is there any way or code that which i can add in my code. And one more thing instead of setting configuration property at command line can i set it in my code. Thanks in Advance. <Project xmlns=" http://schemas.microsoft.com/developer/msbuild/2003 "> <ItemGroup> <ProjectReferences Include="C:\New Folder\* ...Show All
Visual Studio Tools for Office Ribbon button getimage callback ok,but image is not displayed,why?
I have a button that has a GetImage callback. outlook may call GetImage function ,and ppdispImage has been set. But image has not displayed always. This is my code.could anyone tell me where code is incorrect (hr is s_ok) thanks extern "C" HINSTANCE g_hInst; STDMETHODIMP COLAd::OnGetImage(IDispatch* pControl, IPictureDisp** ppdispImage) { HRESULT hr; HANDLE hIco; PICTDESC d_PICTDESC; hr = E_NOTIMPL; hIco = NULL; d_PICTDESC.cbSizeofstruct = sizeof(PICTDESC); d_PICTDESC.picType = PICTYPE_ICON; hIco = LoadImage(g_hInst,MAKEINTRESOURCE(IDI_ICON1),IMAGE_ICON,12,12,LR_SHARED); if(hIco != NULL) { d_PICTDESC.icon.hicon = (HICON)hIco; hr = OleCreatePictureIndirect(&d_ ...Show All
.NET Development C# to XSD using generics
Does anyone know if there is a tool like XSD.exe that can be used to generate C# classes from XSD that actually generates generics like List<> in the C# I am trying to create a solution for the large amount of XML my company has, and we would really like the ability to use the features present in generics like ForAll etc. Thanks, John I think xsdobjectgen can generate generic List<>s from xsd. Otherwise you could always use the CodeDom from the generated classes and adjust them to use List<> s instead of arrays. Hope that helps, Christoph ...Show All
Visual Studio Team System SP1, TF30059, TF53018, inconsistent tiers
Hi, this is the second system that got knocked out by SP1. The SP1 really raises my blood pressure. The SP1 installation went through smoothly. No error messages. Client Side Symptoms On the client side I can access work items, reports, documents and team builds as always but get an error message when trying to access source control. The error message says: http code 503: TF30059: Fatal error while initializing web service Client Side Analysis All web services are up and running. Server Side Symptoms The app tier’s event log shows the following error entry: Event Type: Error Event Source: TFS Version Control Event Category: None Event ID: 3014 Date: 29.01.2007 Time: 10:44:19 User: ...Show All
