RichTextBox not databound?

RichTextBox not databound?

Post by Larry Pittma » Sun, 09 Sep 2001 01:57:10



Using VB 6 SP5

In my project I am using a databound form that uses a data aware class
which uses ADO.

On my form all my input controls are either text boxes or datacombo
boxes, except for one RichTextbox. This particular control displays the
data that is already in the database, but when you update the field it
does not "trigger" ADO that a change has been made like the other
controls do. If I change the contents of another field, then the RTB
will update. Can I "trip" a setting to force this "update state" in the
change event of the RTB?

I'm not exactly sure how it works to begin with, but I know I'd like
that RTB comtrol to work the same as the others. I at least need some
kind of workaround, if this is not possible.

Can anyone assist me with this, please?

 
 
 

RichTextBox not databound?

Post by Steven Br » Sun, 09 Sep 2001 05:52:05


This does not occur in my VB 6, service-pack 5 installation. I would highly
recommend downloading the latest service pack for Visual Basic/Visual
Studio, from:

http://msdn.microsoft.com/vstudio/sp/vs6sp5/default.asp

It's highly likely you are experiencing a bug that has been corrected in a
service pack.

Hope this helps!

Steven Bras, MCSD
Microsoft Developer Support/Visual Basic WebData

 
 
 

RichTextBox not databound?

Post by Larry Pittma » Sun, 09 Sep 2001 07:56:33


Steven,

Quote:>>This does not occur in my VB 6, service-pack 5 installation.

I am using SP5 so now I am confused. Could there be a property that I'm missing? I set these properties:

DataSource, DataMember, and DataField

Anything I might be overlooking?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

 
 
 

RichTextBox not databound?

Post by Steven Br » Wed, 12 Sep 2001 00:43:22


I don't believe, in most cases, that you need a data member, unless you are
using the data environment or a shaped recordset. What are you setting that
to?

Steven Bras, MCSD
Microsoft Developer Support/Visual Basic WebData

 
 
 

RichTextBox not databound?

Post by Larry Pittma » Wed, 12 Sep 2001 01:11:55


I am using a Data Environment. I confess that I am quite new to "Data Aware" Classes and I found an example in a VB book that I have and it happens to use a Data Environment.  I had some problems with it initially which caused me to replace several methods with straight database calls using SPs. I don't know a whole lot about DEs, but I am guessing that they are not ultimately the best decision for a "professional" shrink-wrap application, which I am attempting to make. So, I would like to get rid of it entirely, but I am not quite sure how that will work. I do not have the expertise to just figure it out so I am kind of hoping to find an example of a similar project that has a data aware class without using a DE. There is a simple example on MSDN, but it does not cover the complexity of my Class.

Should I even be worrying about this, if the DE works? Or should I continue to find a way to replace it?

Thanks for any input on this. I am the lone developer on this project and I can't share it with the developers that I work with at my full time job.

BTW, I was able to get around this problem by setting the "DataChanged" property = True on the Change event.

-Larry

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

 
 
 

RichTextBox not databound?

Post by Steven Br » Fri, 14 Sep 2001 00:43:24


That's a good workaround-- I'm glad you found one! Best wishes with your
project!

Steven Bras, MCSD
Microsoft Developer Support/Visual Basic WebData
This posting is provided AS IS with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.

 
 
 

1. Databound Grid's and Databound Listboxes

Curious...

Am I missing something, or does VB 4.0 not have the ability to handle
multiple column, databound list boxes?

If not, which third party vendor does?  Today, I purchased the
MicroHelp OLE Control suite to evaluate if theirs fits our needs. Does
it allow multiple row selections?!?! Shit, I forgot to ask.

I *have* tried, unsuccessfully, to make the VB 4.0 DBGrid emulate a
list box with multiple columns.  Everything looks ok, but I can't
figure out, after a click event, how to cancel the pending change.   I
can for a brief instance, highlight the entire row but immediately
after, the cell that I clicked on receives the focus and the
highlight.   Does SelChange even work in the Grid?  The docs are
horrible.

Anyway... any assistance, experience, etc would be greatly
appreciated.  This is the first (well, second after not being able to
open forms based on a variable name) problem I've encountered after
switching from Access to VB.

Btw, any control must be 32bit.

thanks,
Jimmy Mayes

2. Sharing Violation

3. databound grid does not show all records

4. NL Scoreboard as of 08:10 p.m. / Jul 30

5. databound control default value not set

6. Fine-grained Performance Data

7. Databound controls not updating underlying value on SHAPE stmt

8. How can I write this better?

9. SQL 7 Text Field to/from RichTextbox

10. RichTextBox and OLEObject

11. RichTextBox Re-Writes RTF wrong when appending text

12. help with richtextbox

13. Richtextbox