VS 2010 Text Not Changing?
Jun 24, 2010
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?
View 2 Replies
ADVERTISEMENT
Aug 5, 2011
I'm working on a document editor and I want the user to be able to change the font of a selected text. I have imported the rich text box control from the options menu and place it into my form. I have a list box containing the names of the fonts and when the user selects a item, it changes the richbox's current selected text.
This is the code so far;
Private Sub tmrtextfont_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrtextsize.Tick
If lstbxfont.SelectedIndex = 0 Then
[Code]....
View 3 Replies
Jun 14, 2010
I am wanting to create a simple text editor that will change certain strings of characters to specific colors in two instances when they are being typed or when a file is loaded. Do I need to use a richtext box to do this and what would I need to do to accomplish this.
View 1 Replies
Apr 26, 2009
A] Is there any way of stopping a user from entering text or changing text in a textbox without disabling it or
B] Is there a way of changing the texboxes back and fore color whilst it is disabled?
View 5 Replies
Sep 2, 2011
how to change the text of a certain line in a text document? For example:
Open = 1
Let's say that is on line 19, and I want to change that text to
Open = 0
View 1 Replies
May 5, 2011
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
[code]....
View 3 Replies
Aug 11, 2009
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?
View 3 Replies
Sep 19, 2009
i have an access i need to change some data on.
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
[Code]....
View 15 Replies
Feb 17, 2010
Is there a way to specify where in an open file a program is supposed to look (like specifying the current line)?
I'm using FileOpen(1, path, OpenMode.Input)
to open the file, but i need to jump from place to place in it
Here's what i'm trying to accomplish:
I'm trying to navigate round in a file containing questions for a quiz game, but am having no luck.
The general form is like this
**********
~(tile)~(question)~(answer)~
~(tile)~(question)~(answer)~
~(tile)~(question)~(answer)~
[Code]....
View 5 Replies
Mar 21, 2010
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.
View 6 Replies
Dec 21, 2009
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
[code]......
View 3 Replies
Jul 23, 2009
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.
View 1 Replies
Sep 18, 2008
I tried a lot of ways to change a text box value in crystal report. I faild....
THis is what I tried to do (with no success...)
crystalReport31.Section2.ReportObjects.Item("txtCompName").??? "sdaf" ??
crystalReport31.Section2.ReportObjects("txtCompName"). ??? = "sdaf" ??
crystalReport31.ParameterFields.Item(1).CurrentValues.Add("txtCompName") ' = "sdaf"
crystalReport31 it is the crystal report document object.
View 5 Replies
Mar 25, 2010
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)
[code]....
View 5 Replies
Jun 21, 2010
RichTextBox1.SelectionStart = RichTextBox1.Find("Not Found")
RichTextBox1.SelectionColor = Color.Red
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".
View 2 Replies
Jun 4, 2011
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.
[Code]...
View 11 Replies
Jul 23, 2009
Ok, I have this command, which I think should change the text size in the webbrowser:
CType(AxTabControl2.SelectedTab.AttachedControl.Controls.Item(0), browse).document.ExecCommand("EditMode", False, System.DBNull.Value)
CType(AxTabControl2.SelectedTab.AttachedControl.Controls.Item(0),
[code]......
View 1 Replies
Dec 4, 2010
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
View 4 Replies
Jun 21, 2010
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.
View 12 Replies
Jul 8, 2011
im getting flickers almost everywhere in my app.
1. Enlarging form
2. changing label text
3. reloading multiple images
how to correct this. Look terrible
Ive attached a pic of how the labels are missing during the flickering, couldnt get an image of the white flickering
View 2 Replies
Jul 25, 2010
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.
View 14 Replies
Jun 27, 2012
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]...
View 1 Replies
Jul 1, 2011
I'm just starting out looking at asp.net. I've got this code that works in VB, but not in asp.
I've put this in the page_load:
Dim db_con As SqlConnection, ssql As String, db_cmd As SqlCommand, rdr As SqlDataReader
db_con = New SqlConnection("Data Source=myServer;Initial Catalog=processes;User Id=usrID;Password=mypwd;")
[Code]....
why this wouldn't work in asp.net? The issue is that the label is blank. In vb.net as soon as the form is shown, the lable says "It connected".
View 1 Replies
Sep 26, 2010
I have a Masked Textbox whose mask is "00/00/00", on the click of a button i need to change the the mask of the MTB to "000 Years 00 Months 000 Days" and also calculate the appropriate values of years , months and days.
I have used the following code to calculate the years, months and date, I want to know how should i set these values in the Masked text box.
[code].....
View 4 Replies
Aug 14, 2011
I have a series of text boxes in my form that can accept 6 digits. Upon entering the 6th digit I want the focus to move to the next text box. Is there a way to initiate a Tab command (just putting chr(9) didn't work...so that may be wrong) once the counter hits 6? I currently have the following code, using the .focus command but I am hoping to not have to create 25 subs to set focus to the next. My current
Private Sub txtEnter1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtEnter1.KeyDown
[Code]...
I can't just add txtEnter2.KeyDown (etc.) to the Handles of the sub declaration because then they would all set the focus to txtEnter2 instead of to the next text box. I'm sure it is something ridiculously easy but it is escaping my grasp.
View 11 Replies
Sep 3, 2011
So, I want to know. What are the possibilities of changing the FPS of a given program. If the odds are anything about 0,
edit: I didn't make myself very clear. I'm just curious if it's possible change a program's limit to FPS. For example, I can change Firefox.exe to only get 10 FPS, and nothing more.
View 6 Replies
Aug 3, 2011
I'm creating an application that is near completed.It has a chat server that it connects to that I coded. Here is where the bug comes. When you open the Application, There are messages that are loaded up in 2 different colors. Which is exactly how I want it. [code]...
View 2 Replies
Aug 16, 2011
I have this label inside a repeater <asp:Label id="lblsub" runat=server text="sdds" /> I am trying to change the text of this label,this is the code behind
[Code]...
unfortunately this code doesn't work for me ,the text value doesn't change,
View 2 Replies
Oct 20, 2010
I'm making a C++ code editor application using VB.NET. I'd like to change the color of the keywords as the user types it. Also I'm looking for a way to highlight some lines of the code.
Is there a way to change the forecolor and backcolour of a piece of text inside a textbox or a rich textbox?
View 3 Replies
Dec 4, 2009
How can i change color of just specific part of the label.text in visual basic 2010 express?
Dim b As Integer = 34
label.Text = "You have " & b.ToString & " new items"
for example, i just want to change color of the "b" here.or do i need to create a new label ?
View 1 Replies