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
ADVERTISEMENT
Jan 16, 2009
I built a form in in vb to look similar to a physical form a client uses to do work orders.Where I am running into problems is when I build the printdocument_printpage using e.graphics to build the labels and the variables like thise.Graphics.DrawString("Customer:", myfont, myBrush, 4.513889, 0.7326389)e.Graphics.DrawString(txtCustomer.Text, myfont, myBrush, 1.052083, 0.4270833)I find it to be very hard to come up with the locations for lines, vars, and labels when I have close to 100 of them. Is there any easy way to
View 1 Replies
Dec 4, 2011
I have a picturebox with an image in it. I want to 'select' a section of this image (like standard selection tools in other image editors) and place it in another picturebox... The piece I want to select is a square and I have the coordinates.
View 1 Replies
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
Feb 19, 2010
I need blog software for IIS7 and a SQL Server 2008 backend. I don't know if this is required, but the application (website) I'm hosting is in asp.net (vb.net). I checked out das blog, and graffiticms and they're very old.
View 2 Replies
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
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
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
Feb 19, 2010
I'm looking for a walkthrough to help me design/develope a simple Blog that has the following parameters:Logon Screen Authentication Membership --> Email Lost Password.Simple Treeview like structure Topic-> Multiple Posts (2) levels deep only Historic calendar in right banner or someplace.Search Feature By (Topic, Username, Entry Date...etc)Does anybody know where I can find guidance otherwise left to my own devices this could take me a while, be nice to have at least a solid starting point in the correct direction.
View 2 Replies
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
Jun 4, 2010
I have a program that needs to display a playlist of songs, for a band performing someplace, from a .txt file. The songs in the file are listed as follows:
All You Need is Love-Beatles
Rock
4.25
[code]....
The first line is the song's title and group name. The second is the songs genre. The third line is the songs length, 4.25 is 4 minutes and 25 seconds.upon clicking a button, I need to display a playlist from this .txt file based on the number of minutes the band has to play, minutes entered into a TextBox, and the songs genre, selected from a ComboBox. The songs cannot repeat and must be random.I have already coded the program to read the .txt file but have not clue where to start with the rest.
View 5 Replies
Feb 24, 2012
I have a course work for which I have to make a (as advanced as possible) WYSIWYG web page editor in VB.NET (2010). It should have a visual editor with drag-drop support for several elements such as anchors, images, tables etc, and it should generate HTML based on that structure.
I don't know where to begin though. I have some experience with vb.net, I made a tabbed notepad vaguely following a tutorial, but I don't know how to make this drag-drop thingy in a richtextbox. I've searched for a tutorial, but most of them are just too simple, a text editor with browser control rendering the HTML.
View 3 Replies
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
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
Feb 3, 2010
I am writing a search engine whose purpose it is to search all kind of blogs for specific kinds of content.I'm particularly focusing on these blogs engines:
Blogger
LiveJournal
MySpace
Open Diary
[code]....
Is there any way I can use google to find links that are from a specific type of engine, like for example wordpress?
View 3 Replies
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
Feb 3, 2012
I am trying to make a program that will update my blog.I need it to add to the top of the existing file.thats all. One Textbox, One Button.Im stumped though.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim sFileText As String
[code]....
View 9 Replies
Oct 13, 2011
I have a blog (non wordpress or anything) written in vb.net. At the moment I pull my data back just by bringing in the last 10 results: SELECT TOP (@bAmount) bCategory, bID, bImageURL, bInactive, bLargeImage, bPost, bPostDate, bPostTitle, bPoster, bStyle FROM Blog ORDER BY bID DESC
I'm just going to have back and forward buttons to go through the posts, but how do I do the SQL for say post 10-20 last posts rather than the IDs between the posts. (The IDs are incrimental, but can jump significantly).
So basically when I click back it gives me 10 posts that are 10 older than the first page results?
View 4 Replies
Jan 9, 2010
I've made a Function that will be called at the point a dataset is generated on pageLoad. The function is doing two things:
Processing the blog article and detecting any URLS in the post then converting those URLS into clickable hyperlinksCoverts all carriage returns into <BR /> tags. Although it does processes the complete article as required, including detecting all of the links, it seems that the loop to process used to detect the links ONLY detects the very first link it comes accross and every other subsequent link becomes that first link found. Clearly that isn't the desired outcome, maybo you guys can let me know how to correct this issue?
This is the function I've created:
[Code].....
View 4 Replies
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
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
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
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
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
Mar 13, 2012
I have an engineering firm and our website was built using Visual Studio 2010 / asp.net 4.0 / VB. Recently, a client (GM) requested that we have a knowledge base where they can input their questions, and we can answer 'em. Kind of like a FAQ, or a Lessons Learned type of thing. But it'll require that they'll be able to log in and ask their own questions.
For instance: Q: How would I incorporate multiple machine vision systems into a bead detection application?A: You would need to use a software such as PPT and have multiple fixtures in order to assimilate the cameras accordingly.
I'm terrible at databases; I can basically run an SQL query, and that's about it! lol. And I'm not a programmer by trade. Can I do this without a database? Can anyone guide me in the right direction here? I mean, is there something out there that's open-source, or at least something that's easy to implement?
View 1 Replies
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
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
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
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
May 4, 2009
I've found out how to change colours for the text editor, etc, but is there any way to change the colours in the help? It'd be nice to be able to have [for example] white text on a black background. It'd be easier on the eyes for lengthy reading sessions.No crops were circled, or animals mutilated in the making of this sig.
View 3 Replies