Show/hide Depending If The User Wants To View It?
Jan 24, 2011Does vs2010 have this under a windows form?I have a text field that i want to show/hide depending if the user wants to view it. Like vista does "show more information"
View 1 RepliesDoes vs2010 have this under a windows form?I have a text field that i want to show/hide depending if the user wants to view it. Like vista does "show more information"
View 1 RepliesIs there any examples with a treeview like this [URL] /scree...tinel-smod.png is it a case of having to draw each form how you would like to then hide/show the controls depending on what is selected in tree view????
View 14 RepliesI'm curious if it is possible to hide a group of text boxes from view in a form until a particular condition is met, and to have a custom set of text boxes for that condition. To give an example; I want radio buttons offering choices for a manner of searching records, the user selects one and then a specific set of text boxes are displayed for the user to utilize, if a different option is chosen a different set of text boxes will be shown. Is this something that can be done?
View 7 RepliesI want too allow my users to be able to choose wether they SEE VISUALIZATIONS in the player in my app when listening to Audio through the Player. Also, how doo I let them choose different visualizatins for the player?
View 1 RepliesI am trying to show or hide tabpages as per user choice. If user selects gender male then form for male in a tabpage "male" should be displayed and if user selects female then similar next form should be displayed in next tab "female" I tried using
tabControl1.TabPages.Remove(...) and
tabControl1.TabPages.Add(...)
It adds and removes the tabpages but doing so will loose my controls on tabpages too... i can't see them back.
I have a couple of user controls, which I show in my main form.
So let's say here's what i want:
Sub Show_Control1()
UserControl1.Show
'CODE TO HIDE EVERY OTHER DISPLAYED USER CONTROL ON THE MAIN FORM
End sub
Right now I have to hide them one by one with hide, because I don't know what's the current displayed form.
I'm currently working on my personal html editor. i have it where i can preview the page in a webbrowser. on maximized screen i can see the entire page as is. is it possible to keep the webbapage viewed, as viewed maximizied, in a resized browser with this size: 201, 106.
i know i won't be able to read much of the text, i just want to see the page preview, image location, etc. just a browser with view zoom properties.
basically i am doing a golf scoring project in vb.net express 2008 and im trying to update a specific row in the table depending on the user i am updating. however it doesnt work and the error message that appears says that there is a syntax error in the update statement but i have no idea where the error is. msgbox(sql) shows that all of the variables are what they should be so i dont think its that.
Imports System.Data.OleDb
Imports System.Console
Imports System.Data
[code]....
In my datagridview, I want to be able to change the value of comboBox1 depending on what the user selects in comboBox2
I had this working correctly, however if I move onto a new line in my gridview and select a different value in the second row it changes the previous row also. For instance, on Row1, if comboBox1 = A, combox2 = B
Then on Row2, if comBox1 = Y, comboBox2 = Z
However, when I change Row1, Row2 is also changed to reflect what was chosen in Row1. Is there a way I can tailor it to each specific row?
I have 2 combo boxes. One is in a form called subcat_selector.vb
on the button Pick Sub Catagory.click event it shows the subcat_selector form. form there, the onload event:
Dim button As DialogResult
[Code].....
i have a form with a tab control and two tabs and a label below the tabcontrol.. in tab one i'm editing files and such and the label below the tabcontrol shows the directory of the file i am working on.. what i would like, is to have that label not be visible when i click on tabpage 2..
so basically, i need the code for the tabpage select. like when when you click a different tab, a different command applies..
is there a way to hide a column i a listview? I know that theres a remove but it would be a pain to remake it when the user wants to bring back the column
View 1 RepliesI created a sql stored procedure that will insert data for me depending on user input. Now I would like to know usually I would do something of this nature
Dim con As New SqlConnection(connectionString)
Dim cmd As New SqlCommand("usp_userinput", con) 'references connectionstring and calls store procedure
cmd.CommandType = Data.CommandType.StoredProcedure 'sets default to be storeprocedure
lblMessage.Text = String.Empty
With cmd.Parameters
If (Session("UserInitials")) IsNot Nothing Then
.AddWithValue("@UserInitials", Session("UserInitials").ToString())
End If
End With
That is just an example how i usually approach calling the stored procedure in vb. However for this particular form I am going to have 50 or 60 textboxes which each one would require a session state variable.Seems a little tedious to have to create a session state variable for each textbox on the form.
I seem to be having issues with the selected index on a list box.
The list box is having various items inserted depending on the user selection. An example would be:
LiIndex = ListBox1.Items.Count
ListBox1.Items.Insert(LiIndex, "Item1")
LiIndex = ListBox1.Items.Count
ListBox1.Items.Insert(LiIndex, "AND")
[CODE]......................
This all work and displays without a problem. The issue I have is if I select the second of the two AND's. If I click the second "AND" in the list and then a button to fire a method, the selected index is always the index of the first "AND". Dim listIndex as integer = ListBox1.SelectedIndex
I can't work out why, the listbox itself will always show the second one as selected, but the action will happen against the first one.
I am new to VB and seeking to create a visual basic program which controls the display of several on-screen elements depending on a single value input by a user. The user can enter anyone of 2500 values and depending on the value entered, five different display elements on the screen will change color or text. The program's response to a given input value never changes, in other words if the user enters 279, the five different display items will always be the same. However, there is no real pattern to the display items that would allow for programming an anticipated response to the input value.
My thinking is to create a large and ponderous "lookup table" in visual basic - I am assuming this an be done but perhaps there is a different or better method. I plan on creating the lookup file in Excel but was assuming I'd need to export it to something that VB could easily read. Any suggestions on the best way to do this? Does the lookup table reside as a separate .txt files someplace or something like that? [Code]
I have a problem to show and hide some div. The only thing i have is a span with a class. Where we need to click on, to show or hide the div below the parent h2 I can't add some classe's to the h2 or div (this come from some cms, where we can't add a css class), so we need to do it with some jquery.
<div>
<h2>
<span class="h2toggle">Heading (This shows an hide the div below)</span>
</h2>
[Code]......
Just playing around with VB and have made a program for playing "pairs". The program displays lots of face down cards, then the user can click on them to reveal their face and try to find pairs. This is done by hiding or showing the "card reverse" picture
If the user finds a pair, the cards should stay face up, however if they do not match, they should be returned to facing down.
The pictures need to be loaded dynamically through an array...
The code I have so far is as follows...
Form1...
Code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
Just playing around with VB and have made a program for playing "pairs". The program displays lots of face down cards, then the user can click on them to reveal their face and try to find pairs.If the user finds a pair, the cards should stay face up, however if they do not match, they should be returned to facing down. This needs to be done by hiding or showing the "reverse of card" picture..[code]
View 3 Repliescreating a mortgage calculator that display continuous information depending on the user input such as monthly payments, remaining balances, and interest paid. I am attempting to use a list box and am currently stuck. [code] Please use code tags when posting your code. Code tags are used like so.
View 1 RepliesI'm using Visual Basic 2008 for example i have running notepad.exe, can i hide notepad window, and then if i need it to show it again?
View 1 RepliesI want to create a button that can hide an exe application. As example: this application will start spider.exe when page loads. I need a button that can hide & show the spider.exe. How can I do it with VB.NET, C#, or Java?
I tried to use:
myProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal
myProcess.Start()
in page load part, and use
myProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden
in button part but it does not work.
i was wondering this: what is the difference as in response.. should i use the .visible or the .show/.hide option.. by setting the .visible to true/false, the controls (in my case) will only appear visible or not.. by setting them to .show./hide, i guess they unload from the form, and reload in their previous state.. do correct me on this .. is this more memory use than the .visible option or the other way? i am currently designing a project containing a lot of panels/buttons/etc., that has the .visible option included for these controls. should i be using the .show/.hide option instead, or does it even make a difference, since i cannot tell from the response of my project when using either/or..
View 8 RepliesI have this labels in my project[code]...
What's the best way to hide/show them?
I have a form called form1 when i press button1 i open a new form [code]..
now this new form is owned by Form1 so that i cant use form1 till the new form is closed.[code]...
I want to create a simple utility app that emulates a right click on the desktop -> view -> show desktop icons - so I can by the click of one button hide and show the desktop icons.[code]...
View 16 Replieshow to hide and show listbox in specified location? on a form in visual basic 2010
View 6 RepliesI'm building a console application. How can i hide the window for like 10 seconds and then show it again? This code is only working on a form not a console application:
Me.Hide()
System.Threading.Thread.Sleep(10*1000)
Me.Close()
Private Sub FavoritesToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FavoritesToolStripMenuItem1.Click
FavoritesToolStripMenuItem1.Visible = False
[code].....
I'm trying to make a tray application to allow me to easily show and hide my icons. I did a bit of research and found this [code]...
View 6 RepliesI want to add an option to my windows form application (written in vb.net) that will give the user the option to hide the menu bar and the title bar. I can do the menu but i'm not sure what the best way is to hide the title.
I could just change the FormBorderStyle to none, but is that the best way of doing it?