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 585991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:03:38+00:00 2026-05-13T15:03:38+00:00

Language: VB.NET 3.5 IL opcodes: 718 ldarg.0 719 callvirt System.Windows.Forms.Button RClient.RClient::get_cmd1() 724 ldarg.0 725

  • 0

Language: VB.NET 3.5

IL opcodes:

    718 ldarg.0 
    719 callvirt    System.Windows.Forms.Button RClient.RClient::get_cmd1()
    724 ldarg.0 
    725 ldfld       System.String[] RClient.RClient::ButtonStrings
    730 ldc.i4.5    
    731 ldelem.ref  
    732 callvirt    System.Void System.Windows.Forms.ButtonBase::set_Text(System.String)
    737 ldarg.0 

Corresponds to:

Me.cmd1.Text = Me.ButtonStrings(5)

At least I believe it does.
What changes to the IL would I have to make to reflect this instead:

Me.cmd1.Text = "some string"
  • 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-13T15:03:39+00:00Added an answer on May 13, 2026 at 3:03 pm
    ldarg.0 
    callvirt    System.Windows.Forms.Button RClient.RClient::get_cmd1()
    ldstr      "some string"
    callvirt    System.Void System.Windows.Forms.ButtonBase::set_Text(System.String)
    

    Line 1 pushes Me onto the stack. Line 2 executes the method get_cmd1 which corresponds to the getter for the property cmd1 for the object on the top of the stack. So, this line pushes the result of the getter cmd1 from the object on the top of the stack, popping the top of the stack in the process. Line 3 pushes the string "some string" on the stack. At this point the top of the stack is the string "some string" and the next item on the stack is Me.cmd1. Line 4 executes the method set_Text with string parameter being the top of the stack. This corresponds to the setter for Text for the second item on the stack. The second item on the stack is Me.cmd1. So these lines are equivalent to Me.cmd1.Text = "some string".

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

Sidebar

Related Questions

Context Language: C# Platform Version: Microsoft .Net Framework 4.0 Operating System: Windows 7 Professional
I would like to create a sound visualisation system using C# language and .NET
Here's the scenario: Platform: Windows IDE: Microsoft Visual Studio 2008 Language: C# .NET framework:
In .NET (language: C#) when writing Windows Applications we start the application with a
I trying to use a .h file from Windows SDK in a .NET language
Language: vb.net File size: 1GB, and stuff. Encoding of the text file: UTF8 (so
I am using vb.net language I have a dropdownlist, which is filled by below
This is a question about the VB.NET language. Since I am using it every
Language = C# .NET version = 3.5 When my code performs syntax highlighting the
My programming language is C# .Net 3.5 and I may have to install my

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.