askario's Q&A profile
Windows Forms Sort DataGridView; When using a CUSTOM Collection as datasouce
I have created a custom class: application I have created a custom colleciton: applications I am using an instance of that collection as my data source for a DataGridView. I can not get the Column Sort options to work (or even fire). When I click on a column header it doesn't do anything. The columns are defined as AUTOMATIC sort options What am I missing here Check out this my post, that shows how to custom sort a datagridview, maybe it will help you to customize your own grid to sort: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=211789&SiteID=1 ...Show All
.NET Development New request is not allowed to start because it should come with valid transaction descriptor.
I have a C# windows service that uses MSMQ, DTC Transactions, SQL server 2005 and Notification services. I am doing the following in the service: OnStart Create the queue set the Peek Complete event call Begin Peek PeekComplete WaitHandle[] waitHandle = new WaitHandle[] { new AutoResetEvent(false) }; ThreadPool.QueueUserWorkItem(ProcessMessage, waitHandle[0]) Call End Peek WaitHandle.WaiteAll(waitHandle) queue.BeginPeek ProcessMessage(object stateInfo) AutoResetEvent are = (AutoResetEvent)stateInfo; Create DTC Transaction try Message msg = callResultQueue.Receive(MessageQueueTransactionType.Automatic); ...Show All
Visual Studio Team System Error when viewing or starting a Team Build
Coders, I get the following error when either viewing a Team Build (after double clicking on a Team Build in Team Explorer) or starting a Team Build (via any mechanism): System.Web.Services.Protocols.SoapException: Server was unable to process request. --> Microsoft.TeamFoundationServer.SecurityObjectDoesNotExistException: TF50608: Unable to retrieve information for security object $PROJECT:vstfs:///Classification/TeamProject/856b2dee-7cd0-4358-a6e4-8be661b52596, it does not exist. The is some stack information but I am unable to get it to the clipboard to paste here. The Team Project that the Team Build belongs to has been de ...Show All
Visual C# serialize mail messages
For a message queue I need to serialize (and later on deserialize) many MailMessage s. Quite generally I ask myself, which is the best way to do this To .eml To a mbox format How can this achieved Are there any free libraries (open source preferred) Thanks a lot Jan Yeah, it can get heavy on disk access if you have alot of mail going through that box. I did do load testing and I averaged it out to be about a 25% performance loss for 1000 messages with the sink activated. Although my event sink is really heavy, it is multi-threaded so I gain some performance back there. You don't need to be running Exchange or an event si ...Show All
Visual Studio Tools for Office Unable to create Excel Workbook Project
I just installed Visual Studio 2005 June CTP on a machine with no previous version of VS 2005. However, I get the following error when I attempt to create an Excel Workbook Project: The project cannot be created. I tried uninstalling and reinstalling both VSTO and VSNET. Then, I tried formatting and reinstalling Windows 2003. Next, I tried it on a Windows XP machine. However, all gave the same result. Note: I can create a Word Document Project without errors. Hi Justin: Make sure you've activated .NET Programmability for the Office apps. You can do this using the following steps: ...Show All
.NET Development How to call a .Net web service from C++ dll??
Hi, I want to call a .Net C# web service from C++ dll. I can use MSXML parser's XmlHttp class for the calling the same. In this case,I will have to hard code the input SOAP request inside my C++ code.Is this a good enough approach... What are the pros and cons of this... And is this this the only way to do it... Can you please let me know any other ways if any... Thanks in advance... Regards, livehed If you C++ app is unmanaged, I'd recommend going with what your were suggesting where you simply use MSXML. You could also take a look at the MS SOAP toolkit, I can't remember though if that was simply a VB ...Show All
Visual Studio Express Editions Opening Doc Files
For organizational purposes I added a DOC file into my project. I double-clicked to open it and nothing happened. I then right-clicked, chose open-with, chose microsoft word and pressed ok and got the same results. Just having a quick look at your problem. I created a sample windows application in C# express, and added a work document to the project, then double clicked the document and it opened using MS Word. Just incase you where using Web Developer I have also tried that and it worked. What you might be able to do is to repair your settings by going to the inport/export settings menu option under tools and selecting reset settings. ...Show All
Windows Forms multicolumn checkedlistbox with vertical scrollbar
Hi, It seems to me that you cant have a vertical scroll bar in checkedlistbox with multicolumn=true. Any way to have vertical scrollbar with multicolumn checkedlistbox Thanks, So is there any way at all to have a multicolumn checkedlistbox with vertical scroll bar, other than making a usercontrol ...Show All
Visual C++ VS2005 debug CRT does not report file/line info for heap corruption
Hi hyslopc! I just ran a test of the VS 2005 beta 2 debug CRT library _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_DELAY_FREE_MEM_DF | _CRTDBG_CHECK_EVERY_1024_DF | _CRTDBG_CHECK_CRT_DF); char * Test = new char [3]; Test[3] = '\0' ; // Cause memory corruption delete Test; This results in a dialog box being shown which says that a heap overwrite occured with allocation X at location Y. No really useful information such as the filename/line number where the allocation occurred, or the number of bytes allocated. If I jump into the debugger at that point, ...Show All
Visual Basic control name from sender object in event handler
I have several runtime controls that send their mouseclick events to the same subroutine via the AddHandler. I need to get the name of the control that raised the event. How do I interrogate the sender object to determine the name example code: addHandler SomeControl_1, AddressOf SomeControl_MouseClick addHandler SomeControl_2, AddressOf SomeControl_MouseClick addHandler SomeControl_3, AddressOf SomeControl_MouseClick Public Sub SomeControl_MouseClick( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me .MouseClick Dim SomeControlName As String = sender..... what ...Show All
Smart Device Development CameraCaptureDialog Issues
I've been having some issues using the CameraCaptureDialog class on an HTC Apache device (rebranded as the UTstarcom 6700): 1. After exiting my application, the device's camera capture screen comes into focus. This happens whether I dispose of the class instance or not, and the Close() method is protected, so I can't call that. Any ideas on getting rid of this lingering capture screen 2. On a seemingly random, intermittent basis, an InvalidOperationException will be thrown from within the ShowDialog() method. Sometimes this will happen after taking 4 or 5 photos, but other times it will work fine for 40 or 50 photos before I give up trying ...Show All
Visual Studio Team System Port Requirements for Remote Client
We are testing Team System in a distributed scenario. The application tier is located behind a firewall in US. Offshore users will be connecting from overseas via the Tfs Client (remote users are *not* in the same domain since they belong to different vendor organizations). Questions: 1. Which ports (besides 80 and 443) need to be opened for the Source Control client to work with the App Tier server The global teams will use a single repository. 2. In adiditon to the the ports indicated in #1, are there additional ports that need to be opened for the remote Team System client to be able to work fully (for Work Item Tracking, Team Bu ...Show All
Visual Studio Team System Work Item Type Customization.
In order to customize the process template (MSF Agile of VSTS April 2005 CTP) for the work item types, we created two work item types. Let them be A and B. Now we want to have the work items created under Work Item Type A has to be accessible as a dropdown for the Work Item Type B. In order to achieve this what is the procedure that we have to follow Please kindly provide us a solution in order to do the Work Item Type customizing in process template. It might help to know a bit more about what you're trying to do here. It sounds like you have one work item of Type A which has a reference to an ...Show All
SQL Server XML Bulk Load same data to two tables ...
Hi ... I am trying to load some common data from the element "site" into two tables ( MacgowanTestRWISRawAtmospheric and MacgowanTestRWISRawSurface). The data in attributes "sysid" and "rpuid" need to be copied to both tables. Is there a way to do this with the schema file . The two tables are related by the sysid and the rpuid ... Thanks for any help, Chris //////////////////////////////////////////////////// // schema file <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sql="urn:schemas-microsoft-com:ma ...Show All
Visual Basic Close error window?
Is there a way to close an error window of another application I am using proc.start & proc.close to programatically start & close an application, but when my VB app executes the .close method, the other app does close, but it gives an error. It is the common error window where you have the option to send or not send the error report to Microsoft. Is there a way I can close that error window programatically Thanks... Howdy.. sounds like the application you are closing is obviously not performing cleanup or closing tightly and therefore forcing the dumprep app to run which raises the window. Ha ...Show All
