Results 1 to 2 of 2

Thread: [RESOLVED] How to write a new line in vb6 MSFlexGrid Cell

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2013
    Posts
    1

    Resolved [RESOLVED] How to write a new line in vb6 MSFlexGrid Cell

    Edit - NEVER MIND I SUCCEED
    I turned the individual FlexGrind WordWrap to True. (FlexGrid Properties).
    *TOPIC*
    Code:
    Private Sub ThreeModeClickEnable(code As Integer)
        Set rs1 = conAccess.Execute("select * from tblInstructorRoomSchedule where instructorCode = " & code)
        If Not txtGroupCode.Text = -1 And Not txtInstructorCode.Text = -1 And Not txtRoomRow.Text = -1 Then
            bcolor = 8
        Else
            bcolor = 0
        End If
        If Not rs1.EOF Then
            rs1.MoveFirst
            While (Not rs1.EOF)
                flxRoomSchedule.Col = rs1.Fields("scheduleDay").Value
                flxRoomSchedule.Row = rs1.Fields("scheduleHour").Value
                flxRoomSchedule.TextMatrix(flxRoomSchedule.Row, flxRoomSchedule.Col) = flxInstructors.TextMatrix(txtInstructorCode.Text, 1) & _
                " " & flxInstructors.TextMatrix(txtInstructorCode.Text, 2) & vbNewLine & "hello"
                flxRoomSchedule.CellBackColor = QBColor(bcolor)
                rs1.MoveNext
            Wend
        End If
    End Sub
    the result i want to get, for example:

    Mike Mall
    hello

    what i get now

    Mike Mallבהhello

    thanks
    Last edited by eiDo1; Jun 15th, 2013 at 10:01 AM.

  2. #2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width