VS 2010 RichTextBox : Char Always On The Same Place

Aug 17, 2011

I made my irc client. It sends & receives to a richtextbox like this :

Well, you might know mirc or nns, there it is like this :

How can I do it the same, so all the text is at the same place, under eachother, like on the second screenshot.

& another question : How do I color words in a richtextbox ? I tried Selectionstart = Find("blablabla")& selectioncolor = color.red

but that selection dissapears when someone send a new comment.

View 1 Replies


ADVERTISEMENT

Accept Only One Char Per Line In A RichTextBox?

Nov 29, 2009

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)

[Code]....

View 10 Replies

Richtextbox - Place Cursor At Row?

Apr 9, 2009

How do you make the cursor go to a specific row in a richtextbox (or) select everything in that row?

RichTextBox1.Select(0, 2)?

View 3 Replies

Get The Image Path And Place It On A Richtextbox?

Jul 23, 2011

how to get the image path and place it on a richtextbox,get the path or directory of the image file that I was chosen in a opendialog ..

View 2 Replies

Remove Item From Richtextbox And Place Elsewhere?

Jun 10, 2011

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.

View 5 Replies

File I/O And Registry :: Read Char By Char From A String?

Dec 16, 2008

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.

View 10 Replies

Validate String To Have No Space Char And Only First And Last Char As Delimeter

Mar 30, 2012

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

View 2 Replies

Operator '-' Is Not Defined For Types 'char And 'char'?

Sep 30, 2010

Public Shared Function UrlTokenDecode(ByVal input As String) As Byte()
If (input Is Nothing) Then
Throw New ArgumentNullException("input")[code].....

View 3 Replies

VS 2010 Char / Dec To Hex Function?

Aug 10, 2011

I want to convert a decimal value or a hexadecimal char.Someone could write a function?

View 5 Replies

VS 2010 Get Char From Position (rtb)?

Jun 6, 2011

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

View 3 Replies

VS 2010 - Removing First Char Each Line

Mar 25, 2012

I have a textbox multiline and i want to remove each first element of the textbox.

[Code]...

How i can remove the first element of each line of the textbox ?

View 1 Replies

VS 2010 Add Char In Rtb At Cursor Position?

Feb 23, 2011

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

View 10 Replies

VS 2010 Cannot Convert Char To Money

May 10, 2011

I'm trying to insert data into a table but I get the error "Cannot convert char value to money. The char value has incorrect syntax". Here is my

[Code]...

View 3 Replies

VS 2010 Way To Insert Char Into String?

Feb 24, 2011

I have string that is equal to 112233. I need to insert "-" after every second char in string so i wrote the

Dim str1 As String = "112233"
Dim str2 As String = ""
Dim i As Integer

[code].....

View 5 Replies

C# - Extract Char By Sequence In A String Vb 2010

Dec 24, 2010

I have a text in richtextbox1, i want to extract each 3 char of the string and so on, like:

[Code]....

How can i do it ? Code can be in C# 2010 i will translate to vb.net 2010

View 1 Replies

Increment A Char - Turn Char A Into B?

May 19, 2009

i am trying to increment a char in vb.net, eg: Dim letter As Char = "a"c. and i want to make it b, and so on. how can i do this?

View 1 Replies

VS 2010 Operator '<<' Is Not Defined For Types 'Char' And 'Integer'

Mar 14, 2012

I am trying to convert a piece of C# code, and I ran it through a converter, and had to make some changes.I am now running into this error:

Operator '<<' is not defined for types 'Char' and 'Integer'

The code is:

a += CType(URL(k + 0) + (URL(k + 1) << 8) + (URL(k + 2) << 16) + (URL(k + 3) << 24), UInt32)
b += CType(URL(k + 4) + (URL(k + 5) << 8) + (URL(k + 6) << 16) + (URL(k + 7) << 24), UInt32)
c += CType(URL(k + 8) + (URL(k + 9) << 8) + (URL(k + 10) << 16) + (URL(k + 11) << 24), UInt32)

The error occurs on each of the (URL(...) << X)

View 11 Replies

VS 2010 The X,Y Value Place Changes?

Aug 16, 2011

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.

View 1 Replies

VS 2008 Navigating My Code - Flow Can Jump From Place To Place

Mar 11, 2010

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.

View 1 Replies

VS 2010 : Getting Place Value In Combo Box?

Dec 8, 2010

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.

View 2 Replies

VS 2010 Place Two Events Under The Same Sub?

May 20, 2012

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

[Code].....

View 18 Replies

Copy The Char Array To An Int Array With The ASCII Values Of Each Char?

Mar 22, 2012

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?????)

View 10 Replies

VS 2010 How To Place Stuff On Forms

Aug 19, 2010

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?

View 5 Replies

Copy Folder With Its Content From Place To Another Place?

Dec 18, 2011

How copy folder with its content from place to another place. example from C: to D:

View 15 Replies

Can't Place A Textbox Upon A Groupbox With 2010 At Runtime

Feb 2, 2011

I'm able to place a collection of textboxs on a form at runtime (no surprise)[code]...

View 3 Replies

Place To Learn Web Site Development Using VB 2010?

Sep 22, 2011

I always wanted to make some websites. Is VB 2010 a good tool to make websites?

Where is a good place to start. Tutorials, examples and all of that.

View 1 Replies

VS 2010 - Calling API From Resource Or External Place

Jan 15, 2011

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.

View 2 Replies

What Is The Difference Between Char And [char]

Jun 5, 2009

i have found [char] specified in some of the examples at msdn , what is the difference between char and [char]

View 2 Replies

VS 2010 - Randomize Text From List And Place Into Another Textbox

Jan 23, 2011

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.

View 13 Replies

VS 2010 Place 2 Hire Coder/tutor To Project?

Apr 26, 2012

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?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved