...
//Credits to MW2TopTenWORLD for making and releasing
//This Source Code!
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PackageIO;
namespace Programming_NotePad
{
public partial class motdchanger : DevComponents.DotNetBar.Metro.MetroForm
{
string path;
string motd;
public motdchanger()
{
InitializeComponent();
}
private void motdchanger_Load(object sender, EventArgs e)
{
MessageBox.Show("Program made as part of Programming Notepad!");
textBox1.MaxLength = 28;
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
textBox1.MaxLength = 300;
}
if (checkBox1.Checked == false)
{
textBox1.MaxLength = 28;
}
}
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog openmotd = new OpenFileDialog();
openmotd.Title = "Open your GPAD0_MP.PRF FILE!";
openmotd.Filter = "GPAD0_MP Files | *.prf";
if (openmotd.ShowDialog() == DialogResult.OK)
{
path = openmotd.FileName;
Reader readmotd = new Reader(openmotd.FileName , Endian.Little , 0L);
readmotd.ReadString(2
;
readmotd.Position = 78;
label2.Text = readmotd.ReadString(2
;
}
}
private void button2_Click(object sender, EventArgs e)
{
motd = textBox1.Text;
Writer writemotd = new Writer(path, Endian.Little, 0L);
writemotd.Position = 78;
writemotd.WriteString(motd);
MessageBox.Show("The New MOTD has been sucessfully inputed!");
}
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.