1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
Imports System.Data.OleDb
Imports Microsoft.Office.Interop.Word
Imports System.Windows.Forms
Public Class FBaux
Dim reponse As Byte 'pour recuperer la valeur du bouton appuyé dans les boites de dialogues
Dim SStructureJuriSoc As String 'structure juridique de la société
Dim CiviliteGerant As String 'civilité du gérant Mlle Mme Mr
Dim StrVilleSignature As String 'ville de signature pour le "fait à le" de la fin
Public Sub New()
' Cet appel est requis par le Concepteur Windows Form.
InitializeComponent()
' Ajoutez une initialisation quelconque après l'appel InitializeComponent().
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi
End Sub
Private Sub FBaux_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
'efface tout pour faire propre à l'ouverture label, textbox, button,combobox,listbox
Dim myLabel As Control
DateTimePicker_DateSignature.Value = DateTime.Now
For Each myLabel In Me.Controls
If TypeOf myLabel Is Label Or TypeOf myLabel Is TextBox Or TypeOf myLabel Is DateTimePicker Or TypeOf myLabel Is Button Or TypeOf myLabel Is ComboBox Then
myLabel.Visible = False
End If
Next
'efface les cadres dessin
RectangleShapeFacturation.Visible = False
RectangleShapeDate.Visible = False
RectangleShapeBail.Visible = False
RectangleShapeSociete.Visible = False
RectangleShapeClient.Visible = False
'initialise la date de signature de bail a aujourd'hui
DateTimePicker_DateSignature.Value = DateTime.Now
'rempli la listbox avec le nom de tous les clients
rempliList()
End Sub |
Partager