15,892,768 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13032047 (Top 21 by date)
Member 13032047
31-Jul-21 19:22pm
View
Does anyone have any ideas on how to compare a list of words? The words in the list would need to be compared with each other (i.e. to find patterns in the words themselves not match against an existing pattern) then grouped according to the common prefix/suffix of each group?
Member 13032047
14-Jul-21 17:24pm
View
Thanks once again for your input Gerry! Do you have any suggestions as to how to do what you are suggesting? "rules and tables" programming seems a bit vague to me. Please excuse my ignorance of what exactly you are referring to. But, I have been searching for a very long time and some practical help would be great!
Member 13032047
13-Jul-21 14:17pm
View
Thanks for your input Peter! I actually did the manual splitting in Notepad! The final app I hope to create needs to automate the process. However, both the splitting process and any other subsequent processes need some method to automate them? Not familiar with using a database? Because the app I hope to create works with "unknown data which contains recognisable patterns (i.e. Roman alphabet or installed fonts)." I'm thinking along the lines of pattern recognition, i.e. comparing all words in a list to find patterns and report the results as columns in a ListView? Any ideas?
Member 13032047
13-Jul-21 14:11pm
View
Thanks for your input Gerry! I'm not looking for a magic solution. Searching for the longest prefix is a programmatic way of automating a previously manual task! If you only have to repeat a task once or twice there is no reason to use automation. I am looking for a solution that basically does what the longest prefix or suffix operations do, but groups and lists all words with the same prefix or suffix (rather than just one word) and also separates the morphemes into columns. Seems like a perfectly viable application to me???
Member 13032047
8-Jul-20 12:19pm
View
Hey Luc, I'm trying to answer your replies, but all the messages have suddenly disappeared? I looked in config and the preview messages option is checked??? Don't know where to look to see the messages???
Member 13032047
8-Jul-20 12:05pm
View
Hi Luc, I looked at the Wikipedia section on images, RTF, etc. I have looked before at the RTF spec and can't seem to glean (or even understand:-) anything from it about images that helps. I already have built a working solution for generating to and converting from RTF Markup code. It works for screenshots (i.e. bitmaps) or web images, but not for jpg's, etc., (an answer I need for the future)! I can both generate the RTF markup from an image together with text in a RTB, clear the RTB and convert from the RTF markup to restore the same image and text to the RTB. I started working on this because someone suggested that it would resolve the issue of image quality when resizing images. This is true and my solution resolves these issues. The app I am now building uses the code from that solution. Extracting just the image from the generated RTF Markup could be a way to display the images from the outlines being browsed in the app, but I have no idea how to achieve this?
Member 13032047
8-Jul-20 11:39am
View
Hi Luc, Thanks for your suggestions! The main focus of the app I'm building is the description editor (i.e. RTB) into which a screenshot is pasted, then the user can use a dummy outline to describe the screenshot. The result is saved as an .rtf file. When the .rtf file is opened, I need to extract the image for each individual .rtf file on the fly. Therefore, avoiding the use of an RTB isn't possible. My problem is not assigning an image from the clipboard to a control, but how to get the image from an .rtf file open in the RTB to the clipboard! Once the image is in the clipboard it's not difficult to assign it to a control. Also, I have experimented with my own code and searched the internet for code to discover which type of image is in the open .rtf file, but haven't found any code to achieve this? I will continue looking at the NRTFTree library until I can understand it. But, I still don't have answers to my questions which I feel are essential to achieve what I'm trying to do! If anyone has any code examples I would be very grateful!
Member 13032047
8-Jul-20 11:01am
View
Deleted
Hi Luc, thanks for your suggestions! The main focus of the app I am building is the outline editor which contains a screenshot and an outlined description of the screenshot. Therefore, avoiding the use of an RTB isn't possible. Using a different control doesn't change the issue because if you have an image in the clipboard it's not difficult to assign it to a control. However, my question is, "How do I get the image from the RTB to the clipboard?" Also, I asked how to determine what type of image is in the RTB because I was not able to find code either through experimenting or Googling? These two steps are essential to what I need to do. I think that generating RTF Markup (which can be used as a string) probably would be more useful. However, although I'm already doing that, I have no idea how to extract the image from the RTF Markup for each individual outlined description. This needs to be done on the fly. I had already seen the NRTFTree material and will continue looking at it until I can understand it... But, I still need answers to my questions...
Member 13032047
9-Jun-20 10:31am
View
Hi again Patrice! I greatly appreciate the value of REGEX testers! But, as I have expressed above, they don't give me a real world example of how to use a working expression I have tested? As I mentioned to OriginalGriff, I am working with the unknown and cannot use a static test string to test a variable numeric value??? I tested the regex expression in my code above and on several regex testers it works! But, what kind of code do I need to use to make the expression work in the real world with unknown variable numeric values???
Member 13032047
9-Jun-20 10:25am
View
Thanks OriginalGriff! I took a look at the link you posted! However, I find the same problem with the examples given there as with the many examples I have already studied on other sites all of which generally depend on a "static" test string. The RTF code generated in the program I am creating is "dynamic" in the sense that each image and RTF text inserted into the program is different. Therefore, the RTF Markup generated will be different each time! The picwgoal and pichgoal statements are constants, but the digits (i.e. image width and height) following those statements are variable (and therefore unknown), i.e. a screenshot (bitmap) or an image from a webpage are smaller images and give one kind of result. Photos taken with a digital camera are much larger and the numerical format changes!!! I cannot write code using a regex expression which requires a static number in a test string to find and replace an unknown number??? Doesn't appear to be very simple??? How do I represent unknown digits??? How do I know how many digits will appear in the RTF markup??? What kind of REGEX expression do I need and how do I use it in real world code which doesn't depend on static data???
Member 13032047
9-Jun-20 10:01am
View
Thanks Patrice! I updated the code showing one example of several that I've tried. I am a novice at REGEX and am doing the work to try to learn! However, folks mostly post just the regex expression they tested on regex testers without giving an example how to use the expression in actual real world code! This makes it rather difficult to learn! Regex testers test expressions, but don't actually show any code examples. For example, the expression I have now placed in code works on several regex testers, but how do I make it work in actual code???
Member 13032047
8-Jun-20 18:02pm
View
Found a way to ignore the first capture group making the second capture group become Group 1 (https://regex101.com/). So now, instead of listing two groups in the results, there is only one group (i.e. the numeric value I want). Looks good, but still don't know how to use this in code???
Member 13032047
8-Jun-20 17:48pm
View
I am experimenting with capture groups, i.e. "(picwgoal)(\d+)", which correctly divides the text and numeric value into two groups. A couple of questions: 1. Does this work in VB.NET? 2. How can I extract the second capture group (i.e. numeric value)? The picwgoal and pichgoal texts are constants, but the numeric values that follow them change according to the image from which the RTF code is generated! Therefore, I can't use a comparative string? I need to find the picwgoal and pichgoal text in the RTF markup, then substitute the following numeric value with a new numeric value? Really would appreciate any help on this!!!
Member 13032047
8-Jun-20 15:05pm
View
Hey Thanks Garth! I did have a quick look at the links you posted, but need to give them a more detailed look! I am actually working on a solution that I plan on posting as soon as I get over some hurdles - i.e. resizing the image, etc. I'm working on that right now but I need some help on using REGEX to achieve this!
Member 13032047
25-Apr-19 17:50pm
View
Thanks for your help Gerry! I'll have a look back at using dictionaries to refresh my memory! Also, I will need to study up on LINQ! I don't know if you took a look at the code under the original heading, but I think the code uses an array? Would it be possible to add to the original code using the repeated words list generated in the array by that code, etc.? Not very experienced at programming, but I'm learning! :-)
Member 13032047
30-Jul-18 14:27pm
View
Discovered something which I don't have a solution for. The code is apparently okay, but the text formatting throws off the insertion into the DGV columns. There appear to be 3 types of formatting that cause problems: 1. Unformatted text such as text that does not contain regular paragraphs (i.e. phrases and block text together); 2. More than one paragraph (i.e. the space between the paragraphs throws it off); 3. Selecting white spaces at the end of the paragraph. When I discovered this, I was able to consistently produce both correct and incorrect column insertion by either formatting text, selecting or nor selecting white spaces at end of paragraph, etc. I seems what I need is some way to format the text snippets to remove formatting that seems unacceptable to the DGV before/during insertion to correct this problem? Any Ideas? I'm very grateful for any help!
Member 13032047
26-Jul-18 16:43pm
View
Hi Alek, checked out the Text Parser solution, but the results were the same?
Member 13032047
26-Jul-18 15:23pm
View
Hi Alek, the csv looks like the following, but I can't spot any difference between the random text (i.e. EXAMPLE 1) which loads correctly and the other text (i.e. EXAMPLE 2)? Here are the examples:
EXAMPLE 1: (This texts loads correctly into the DGV columns)
Tom Cruise will never play James Bond, but there’s a parallel universe in which he’s basically Felix Leiter, 007’s CIA buddy, and now six films deep into his own increasingly Bond-like franchise.
1;MAPPING ITEM - Who are we?;Tom Cruise will never play James Bond, but there’s a parallel universe in which he’s basically Felix Leiter, 007’s CIA buddy, and now six films deep into his own increasingly Bond-like franchise. ;Thursday 26 July 2018, 03:45
EXAMPLE 2: (This text loads the Number column(index 0; Header #), the Mapping column(index 1), and the Snippet column(index 2) all correctly, but the Date and Time are inserted in a new row under Mapping column(index 1) instead of on the same row as the data being loaded together with it under the Date and Time column(index 3)
There is nothing like a program that really works. When you can advance in your work with the help of IT. The best thing about IT is that it is developing all the time! This morning, however, I found a problem in the program that only just found a partial solution to? I spent hours looking on the internet, but couldn't find anything that resolves the problem? The data is not being loaded into the correct DataGridView(DGV) columns? But, the partial answer I just found is that the text I was using is causing the problem?! When I used a random text from the internet, perhaps with less punctuation, the data is loaded correctly into the DGV columns?!
1;MAPPING ITEM - Who are we?;There is nothing like a program that really works. When you can advance in your work with the help of IT. The best thing about IT is that it is developing all the time! This morning, however, I found a problem in the program that I only just found a partial solution to? I spent hours looking on the internet, but couldn't find anything that resolves the problem? The data is not being loaded into the correct DataGridView(DGV) columns? But, the partial answer I just found is that the text I was using is causing the problem?! When I used a random text from the internet, perhaps with less punctuation, the data is loaded correctly into the DGV columns?! ;Thursday 26 July 2018, 04:04
Member 13032047
2-Mar-17 15:41pm
View
Thanks Ralf, if I'm understanding you right I create a dialog that can be filled as a list (by user?) and then use the scrollable list to display images (ListBox?)? The ImageList object achieves this, but only preselected images at design time? Can this list be programmed to allow the user to select images/photos through OpenFileDialog, populate the list automatically with random user selected images and then open the multiple images in separate PB's?
Member 13032047
2-Mar-17 15:28pm
View
Hi Garth, yes I'm using OFD and Winforms. No, I did think about ListView, but kept going on the Panel/PictureBox idea because seems like what everyone talks about in tutorials/articles, etc. I hadn't thought about the DataGridView and presume that would use a DB as data source for images? The panel works well for scrolling images because it creates scrollbars automatically when image/images are larger than display area. Also, picture boxes seem to be widely used? I'll have another look at ListView! Thanks for your help!
Member 13032047
2-Mar-17 15:18pm
View
Interestingly enough, that's what I've been doing! However, familiarity with the controls and numerous webpages, tutorials, etc. has not produced anything beyond a picture viewer that views one image at a time (which is what a pb does), a picture viewer that views multiple images by clicking on a button, loading images through ImageList control, etc. If you read beyond the "I'm new to VB" (as in, not a veteran of 30 years!) you might find that the controls are not the issue! What I'm interested in is displaying more than one random user selected image from file at a time in several pb's. The issue is to code for randomly selected images from file to be displayed, each one in its own separate picture box! I also successfully followed a tutorial for dynamically generating pb's on a panel and displaying different images in each one from ImageList, however the images are all out of focus! It's much wiser to hear a question before you try to answer it! I might remind you of the box at the bottom of the page which reads:
When answering a question please:
1. Read the question carefully.
2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome!
Let's work to help developers, not make them feel stupid.
Show More