For those who know by now the project I am bussy with is done in Afrikaans. Thus my qwestion, how can I change the text of MsgBoxResult (Yes, No) to (Ja, Nee)? Is it even poseble? Hendri Bissolati noviceprogrammer@vodamail.co.za
I have a datagrid and I want to delete selected row from that grid. It is working fine upto this. but I want to add some advance functioning with msgbox YES-No buttons. If user select some row and click on delete button, A msgbox with YES/No options appears. If user clicks YES, row should be deleted but if No is clicked then that row should not be deleted.I have tried it many ways,
Below is the code: Private Sub btnDeleteSitting_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDeleteSitting.Click
I'm using a Messagebox, which shows the Yes-button using my local language. However the use of MsgBoxResult.Yes.ToString returns "Yes", which is not what I was expecting.
When I start my application I get the following error:
method not found microsoft.visualbasic.msgboxresult
I have tried repairing my .NET installation.
Note: This error only occurs on one machine. On every other machine it works fine which makes me think something with the .NET assemblies was corrupted. It was working fine on the broken machine a few days ago.
So, 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
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.
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.
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
I 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]...
I 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]....
I 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.
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 am new to visual basic and i'm having difficulty changing color of a text. I'm currently using visual studio 2008. My program is similar to a search engine in which you type a term inside the searchbox and the program will produce the results in a separate message box that will pop up. I would like for the search results in the message box to be changed to a different color.
I'm trying to make a text ecrypter/decrypter were I can choose how it gets encrypted. So i'm using the 'Replace' method to replace a letter to a different letter. But what happens is, only some of the letters convert correctly! What some a doing is converting themselves twice. So if A gets replaced by B and B gets replaced by A, if i entered A, it would convert to B, then back to A.[code]...
Is it possible too change numbers into text?. I have two textboxes, textbox one has a value like 85.22, can textbox2 read as Eighty Five Dollars and 22/100 ?. No matter what textbox1 value is it will read text in the second textbox.
I'm trying to find a way to change the name of a text box if the name of the text box is first declared as such:[code]I tried the statement: Name = "SBox" & My. Settings. Row Countx but maybe this is wrong.To be very brief I'm trying to resolve this to under the following scenario:
1. Add a new text box to a tab page when user selects "add" button.
2. Each text box must be assigned a unique name
3. Data entered in each text box will be then be saved in my.settings (i.e., for each text box, there will be a corresponding variable/name to hold its text value)
I am using Visual Basic 2008 I am trying to capitalize words in a text box. I am using the following code (which, in case you don't recognize it, came from an example which I modified):
Public Sub FuncKeysModule(ByVal value As Keys) 'Check what function key is in a pressed state, and then perform the corresponding action. Select Case value
[code]....
In the application, I select a word in the textbox then hit F2. The text is pulled from the textbox, I manage to change the first letter to a capital letter BUT I cannot change the textbox.I already set the ReadOnly property of the textbox to False when I initialized the textbox. It looks like the Replace function does not work.