For a long time now, I think, I'm thinking and trying in different ways to push this code in one line. Is there such a possibility at all?
The code I need to put in such a structure for example:Code:Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click If MsgBox("Cancel aplications", MsgBoxStyle.YesNo Or MsgBoxStyle.Information, "Cancel aplications") = Windows.Forms.DialogResult.Yes Then Me.Close() End If End Sub
If Choosetext.ComboBox1.SelectedItem = "text1" Then
Form1.Button2.Text = "Text"
Form1.Button1.MsgBox?
End If
Does anyone have a solution like this code put into one line? And is there such an opportunity at all?




Reply With Quote
