I've got a button_click function that calls a Powershell script and outputs the results into a text box. This sometimes take a few seconds, so I wanted to first change the .text of the textbox (called Results) to "Please wait... searching remote PC" so the user knows the program is actually doing something.
Results.Text = "Please wait... searching remote PC"
Results.Text = RunScript(LoadScript(fullPCinfoScript))
However, the text will not change. It basically waits to change the text of the text box
am writing a program in vb.net 2008 ... I want the user to be able to change the font on a different form, however any code that I try and write comes up with the error code property is read only.. I hope I have given sufficient detail... oh one more thing I am trying to use fontdialog from the tool box.
Dim TelTBMenu As New ContextMenuStrip With TelTBMenu .Name = "TelTBMenu"
[Code]....
Whilst the form is loaded this runs fine twice, but then although the Setting boolean is reset the ToolStripItem text remains unchanged unless the form is re-loaded.
i am trying to automatically generate multiple text boxes on a form with the following code
Private Sub CreateTB(ByVal x As Integer) Dim y As Integer = 1 Do Until y = x
[Code]...
i need it to generate as many text boxes as the variable x states, so i used the do until loop thing. But i am stuck when it comes to naming the text boxes because obviously all the text boxes cannot share the same name. so i would like to know how to programmatically name each textbox uniquely.
I want to split each line at the comma and write the left side to a textbox and the the right side to another textbox. I'm close, with the code below, but I can only post results from the first line in the file. How do I loop this and append the text results in each of the textboxes.
Dim TempFile As String TempFile = "temp.txt" Dim sw As StreamWriter
I have to save the text boxe values of a form to a text file almost like a data record. I will be saving an Employee First Name, Last Name, Dept Number, and Phone Number. This I know how to do using streamwriter.
next form which we have to use stream reader to load one record at a time. The form has a next button to load the next record. How do I seperate each record (I am sorry for calling it a record if this is inappropriate) when use streamreader and how do I load a record at a time.
I know how to open a file and use streamreader, I just don't know how to read one record at a time and move to the next one.
I will show 3 columns of text in rich text box. i want show the column border with color.i can separate the texts with tabs or spaces but showing data in columns and cells will improve the visual of my program .
I use the panel in the form, the panel contains one text box and the form contains another text box. When I click OK button the panel, ill hide.and the form ill show, the value of text box in panel is transfer to the another text box in the same form.
I'm new to VB.Net. I try to convert from VB6 to VB.Net (2008) with a simple code as shown in the picture below but its come up with Warning. Did anyone know how to solve this warning. Sorry for lame question..
I'm using a richtextbox with scrolling and I need help with changing a certain line of text to an different color but when I use forecolor and appendtext it changes all the text in the textbox the same color. What can i do to change certain text lines?
So i made a new .net project with a gridview, Refresh Button, and Save button. The Gridview is filled by records where the Mobile Number for each record begins with "7" Theres about 7000 total that it brings back.
I want to loop through each Cell and add a "0" to the beginging of each of these mobile numbers, then user can hit save (user will only be me i guess!)
how can i change the text in the cell to do this? i thought this would be easy but for some reason i cant figure out how to change the cell values!
heres my code thus far:
Public Class FrmMain Private Sub FrmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Does anyone know why my text isn't changing? When my main form's "logging in" screen appears, the text is supposed to change as it makes changes to the main form. I did this by having a timer start when the form loads and as it ticks the actions are performed and the text changes. The timer's interval is 1,000.[code]By default, loadingtxt says "Logging In As (Username)". However, the text just remains as this instead of changing. Is the timer's interval not big enough or something?
I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles. The following code resets all the font attributes, which is not what I want:
I am using drawstring with the DrawMode set to OwnerDrawFixed on a tab control. The Tabs have a alignment set to left, but the text is displayed in a horizontal orientation. I would like to change the orientation to vertical. I am expecting this to be simple, but can not seem to find the correct input parameters for drawstring.
It's purpose is as follows:It basically is a "check list" for installed program's, and files. I image machines on a daily basis, and me making this application will save me hours, and hours of time.The basics:My program basically has 2 forms. 1st form, will be tabbed with "clients" or, different model of PC's. Each tab will have it's own checklist. I know how to pull external files already, though, that's not my issue.Basically, when I click "check list" button, it searches for an "adobe", and "Labtech" Directory. If it exists, it will throw the result into form2.richtextbox as Adobe is installed, or Adobe is not installed. Also, Checks if the second program directory is there, and then imports the info into form2.richtextbox on a seperate line. My question is, how do I change the color of the text per line?I.e. make Adobe is installed turn GREEN, and Adobe is not installed turn RED ect.
Form2.Show() Form2.Show() If Directory.Exists("C:\Program Files\ATI") Then
I'm fairly new to VB and I had a quick question. I have a multi-line text box that currently looks (line for line) like this:
scn <Name> Begin <Start Variable> End
What I am trying to do is make so when I enter text into a different text box (lets call it textbox2) and push an 'Update' button, it replaces a certain part of the original text box. For example:
If I enter "Dogs and Cats" into textbox2 and push update, then this:scn <Name>
becomes this:scn Dogs and Cats
How would you do that? Excuse my lack of VB programming lingo like I said I'm new to this language.
I'm trying to change case(ToProper)and color of predefined strings as the user types them in a richtextbox,I know how to change color as for changing case the code I know works when I use it under a button or menustrip and it changes the whole text while what I need is to change color and case of my strings at the same time as the user types them Here is the code I know
'Changing Case Dim Properstring As String Properstring = StrConv(RichTextBox1.Text,VbStrConv.Propercase)
that is my code.. my problem is in my richtextbox1, there are many line that contain "Not Found". So how can i change colour for all of that text to red colour? my code only work only with a single line that contain "Not Found".
I want to change some text inside a textbox when a checkbox is checked. I tried many things, but none seems to work. I need that, when checkbox gets checked, the textbox value gets deleted from backwars until a dot. Then, place another predefined text immediately after this dot.
i am creating an rtf editor and i am trying to Change the colour of selected text. at the moment my code changes the colour of the whole text, but i want to be able to highlight my text and have 2 seperate colours, below is my code. Have tried to add .selectedText in but it says it 'SelectedText' is not a member of 'System.Windows.Forms.ColorDialog'.
ColorDialog1.Color = Editor.ForeColor If ColorDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Editor.ForeColor = ColorDialog1.Color End If
i have a project to generate code for TabControl.I'm doing 1 form whit textbox-es to enter the tabcontrol properties (name, size, pozition) For the number of the tab pages in the control i'm generating dynamicly another tab control with the number of tab pages entered in the tab control tab pages field [code] this is the part of the code, i have more fields.What i'm trying to do is when i enter the tab name in theTextBox_tp_name field in the generated dynamicly tab pages, the tab_pages.Text have to change when i enter a new name in the theTextBox_tp_name.
I am new to Visual Basic 2010, but I have been trying to make a line reader with an imported text document into a RichTextBox through an internet source.
I want the RichTextBox's line zero (the first line) to really be line one, but without changing the text in the TextBox to show the change. In other words, I want that change to happen in the background of the program.
I have tried... taking the text from one TextBox and putting it into another, while subtracting an integer value of onean attempt to use a timer to copy the text from one TextBox to another to read the line properly.
I have tried a couple of other things too, but most of them were much more complicated and I could not really explain what each thing did.[code]...