vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Schützen Sie Ihre Software vor Software-Piraterie - mit sevLock 1.0 DLL!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2024
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Visual-Basic Einsteiger
Re: laufzeitfehler 13 typen unverträglich 
Autor: medizintechnik_85
Datum: 10.10.15 09:36

Teil 4 :

' Now add a button to the new toolbar
    Set oButton = oToolbar.Controls.Add(Type:=msoControlButton)
 
    ' And set some of the button's properties
    With oButton
         .DescriptionText = "Remove Section"
          'Tooltip text when mouse if placed over button
         .Caption = "RemoveSection"
         'Text if Text in Icon is chosen
         .OnAction = "RemoveSection"
          'Runs the Sub Button1() code when clicked
         .Style = msoButtonIcon
          ' Button displays as icon, not text or both
         .FaceId = 138
          '52 is my favorite pig;
          ' chooses icon #52 from the available Office icons
    End With
 
 
 
' Now add a button to the new toolbar
    Set oButton = oToolbar.Controls.Add(Type:=msoControlButton)
 
    ' And set some of the button's properties
    With oButton
         .DescriptionText = "Add Ignore Slide"
          'Tooltip text when mouse if placed over button
         .Caption = "AddIgnoreSlide"
         'Text if Text in Icon is chosen
         .OnAction = "AddIgnoreSlide"
          'Runs the Sub Button1() code when clicked
         .Style = msoButtonIcon
          ' Button displays as icon, not text or both
         .FaceId = 214
          '52 is my favorite pig;
          ' chooses icon #52 from the available Office icons
    End With
 
 
 
    ' Now add a button to the new toolbar
    Set oButton = oToolbar.Controls.Add(Type:=msoControlButton)
 
    ' And set some of the button's properties
    With oButton
         .DescriptionText = "Remove Ignore Slide"
          'Tooltip text when mouse if placed over button
         .Caption = "RemoveIgnoreSlide"
         'Text if Text in Icon is chosen
         .OnAction = "RemoveIgnoreSlide"
          'Runs the Sub Button1() code when clicked
         .Style = msoButtonIcon
          ' Button displays as icon, not text or both
         .FaceId = 213
          '52 is my favorite pig;
          ' chooses icon #52 from the available Office icons
    End With
 
 
    ' Now add a button to the new toolbar
    Set oButton = oToolbar.Controls.Add(Type:=msoControlButton)
     ' And set some of the button's properties
    With oButton
         .DescriptionText = "Clear Structure"
          'Tooltip text when mouse if placed over button
         .Caption = "Delete old structure"
         'Text if Text in Icon is chosen
         .OnAction = "ClearOldStructure"
          'Runs the Sub Button1() code when clicked
         .Style = msoButtonIcon
          ' Button displays as icon, not text or both
         .FaceId = 215
          '52 is my favorite pig;
          ' chooses icon #52 from the available Office icons
    End With
 
 
        ' Now add a button to the new toolbar
    Set oButton = oToolbar.Controls.Add(Type:=msoControlButton)
     ' And set some of the button's properties
    With oButton
         .DescriptionText = "Show Settings Dialog"
          'Tooltip text when mouse if placed over button
         .Caption = "Show Settings"
         'Text if Text in Icon is chosen
         .OnAction = "showSettingDialog"
          'Runs the Sub Button1() code when clicked
         .Style = msoButtonIcon
          ' Button displays as icon, not text or both
         .FaceId = 44
          '52 is my favorite pig;
          ' chooses icon #52 from the available Office icons
    End With
 
 
        ' Now add a button to the new toolbar
    Set oButton = oToolbar.Controls.Add(Type:=msoControlButton)
     ' And set some of the button's properties
    With oButton
         .DescriptionText = "Show Info Dialog"
          'Tooltip text when mouse if placed over button
         .Caption = "Show Info"
         'Text if Text in Icon is chosen
         .OnAction = "showInfoDialog"
          'Runs the Sub Button1() code when clicked
         .Style = msoButtonIcon
          ' Button displays as icon, not text or both
         .FaceId = 124
          '52 is my favorite pig;
          ' chooses icon #52 from the available Office icons
    End With
 
    ' Repeat the above for as many more buttons as you need to add
    ' Be sure to change the .OnAction property at least for each new button
 
    ' You can set the toolbar position and visibility here if you like
    ' By default, it'll be visible when created
    oToolbar.top = 150
    oToolbar.left = 150
    oToolbar.Visible = True
 
NormalExit:
    Exit Sub   ' so it doesn't go on to run the errorhandler code
 
ErrorHandler:
     'Just in case there is an error
     MsgBox Err.Number & vbCrLf & Err.Description
     Resume NormalExit:
End Sub
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
laufzeitfehler 13 typen unverträglich5.398medizintechnik_8509.10.15 19:52
Re: laufzeitfehler 13 typen unverträglich4.123Manfred X10.10.15 08:46
Re: laufzeitfehler 13 typen unverträglich4.172medizintechnik_8510.10.15 09:32
Re: laufzeitfehler 13 typen unverträglich4.539medizintechnik_8510.10.15 09:33
Re: laufzeitfehler 13 typen unverträglich4.444medizintechnik_8510.10.15 09:35
Re: laufzeitfehler 13 typen unverträglich4.331medizintechnik_8510.10.15 09:36
Re: laufzeitfehler 13 typen unverträglich4.107medizintechnik_8510.10.15 09:37
Re: laufzeitfehler 13 typen unverträglich4.139medizintechnik_8510.10.15 09:38
Re: laufzeitfehler 13 typen unverträglich4.139medizintechnik_8510.10.15 09:38
Re: laufzeitfehler 13 typen unverträglich4.182medizintechnik_8510.10.15 09:39
Re: laufzeitfehler 13 typen unverträglich4.120medizintechnik_8510.10.15 09:40
Re: laufzeitfehler 13 typen unverträglich4.058Manfred X10.10.15 10:10
Re: laufzeitfehler 13 typen unverträglich4.041medizintechnik_8510.10.15 11:44
Re: laufzeitfehler 13 typen unverträglich4.133Manfred X10.10.15 12:04
Re: laufzeitfehler 13 typen unverträglich4.139medizintechnik_8510.10.15 12:36
Re: laufzeitfehler 13 typen unverträglich4.129Manfred X10.10.15 13:06
Re: laufzeitfehler 13 typen unverträglich4.212medizintechnik_8510.10.15 14:09

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2024 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel