Solved

MDC List

Posted on 2001-06-22
1
286 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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