VB.NET – Pouvoir déplacer une fenêtre même si une autre en showdialog est affiché.

Private Sub Form_Load(sender As Object, e As System.EventArgs) Handles Me.Load

Dim t As System.Threading.Thread = New Threading.Thread(AddressOf Afficher)

t.SetApartmentState(System.Threading.ApartmentState.STA)

t.Start()

End Sub

Public Sub Afficher()

Dim win As New test()

Application.Run(win)

End Sub

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s