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.
146 lines
6.7 KiB
146 lines
6.7 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>frmApplikationAbhaengigkeit.GetControl -Methode</TITLE>
|
|
<xml>
|
|
<MSHelp:TOCTitle Title="frmApplikationAbhaengigkeit.GetControl -Methode"/>
|
|
<MSHelp:RLTitle Title="frmApplikationAbhaengigkeit.GetControl -Methode"/>
|
|
<MSHelp:Keyword Index="A" Term="topic_0000000000001590"/>
|
|
<MSHelp:Keyword Index="K" Term="frmApplikationAbhaengigkeit.GetControl -Methode"/>
|
|
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.frmApplikationAbhaengigkeit.GetControl -Methode"/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.frmApplikationAbhaengigkeit.GetControl"/>
|
|
<MSHelp:Keyword Index="F" Term="frmApplikationAbhaengigkeit.GetControl"/>
|
|
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.frmApplikationAbhaengigkeit.frmApplikationAbhaengigkeit.GetControl"/>
|
|
<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_0000000000001590"></A>frmApplikationAbhaengigkeit.GetControl -Methode</H1>
|
|
</div></div>
|
|
<!--NONSCROLLING BANNER END-->
|
|
|
|
<DIV id="nstext" valign="bottom"><!---->
|
|
|
|
<P>Sucht in den Base-Controls sämtliche Controls mit dem Namen in "Key" (Wildcards * möglich) und listet
|
|
die gefundnen Controls in der Liste L zur weiteren Bearbeitung</P>
|
|
|
|
|
|
|
|
|
|
<PRE class="syntax"><SPAN class="lang">[Visual Basic]
|
|
</SPAN><B>Private Function GetControl( _ <br> ByVal <i>BaseControl</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsControlClassTopic.htm">Control</a>, _ <br> ByVal <i>Key</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a>, _ <br> ByRef <i>L</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemCollectionsGenericListClassTopic.htm">List</a>(Of <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemWindowsFormsControlClassTopic.htm">Control</a>), _ <br> Optional ByVal <i>ReturnAtFirstElement</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a> = False _ <br>) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a></B></PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Parameter</H4>
|
|
<dl>
|
|
<dt><i>BaseControl</i></dt>
|
|
<dd>Base-Contrlo (z.B. aktuelles Formular</dd>
|
|
<dt><i>Key</i></dt>
|
|
<dd>Schlüssel welcher gesucht werden soll</dd>
|
|
<dt><i>L</i></dt>
|
|
<dd>Liste der gefundenen Objekte</dd>
|
|
<dt><i>ReturnAtFirstElement</i></dt>
|
|
<dd>Optional. Der Standardwert ist False.</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Rückgabewert</H4>
|
|
<P>True wenn eines oder mehr Controls gefunden wurden, false wenn kein Control gefunden wurde.</P>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<H4 class="dtH4">Quellcode</H4>
|
|
<pre class="code"><SPAN class="lang">[Visual Basic]</SPAN>
|
|
Private Function GetControl(ByVal BaseControl As Control, ByVal Key As String, ByRef L As List(Of Control), Optional ByVal ReturnAtFirstElement As Boolean = False) As Boolean <br> If L Is Nothing Then L = New List(Of Control) <br> Dim Gut As Boolean <br> Dim ReturnFlag As Boolean = False <br> If Key IsNot Nothing Then Key = Key.ToLower <br> <br> If BaseControl.HasChildren = True Then <br> For Each ctl As Control In BaseControl.Controls <br> Gut = False <br> If Key Is Nothing Then <br> Gut = True <br> Else <br> If ctl.Name.Length >= Key.Length Then <br> Key = Key.ToLower <br> If Key.StartsWith("*") Then <br> If Key.Substring(1) = ctl.Name.ToLower.Substring(ctl.Name.Length - (Key.Length - 1), Key.Length - 1) Then Gut = True <br> ElseIf Key.EndsWith("*") Then <br> If Key.Substring(0, Key.Length - 1) = ctl.Name.ToLower.Substring(0, Key.Length - 1) Then Gut = True <br> Else <br> If Key = ctl.Name.ToLower Then Gut = True <br> End If <br> End If <br> End If <br> <br> If Gut = True Then <br> L.Add(ctl) <br> If ReturnAtFirstElement = True Then ReturnFlag = True <br> End If <br> If ReturnFlag = False Then <br> Call GetControl(ctl, Key, L) <br> End If <br> Next <br> End If <br> <br> If L.Count - 1 > -1 Then <br> Return True <br> Else <br> Return False <br> End If <br> End Function
|
|
</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_000000000000132F.html">frmApplikationAbhaengigkeit</a>
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
<DIV CLASS="footer">
|
|
<HR>
|
|
Generated by VBdocman .NET
|
|
<p>
|
|
</div></div>
|
|
</BODY>
|
|
</HTML>
|
|
|