Hi I'm not much familiar with vb, but the equivalent for this code in vb should be something like this: Private Sub MenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem.Click Dim item As MenuItem If Not MyItemClicked Is Nothing Then Dim filename As String filename = _itemMap(item).ToString() MyItemClicked(Me, New MyItemClickedEventArgs(filename)) End If End Sub if you need, I can explain what this method does, and then you can write the correct code yourself. HTH farshad
F
farshad A
@farshad A
Posts
-
What is the VB.NET equivalent of this code? -
Gridview to ExcelThis is of course a bit of complex job. To do so, you have to use Office Automation, which you can find more info about it in the following link: http://msdn2.microsoft.com/en-us/library/ms313866.aspx[^] Cheers, farshad
-
SQL replication using .netHi, I want to do a transactional replication for a SQL database using c# code; can anyone please help me to do so ? Of course any code on any language would do the the job for me, as I can change it to c#. I think the best way is making use of SQLDMO, although I've got no idea on how to do it. Thanks farshad