Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enabling Microsoft Forms 2.0 TextBox

Status
Not open for further replies.

drizet

Programmer
Mar 26, 2001
6
US
I am trying to use Microsoft Forms 2.0 TextBox in an user interface I am creating using Microsoft Visual C++ 6.0. I have been unable to display any text in the box. I plan on using it to display messages to the user. It will not be editable by the user.

What do I need to do to get it to display messages written to it?

I have tryed the following but it does not work. I not sure this is even the correct approach.

GetDlgItem(IDC_MESSG_TXT)->EnableWindow(FALSE) ;
GetDlgItem(IDC_MESSG_TXT)->EnableWindow(TRUE) ;
GetDlgItem(IDC_MESSG_TXT)->SetWindowText( "this is a test");

Thanks for any help.
 
HI

I don't know the answer as I avoid to use the Forms 2.0 dll as you can not distribute it with your applications. As fas as I know, this dll is installed when Office is installed in your machine. And Microsoft denied the right to distribute it...

So, my advice is to use 'normal' controls or trying to find one good working class on the Web...

HTH
Thierry
EMail: Thierry.Marneffe@swing.be

 
Thanks,

I removed all the forms text boxes and changed them to rich edit controls. Now, I need to figure out how to use these.

Scott Urban

email:urban@ast.lmco.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top