Forms :: Change Depending On Which Form Is Displayed?
Oct 6, 2009
Am migrating VB6 to VB.Net and am stuck once again. We use App.HelpFile in vb6 to set Path and Filename of current help file.Current help File can change depending on which form is displayed.How do we assign help files in VB.net?
[Code]...
View 1 Replies
ADVERTISEMENT
Oct 19, 2010
When in design view I can change the text displayed in the banner of the form(next to the icon) but when I build the code and test the form doesn't have the text displayed? I'm using VB express 2008
View 5 Replies
Sep 6, 2011
basically my problem is my program i made is fine on my screen, but when i port it to my mates screen some of my listboxes and buttons are not visable. because of his resolution i want to me able make my prgram adaptiable to specific screen resolutions.
View 9 Replies
Aug 15, 2010
Can you tell me what event takes place after a form is loaded and displayed including all controls on that form?
View 11 Replies
May 20, 2009
i'm lost on this code.. i have a picturebox that swaps 2 images, depending on the action, file_red and file_green.. what i'm trying to to is, if a picturebox switches a image or not, to be able to detect that and have textbox8 add a line with the detection.
[Code]...
View 9 Replies
Jan 13, 2010
I'm working on a simple base form in which all the other forms in the project will inherit. This base form only adds 5 properties (at the moment) dealing with painting a gradient background. The problem I'm facing right now is when I change a property on Form1 (the test form) and click run it doesn't show that change. I also checked the .designer.vb file and when I make a change it's not added to the code behind file, I'm at a loss right now to why.
[Code]...
View 5 Replies
Nov 10, 2011
We have an application that has a main form with a map on it. Right now the paradigm is to have forms that are displayed using menu items to display information to the user. Most of these forms are modal forms, but a couple are non-modal forms that interact with the map. For some of the forms, it really would make for a better user experience if we could dock them in the main form of the app and allow the user to see both the form and the map. For instance. We could have a list of map features in a docked window, and select one of the items on the list and have the map zoom to that feature. Or do the reverse: let the users select a map item and have a docked window that shows details of the feature. Sounds great, but I wonder about what sort of gotchas we may encounter. In particular, what if we have two windows docked at the same time? Could we get tangled up in our event code?
View 2 Replies
Jul 18, 2012
I try to make my datagridview rows change colour depending on value on a row cell. I ve tryed everything i found on the web but nothing..
View 3 Replies
May 23, 2009
I work with VisualStudio 2008 and write my codes in VBasci.Also,I use Microsoft SQL server 2008 for my database and here is the question;I ve curently been doing a simple hotel software, the step that I ve got stucked in is that, I take the reservations by clicking on buttons those represents rooms in the hotel,buttons have green colour on them because they are available until I take a reservation for that room,and they must be staying green until a customer checks-in..On a check-in day,that room must go to colour of red or somethıng and must'nt be able to take another rezervation into it until the customer checks-out, I ve got 2 people comıng for that room for tomorrow who will stay for 1 night,so today it should stay green whıch means it s available,but by the mid night it must go red and must be not available to take rezervations for tomorrow,once they check-out on the day after tomorrow ıt should go green,so,available again.
View 6 Replies
Mar 5, 2011
i have 2 tables assignment and feedback, in a gridview it displays all the assignments, the assignments then get feedback. im then wanting to change the view feedback button in the gridview depending on if there is new feedback for example:the feedback table has a state field in it so when its 1 i want that image button to change to the one with the +
View 1 Replies
Mar 12, 2012
I have a list of 12 buttons on a form. I want to label each of them representing a month from left to right starting at the most recent month. So if today is the 12/3/12 my buttons will be in THIS order MAR12,FEB12,JAN12,DEC11,NOV11 ETC UP TO BUTTON 12. I have already written code for it and it works but it is long winded.
Here is my long winded
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
DTPicker1.Value = TimeValue(Now)
End Sub
[Code]....
View 8 Replies
Dec 6, 2010
Im trying to change the information on each row depending on the result from the query. Im thinking that at the minute my problem is that I'm only returning the first result from the query into the result.
e.g. query returns row 1 with '1232' row 2 '1243' but result is only ever set to '1232'
View 1 Replies
Nov 23, 2011
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?
View 7 Replies
Mar 20, 2010
I have a program where I want my picture box to change depending on what number comes up in a textbox. Lets just say, my picturebox is called PictureBox1. I'd imagine I'd use an IF statement followed by the path type in to change the picture. My question is how do I display a new picture in the picturebox? Whats the code used?
View 6 Replies
Apr 21, 2009
i was wondering if it's possible to load a listbox with files from a folder and depending on the file extension , the file name color would change ex.. if it's a .txt file , then the filename would load as blue , if a image (.jpg) the color would be red , and so on...posibility in a listbox ?
View 7 Replies
Apr 13, 2012
I've just finished creating a basic login system which enables you to create an account and select either a "Student" or "Teacher" account.
Once the account is created it's stored in an Access 2007 database. The field the account type gets stored in is called AccountType. When users log in with their unique username and password I want the program to take them to a different form depending on whether they have a student or teacher account.
View 2 Replies
Feb 24, 2011
I have a ContextMenuStrip that is attached to a DataGridView, how can I change the text of an item in the ContextMenuStrip depending on the value of the cell in which the strip is activated over?
View 1 Replies
Mar 7, 2012
I'm trying to gather some WMI data, search that data and depending on the results change the color of a textbox and append some text.I can acheive this using a select statement but was hoping there is a more elegant solution as what I have generates a lot of similar code At the moment, the WMI data contains two properties I'm interested "State" and "ReplicatedFolderName". The"State" value determines the color and text that goes in the text box, however there are different textboxes for each replicated folder name.What I have which works is
Code to gather WMI data
For each mo in queryCollection
If (CShort(mo("State"))) = 2 Then[code]........
View 3 Replies
Jan 23, 2011
I have 1 form with about 5 other forms added into it. How can I check which form the user is currently on. I have tried using gotfocus for the 5 forms within, but it doesn't work. is there another way of seeing when focus has changed within the form?
View 3 Replies
Jun 2, 2010
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].....
View 10 Replies
Aug 7, 2010
I have added two checkbox controls chkBox1 and chkBox2. What I want to do is that when both the chkbox are same meaning checked or unchecked the label should be On and if both are not same label should be Off.
[Code]....
View 17 Replies
Sep 26, 2010
im searching on how to change labels text color inside the code depending on my needs , for example my label's text is set to = "hello world" , can i change hello's world color to x and world's color to y?
View 4 Replies
Feb 27, 2011
I am working with a datagridview. It is being populated from mysql table. 2 of the columns in the table are values that would be used in a combo box. ex: 1 = Cat 2 = dog. [code]...
View 1 Replies
May 6, 2011
I now need to have a drop down menu with different languages in it.the user selects a Language from the drop down menu the text of all the relevant objects changes from like a Button with pause on it in English changes to a button with 'Pausar' on in Spanish.
I have found some partial topics but none on this website so if any of you have advice. I have looked about on google but nothings come up with what I am after.
View 3 Replies
Sep 12, 2011
I thought this would be easy but for some reason it's giving me a rough time. I have a windows form with three equal size panels on it. Each panel takes up about 1/3 of the window width, less some inter-panel spacing.
The effect I want is if the user stretches or shrinks the form the panels maintain their relative 1/3 width and spacing, similar to how divs on an html page would size as the browser window is sized.
So I anchored the left panel to left, top and bottom, the center panel to top and bottom, and the right panel to top, bottom and right. This works fine in keeping the left and right panel anchored to their respective sides, and all panels now stretch with a form height change.
So in form resize I adjust the width of each panel to form.width/3. As expected this is close but does not account for the inter-panel margins I want to preserve and the form border width.
I played around with various constants and noting I do gives me the desired effect.I'm sure there is a pretty straight forward solution to this but I can't seem to find it.
View 2 Replies
Jun 12, 2009
I have to do some maintenance on an old VB.NET application (Visual Studio 2003) that uses Infragistics NetAdvantage 2006. I have a UltraCombo control binded to a DataView.
How can I refresh the content displayed after a change in the database?
View 1 Replies
Feb 7, 2011
i would like to ask how can i change the forecolor of a DataGridViewComboBoxColumn ?I want to change the forecolor when it is displayed i.e. not in edit mode.Not the EditingControl forecolor but the forecolor of the gray combobox when you just see the DataGridView.
View 2 Replies
Jul 18, 2007
I've got a tab control and want to dynamically add tabs depending on the output from a database. I can easily add a new tab, however I want to inherit the controls and layout from the initial tab.
View 7 Replies
Sep 6, 2009
With VB6 and VB9, I continue to have problems displaying images on a form while playing wav files (either by API call or by My.Computer.Audio.Play method).I set up a loop to display pictureboxes on a form (card images), with a wav sound file that is supposed to be played each time a picturebox is displayed. However the pictureboxes won't display until after the loop finishes and the sounds have been played several times in series:Example
For I = 0 To 3
picBox(I).Visible = True ' picBox is an object collection of pictureboxes
My.Computer.Audio.
[code].....
View 2 Replies
Sep 16, 2011
I want to create two columns of checkboxes but only the first column is being displayed.
[Code]...
View 3 Replies