This website does a good job for me.
http://www.developerfusion.com/tools/convert/csharp-to-vb/
________________________________
From: tchristie1 <tchristie@...>
To: vantage@yahoogroups.com
Sent: Wednesday, August 17, 2011 3:40 PM
Subject: [Vantage] VB to C# conversion help
I need to add a customization to a screen to add a button that, when clicked, stores the value of one of the textboxes on the form to an xml file locally and then calls a new form (this new form reads then deletes the xml). It basically serves to pass data from one from to another when epicor does not provide a way of doing so.
It works great, but unfortunately I need to convert it to C# as a customization already exists on the form and I can't figure out a way to have both VB and C# code. Might anyone be able to help me convert it to C#?
Thanks,
Tom
----
Imports System.IO '//Allows for file. commmands
Private Sub UDbtnCGPrint_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles UDbtnCGPrint.Click
'// ** Place Event Handling Code Here **
   Dim etbXRefPartNum as EpiTextBox = CType(csm.GetNativeControlReference("569e3a4b-ecaf-4074-965b-90c3027502c9"), EpiTextBox)
   Dim ReportName as String = "C:\" & "XRefPrint" & ".xml"
   Dim Table as DataTable = New DataTable()
      Table.TableName = "ReportParam"
      Table.Columns.Add(New DataColumn("field1", GetType(String)))
   Dim Row as DataRow = Table.NewRow()
      Row("field1") = etbXRefPartNum.Text
      Table.Rows.Add(Row)
      If (File.Exists(ReportName)) Then
         File.Delete(ReportName)
      end if
      Table.WriteXml(ReportName)
      ProcessCaller.LaunchForm(oTrans, "UDxRefP")
  Â
End Sub
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
[Non-text portions of this message have been removed]
http://www.developerfusion.com/tools/convert/csharp-to-vb/
________________________________
From: tchristie1 <tchristie@...>
To: vantage@yahoogroups.com
Sent: Wednesday, August 17, 2011 3:40 PM
Subject: [Vantage] VB to C# conversion help
I need to add a customization to a screen to add a button that, when clicked, stores the value of one of the textboxes on the form to an xml file locally and then calls a new form (this new form reads then deletes the xml). It basically serves to pass data from one from to another when epicor does not provide a way of doing so.
It works great, but unfortunately I need to convert it to C# as a customization already exists on the form and I can't figure out a way to have both VB and C# code. Might anyone be able to help me convert it to C#?
Thanks,
Tom
----
Imports System.IO '//Allows for file. commmands
Private Sub UDbtnCGPrint_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles UDbtnCGPrint.Click
'// ** Place Event Handling Code Here **
   Dim etbXRefPartNum as EpiTextBox = CType(csm.GetNativeControlReference("569e3a4b-ecaf-4074-965b-90c3027502c9"), EpiTextBox)
   Dim ReportName as String = "C:\" & "XRefPrint" & ".xml"
   Dim Table as DataTable = New DataTable()
      Table.TableName = "ReportParam"
      Table.Columns.Add(New DataColumn("field1", GetType(String)))
   Dim Row as DataRow = Table.NewRow()
      Row("field1") = etbXRefPartNum.Text
      Table.Rows.Add(Row)
      If (File.Exists(ReportName)) Then
         File.Delete(ReportName)
      end if
      Table.WriteXml(ReportName)
      ProcessCaller.LaunchForm(oTrans, "UDxRefP")
  Â
End Sub
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note:Â You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.%c2%a0
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
[Non-text portions of this message have been removed]