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/76/768b56178113112db976aa122bc...

137 lines
9.4 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>MySecurity.Objectanalysis -Methode</TITLE>
<xml>
<MSHelp:TOCTitle Title="MySecurity.Objectanalysis -Methode"/>
<MSHelp:RLTitle Title="MySecurity.Objectanalysis -Methode"/>
<MSHelp:Keyword Index="A" Term="topic_0000000000000E94"/>
<MSHelp:Keyword Index="K" Term="MySecurity.Objectanalysis -Methode"/>
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.TKB.VV.Utils.MySecurity.Objectanalysis -Methode"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.Utils.MySecurity.Objectanalysis"/>
<MSHelp:Keyword Index="F" Term="MySecurity.Objectanalysis"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.VV.Utils.MySecurity.MySecurity.Objectanalysis"/>
<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_0000000000000E94"></A>MySecurity.Objectanalysis -Methode</H1>
</div></div>
<!--NONSCROLLING BANNER END-->
<DIV id="nstext" valign="bottom"><!---->
<P>Sämtliche Controls vom Formular auslesen</P>
<PRE class="syntax"><SPAN class="lang">[Visual&nbsp;Basic]
</SPAN><B>Private Function Objectanalysis( _&nbsp;<br> ByRef <i>ctl</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> _&nbsp;<br>) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a></B></PRE>
<H4 class="dtH4">Parameter</H4>
<dl>
<dt><i>ctl</i></dt>
<dd></dd>
</dl>
<H4 class="dtH4">Quellcode</H4>
<pre class="code"><SPAN class="lang">[Visual&nbsp;Basic]</SPAN>
Private Function Objectanalysis(ByRef ctl As Object) As String&nbsp;<br> Dim typ As System.Type = ctl.GetType&nbsp;<br> Select Case LCase(typ.Name)&nbsp;<br> Case &quot;menustrip&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> tmpmenuname = ctl.name&nbsp;<br> ReadMenu(ctl)&nbsp;<br> Case &quot;contextmenustrip&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> tmpmenuname = ctl.name&nbsp;<br> ReadContextMenu(ctl)&nbsp;<br> Case &quot;toolstrip&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> Dim tmptoolstrop As ToolStrip = ctl&nbsp;<br> Try&nbsp;<br> Dim ic As Integer&nbsp;<br> For ic = 0 To tmptoolstrop.Items.Count - 1&nbsp;<br> Try&nbsp;<br> Dim subobj As ToolStripButton&nbsp;<br> subobj = tmptoolstrop.Items(ic)&nbsp;<br> ctlcol.Add(New MyFormControls(subobj, formname, typ.Name, ctl.Name, subobj.Name, 1))&nbsp;<br> Catch ex As Exception&nbsp;<br>&nbsp;<br> End Try&nbsp;<br>&nbsp;<br> Next&nbsp;<br> 'For Each subobj As ToolStripButton In tmptoolstrop.Items&nbsp;<br> 'ctlcol.Add(New MyFormControls(subobj, formname, typ.Name, ctl.Name, subobj.Name, 1))&nbsp;<br> 'Next&nbsp;<br> Catch&nbsp;<br> End Try&nbsp;<br> Case &quot;splitcontainer&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> Dim tmpsplit As SplitContainer = ctl&nbsp;<br> For Each ctrl As Object In tmpsplit.Panel1.Controls&nbsp;<br> Objectanalysis(ctrl)&nbsp;<br> Next&nbsp;<br> For Each ctrl As Object In tmpsplit.Panel2.Controls&nbsp;<br> Objectanalysis(ctrl)&nbsp;<br> Next&nbsp;<br> Case &quot;tabcontrol&quot;, &quot;clsmytabcontrol&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> Dim tmptabcontrol As TabControl = ctl&nbsp;<br> For Each ctl In tmptabcontrol.TabPages&nbsp;<br> Objectanalysis(ctl)&nbsp;<br> Next&nbsp;<br> Case &quot;tabpage&quot;&nbsp;<br> Dim tmptabpage As TabPage = ctl&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, tmptabpage.Parent.Name, 1))&nbsp;<br>&nbsp;<br> For Each ctl In tmptabpage.Controls&nbsp;<br> Objectanalysis(ctl)&nbsp;<br> Next&nbsp;<br> Case &quot;groupbox&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> Dim tmptabpage As GroupBox = ctl&nbsp;<br> For Each ctl In tmptabpage.Controls&nbsp;<br> Objectanalysis(ctl)&nbsp;<br> Next&nbsp;<br> Case &quot;panel&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> Dim tmppanel As Panel = ctl&nbsp;<br> For Each ctl In tmppanel.Controls&nbsp;<br> Objectanalysis(ctl)&nbsp;<br> Next&nbsp;<br> Case &quot;c1truedbgrid&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> Dim ctrl As C1TrueDBGrid = ctl&nbsp;<br> Dim i As Integer&nbsp;<br> For i = 0 To ctrl.Columns.Count - 1&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, ctrl.Columns(i).Caption, 0, ctrl.Columns(i).Caption))&nbsp;<br> Next&nbsp;<br> Try&nbsp;<br> If ctrl.ContextMenuStrip.Name &lt;&gt; &quot;&quot; Then&nbsp;<br> Dim x As ContextMenuStrip = ctrl.ContextMenuStrip&nbsp;<br> Objectanalysis(x)&nbsp;<br> End If&nbsp;<br> Catch ex As Exception&nbsp;<br>&nbsp;<br> End Try&nbsp;<br> For Each xctl As Object In ctrl.Controls&nbsp;<br> Objectanalysis(xctl)&nbsp;<br> Next&nbsp;<br> Case &quot;treeview&quot;&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> Dim ctrl As TreeView = ctl&nbsp;<br> Try&nbsp;<br>&nbsp;<br> If ctrl.ContextMenuStrip.Name &lt;&gt; &quot;&quot; Then&nbsp;<br> Dim x As ContextMenuStrip = ctrl.ContextMenuStrip&nbsp;<br> Objectanalysis(x)&nbsp;<br> End If&nbsp;<br>&nbsp;<br> Catch ex As Exception&nbsp;<br>&nbsp;<br> End Try&nbsp;<br>&nbsp;<br> Case Else&nbsp;<br> If ctl.name = &quot;TreeStruktur&quot; Then&nbsp;<br> End If&nbsp;<br> ctlcol.Add(New MyFormControls(ctl, formname, typ.Name, ctl.Name, &quot;&quot;))&nbsp;<br> End Select&nbsp;<br> End Function
</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_0000000000000E84.html">MySecurity</a>
</p>
<DIV CLASS="footer">
<HR>
Generated by VBdocman .NET
<p>
</div></div>
</BODY>
</HTML>