Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have the following code that places some text for a specific day on the Calendar control:

 

<code>

strNewDescription = ControlChars.NewLine & strNewDescription

Dim lblTimeOffDay As Label = New Label

lblTimeOffDay.Text = strNewDescription

e.Cell.Controls.Add(lblTimeOffDay)

</code>

 

However, I would like the text to begin on a new line UNDERNEATH the day number shown in the calendar. So, instead of having something like this:

 

14 abc

 

I would like it to read like this:

 

14

abc

 

I tried placing the ControlChars.NewLine and ControlChars.CrLf and also "\n" to the beginning of the description, but it still comes out like :

14 abc

 

Does anyone know how I can start the label underneath the day of the month?

Thanks,

 

Bill Yeager (MCP, BCIP)

Microsoft Certified Professional

Brainbench Certified Internet Professional, .Net Programmer, Computer Programmer

YeagerTech Consulting, Inc.

Posted

Thanks --- that worked.......

 

Have you tried putting a <BR> between them?

Thanks,

 

Bill Yeager (MCP, BCIP)

Microsoft Certified Professional

Brainbench Certified Internet Professional, .Net Programmer, Computer Programmer

YeagerTech Consulting, Inc.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...