Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Drawing;
- using System.IO;
- using System.Windows.Forms;
- namespace IdentForm
- {
- public partial class mFrm : Form
- {
- public mFrm()
- {
- InitializeComponent();
- }
- //Text Boxes (I need to know how to prevent certain data types from being entered into a TextBox)
- private void name_TextChanged(object sender, EventArgs e)
- {
- string var = "";
- var = name.Text;
- NameData(var);
- }
- private void address_TextChanged(object sender, EventArgs e)
- {
- string meh = "";
- meh = address.Text;
- }
- private void phone_TextChanged(object sender, EventArgs e)
- {
- long ballsacks;
- // ballsacks = phone.//What goes here for an empty long???
- }
- private void dob_TextChanged(object sender, EventArgs e)
- {
- int ipshiz;
- //ipshiz = dob. again, what the fuck goes here???
- }
- //buttons
- private void btnExit_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void btnGo_Click(object sender, EventArgs e)
- {
- }
- //menu
- private void exitToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- private void toTextToolStripMenuItem_Click(object sender, EventArgs e)
- {
- }
- private void toXMLBetaToolStripMenuItem_Click(object sender, EventArgs e)
- {
- }
- //Data passoff from Text Boxes...need to converge all four into one method seamlessly...
- public static void NameData(string one)
- {
- string ish = one;
- }
- public static void AddressData(string two)
- {
- string ugh = two;
- }
- public static void TelephoneData(long three)
- {
- long iffy = three;
- }
- public static void DateOfBirth(int four)
- {
- int rawr = four;
- }
- //passoff conversion for the data types should go here
- public static void StringData(string name, string address, long tnumber, int dob)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement