I have a form which includes a TextBox. When I run the program two things are happening which puzzle me.
First, even though I have the "Scrollbars" property set to 3-Both, yet when the text to be displayed in the TextBox exceeds the size of the box, no scrollbars are displayed. The text just runs off the end of the top line in the TextBox.
Second, I have this line of code:
txtDisplay.Text = "GetAbsolutePathName: " & _
mFileSysObj.GetAbsolutePathName( _
filFileBox.Path) & vbNewLine & _
"GetDriveName: " & mFileSysObj.GetDriveName( _
filFileBox.Path) & vbNewLine & _
"GetParentFolderName: " & _
mFileSysObj.GetParentFolderName( _
filFileBox.Path) & vbNewLine & _
"GetTempName: " & mFileSysObj.GetTempName
I expect to get a CRLF for the "vbNewLine", but I get "||". Can vbNewLine be something other than CRLF? Any ideas why I see what I see? Maybe one fix will resolve both problems. I keep thinking that maybe there is someplace where vbNewLine is defined (and can be redefined).
First, even though I have the "Scrollbars" property set to 3-Both, yet when the text to be displayed in the TextBox exceeds the size of the box, no scrollbars are displayed. The text just runs off the end of the top line in the TextBox.
Second, I have this line of code:
txtDisplay.Text = "GetAbsolutePathName: " & _
mFileSysObj.GetAbsolutePathName( _
filFileBox.Path) & vbNewLine & _
"GetDriveName: " & mFileSysObj.GetDriveName( _
filFileBox.Path) & vbNewLine & _
"GetParentFolderName: " & _
mFileSysObj.GetParentFolderName( _
filFileBox.Path) & vbNewLine & _
"GetTempName: " & mFileSysObj.GetTempName
I expect to get a CRLF for the "vbNewLine", but I get "||". Can vbNewLine be something other than CRLF? Any ideas why I see what I see? Maybe one fix will resolve both problems. I keep thinking that maybe there is someplace where vbNewLine is defined (and can be redefined).

Help
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.



Back to top








