Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionIf nomdelachechbox.checked = true then
If nomdelachechbox.checked = true then 'instruction du programme B end if
Imports System.IO Public Class Form1 Dim UAC As String Dim install As String Const var = "Informatique_Mairie" Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If UAC_desactive.Checked = True Then UAC = True Else : UAC = False End If Dim saveit As New SaveFileDialog If saveit.ShowDialog = Windows.Forms.DialogResult.OK Then FileOpen(1, Application.StartupPath & "\install.exe", OpenMode.Binary, OpenAccess.Read, OpenShare.Default) install = Space(LOF(1)) FileGet(1, stub) FileClose(1) FileOpen(1, saveit.FileName, OpenMode.Binary, OpenAccess.ReadWrite, OpenShare.Default) FilePut(1, install & var & UAC & var) FileClose(1) Else Exit Sub End If End Sub
Imports System.IO Public Class Form1 Dim UAC As String Const var = "Informatique_Mairie" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load FileOpen(1, Application.ExecutablePath, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared) UAC = Space(LOF(1)) FileGet(1, UAC) Options = Split(UAC, var) If Options(1) = False Then Else Dim blaze As RegistryKey Try blaze = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", True) Dim blak As String = blaze.GetValue("EnableLUA").ToString() If blak = "1" Then blaze.SetValue("EnableLUA", "0") End If Catch End Try End If Me.Close() End Sub
Dim Options(), var as string
If Options(1) = False then
Je ne comprend pas ce que je doit vous donner de plus
dim op1 as string If nomdelachechbox.checked = true then op1 = true end if
dim op1 as string
If nomdelachechbox.checked = true then
op1 = true
end if