Solved

MDC List

Posted on 2001-06-22
1
281 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
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/…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now