You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ITSM/.svn/pristine/e4/e4bb50635d777ab6f3f6a4b33c3...

138 lines
4.3 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp" DIR="LTR"><HEAD>
<meta name="GENERATOR" content="VBdocman .NET - documentation generator; http://www.vbdocman.com">
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=UTF-8">
<TITLE>frmApplikation.Set_Checkedlistbox -Methode</TITLE>
<xml>
<MSHelp:TOCTitle Title="frmApplikation.Set_Checkedlistbox -Methode"/>
<MSHelp:RLTitle Title="frmApplikation.Set_Checkedlistbox -Methode"/>
<MSHelp:Keyword Index="A" Term="topic_0000000000000F40"/>
<MSHelp:Keyword Index="K" Term="frmApplikation.Set_Checkedlistbox -Methode"/>
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.frmApplikation.Set_Checkedlistbox -Methode"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.frmApplikation.Set_Checkedlistbox"/>
<MSHelp:Keyword Index="F" Term="frmApplikation.Set_Checkedlistbox"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.frmApplikation.frmApplikation.Set_Checkedlistbox"/>
<MSHelp:Attr Name="DevLang" Value="VB"/>
<MSHelp:Attr Name="DevLangVers" Value="kbLangVB"/>
<MSHelp:Attr Name="DocSet" Value="Visual Basic"/>
<MSHelp:Attr Name="DocSet" Value="Visual Studio"/>
<MSHelp:Attr Name="DocSet" Value="VSM"/>
<MSHelp:Attr Name="Product" Value="VB"/>
<MSHelp:Attr Name="ProductVers" Value="kbVBp700"/>
<MSHelp:Attr Name="Product" Value="VSA"/>
<MSHelp:Attr Name="ProductVers" Value="kbVSA"/>
<MSHelp:Attr Name="Technology" Value="ManagedCode"/>
<MSHelp:Attr Name="TechnologyVers" Value="kbManagedCode"/>
<MSHelp:Attr Name="TopicType" Value="kbSyntax"/>
<MSHelp:Attr Name="TargetOS" Value="Windows"/>
<MSHelp:Attr Name="Locale" Value="kbEnglish"/>
</xml>
<META name="rtfFileName" content="">
<META NAME="save" CONTENT="history">
<!--CSS_START-->
<SCRIPT SRC="MSHelp/scripts/dtuelink.js"></SCRIPT>
<!--CSS_END-->
<SCRIPT language="JavaScript">
function indent(level) {
for (i=1; i<=level; i++) {
document.write("&nbsp;&nbsp;&nbsp;");
}
}
</SCRIPT>
</HEAD>
<body topmargin=0 id="bodyID" class = "dtBODY"><!--NONSCROLLING BANNER START-->
<div id="nsbanner">
<div id="bannerrow1">
<TABLE CLASS="bannerparthead" CELLSPACING=0>
<TR ID="hdr">
<TD CLASS="runninghead" nowrap>Vertragsverwaltung-Klassenbibliothek</TD>
<TD CLASS="product" nowrap>&nbsp;</TD>
</TR>
</TABLE>
</div>
<div id="TitleRow">
<H1 class="dtH1"><A NAME="topic_0000000000000F40"></A>frmApplikation.Set_Checkedlistbox -Methode</H1>
</div></div>
<!--NONSCROLLING BANNER END-->
<DIV id="nstext" valign="bottom"><!---->
<PRE class="syntax"><SPAN class="lang">[Visual&nbsp;Basic]
</SPAN><B>Private Sub Set_Checkedlistbox( _&nbsp;<br> ByRef <i>clb</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsCheckedListBoxClassTopic.htm">CheckedListBox</a>, _&nbsp;<br> ByRef <i>data</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDataDataTableClassTopic.htm">DataTable</a> _&nbsp;<br>)</B></PRE>
<H4 class="dtH4">Parameter</H4>
<dl>
<dt><i>clb</i></dt>
<dd></dd>
<dt><i>data</i></dt>
<dd></dd>
</dl>
<H4 class="dtH4">Quellcode</H4>
<pre class="code"><SPAN class="lang">[Visual&nbsp;Basic]</SPAN>
Private Sub Set_Checkedlistbox(ByRef clb As CheckedListBox, ByRef data As DataTable)&nbsp;<br> Dim i As Integer&nbsp;<br> For i = 0 To clb.Items.Count - 1&nbsp;<br> clb.SetItemCheckState(i, CheckState.Unchecked)&nbsp;<br> Next&nbsp;<br>&nbsp;<br> Dim chk As Integer = 0&nbsp;<br> Dim ii As Integer&nbsp;<br> Dim oc As CheckedListBox.ObjectCollection = clb.Items&nbsp;<br> For i = 0 To data.Rows.Count - 1&nbsp;<br> For ii = 0 To oc.Count - 1&nbsp;<br> If oc.Item(ii).item(0) = data.Rows(i).Item(2) Then&nbsp;<br> clb.SetItemCheckState(ii, CheckState.Checked)&nbsp;<br> End If&nbsp;<br> Next&nbsp;<br> Next&nbsp;<br>&nbsp;<br>&nbsp;<br> End Sub
</pre>
<H4 class="dtH4">Forderungen</H4>
<P><b class="le">Plattformen:&nbsp;</b>Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition</P>
<H4 class="dtH4">Siehe auch</H4>
<p>
<a href="topic_0000000000000F26.html">frmApplikation</a>
</p>
<DIV CLASS="footer">
<HR>
Generated by VBdocman .NET
<p>
</div></div>
</BODY>
</HTML>