Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TuT] How to Make The Checkbox Fill in Textbox's [VB]
#1
Hello, this is my first TuT on here, so I'll make it very simple, hopefully help some people Smile
Lets get started.

What you need:
2 TextBox (Can be More)
1 CheckBox

Code for CheckBox1:
(Delete ALL the CheckBox1 Code and add this:
Code:
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
If CheckBox1.Checked = True Then
TextBox1.Text = "Text for TextBox1"
TextBox2.Text = "Text for Textbox2"
Else
TextBox1.Text = ""
TextBox2.Text = ""
End If
End Sub

Very simple, and could be used for various types of things.
Hope this helped Smile
Legitimate Marketer | Exchanger | Middle Man | RAT Expert
Reply
#2
I can't think of many things that could be used for? Also its just a basic If, Else statement.
Reply
#3
very simple but I dotn no why you would need it. nice share though.
[Image: YzwzC.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 55,919 10-07-2012, 06:56 AM
Last Post: a99
  how to display google captcha picture on form and add to textbox hit ok to bypass polas 0 1,180 09-14-2012, 01:59 PM
Last Post: polas
  [TUT]Auto-Update System[TUT] HB Virus 3 2,165 01-07-2012, 02:21 PM
Last Post: Mastermrz
  [TUT]Enable and Disable TaskManger in vb.net [TUT] HB Virus 4 2,871 12-19-2011, 10:10 AM
Last Post: euverve
  [VB.net] Auto fill - Auto Login fanste 2 2,033 12-17-2011, 03:17 PM
Last Post: fanste

Forum Jump:


Users browsing this thread: 1 Guest(s)