Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 6th, 2006, 08:19 AM
Registered User
 
Join Date: Feb 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Word wrapping

I have a project that collects data and then, upon the click of a button on a menu, puts that data on a report. However, as currently programmed the text that is output does not word-wrap. Can anyone help with that?

Code that generates the report - now one long line - ia as follows

Option Strict Off
Option Explicit On
Friend Class frmReportMSE
    Inherits System.Windows.Forms.Form

Private Sub frmReportMSE_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load

********* the following code puts out the long string ******

       strReport = frmMSE1.txtFirstName.Text & " " & frmMSE1.txtLastName.Text & " is a " & frmMSE1.txtAge.Text & " year old, " & strMarital & ", " & strLang & " speaking, " & strEthnic & ", " & strSex & " with " & frmMSE1.txtYrsSchool.Text & " years of schooling, who is a " & strGrade & "." & strGen & " has " & strEye & " eyes and " & strHair & " hair, and is of " & strHeight & " height and " & strWeight & " weight." & strSur & " " & frmMSE1.txtLastName.Text & " was " & strDress & " and " & strGrooming & ". Posture appeared " & strPosture & ". Walk and gait were " & strWG & ". " & strPos & " facial expresion was " & strFExp & ". " & strSur & frmMSE1.txtLastName.Text & "'s speech was noted to be " & strExpLang & " while receptive speech reflected the fact that " & LCase(strGen) & " " & strRcpLang & " . Interaction with the examiner was noted to be " & strInter & ". " & vbCrLf & vbCrLf & strSur & " " & frmMSE1.txtLastName.Text & "'s" & " thinking was characterized by " & strHalluc & " hallucintations" & " ." & strDel & " ." & strIR & " ." & strTI & ". " & strTB & ". " & strOCD

lblReport.Text = strReport

    End Sub

End Class






Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid - Column width problems - word wrapping cp75 ASP.NET 1.0 and 1.1 Basics 8 July 31st, 2008 04:30 AM
Wrapping Report arholly Access 1 May 10th, 2007 06:32 AM
Windows Custom Control, word wrapping bmains .NET Framework 2.0 0 June 12th, 2006 03:15 PM
Word wrapping in Datagrid Astalder ASP.NET 1.0 and 1.1 Basics 1 May 5th, 2004 08:55 AM
How do I allow word wrapping using response.write? neoz123 Classic ASP Basics 0 October 30th, 2003 11:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.