\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{Gregor Lüdi (Siniansung)} \pdfinfo{ /Title (visual-basic-programming-basics.pdf) /Creator (Cheatography) /Author (Gregor Lüdi (Siniansung)) /Subject (Visual Basic Programming Basics Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{0721A3} \definecolor{LightBackground}{HTML}{EFF1F9} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Visual Basic Programming Basics Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Gregor Lüdi (Siniansung)} via \textcolor{DarkBackground}{\uline{cheatography.com/20378/cs/3172/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}Gregor Lüdi (Siniansung) \\ \uline{cheatography.com/siniansung} \\ \uline{\seqsplit{www}.ken.ch/\%7elueg} \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 3rd December, 2015.\\ Updated 30th November, 2020.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{1.29402 cm} x{3.68298 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Datentypen}} \tn % Row 0 \SetRowColor{LightBackground} Boolean & True / False \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Byte & 0-255 \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} Integer & ganze Zahlen \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} Long & grosse ganze Zahlen \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} Single & Kommazahlen \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} Double & doppelte Genauigkeit \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} String & Text \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} Variant & variabler Datentyp \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Variablendeklaration}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Dim \textless{}var\_name\textgreater{} as \textless{}data-type\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Kommentare}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{' benutze den Apostroph} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} x{4.4793 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Arithmetische Operatoren}} \tn % Row 0 \SetRowColor{LightBackground} + & Addition \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} . & Subtraktion \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} * & Multiplikation \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} / & Division \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \textbackslash{} & ganzzahlige Division \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \textasciicircum{} & Potenz \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.58804 cm} x{2.38896 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Fehlerbehandlung}} \tn % Row 0 \SetRowColor{LightBackground} `On Error Resume Next` & Fehler überspringen \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Prozeduren}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{[}{\bf{Public/Private}}{]} {\bf{Sub}} \textless{}name\textgreater{} \newline \textless{}statements\textgreater{} \newline {\bf{End Sub}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Prozeduren sind Unterprogramme} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Funktionen}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{[}Public/Private{]} Function \textless{}name\textgreater{} (\textless{}arg\textgreater{}) As \textless{}result\textgreater{} \newline \textless{}statements\textgreater{} \newline return \textless{}result\textgreater{} \newline End Function} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Funktionen benutzen eine Liste von Argumenten (\textless{}arg\textgreater{}) um einen Wert ( \textless{}result\textgreater{}) zu berechnen} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Klassen}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Public Class}} \textless{}name\textgreater{} \newline {\bf{Public}} \textless{}eigenschaftsname\textgreater{} \newline \newline {\bf{Public Property}} \textless{}Name\textgreater{}() {\bf{As}} \textless{}datatype\textgreater{} \newline {\bf{Get}} \newline \textless{}statements\textgreater{} \newline {\bf{End Get}} \newline {\bf{Set}}(ByVal value As \textless{}datatype\textgreater{}) \newline \textless{}statements\textgreater{} \newline {\bf{End Set}} \newline {\bf{End Property}} \newline {\bf{End Class}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Namenskonvetion}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/siniansung_1421614528_VBCheatsheet.bmp}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Beispielprogramm}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{{\bf{Private Sub}} \seqsplit{btn\_Start\_Click(ByVal...)} \newline {\emph{'Deklaration der Variablen}} \newline {\bf{Dim}} var1 {\bf{As}} Single \newline {\bf{Dim}} var2 {\bf{As}} Single \newline {\emph{'Eingabe der Variable}} \newline var1=tb\_var1.Text \newline {\emph{'Verarbeitung}} \newline var2 = var1{\emph{2 \newline }}'Ausgabe der Variable 2* \newline lbl\_ziel.Text = var2 \newline {\bf{End Sub}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{3.23505 cm} x{1.74195 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Mathematische Funktionen}} \tn % Row 0 \SetRowColor{LightBackground} `Math.Round(\textless{}x\textgreater{},\textless{}s\textgreater{})` & Runden \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} `Math.Pow(\textless{}base\textgreater{},\textless{}exp\textgreater{})` & Potenz \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} `Math.Sqr(\textless{}var\textgreater{})` & Wurzel \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} `\textless{}var1\textgreater{} Mod \textless{}var2\textgreater{}` & Divisionsrest \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{s Anzahl Stellen} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Arrays durchlaufen}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{For index = 0 to array.length-1 \newline Array(index) = ... \newline Next} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Arrays deklarieren}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Dim werte(0 to n) as \textless{}Datentyp\textgreater{} \newline \newline Dim werte() as \textless{}Datentyp\textgreater{} = \{w1,w2,w3,w4\}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Sequenzen}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/siniansung_1449046886_sequenz.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Eingabe}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{' Eingabe über ein Objekt mit Texteigenschaften \newline \textless{}variable\textgreater{} = \textless{}Objektname\textgreater{}.Text} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Ausgabe}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{' Ausgabe über ein Objekt mit Texteigenschaft \newline \textless{}Objektname\textgreater{}.Text = \textless{}variable\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Selektion}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/siniansung_1449047059_selektion.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.59724 cm} x{4.37976 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Vergleichsoperatoren}} \tn % Row 0 \SetRowColor{LightBackground} = & gleich \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \textless{}\textgreater{} & nicht gleich \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \textless{} & kleiner als \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \textgreater{} & gr{\"o}sser als \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \textless{}= & kleiner gleich \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \textgreater{}= & gr{\"o}sser gleich \tn % Row Count 6 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{If ... Then}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{If \textless{}bedingung\textgreater{} Then \newline \textless{}statements\textgreater{} \newline {[}ElseIf \textless{}bedingung\textgreater{} Then{]} 'optionale Bedingung \newline \textless{}statements\textgreater{} \newline Else \newline \textless{}statements\textgreater{} \newline End If} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{SelectCase}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/siniansung_1449047201_selectcase.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Select Case}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Select Case \textless{}expression\textgreater{} \newline Case 0 'einfacher Wert \newline \textless{}statements\textgreater{} \newline Case 1 To 5 'mehrere Werte \newline \textless{}statements\textgreater{} \newline Case Is \textless{}5 'Bereich von Werten \newline \textless{}statements\textgreater{} \newline Case Else \newline \textless{}statements\textgreater{} \newline End Select} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Iterationen}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/siniansung_1449047438_iteration1.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{For Next}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{For \textless{}zaehler\textgreater{} = \textless{}start\textgreater{} To \textless{}end\textgreater{} Step \textless{}inc\textgreater{} \newline \textless{}statements\textgreater{} \newline Next} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Do Loop (kopfgesteuert)}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Do While \textless{}bedingung\textgreater{} \newline \textless{}statements\textgreater{} \newline Loop \newline ' oder \newline Do until \textless{}bedingung\textgreater{} \newline \textless{}statements\textgreater{} \newline Loop} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{while: solange die Bedingung erfüllt ist \newline until: bis die Bedingung erfüllt ist} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Iterationen}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{5.377cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/siniansung_1449047460_iteration2.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Do Loop (fussgesteuert)}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Do \newline \textless{}statements\textgreater{} \newline Loop while \textless{}bedingung\textgreater{} \newline ' oder \newline Do \newline \textless{}statements\textgreater{} \newline Loop until \textless{}bedingung\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{while: solange die Bedingung erfüllt ist \newline until: bis die Bedingung erfüllt ist} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Graphiken einbinden}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\textless{}Objektname\textgreater{}.Image = My.Resources.\textless{}bildname\textgreater{}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Das Bild muss vorg{\"a}ngig in den Ressourcenspeicher geladen werden} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Audio abspielen}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{My.Computer.Audio.Play(\textless{}dateipfad\textgreater{},\textless{}option\textgreater{}) \newline \newline \textless{}dateipfad\textgreater{} = My.Resources.\textless{}dateiname\textgreater{} \newline \textless{}option\textgreater{} = AudioPlayMode.Background \newline \seqsplit{AudioPlayMode.BackgroundLoop} \newline \seqsplit{AudioPlayMode.WaitToComplete}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}