Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 149,906 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,220 people online right now. Registration is fast and FREE... Join Now!




Help required for Checkbox

 
Reply to this topicStart new topic

Help required for Checkbox

lohithahn
11 Jan, 2008 - 03:49 AM
Post #1

New D.I.C Head
*

Joined: 21 Oct, 2007
Posts: 20


My Contributions
Hi,
IF there is checkbox in one form and textbox in other form...How can i disable textbox by enabling checkbox...Both are in different forms..Please can anyone guide me in this matter


Regards
Lohith
User is offlineProfile CardPM
+Quote Post

sharpy
RE: Help Required For Checkbox
11 Jan, 2008 - 09:07 AM
Post #2

D.I.C Head
Group Icon

Joined: 2 Jun, 2007
Posts: 206



Thanked: 2 times
Dream Kudos: 275
My Contributions
You really should at least post an attempt at coding a solution.

Anyway try this

Create two forms 1 & 2. Place a checkbox and a button on to form 1.

Add this code to the button

CODE
Form2.Show()


And then add a textbox to the form and this code to the form2 load event then run the app

CODE


          If Form1.CheckBox1.Checked = True Then
            TextBox1.Enabled = False
        End If
  


This should do what you require.

User is offlineProfile CardPM
+Quote Post

sharpy
RE: Help Required For Checkbox
11 Jan, 2008 - 09:29 AM
Post #3

D.I.C Head
Group Icon

Joined: 2 Jun, 2007
Posts: 206



Thanked: 2 times
Dream Kudos: 275
My Contributions
QUOTE(sharpy @ 11 Jan, 2008 - 06:07 PM) *


And then add a textbox to the form and this code to the form2 load event then run the app



Correction Add the textbox to the form2
User is offlineProfile CardPM
+Quote Post

flodi
RE: Help Required For Checkbox
21 Jan, 2008 - 11:53 PM
Post #4

New D.I.C Head
*

Joined: 20 Jan, 2008
Posts: 10

hi
what if i want to enable or diable a menustripitem in form1 by checkbox in form 2
for example i want to make a user permission so when i add user i check for the item i want him to use in the program and leave the other item which i don't want him to use or enter unchecked
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 01:24PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month