I'm new to Visual Basic and I am trying to set up a currency converter. I have converted a currency to UK Sterling on the first form and on the second form I want to have the same label with the same amount of UK Sterling as on the first form on the second form.
I am writing a program for my A-level coursework But for some reason I got this build error this has never occurred to me before, I have no idea why I can't use string for the name of my form.
I have a simple but tricky problem: I have a label inside a container control (form, panel, or whatever). The labels anchor is set to bottom & right, auto-size is set to true and the textalign property is set to middle right. The length of the text changes during runtime. I want to ensure, that the right edge of the label stays sticked to the right edge of its container no matter what the length of the lebels text is. I know I could do that in code, but is there a simple way to do it at the design-time?
I'm currently very far into a project which has taken me several months. I have suddenly hit a snag. I have 6 Aboutboxes and of course 1 Form and Splashscreen.On the splash screen I have some lables and I can't seem to edit them, its like they don't exist, but there deffintly there.Another problem is that I cant resize the Form, and also 2 of the aboutboxes, won't resize either. I can resize it by holding shift + arrow, but this is highly unpractical and unnecessary, since it worked perfectly before.
Public Sub SetLabelColours(ByVal Colour As String, ByVal TFont As String, ByVal TColour As String, ByVal TSize As String)[code]...
Is there a way to do it in 2010 .Net? It errors on Forms. also it doesn't like FontSize, I don't see a setting for font size in the drop down, can we set it no more in 2010? I am using RTB's as well.
I need to create a simple label and when the user clicks the label, the label changes color...sounds easy BUT...if the user moves the mouse cursor away from the label and then clicks the label a second time, then label returns to its original color. I am trying to create a loop to loop through two array indices, but it just doesn't seem to work.
I am successfully hiding a combobox, based on the selection of another combobox. However, I can not get the label of the combobox to hide as well. The code I am using, which is basically the same code for hiding the combobox itself returns the following error: Error 1 'DOCUMENT_EVALLabel' is not a member of 'WindowsApplication1.Form1' Here is the code I am using for the label: Me.DOCUMENT_EVALLabel.Visible = (EVALUATIONComboBox.Text = "Text")
I have a label in my Form which on loading, displays the contents of a text file. The contents of the text file may change and if so, the number of lines also will. I would like the Form to automatically resize itself based on the number of lines in the file. If there are more lines that the size of the label can take, I would like it to either resize or show scroll bars.
so i am busy with a mediaplayer ( just for fun ) and everything pretty much works, but one thing doesn't.the thing is ive got 2 labels, the first label needs to show how much ive already played, and the second label needs to show the duration of the media file.example: a media file from 1 hour 32 minutes and 18 second and i have already player 43 minutes and 9 seconds from it, then the first label needs to show 00:43:09 and the second label 01:32:18.
I have a component (GLabel), which can set shadow.I also have 2 trackbars which should change the offset of the labels shadow.I use this code, but it doesn't work, I think I miss something:
Private Sub RadTrackBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles RadTrackBar1.Scroll RadTrackBar1.Value = GLabel1.ShadowOffset = (New Point(GLabel1.ShadowOffset.X, _[code]............
I am trying to learn Vb.net 2010 by converting a Vb6 Sudoku program that used text box arrays. So far I have a programmatically generated grid of labels, which seems to work OK.[code]...
I have 2 forms (e.g Form1, Form2) which have multiple labels drawn on them (e.g Form1 has Label2,Label3 and Form2 has Label5,Label8).How can I fetch into an excel (or notepad etc) sheet the total number of labels and their names that I have in my forms?
I am using a for each loop and each time the loop executes, the text of the label has to be changed.. But for some reason, it only changes the text of the label during the last execution of the loop...
Here is the
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dll
I want to read from a text file and display it in a label. However, when I do that, I see that there is no word wrapping. In the sense, a whole paragraph is displayed in one line and the next one in the next line and so on. Can some one please tell me how to read text from a file and make it display as it is (lines as they are)? I am using the following code right now:
Is there a way to change label text at run time?. I don't want to annoy users with popup. So planning to display error in a label if its text could be changed.
So far I have included a Main Form which has a label lblErrorFeedback which is not visible initially and I have done this but does not work.
Is it possible to edit a labels' font and size etc at runtime? If so how would I do this? apparently it is read-only? Im basically learning about decision structures at the moment and would like to change a label font based on a case statement?
how to justify the text in the labels so that they look good - I mean, instead of the default left-aligned text-format, is there a way to make it justified.
When I drag a label control from toolbox to form, default autosize is true. I need to change to false every time. (I do not like true). How to make default value as false as default value?
I've been programming in vb.NET for a whileAnd to be honest, its turning out to be a real pain.Here is the
Form1.vb: Imports System.Threading Public Class Form1 Dim trd As Thread[code].....
So, I have a form (form1) with a label on, this label simply reports the status of the thread.The thread begins the Class1.Main() sub, and I have a delegate setup to change the text propoerty of the label.Now,I know the label is created on the UI thread,so I assumed the delegate would work. However,it seems that it updates the .text property, but doesnt redraw the control when .Update() is called .What am I doing wrong?I have found lots of examples of delegates, but all run from within the same class. I want to use threads too, not a backgroundworker! This code is a "simplified" version of a project I am on, which is encountering the same problems
I have 2 forms. The first form has a label on it. The second form has a combo box, a text box, and a button on it. In the second form, when I select the label name that I want to edit, I type in what I want to change the label name to in the textbox and I click the button. Now this goes through flawlessly except I want the combobox item to change to the NEW label name. I've been able to do that but when I close the form in run-time and open it up again, the previous label name appears once again. Is it possible to make the combobox add the new label name and KEEP it in its collection?
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.
I have a Combobox1 and Label1 in a form. There are items in ComboBox1 which is integer from 1 to 9. I want the user select the number in the combobox, and the selected number will be * 2. The answer will be shown at Label1.Text without any Click Button Event.
I have items in a listbox. the user have to select one item(its mandatory) and after have to click next button to proceed to the next form. in the second form the selected item should be displayed in a label.
How can I make an event for a tabcontrol which has Tabpage1, Tabpage2, Tabpage3, and so on.. For example... There's a label outside the tabcontrol (Label1). If tabpage1 is selected, how can I make the label1's text changed?
I would like to add in a progress bar and a status (label control) which will display what system doing after user click a button. There are few status: Eg: Importing data, Verifying data, Generating Report
Part of my coding: ---------------------------------------------------------------------- Private Sub cmdImport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdImport.Click ProgressBar1.Visible = True
[Code]....
lblStatus is the label which will display the current status. But.. while user click the button, "Verifying Data File" is not displaying. After the system complete the whole progress, lblStatus only display the text.
is its possible to have a link/button inside a textbox or label... or other term for that...for example.. i am populating some chapters in a book... then i would only display 250 chars from each chapter... then i would end it and add a "Read More" text in each chapter.. and when they click it.. i would populate the whole chapter of selected chapter in the textbox...
Have a label on a form which I want to show run time status, and have a code module which stores some functions. How do I send text from code module functions to this label on form?