Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6196433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:38:36+00:00 2026-05-24T03:38:36+00:00

What is the equivalent of following C# code to VB.net code. public void RaiseTotalTimeEvent(TotalTimeEventArgs

  • 0

What is the equivalent of following C# code to VB.net code.

public void RaiseTotalTimeEvent(TotalTimeEventArgs e)
        {
            EventHandler<TotalTimeEventArgs> temp = TotalTimeEvent;
            if (temp != null)
            {
                temp(this, e);
            }
        }

EDIT
Thanks for the answer.

But all the answers looks like it was converted using some of the existing CODE converter.
I have tried Telerik,DeveloperFusion, And others. All these tools generate same code like below and none of these work.
Converted Code.

Public Sub RaiseTotalTimeEvent(e As TotalTimeEventArgs)
    Dim temp As EventHandler(Of TotalTimeEventArgs) = TotalTimeEvent
    RaiseEvent temp(Me, e)
End Sub

Compiler Reports with this error:

Error 8 ‘Public Event CountEvent(sender As Object, e As
CountEventArgs)’ is an event, and cannot be called directly. Use a
‘RaiseEvent’ statement to raise an event.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:38:36+00:00Added an answer on May 24, 2026 at 3:38 am

    You should avoid automatically translating code from one language into another. Instead you should learn to understand and rewrite the code to solve the problem in your preferred language.

    But there are translators. http://www.developerfusion.com/tools/convert/csharp-to-vb/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I believe the following VB.Net code is the equivalent of the proceeding C# code;
i am new to asp.net.Can you post an equivalent vb.net code following the C#.net
Can anyone please help me discover the .NET equivalent of the following C++ code:
I would like to know the VB.NET equivalent of the following C# code: unsafe
What is the equivalent Linq to XML for the following code: public List<listing> GetList()
What is the Python equivalent of the following code in Ruby? def loop cont=nil
What could be a LINQ equivalent to the following code? string[] values = {
I'm looking for the Go equivalent of scanf(). I tried with following code: 1
The following two different code snippets seem equivalent to me: var myArray = Array();
I am porting Java code in .NET and I am stuck in the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.