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.

C# DIALOG/FORM

Featured Replies

Posted

Hi All,

this is what I have;


namespace COD
{
public partial class KeyGen : Form
{
public KeyGen()... private void button1_Click(object sender, EventArgs e)... }
}

The public KeyGen() is the InitializeComponent() routine.

The button1_click, is the when button1 is clicked routine.

Is there a way to add some more coding? iow another routine, which is not connected to a button or so.

to give an example, when a dialog (which is NOT mine) is moved, my dialog should be moved as well?

regards,

ger

Edited by TBBW

  • 4 months later...

I assume your target uses the .Net framework, since you're using C# code.

Could you please be more specific about your problem, add a more complete real-world example?

For what I understand from your question, you want another app to call a function in your program. If that's the case, you should familiarize yourself with System.Reflection, and injecting code in a loaded assembly.

With this information alone, I can't help you any more further.

-r

If you are just looking to code your own functions to be called, just keep adding onto the current class:


namespace COD
{
public partial class KeyGen : Form
{
public KeyGen()... private void button1_Click(object sender, EventArgs e)... } // Example string combination function.
private string CombineStrings(string strParam1, string strParam2)
{
return strParam1 + strParam2;
}
}

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.