IDE :: VS 2008 Text Editor Mysteriously Deleting Closing XML Doc Tag?

Jan 14, 2009

Context VS2008 SP1VB source file Problem Using xml documentation tags, VB IDE keeps deleting the closing "</remarks>" tag and a couple dozen preceding characters of text if the content is more than a few lines long.Example: Tag has been deleted mysteriously.

[Code]...

View 1 Replies


ADVERTISEMENT

Error When Closing Editor

Sep 29, 2009

When I close the editor it send me an error Visual basic has detected an error. VB6SP6

View 1 Replies

VS 2008 Find And Select Text In Text Editor?

Dec 31, 2009

I'm adding a method to find and select text in my text editor. Everything worked fine, including the ability to find all instances of the text. My problem came when I tried to make it more user-friendly (doesn't it always?). Originally I had only a menu item with a shortcut( Ctrl + F) which invoked an input box.

Then I added a textbox and a button (similar to that seen in a web browser's Find() method) that calls the method in the same manner as the Find/Replace menu option and displays the desired text in the textbox. Everything works fine except that the text is not selected. I have MessageBoxes displaying the values of required variables in 3 places (marked ***FOR DEBUG ONLY***) to make sure that no values are being changed, but all variables are the same. The method still locates the text, but it is not highlighted.

I think it could have something to do with which object has focus. (When I click the button, the selected text loses focus?). But if I click everything with the menu items, it still works...

Here is the

*****code with [code] tags in the 4th post on this thread****
Public Sub FindText()
'Make sure there is text in the textbox...If txtTextbox.Text <> "" Then'Find the end of the current selection... Dim curSelectionEnd As Integer =

[Code]....

View 3 Replies

VS 2008 DataBinding - Set The Text Inside The Editor?

Dec 8, 2010

I'm working with DevExpress GridLookUpEdit Control and I'm a bit stuck with it. Now I know you can't help a lot if you don't have access to it, but I'm trying to figure out why can't I do something like this with it:

GridLookupEdit1.DataBinding.Add("NullText", ds.Tables(0), "SomeField")It gives me an error, says it can't find NullText Property. This confuses me because NullText IS a property and I use it in my code to set the text inside the Editor.

View 2 Replies

VS 2008 Resize Text Editor Macro?

Jun 24, 2010

I'm using Visual Studio 2008 and I split my text editor into two vertical text editors. I thought it would be useful to have a macro that re-size the active text editor to take up most of the screen but I haven't gotten very far. I get an error whenever I try to change the width of a text editor.

View 4 Replies

VS 2008 - Text Selection - WYSIWYG Blog Editor ?

Sep 5, 2011

I'm working on a WYSIWYG Blog Editor, I'm having an issue with my text selection. I've added a couple of graphics to illustrate. My code is selecting the text and putting it back into the textbox, but it's adding extra text. I can't quite figure out how to get it to select the intended text and manipulate it correctly (make it Bold or Italic and so on,) and then show the text in the two windows (one is the Textbox and the other is a webtext box) correctly.

Below is my code and my 2 graphics.

Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
boldstart = "[ b ]" 'variables to hold formatting
boldend = "[ /b ]"
wboldstart = "<b>"
wboldend = "</b>"
clearrtf = ""

[CODE]............

Every thing works up to the point when I try to manipulate the text, it then puts more text in. I have been trying to find info on how to clear the text box and then re-insert the text with the text formatting. Side note in my graphics is a small graphic that is just there as a marker for me, it has no affect on the actual program.

View 4 Replies

VS 2008 Deleting Specified Text From Textbox

Mar 17, 2009

i have 2 textbox's and 1 button i have 1 big textbox that has a buch of number's in it and the number i want to delete is in the top textbox how can i delete number 2 ? from the big textbox ?

View 11 Replies

Coding Pagesetup, Print And Preview In MDI Text Editor So That It Works (2008)

Jul 17, 2010

How do you go about coding pagesetup, print and preview in MDI text editor so that it works (VisualBasic 2008)

View 7 Replies

VS 2008 Closing All Forms When Program Closes Vs. Closing All But Main Form

Jun 4, 2010

Dim frm As Form
For Each frm In Forms
Set frm = Nothing
Next frm

The above code is what I used in VB6 to close all forms associated with my programs before my program closed. I have been searching for information on how to make sure all forms are closed when closing a VB2008 program.

I have seen info on using the Project Property Shutdown mode When startup form closes and I currently have this set.

Is this all that is really necessary? Will the garbage disposal close everything else to free up RAM?

Also, if I have several forms open and want to close all from the main form without closing each one individually, what is the best approach? Is there a collection like in VB6, go through the collection, compare it to the name of the main form and close it if it is not the main form?

View 4 Replies

VS 2008 Deleting Multiple Lines In A Text File?

Sep 20, 2009

I need to be able to search through a text file and find a line of text, then delete that line and the 7 previous lines and also the line following the searched line. Basically the program creates student records to a text file and asks if the user wants to mark the record for deletion then when the user exits the program, I want it to find the records mark for deletion and delete them.The records in the text file look like this:

Name: Some, Students, Name
Age: 20
Phone Number: (555) 555-5555

[code]....

View 1 Replies

VS 2008 Deleting A Line In A Text File That Ends With A Certain String?

Jun 12, 2011

ine from a text file. This is for an ASP.net Webpage. I will have a file called ources.txt. Example data of this file looks like this:

View 3 Replies

VB 2010 - Code Editor Not Deleting Code

Dec 6, 2011

when i put, for example, a picturebox in form and code some events. then i want delete that picturebox. well the code stills there. imagine that i use another picturebox i use the same name. now if i double click on these picturebox, the code editor recreates a new subs. can i disable these situation?

View 6 Replies

Visual Basic 2008 HTML Text Editor - HTML Tag Generator?

Aug 7, 2010

I am trying to build my own website and realized that it would be a big help to also create my own vb program to enable me to embed tags with simple clicks of buttons. I am having trouble getting my vb code to be compatible with html code (I keep getting vb syntax errors).

Here is what I've tried:

<strong>'Inside of a button:Textbox1.text = "<html tag example></html tag example>"</strong>

View 1 Replies

Text Editor - Loading Multiple Large Text Files

Jul 10, 2010

I'm fairly new to VB.NET, and I'm working on a text editor with a tabbed interface. I deal with large text files. Should I have each tab / text document open up in a new thread or a process? I basically want the entire application to always run fast as the text editor is just one part of it. If I have several large text files open I don't want the rest of the application slowing down a bit.

View 2 Replies

Form Mysteriously Closes Instantly?

Dec 8, 2011

So I've got a somewhat common problem from what I can tell from the search results..I developed a program, got a beta version performing well, noticed a few small bugs, fixed the (all code-related) bugs, and now the program will open and then close immediately. I believe I have determined that the problem is not code related as I have commented outall of the code and it still refuses to stay open until I tell it otherwise. From heaforementioned search results many people have found this to be due to a ensingtonproduct, however I do not own such a product nor do I have any Kensington softwa

View 5 Replies

Embedded Resource Has Mysteriously Vanished From Assembly

Mar 22, 2010

I have an application that has a .sql file in it. The sql file is set to Embedded Resource. When I run the following code, I get an empty string array indicating there are no embedded resources.However this project has been working fine previously.[code]

View 2 Replies

Xml Config File Key/values Mysteriously Being Cleared?

Feb 28, 2011

I have a vb.net 2010 windows forms application.I use an xml file to store application information.The file is in the same format as an app.config file but is NOT the app.config file.It is stored in

Environment.SpecialFolder.CommonApplicationData

I read and write to it using xmldocument and all works fine

From time to time I get calls from clients that my application won't start

On checking this xml file I find all the key/values have been deleted.example of file.........

<?xml version="1.0" encoding="utf-8"?>

<configuration>

<appSettings>[code]......

View 5 Replies

Mdi Text Editor Printing Color Text

Mar 19, 2009

im trying to addapt my printing code so it will print my text what ever i have selected it to be in the text editor. here is the code i have at the moment

Private Sub PrintDocument1_BeginPrint(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintEventArgs) Handles mypdoc.BeginPrint
str = CType(Me.ActiveMdiChild, frmSplit).RTB.Text 'If this was a single text

[Code].....

View 8 Replies

Binding TextBox.Text Causes 'Input String Was Not In A Correct Format' Error When Deleting Text

Oct 25, 2009

I am trying to bind a textbox to a binding source (using the IDE DataBindings Editor) and it works fine except for one thing: if I delete the text I get the subject error. What I want to happen is the datarecord field be updated to a dbnull value -- how do I get that to happen?

View 4 Replies

Mysteriously Lost Access To A Mapped Network Drive?

Aug 5, 2009

I had a basic text file reader/writer program that wrote and read from a mapped, shared drive up and running for a couple weeks. I wanted to add just a couple more things that shouldn't have effected the program (the ability to write another text file), and now the program can't find the shared drive. The error I get is: Could not find file '<file location>' with <file location> filled in with either the mapped name of the drive (X:) or the unmapped name (\servercomputer). Both are copied directly from windows explorer, so I know the path is right. I'm a bit of a beginner, but I'm pretty sure that all the required permissions are in place, and all users have access to this drive.

To further complicate things, it is not consistant. Some commands appear to have no trouble reading off the mapped name, but don't read the unmapped name, and vice versa. Others won't take either. Sometimes the code will execute perfectly up to the middle of the code (accessing the shared drive a couple times), and then it will give this error. If anyone could point me in the right direction,

View 1 Replies

Exit From A Multi-line Text Box Without Deleting The Text?

Dec 25, 2010

How to exit from a multi-line text box without deleting the text inside when press enter

View 2 Replies

Development Of A Text Editor?

Oct 8, 2010

I've programmed a text editor and controlled through its sound as a program, but I want to distinguish it from other software

View 5 Replies

Naming The Text Editor?

Mar 5, 2009

how when i open my text editor that in the blue area at the top it displays "untitled" but when a file is saved it shows in blue the new title name.im using vb2008?

View 7 Replies

Text Editor Error?

Jan 29, 2012

I am making a text editor.I downloaded someone else's Project and found 1 bit of code did not work.

Private Sub openFileDialog1_FileOk(sender As System.Object, e As System.ComponentModel.CancelEventArgs) Handles openFileDialog1.FileOk
End Sub

[code].....

View 3 Replies

Text Editor In .NET - Save

Jan 15, 2009

I have to produce a basic text editor with buttons along the top and a richtext box below. I am currently struggling with 'Save if changes are made' objective. At the minute clicking my exit button rather than close/X (something i have to disable but havent yet) brings up the do you want to save message box regardless of any changes and also, clicking the yes button does nothing.

CODE:

I recieve no errors and apologise if i have forgotten to include something useful

View 4 Replies

Using A RichTextBox As A Text Editor?

Jul 29, 2009

I am using a RichTextBox as a text editor. Each chr() has its own color. I am using rtfText.SelectionColor with rtfText.SelectedText. I have to, or I think I have to, Use For/Next Loops with Do While Loops to search for each Chr() using Mid() & InStr(). Of course this works very well but, it is waaaaayyyyy to slow.Some of the files can be over 8MB. Is there a better way? Am I doing this right?

View 4 Replies

Add A Replace Method To A Text Editor?

Apr 10, 2009

how to add a replace method to a text editor (notepad) to search for a word and replace it

1. say in (notepad) you type something in the textbox1-------"me"

2. then am suppose to type "me" in text box 2---and

3. click the find button and it suppose to find the text in textbox1

4. then you type in textbox3---- "us" and

5. click the replace button and it replaces "me" with "us"

View 4 Replies

Disable Screentips In Text Editor?

Oct 24, 2009

how to turn these off? I am trying to work through a VB book and whenever I type in code huge yellow screentips come up that are distracting.

View 4 Replies

Embedding A Font In A Text Editor

Mar 24, 2011

I am working on a simple text editor for medieval Latin and I have a custom medieval Latin ttf that does exactly what I want. My question is: How can I embed that font into my text editor so that it can ONLY use that font, and so that when I send my text editor app to others they can start using it right away without having to download any fonts?

View 2 Replies

Handling An Exception - MDI Text Editor ?

Aug 13, 2010

I have written a MDI Text Editor and I have written sub routines for print preview, cut, copy and so on, when testing my program, I click print preview when there are no documents active and the program crashes, the same happens with cut, copy, paste.

I know this is because I have not handled any error exceptions, the truth is im not sure how to.

I have got the code that makes print preview work with my mdi documents, but what code can I use or how can I add it to my existing sub routines to possibly show a message box saying something like "This Function Cannot Be Used With No Active Documents" something like that.

Could I use an If Statement? or Try, Catch, Block? - I am using a different computer as I am currently at work but if anyone needs the code I currently have for my sub routines.

View 10 Replies







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