Any programmers in the house? URGENT!!! PLZ!!!

By xp0gam3r
Jan 6, 2007
  1. I realli would appreciate it if someone would help me with the issue below:

    I created a button and i want it to do a function. This function is, OnClick, I want it to enter "^-" in a text box i created "MaskedTextBox1".

    What could should I enter and where in this code below which is the buttons code:

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub

    p.s. I am using Microsoft Visual Basic 2005 Express Edition

    Please Help
  2. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    I'm not going to spoonfeed you, but if you just bothered to look up the MaskedTestBox class, you'd see there there is a property called "Text" inside. (Duh!)

    If you don't know what to do with that, then you should really take a more systematic approach to programming and read some tutorials/manuals first.
  3. RealBlackStuff

    RealBlackStuff TS Rookie Posts: 6,503

    It's boring seeing the same question repeated in more than 1 post, it is also bad forum-manners!
    If no-one knows the answer, no-one will reply to your post, it's that simple!

    I would advise to read the manual or go to the M$-site.
  4. xp0gam3r

    xp0gam3r TS Rookie Topic Starter

    dude....i need it urgent the code..... its for my project, i did all the programmin bits n stuff, but thn got stuck on this...

    I just need some1 to tell me the code to that plz!!!!!
  5. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    If you are unable to learn how to do this basic thing, then you really deserve to fail your project..
  6. Jesse_hz

    Jesse_hz TS Maniac Posts: 545

    Before deciding to use VB in your project, you should have thought about whether your coding skills were up for the job.
  7. raybay

    raybay TS Evangelist Posts: 7,241   +9

    The answer is in the manual... almost any manual or text... sounds like you are in a class... the answer is in the book(s) you are assigned.
  8. jobeard

    jobeard TS Ambassador Posts: 9,348   +622

    Class projects are NOT about specific lines of code, but rather
    can you do the research to find the right things to do!
    no matter how many classes you take or degrees you get, the on-the-job
    requirement is GET THE JOB DONE -- that will mean reading the object class definitions, man pages, and working it out.

    get use to it or change your major :(
  9. xp0gam3r

    xp0gam3r TS Rookie Topic Starter

    ive been researchin for a week now....n the only reason i posted comments on this website is bcoz I DIDNT FIND THE ANSWER!!!!! i hav no manual to read from....i tried searchin via the help on VB2005 but all results wer Irrelevant!!!!!!! i wna LEARN hw to do plz....i need help!!!

    Dude...if u no hw to do it....i will APPRECIATE it if u can teach me how plz!!!!

    dude....du even no wt my question is???

    That is the problem...i hav no manual or BOOK, this ws a free choice project, and I realli like programmin, and I did my project as planned, but i wanted to extend it by adding this feature, n I cnt, coz i dno hw altho i searched everywer for the answer, but didnt find it!!
  10. RealBlackStuff

    RealBlackStuff TS Rookie Posts: 6,503

    FYI: this is a discussion FORUM, not a conversation via cell phone!
    Even Visual Basic is more readable than the cryptic stuff you put in your messages.
    And doubting Nodsu is one of the dumbest things you can do on TechSpot.
    As said before, get a manual or buy a book on VB, helpfiles are not going to give you the answer.
  11. xp0gam3r

    xp0gam3r TS Rookie Topic Starter

    I hav just found out hw to paste any text i want, but hw to copy it frm a different text box is my problem....plz help!
  12. kitty500cat

    kitty500cat TS Evangelist Posts: 2,154   +6

    Say your button is button1. So double-click on the button in the form designer thingy so that it takes you to the private sub for the button's click event. Enter this code between the "Private Sub..." and "End Sub" lines:


    Cheers :)
  13. xp0gam3r

    xp0gam3r TS Rookie Topic Starter


    Thnx alot dude...i realli appreciate it :)
  14. kitty500cat

    kitty500cat TS Evangelist Posts: 2,154   +6

    anytime :D

    Cheers :)
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...