Solved

MDC List

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

26 Experts available now in Live!

Get 1:1 Help Now