VS 2008 Cant Change Text?
Feb 25, 2010How do i make it so the user cant change a text in a textbox with out disabling/read only?
The reason I dont want to use the disable function/read only is because it puts the gray background on.
How do i make it so the user cant change a text in a textbox with out disabling/read only?
The reason I dont want to use the disable function/read only is because it puts the gray background on.
I cant seem to find any link or topic regarding my problem. I have 2 forms in a project, form one has labels and adjacent combobox while the other form (form 2)has textboxes with adjacent combobox. I am supposed to change the text property of the labels using textbox entry from form 2 and add/delete/change combobox contents in fom 1 using entries combobox at form 2.
View 13 RepliesI have a rich text box and a fontDialog control. I am using it for the obvious purpose of changing the font of the text in the rtb, which I can do. What I would like to know is how, if there is no text selected inside the rtb, to make it only change the text that is typed after the change. I have already made it so that a selection can be changed independently but cannot make it change only text that is going to be typed if there is nothing selected.
View 1 RepliesHere's my working
For i = 1 To 32
Dim objLvItem As New ListViewItem(sumAward(i))
objLvItem.SubItems.Add(CStr(intWorked(i)) & " / " & intConfirmed(i))
lvSummary.Items.Add(objLvItem)
Next
When intWorked(i) and intConfirmed(i) are both = 50, I'd like to change the font to a bold red, otherwise leave it as is (not bold, black). How do I do this?
In the event of SelectedIndexChanged() I need to updated text of an item that is highlighted. If I remove it and .SetSelected again, this event will be entered repeatly. So how to update the text of this item in this event without deselecting and re-selecting it?
View 10 RepliesHow would I change the text in the last column in the listview. I was thinking of looping around the lsitview but that would just change ever item. Anyways this is what I have.[code]
View 5 Replieschange the colour of text in a textbox through a button in a simple text editor that i am working on?
View 2 RepliesHTML
If CompLang.Text = "ru***" Then
CompLang2.Text = "working"
End If
This is just a simple example. I'm trying to make it so that if one x.text = ru*** (for instance, ru---, or ruuuu, or rux2x, etc.) to have x.text change to a predetermined value (hardcoded).
is there a way so that a button will get it's Text Property from an array on form load?
View 4 RepliesI am making an application and i require a labels text to change between specific times. For example between 11pm and 5pm i want the label's text to be "closed" and then between 5pm and 11pm for the text to be "open".
View 6 RepliesIm trying to change specific lines of text in a listview at certain times of the day. Heres what im using atm , but im not sure how to change the text in the listview.
If Now.Month = 2 And Now.Day > 6 Then
ListView1.Items(0) = ("My text here !!")
End If
Is there a way that a label's text is updated each time the input of a textbox changes? The textbox and the label are on the same form. I looked everywhere but didn't find a solution that worked.
View 10 RepliesSo, I've got a text boxes which loads up a content from a XML file, usually a numbers I want a button, so when I will change the numbers on the text box, the data in file will change as well, in other words a save button That's how the data is being taken from a file
[code]...
Those EditPaths, Playa2 etc are making up a path to a file
1) How can I make the text in RTB control to change without clicking on it (RTB control) again? I notice that the event handler is mousedown so its only occurs whenever the users clicks on the controls. But I really have no idea how to do that. Anyone can guide me how to do that???
2) How to make the RTB's Back Color to transparent??? Cause it is not supported. Or is it I use the wrong control???
[Code]...
I have a label that reads a random line from a text file and that string becomes the text for the label.
Now the problem; the label will only work if it is clicked because the event handler is click.What I need is this to work automatically at startup. In other words, it should change the label's text to the random string of the text file on startup of the application.
Here is my code.[code..]
everyone! I've been at this for a while, and I'm not sure how this issue can be resolved:I'm working on a project in VB.Net, and I have a form with a rich text box. I have a groupbox with 4 radio buttons inside that are intended to change the font color of the text. Coincidentally, I have to repeat this same functionality for a 2nd set of radio buttons that would change the text font family.
At any rate what I've only been able to do is the following to successfully change the font color of whatever text I highlight in the rich text box:
Private Sub rbtnBlack_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbtnBlack.CheckedChanged
rtbxTextEditor.SelectionColor = Color.Black
End Sub
Private Sub rbtnRed_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rbtnRed.CheckedChanged
[Code]...
Is there a way that I could write a sub (I'm assuming I would use a sub, since I don't think I need to return anything, thus eliminating the use of a function) that would handle the action of changing the selected text color in the rich text box without having to use a separate sub for each radio button? Mind you, per my teacher's specs, she doesn't use a button handler for any of this.
My application appends incoming report data onto a RichTextbox control. As more text arrives from an external device, the thumb initially fills the trough and as times goes on, the thumb diminishes in size. This is expected behavior.A modal dialog box allows the user to cancel the file download but since it's modal, the user can't scroll down to see what the last text that was appended.Is there a property/event/method that will show the most recent/last text in the RichTextBox control, rather than the initial text as I have it displayed now? The user would be able to see the text drawn real time without having to use the thumb to accomplish
View 2 RepliesI have a normal textbox which multiline property is set to true and now I need the text written in the textbox should have a large font size.So is it possible with the normal textbox.[code]...
View 1 RepliesI want to force all capitol letters in a label and when text is input into a text box. How can I do this?
View 1 RepliesI have this problem but I already simplify the code as below:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = "hello"
System.Threading.Thread.Sleep(5000)
'MessageBox.Show("hahahaha")
Label1.Text = "world"
End Sub
What I'm trying to achieve here is, after I click the button, the label1.text should change to hello, and after that to world. But I couldn't achieve that. Instead when I click the button, it just paused for 5 second and displayed world.System.Threading.Thread.Sleep(5000) The code is just a dummy for a loop that I have.
I am currently working on a piece of code that allows the user to change the colour of some text in a text box. I have done the size and fonts fine but colour i am struggling on. I am using radio boxes to select the option. The code I used so far that works is this but how do I add the colour into it?
Private Sub radioArial_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radioArial.CheckedChanged
If radioArial.Checked = True Then[code]....
How can I change certain text's color (like Visual Studio does with "Public Class" or "Public Sub") is inside of a Rich Text Box?
View 14 RepliesPrivate Sub ColorToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles ColorToolStripMenuItem.Click
[Code]....
Will not allow me to change the fore color of my text in my text box
How to use a controlbox to change the text color in a text box in visual basic 6.0?
View 3 RepliesI am creating a Pizza Order program as part of my coursework college. why something isn't working.
Quote:
lblTotal.Text = Val(Form2.lblPizzaTotal.Text) + Val(Form3.lblDrinksTotal.Text)
The code above is what I am using to add the Value of Label 1 (Pizza Total) and Label 2 (Drinks Total), however it seems that in the final total it doesn't appear to add the value of Label 2.
How do i change the text for a tab?
I have tried
Me.TabControl1.TabPages.Item(1).Text = "Qwerty"
This works, but the text is no longer in the centre.
[code]...
What I am trying to do is change the value of textboxes that were created based on the fields in a database that also supplies the datagridview. The column name and the names of the text boxes are the same. My text boxes are nested in a tab page, a split container and a group box (allows the user to move the controls around on the form via another class) the datagrid view is also nested in a tab, and a second panel. What I want to do is when the user selects on cell from one row the text boxes fill with the contents from that row. The datagridview itself will also be editable, but the text boxes are there so the user can more easily see which data they are dealing with.
i want to change the output text on code page in semicolons nothing more help me shortly your site or mail.
View 2 RepliesIn SSRS when a field returns a number eg 4072, I want to display text "Motor"
=First(Fields!DIMENSION.Value)=4072,"WEG Motor"
In SSRS when a field returns a number eg 4072, I want to display text "Motor"
=First(Fields!DIMENSION.Value)=4072,"WEG Motor"