I only want one char per line to be accepted in my multilined richtextbox. This means that when one char is typed, then the richtextbox should automatically change line.
So typing 'hi!' should show as: h i !
I tried this but i seem to get out of bounds.
Private Sub txtrtb_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtrtb.KeyPress txtLength(txtrtb)
I am currently stuck on trying to collect some string items from a richtextbox and then count how many items there are. I then want to relocate one of the string items if there are more than three into another richtextbox.I currently have been attempting to capture the string items into an array but I have had no luck.The items in the richtextbox are
Laura Philips Jaime Jarvis Rachel Dawkins
So in this case I would want to remove the last entry "Rachel Dawkins" and place it into another richtextbox.
i want to read a character 1 by 1 from a string and a .txt, i know all about stream reader so for the .txt would it be somthing like:textbox1.text = tr.readCharacter.i would prefer to be able to read from a textbox or String array though.
I need validation for string to comply with next: no space char starts with one delimiter char ends with one delimiter char has no other char as delimiter char. Updated sorry missed that should only be one delimiter char at start and at the end
I am trying to get a character from a rich text box based on two variables (one for the x coord and one for the y coord. Everything I've tried so far has lead to errors. The get char from position option returns something about not being a part of system.draw... something
I know how to get the cursor position but how do I add a character to that position. Like I want to have a button that adds a specific character at the position of the cursor.
I don't see any richtextbox properties that allow me to add anything at the cursor position.
If TypeOf Me.ActiveControl Is RichTextBox Then Me.ActiveControl.SelectedText = Chr(176) End If
I have made a X,Y counter with a timer and a Label. Its work, but sometimes the X,Y values is not corret, as before.We say that a red dot has the X,Y Value 300,400. Then i close the program och open it and check agin. Then the dot can have the X,Y values 304,407. Now it's seems to be that the program has choosen that the red dot has the 304,407 as X,Y value. But i KNOW sometimes it's goning to chanes back.
Like I imagine everyone, I often have problems navigating my code because the flow can jump from place to place. For example, if my code calls routine1, and I then want to go to routine1's code, I know that I can click in the dropdown menu and it will take me to that sub. But wouldn't it be easier if I could somehow right click on the call to routine way and select something like 'take me there' which would transport me from the function making the call to the code for the function being called? Then it would be easy to hop from place to place.
I have a loaded combo box and was wondering if there was a way i could get the place value from it when it is selected. An example would be i have a combo box full of foods:
Apple Bannana Peach Pear
if the user selects apple then i want to be able to get 1 from the combo box since that is the spot it is in. if peach was selected then i want to get the place value of 3.
Well I currently just finished my game, but it ended up around 1GB. Thus, I tried to revise the code to make it smaller. I am trying to get 2 form events under a single sub. For example, a sub for a town would have the shown event and the click event. However, when I try that it won't work.
The other way is to transfer variables and its data from one sub to another. But I dont know how to either Example:
Private Sub Number Dim TheNumber as integer TheNumber = 1
I have split a string into a char array, now i need to copy the char array to an int array with the ASCII values of each char.Donīt know how to do it without looping each value.
This is my code:
origen = RichTextBox1.Text.ToString Dim valor As Char() = origen.ToCharArray Dim numeros As Integer() = (How can i convert "valor" to an int array?????)
how to place stuff on forms and such but not much else so i was wondering if a book was better to use to learn or something from a website? if book which books should i check out or which website?
In a program of mine, I have a resource (which is a textfile). This contains also vb.net code, It is resource which is binded to an .exe, with the mainprogram that I have. So the main program calls the resource, and the resource bind to an exe file.
I have this line: Declare Function GetProcAddress Lib "kernel32" (ByVal handle As IntPtr, ByVal name As String) As IntPtr In the source.txt and I want to replace this whole line by a string(or word) which calls this line from somewhere else. For example in another source.txt. A textbox is not possible because this is not a vb form, but a .txt-file. Maybe I can create another resource, which IS a vb.net form, call it or something? In this case. I can create a textbox with this line that I gave above, And I can use it by: textbox1.text.
I am creating a Map Rotation Randomizer for my Call of Duty clan, and I am having an issue with understanding how to randomize the text from the list and placing it into another textbox.
Here's what it looks like right now: All textboxes are multi-line.
When I click a button for a game (CoD4, MW2, WaW), it places the map list into the left textbox like: mp_bloc mp_broadcast mp_crossfire etc.
When I click the button with ">>>", I want it to randomize that list and place it into the right textbox like: map mp_bloc map mp_broadcast map mp_crossfire
Or if I click it again: map mp_crossfire map mp_bloc map mp_broadcast And so on. I think I need to create an array, but I've never worked with those before as I'm still new to learning programming. I'm not even sure what controls I need to put on the form for that, if it even requires any.
I'm in college & in my part time I have been working on some automated web task apps. Just real basic stuff to automate my own personal account tasks on small social networks (not facebook!) to keep up with fan's for my 'soon to be' record label....nothing multiple accounts & it's not any kind of unsolicited spam functions. I know I could obtain most/if not all the info/code I need on this forum... I guess some people just need their hand held more than others, in order to stay focused.
Basically I've just got some things I'd like to add to my application that are above my ability & I need someone to help me out with my code. REALLY SIMPLE STUFF..like I've still yet to figure out for example:
1) How to simply pause between functions, as opposed to having to use a timer for each function. And using 1 timer to enable another timer...and so on in that fashion. Which becomes incredibly confusing & hard to edit after adding more than 3-4 timers reliant on each other LoL
2) Figuring out a way to not have to rely on 'webpage has finished loading' to move onto the next task. When many times on social networks, pages don't load properly, especially during peak hours, thus stopping the function of my web browser based application.
3) Implementing my application using a superior web browser framework. For example Gecko, or some other 3rd party browser that can perform simple tasks like filling forms, submitting them, clicking links/clicking javascript links.Right now using I.E. web browser, after my application has loaded about 75 web pages, it's using about 200mb of ram (from its initial 16mb) because of a memory leak in I.E. to which there is no solution (documented in several threads on this forum).Where in your opinion, would be a good place to look to hire a programmer/tutor for something like this? Because I am not looking for just code, but hands on, like on IM messenger/talk me through help too. I wonder if there is even a place offering services like that?