Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Set an operand to MessageBox.Show()?

Featured Replies

Posted

Hi, i want to set an operand to MessageBox.Show("test");

But when i debug, using this code : 

method.Body.Instructions.Insert(0, Instruction.Create(OpCodes.Ldstr, "test"));
                            object a = MessageBox.Show(method.Body.Instructions[0].Operand.ToString());
                            method.Body.Instructions.Insert(1, Instruction.Create(OpCodes.Nop));
                            method.Body.Instructions.OpCode = OpCodes.Call;
                            method.Body.Instructions.Operand = a; 

(Yeah the code is strange haha)

So, when i debug using this code, it shows messagebox unlimited...;

My Question is : how to set an operand to MessageBox.Show without get messagebox?


Thanks you ;)

Create a new projet & on button1_click event put a M'essagebox show' then build it up and then decompile it. You will see what's missing from your code

Edited by XenocodeRCE

  • Author
2 hours ago, XenocodeRCE said:

Create a new projet & on button1_click event put a M'essagebox show' then build it up and then decompile it. You will see what's missing from your code

Yeah, i forgot the "pop" opcode 

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.