473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Show and hide text boxes

15
Hi to you all once again,

I'm dealing with user point of view difficulties. I have a 3x3 "matrix" made with text boxes. Some cases require only 2x2.

My problem is: How do I hide, or lock (making unable to write), the text boxes that are not going to be used?

I was thinking that a drop down menu could give the program the initial conditions such as:

case 1 -> 3x3 (default)
case 2 -> 2x2

Can someone please help me with that?
Thank's in advance!
May 18 '07 #1
3 3601
danp129
323 Expert 256MB
Hi to you all once again,

I'm dealing with user point of view difficulties. I have a 3x3 "matrix" made with text boxes. Some cases require only 2x2.

My problem is: How do I hide, or lock (making unable to write), the text boxes that are not going to be used?
You can disable many controls by typing ControlName.Enabled=False
You can hide many controls by typing ControlName.Visible=False

I was thinking that a drop down menu could give the program the initial conditions such as:

case 1 -> 3x3 (default)
case 2 -> 2x2

Can someone please help me with that?
Thank's in advance!
I really don't understand exactly what your trying to do or the version of VB you're using.
May 18 '07 #2
spranto
15
Don't waste more time with me. Your help was more then enough ;)!!!

I solved the problem using:

Expand|Select|Wrap|Line Numbers
  1. Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChanged
  2.  
  3.         If RadioButton3.Checked Then
  4.  
  5.             TextBox4.Enabled = False
  6.             TextBox7.Enabled = False
  7.             TextBox10.Enabled = False
  8.             TextBox11.Enabled = False
  9.             TextBox12.Enabled = False
  10.             TextBox13.Enabled = False
  11.  
  12.         Else
  13.  
  14.             TextBox4.Enabled = True
  15.             TextBox7.Enabled = True
  16.             TextBox10.Enabled = True
  17.             TextBox11.Enabled = True
  18.             TextBox12.Enabled = True
  19.             TextBox13.Enabled = True
  20.  
  21.         End If
  22.  
  23.     End Sub
By the way I'm using Visual Studio VB2005

Thank's again!
May 18 '07 #3
danp129
323 Expert 256MB
Glad to see you got it working:)
May 19 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: oLE | last post by:
I would like to add some javascript to show/hide a certain row of a table. The first row of the table contain the hyperlink that calls the javascript the second row is the one i want to show/hide...
7
by: Mark | last post by:
Hi All, I have a report which is based on a query which is used to produce QC check sheets. I have quite a few text boxes which are used to display questions depending on the value of one...
5
by: tlyczko | last post by:
Hello, I've searched on toggling divs and didn't really find what I was looking for, I saved a bunch of different threads. I have a form with several different text boxes for things like dates,...
8
by: Andrew | last post by:
Hello, friends, We created a drop-down menu bar and a show/hide calendar web user controls mainly using javaScript and html. However, they both have the problem that they are not dispaly as...
1
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the...
5
by: ali | last post by:
Hello every one i need you help regarding div hide and show. i am having a link like <a href="#" onClick="expandWin()">show/hide </a> <div id=showHide> </div> within div i have lots of...
1
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. ...
1
by: stewdizzle | last post by:
I have a from with three radio buttons (same group) and three text boxes. The radio buttons give the user a choice of uploading one, two, or three images. Currently, I have the text boxes load as...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.