Solved

MDC List

Posted on 2001-06-22
1
285 Views
Last Modified: 2008-01-09
i use Visual Interdev to creat a MDCList box for email address and name selection. But i canot set the MDCList to display monospace font style. Folowing is the source code.

<HTML>
<HEAD>

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

<SCRIPT LANGUAGE=vbscript>
<!--
aa = "joicey@hotmail.com"
bb = "albertlee@hotmail.com"
cc = "colin@hotmail.com"
dd = "muhamadAli@hotmail.com"
ee = "cck@hotmail.com"

sub window_onload()
     form1.mdclstEmail.AddItem( aa & Space(50-len(aa)) & "Joycelin")
     form1.mdclstEmail.AddItem( bb & Space(50-len(bb)) & "Albert Lee")
     form1.mdclstEmail.AddItem( cc & Space(50-len(cc)) & "Colin")
     form1.mdclstEmail.AddItem( dd & Space(50-len(dd)) & "Muhammad")
     form1.mdclstEmail.AddItem( ee & Space(50-len(ee)) & "cck")
End Sub
//-->
</SCRIPT>

</HEAD>

<BODY bgColor=#e0ebf2 >
<form action="" method=post id=form1 name=form1>
<P>&nbsp;</P>
<P>
<OBJECT id=mdclstEmail style="LEFT: 1px; WIDTH: 500px; TOP: 1px; HEIGHT: 157px"
name=mdclstEmail classid=clsid:8BD21D20-EC42-11CE-9E0D-00AA006002F3 width=500
VIEWASTEXT><PARAM NAME="VariousPropertyBits" VALUE="746588187"><PARAM NAME="BackColor" VALUE="2147483653"><PARAM NAME="ForeColor" VALUE="2147483656"><PARAM NAME="MaxLength" VALUE="0"><PARAM NAME="BorderStyle" VALUE="1"><PARAM NAME="ScrollBars" VALUE="3"><PARAM NAME="DisplayStyle" VALUE="2"><PARAM NAME="MousePointer" VALUE="0"><PARAM NAME="Size" VALUE="13229;4154"><PARAM NAME="PasswordChar" VALUE="0"><PARAM NAME="ListWidth" VALUE="0"><PARAM NAME="BoundColumn" VALUE="1"><PARAM NAME="TextColumn" VALUE="65535"><PARAM NAME="ColumnCount" VALUE="1"><PARAM NAME="ListRows" VALUE="8"><PARAM NAME="cColumnInfo" VALUE="0"><PARAM NAME="MatchEntry" VALUE="0"><PARAM NAME="ListStyle" VALUE="1"><PARAM NAME="ShowDropButtonWhen" VALUE="0"><PARAM NAME="ShowListWhen" VALUE="1"><PARAM NAME="DropButtonStyle" VALUE="1"><PARAM NAME="MultiSelect" VALUE="1"><PARAM NAME="Value" VALUE=""><PARAM NAME="Caption" VALUE=""><PARAM NAME="PicturePosition" VALUE="458753"><PARAM NAME="BorderColor" VALUE="2147483654"><PARAM NAME="SpecialEffect" VALUE="0"><PARAM NAME="Accelerator" VALUE="0"><PARAM NAME="GroupName" VALUE=""><PARAM NAME="FontName" VALUE="MS Sans Serif"><PARAM NAME="FontEffects" VALUE="1073741824"><PARAM NAME="FontHeight" VALUE="165"><PARAM NAME="FontOffset" VALUE="0"><PARAM NAME="FontCharSet" VALUE="0"><PARAM NAME="FontPitchAndFamily" VALUE="2"><PARAM NAME="ParagraphAlign" VALUE="1"><PARAM NAME="FontWeight" VALUE="400"></OBJECT></P>
</form>
</BODY>
</html>
0
Comment
Question by:chencc77
1 Comment
 
LVL 15

Accepted Solution

by:
robbert earned 100 total points
ID: 6222780
Change this parameter's value:
     <PARAM NAME="FontName" VALUE="Courier New">

You can do this manually, or in InterDev, right-click the <object></object> block, uncheck "Always view as text", right-click again, Properties, and set the font, in the Properties pane.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
If-Then-Else ASP problem 6 67
Recordset containing single quotes 8 43
Executing a script on a timer online 5 22
MS SQL and column defined as time 6 9
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question