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.
139 lines
5.2 KiB
139 lines
5.2 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>clsServiceKatalogTree.LoadTreeView -Methode</TITLE>
|
|
<xml>
|
|
<MSHelp:TOCTitle Title="clsServiceKatalogTree.LoadTreeView -Methode"/>
|
|
<MSHelp:RLTitle Title="clsServiceKatalogTree.LoadTreeView -Methode"/>
|
|
<MSHelp:Keyword Index="A" Term="topic_0000000000000BBB"/>
|
|
<MSHelp:Keyword Index="K" Term="clsServiceKatalogTree.LoadTreeView -Methode"/>
|
|
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.TKB.VV.SLA.clsServiceKatalogTree.LoadTreeView -Methode"/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.SLA.clsServiceKatalogTree.LoadTreeView"/>
|
|
<MSHelp:Keyword Index="F" Term="clsServiceKatalogTree.LoadTreeView"/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.SLA.clsServiceKatalogTree.clsServiceKatalogTree.LoadTreeView"/>
|
|
<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(" ");
|
|
}
|
|
}
|
|
</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> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</div>
|
|
<div id="TitleRow">
|
|
<H1 class="dtH1"><A NAME="topic_0000000000000BBB"></A>clsServiceKatalogTree.LoadTreeView -Methode</H1>
|
|
</div></div>
|
|
<!--NONSCROLLING BANNER END-->
|
|
|
|
<DIV id="nstext" valign="bottom"><!---->
|
|
|
|
<P>Tree aufbauen</P>
|
|
|
|
|
|
|
|
|
|
<PRE class="syntax"><SPAN class="lang">[Visual Basic]
|
|
</SPAN><B>Private Sub LoadTreeView( _ <br> ByVal <i>oDS</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDataDataSetClassTopic.htm">DataSet</a>, _ <br> ByRef <i>oTreeview</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsTreeViewClassTopic.htm">TreeView</a> _ <br>)</B></PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Parameter</H4>
|
|
<dl>
|
|
<dt><i>oDS</i></dt>
|
|
<dd></dd>
|
|
<dt><i>oTreeview</i></dt>
|
|
<dd></dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Quellcode</H4>
|
|
<pre class="code"><SPAN class="lang">[Visual Basic]</SPAN>
|
|
Private Sub LoadTreeView(ByVal oDS As DataSet, ByRef oTreeview As TreeView) <br> 'Dim oTreeView As TreeView = New TreeView() <br> Dim oDataRow As DataRow <br> fnt_Strikeout = New System.Drawing.Font(oTreeview.Font.FontFamily, oTreeview.Font.Size, FontStyle.Strikeout) <br> fnt_normal = New System.Drawing.Font(oTreeview.Font.FontFamily, oTreeview.Font.Size, FontStyle.Regular) <br> For Each oDataRow In oDS.Tables(0).Rows <br> If Not oDataRow.IsNull("Parentid") Then <br> If oDataRow.Item("Parentid") = 0 Then <br> 'If oDataRow.IsNull("Parentid") Then <br> Dim oNode As New TreeNode() <br> oNode.Text = oDataRow("Bezeichnung").ToString() <br> oNode.Tag = oDataRow("Servicekatalognr").ToString <br> oNode.SelectedImageIndex = 0 <br> oNode.StateImageIndex = 0 <br> oNode.ImageIndex = 0 <br> If oDataRow("Aktiv") = False Then <br> oNode.NodeFont = fnt_Strikeout <br> End If <br> oTreeview.Nodes.Add(oNode) <br> RecursivelyLoadTree(oDataRow, oNode) <br> End If <br> End If <br> Next oDataRow <br> oDS.Dispose() <br> oDS = Nothing <br> End Sub
|
|
</pre>
|
|
|
|
|
|
|
|
<H4 class="dtH4">Forderungen</H4>
|
|
<P><b class="le">Plattformen: </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_0000000000000BB4.html">clsServiceKatalogTree</a>
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<DIV CLASS="footer">
|
|
<HR>
|
|
Generated by VBdocman .NET
|
|
<p>
|
|
</div></div>
|
|
</BODY>
|
|
</HTML>
|
|
|