コメント欄のウインドウ化がちょっとしたプログラムでできそうな件w
お風呂に入って、のびのびしたところ、何かひらめいたんです。
コードを思いついたんじゃなく、何かイメージみたいな物・・・
自分でもわからないまま、手が動くままにやらせてたら。
できちゃった。
ということで、早ければテントちゃんからコメントウインドウが埋め込み、別窓
両用になります。
Dim commentWin As Form = Nothing Private Sub Button58_Click(sender As System.Object, e As System.EventArgs) Handles Button58.Click If commentWin Is Nothing Then commentWin = New Form commentWin.Text = Me.Text commentWin.Name = "CommentWin" commentWin.ShowIcon = False commentWin.MinimumSize = ChatWindow1.MinimumSize commentWin.ControlBox = False commentWin.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable commentWin.Controls.Add(ChatWindow1) SplitContainer2.Panel2Collapsed = True commentWin.Show(Me) Else SplitContainer2.Panel2.Controls.Add(ChatWindow1) SplitContainer2.Panel2Collapsed = False commentWin.Close() commentWin = Nothing End If End Sub
どういう頭の構造なんだろう・・・