insim.txt:
// To delete one button or clear all buttons, send this packet :
struct IS_BFN // Button FunctioN - delete buttons / receive button requests
{
byte Size; // 8
byte Type; // ISP_BFN
byte ReqI; // 0
[U][B]byte SubT;[/B][/U] // subtype, from BFN_ enumeration (see below)
[U][B]byte UCID;[/B][/U] // connection to send to or from (0 = local / 255 = all)
[B] [U]byte ClickID;[/U][/B] // ID of button to delete (if SubT is BFN_DEL_BTN)
byte Inst; // used internally by InSim
byte Sp3;
};
enum // the fourth byte of IS_BFN packets is one of these
{
[B][U]BFN_DEL_BTN[/U][/B], // 0 - instruction : delete one button (must set ClickID)
BFN_CLEAR, // 1 - instruction : clear all buttons made by this insim instance
BFN_USER_CLEAR, // 2 - info : user cleared this insim instance's buttons
BFN_REQUEST, // 3 - user request : SHIFT+B or SHIFT+I - request for buttons
};
Bold+underline'd is the info you need to send.
In InSim.NET, SubT is implemented as an enum in ButtonFunction.cs
Again, I've never used InSim.NET before, but from a quick glance at the code and documentation, I assume you'd do something like this:
insim.Send(new IS_BFN{
UCID = <ucid>,
ClickID = <clickid>,
SubT = ButtonFunction.BFN_DEL_BTN,
});