Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21143

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

$
0
0
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 :)

Viewing all articles
Browse latest Browse all 21143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>