Solved

MDC List

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

696 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