.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

.NET Matters: XML Comments, Late-bound COM, and More

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

More Related Resource Links

COM: Handle Late-bound Events within Visual Basic Using an ATL Bridge


Since a Visual Basic client doesn't handle events directly from late-bound COM objects, it needs some way to capture all the events and parameters launched by any COM object server instantiated at runtime and not known at design time. This article explains how to build a bridge component that does just that. The bridge component transmits the intercepted event data back to the Visual Basic client using another supporting COM object that is capable of holding event data and attributes. The Visual Basic client receives the notification from the bridge and extracts all the information relative to the event from the supporting object.

Carlo Randone

MSDN Magazine March 2001

Releasing references to late-bound COM object

Hi, In my .NET 2.0 application I am performing automation of a third-party COM component via reflection. Something like this: Type t = Type.GetTypeFromProgID("V81.ComConnector", true); object instance = Activator.CreateInstance(t); object[] arr = new object[] { "Srvr='xsystemdevcpr:1542'; Ref='ivcbase'" }; object retValue1 = instance.GetType().InvokeMember("Connect", BindingFlags.InvokeMethod, null, instance, arr, null, null, null); object retValue2 = retValue1.GetType().InvokeMember("Processings", BindingFlags.GetProperty, null, retValue1, null, null, null, null); object retValue3 = retValue2.GetType().InvokeMember("CurrencyRates", BindingFlags.GetProperty, null, retValue2, null, null, null, null); object retValue4 = retValue3.GetType().InvokeMember("Create", BindingFlags.InvokeMethod, null, retValue3, null, null, null, null); arr = new object[] { "<Rates><Rate><Name>USD</Name><Date>2010-08-01</Date><Value>30.0000</Value></Rate><Rate><Name>EUR</Name><Date>2010-08-01</Date><Value>38.0000</Value></Rate></Rates>" }; object retValue5 = retValue4.GetType().InvokeMember("LoadRates", BindingFlags.InvokeMethod, null, retValue4, arr, null, null, null); ReleaseComObject(instance); Rele

Format Generic List Bound to Gridview


I have a generic list of a custom type. The custom type has a string and double.

I'm binding the list to a gridview and it outputs everything fine.

I'm trying to format the double column into a currency format. It is in a template field as I'm calculating a running total. I pass the value to a function that returns a double and adds the current value to a running total which I will show in the footer.

The format is not changing to currency as expected when using String.Format("{0:c}", GetTotal(Convert.ToDouble(Eval("Amount"))))

Any ideas on what might be going on and how to fix this?


How to take value of bound field of grid in a variable or in a textbox.


How to take value of bound field of grid in a variable or in a textbox.

 I m using this code in .aspx page for grid.

<asp:GridView ID="Grd_Mprocess" runat="server" AutoGenerateColumns="False"

                      Width="100%" AllowPaging="True"


                      AllowSorting="True" PageSize="5"  >

                 <RowStyle CssClass="odd" />


<asp:BoundField HeaderText="DOC_TYPE_PK" DataField="DOC_TYPE_PK"  Visible="true" >


  <asp:TemplateField HeaderText="DOC TYPE ID" Visible="true">  &nbs

MS Word style comments in asp.net



I need to create a system, that will be similar to ms word style comments. So the idea is the following: on the page there are a pack of text boxes labels and so on, and user need have the way to comment each control, and save commented text, for example to DB, so the others can reed comments too.

I tried PopUpControlExtender, but it works in single way, and i cannot view all the popups in one time. Or may be i missed something and there is a way to popup all the controls at one time? 

Therefore, are there any known solutions for a discribed task, based on PopUpControlExtender or something else?

.NET Matters: Aggregating Exceptions


Exceptions in .NET are the fundamental mechanism by which errors and other exceptional conditions are communicated. This month's column provides information about how to aggregate exceptions to help manage a variety of scenarios in which multiple exceptions might result from one operation, including scenarios involving parallelism and concurrency.

Stephen Toub

MSDN Magazine August 2009

Basic Instincts: Documenting Your Code With XML Comments


XML comments provide an easy and effective way to document your code. We'll show you how to use and customize XML comments in your Visual Basic projects.

Lisa Feigenbaum

MSDN Magazine May 2009

.NET Matters: Parallelizing Operations With Dependencies


In this month's installment, Stephen Toub examines some techniques for enforcing dependencies in the running order of asynchronous operations and builds a DependencyManagement class to help.

Stephen Toub

MSDN Magazine April 2009

.NET Matters: Ordered Execution With ThreadPool


This month we demonstrate how you can use the ThreadPool to support ordered execution without having to build custom thread pools yourself.

Stephen Toub

MSDN Magazine February 2009

Net Matters: Round-Robin Access To The ThreadPool


Stephen Toub shows you how to add round-robin scheduling support on top of the ThreadPool for more granular processing control.

Stephen Toub

MSDN Magazine January 2009

.NET Matters: False Sharing


This month: memory access issues in multi-core systems and diagnosing and avoiding false sharing in your parallel computing applications.

Stephen Toub, Igor Ostrovsky, and Huseyin Yildiz

MSDN Magazine October 2008

.NET Matters: Asynchronous I/O with WebClient


In this month's installment of .NET Matters, columnist Stephen Toub answers reader questions concerning asynchronous I/O .

Stephen Toub

MSDN Magazine July 2008

.NET Matters: Asynchronous Stream Processing


This month Stephen Toub discusses asynchronous stream processing.

Stephen Toub

MSDN Magazine March 2008

.NET Matters: Stream Pipeline


This month Stephen Toub explains how to make the most of dual processors when running encryption and compression tasks.

Stephen Toub

MSDN Magazine February 2008

.NET Matters: IFileOperation in Windows Vista


The author creates a managed wrapper to use the new IFileOperations interface in Windows Vista from managed code.

Stephen Toub

MSDN Magazine December 2007

.NET Matters: Debugging finalizers


Find out how to use finalizers as a way to warn developers who use your custom types when they are garbage collected without having been disposed of correctly.

Stephen Toub

MSDN Magazine November 2007

.NET Matters: Deadlock monitor


This month Stephen Toub discusses deadlocks that can occur when synchronizing threads.

Stephen Toub

MSDN Magazine October 2007

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend