[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Bug + Clipboard Problems

Asked by jnowlin in Visual Basic Programming, VB Objects

Tags: open

Hello.

I have, in my current project a Form with a RichTextBox control placed on it. A user is able to open a new document and type into it, or open a text file and have the text placed into another instance of this RichTextBox control.

Once this happens, the user may select a menu or click on a button which invokes a function named CheckSpelling() which is coded in the General declaration of the Form which contains this control.

Here are the problems:

In the frmMDIMain's Option Explicit section, the following is declared:

Private actCtl As Control

The spell checker part of the program works. It starts Word and takes the text within the control and copies it into Word and then invokes the spell checker of Word(97).

When it exits, the program crashes. It crashes two different ways.

1st, within the mnuEditPaste_Click event it crashes with this -
 "object doesn't support property or method"

OR 2nd, it crashes with this -

 "Can't open Clipboard"
   
    actCtl.SelText Clipboard.GetText


I understand the first error, because what is being attempted here is to determine what the active control here is and SelText is only a method of a TextBox, ComboBox, ImageBox or a RichTextBox.

I changed this variable declaration to -

Private actCtl As RichTextBox

This worked. For the very first time, I could type something into a new document, invoke the CheckSpelling() function, make corrections and have those corrections pasted back into the original document.

Then I tried it again; and again.

Then it crashed with other, less occuring run-time error -

"Can't open Clipboard."



Any thoughs on this actCtl variable and is there some sort of code management needed to be applied here for the Clipboard? My version of MSDN help showed that there were some VB constants for determining what type of data was to be sent (copied) to the Clipboard, vbCFText, but I couldn't find any more info on it. The Object Browser didn't include any info on these constants.

With actCtl As RichTextBox,

what is the problem with...
actCtl.SelText Clipboard.GetText
???

Jim
[+][-]07/17/01 01:13 AM, ID: 6288868Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Visual Basic Programming, VB Objects
Tags: open
Sign Up Now!
Solution Provided By: inthedark
Participating Experts: 5
Solution Grade: A
 
[+][-]07/11/01 09:49 AM, ID: 6273762Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/11/01 10:00 AM, ID: 6273813Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/11/01 01:01 PM, ID: 6274513Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/11/01 03:26 PM, ID: 6274984Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/11/01 07:06 PM, ID: 6275470Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/12/01 09:43 AM, ID: 6278053Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/12/01 02:20 PM, ID: 6278927Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/12/01 06:40 PM, ID: 6279237Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/13/01 06:50 AM, ID: 6280767Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/16/01 03:06 PM, ID: 6287730Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/17/01 01:11 AM, ID: 6288865Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/17/01 08:14 AM, ID: 6290197Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/21/01 03:09 PM, ID: 6305330Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92