VS 2008 CTRL+I In RichTextBox?
Aug 5, 2010I use CTRL+I to switch on/off the Italics, but what is also happening is that the cursor is being indented.
How do I stop the cursor from indenting?
I use CTRL+I to switch on/off the Italics, but what is also happening is that the cursor is being indented.
How do I stop the cursor from indenting?
control Paste (Ctrl+P) Image size in RichTextBox I can do an context menu with a item of Paste, and in it I can control what image type is (width, height, resolution, format...), then for example I can msgbox when the user try to paste (using contextmenu) a too big image. but if the user uses Control+P the paste occurs whitout my code.
[Code]...
I am using a 3rd part dll file (SolidWorks EModelView.dll, COM file) that has a version of 9.2.0.128. When I add it to the resources for the application, however, the AxInteropEModelView.DLL and InteropEModelView.DLL references show a version of 9.0.0.0. When I install the application on a client machine and try to run it, the application says it cannot find AxInteropEModelView.DLL version 9.2.0.128!
View 5 Replieshow do i call a routine when the user press CTRL+Z or ctrl+somthing?
View 10 Repliesusing the getasynckeystate for ctrl + c and ctrl+ v or copy and paste..How will I do that in this code? For example when i type in notepad it should also do in the richtextbox with this code it work but when it comes to copy and paste word in notepad it does not works and the richtextbox is empty?
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
For i = 1 To 255
result = 0
result = GetAsyncKeyState(i)
[code]....
I am using visual studio 2005.If I try to do wordwrap using Key combination (ctrl+R, ctrl+R), I get following messege:"The Key combination (ctrl+R, ctrl+R) is bound to command (&Rename...) which is not currently available.
View 3 RepliesI am using vb2005 to send keystroke to stock application software so i need to send Ctrl+C to an open window in the stock software then send Ctl+V to Excel in a specified worksheet and cell
View 2 RepliesI noticed that ctrl-c and ctrl-v are not working in my project. I am using VB2008 and have an MDI project. The child forms have textboxes but I cannot use the shortcut.
View 3 Repliesim doing a login i have finish it but you can close it by using alt+f4 so i need to block the alt key im using vb 2008
View 2 RepliesI am new to VS 2008 but have used VB6 for years. I want to be able to run my program in the IDE but when a Msgbox displays a message I want to stop the program and see the MsgBcode. I am using Windows 7 and VS 2008 professional on a 64 bit machine. How can I do this? Do I have to install a 32 bit version of VS 2008?
View 2 Repliesanyone knows how to sendkeys CTRL+U
View 6 RepliesIs it possible to disable ctrl+alt+delete in code? Can anyone post an example?
View 15 RepliesSo I'm working on my webbrowser, and just managed to get the ol' tabs working for it, but how would I go about adding a shortcut like "CTRL + T"
I tried this:
Private Sub TabControl1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TabControl1.KeyDown
[code]....
is there a way to make a textbox searchable like those Ctrl + F which can be found in most of the windows application?
I have googled and found some functions which is quite similar, but I have an issue which for eg.
My multiline textbox contains a lot of text with scrollbar, somehow the text I want to find is in the middle, when I click the find button, the word is indeed found and highlight, but the scrollbar still remain on top.
I wonder how can I make the find adjust the scrollbar as well?
VS 2008 Built in key calls (Shift - Ctrl - Alt) are broken on Windows 7 Bit
View 4 Repliesso i have a quite huge program. but lets say i have one label. and i want to save that. i have the code and everything for saving the text of the label. now i want to assign ctrl+s to automatically save the labels text once pressed instead of going through a menu to choose save.this is like a regular texteditor where u press ctrl+s and it saves.
ive used this
If (e.KeyCode = e.Control & Keys.S) Then
MessageBox.Show("Ctrl+S pressed")
End If
and
[code]....
but it doesn't do anything once pressed.im also using the keydown declaration for the form.
I have a richtextbox with a large file inside....I want to be able to search for "Fornication" within the text (KJV Bible) and have every instance of that word to pop up into another richtextbox along with the scripture it is in.
View 1 RepliesI'm currently having a problem dragging and dropping my label1.text to a richtextboxt which isn't created on design time...well im currently found a solution but i think it is only for a temporary solution because i use a drag and drop i drag it to a textbox then it willl transfer the data to the richtextbox....through the use of the textbox... here is the code ive come through..[code]...
View 2 RepliesI want to do a pop-up window proposed in the project such that there is a draft.I wonder how I can do this pop-up a text box or before I have an idea you have Call
View 5 RepliesI have two forms in my project. One form is opened and another form is closed. When I press the button on first form I want to add some text on RichTextBox ON OTHER FORM.
Code Form2.RichTextBox2.AppendText ("some text...")
And when I open second form text is there, BUT when I close second form, and open it again, RichTextBox is formatted. What's the problem?
i am doing a small app where in one part i need to add certain lines of text ( from one variable ) to a richtexbox
i read a txt file line by line , i check something , if the condition its true then i add that line to a string variable , i need to add that variable contents to the richtexbox , i can't find the equivalent of textbox1.AppendText(textline) for the richtextbox .
I am creating an output window for a C++ editor. how will i create the console in vb.net as an output window and transfer it to richtextbox?
View 6 RepliesHow do I replace the second value in a richtextbox. The richtextbox is updated in 1Hz, with 2 colums of numbers:
ex.
0 3
1 5
2 13
3 33
How do I replace the second column, with values from an other textbox?
I have a RichTextBox and a button.When the user clicks the button, I want to open an editor in which the user writes and formats a Text and when the user closes the editor, i want the Text to be displayed in the richtextbox.
View 1 RepliesHow can i Tab the content of my RichTextbox. When i use VBTAB, it does not Tab all my output to the correct places. I am using code like... the Makelen is just a function i created to see if i can make all the fields the same len...it does NOT work
[Code]...
i have richtextbox, and i have about 5 lines: example:
1
2
3
[code].....
it's possible to use BBCode in a RichTextBox eg: [color=red], [b], etc...
View 2 RepliesI am creating a text editor like notepad. Well its an advance type because it is a tabbed notepad type. It saves html files.
I only created tabcontrol on the design time named TabControl1. the tabpages and the richtextbox are created on the form load and when adding tabs. [code]...
I have 2 forms. The 1 is named frmMain. inside of it is a Richtextbox named RTB.
The other form is named frmInsert. Inside of it is a Richtextbox named rtbtext.[code]..
I have a richtextbox control. It contains many lines of text (multiline is enabled). My goal is: When user clicks with right-click mouse, I'd like to display all the text of the line where the cursor is. I'm using this method to get the cursor's line:
Dim line As Integer = RichTextBox1.GetLineFromCharIndex(RichTextBox1.SelectionStart)
But how do I get the text of the line? Should I copy the whole text to a string array , and then just print the relevant line item?