المشاركات

عرض المشاركات من سبتمبر, ٢٠١٩

Change background color of MDIParent Form in VB.Net

 Solution :   Private Sub bgColor()      Dim child As Control      For Each child In Me .Controls          If TypeOf child Is MdiClient Then              child.BackColor = Color.CadetBlue          Exit For          End If      Next      child = Nothing      End Sub

How to run file In vb.net ?

Code for run file : Process.Start ( "example.txt" )

Repaint artificats problem when drag window (problem drag windows in linux mint)

صورة
Solution :

Copy file in vb.net

How to copy a file in vb.net   My.Computer.FileSystem.CopyFile( " C:\test.txt" , _ "C:\test2.txt" , overwrite:= False )

How Get program path in VB.NET?

Startup path Dim appPath As String = Application . StartupPath ()   Full path Dim exePath As String = Application . ExecutablePath ()

save and load value from registry in vb.net

create data:   My.Computer.Registry.CurrentUser.CreateSubKey("aladel") My.Computer.Registry.SetValue("HKEY_CURRENT_USER\aladel",  "run", "0") Read Data :   Dim readValue = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\aladel",  "run", Nothing) MsgBox(readValue) Set data : My.Computer.Registry.SetValue( "HKEY_CURRENT_USER\ aladel " , " run " , "This is a test value." )