Google Mobile Ads

Wednesday, July 10, 2013

Visual Studio: Useful Keyboard Shortcuts

CTRL + M + O will collapse all.
CTRL + M + L will expand all.
CTRL + M + P will expand all and disable outlining.
CTRL + M + M Collapse / un-collapse current preset area (e.g. method)
CTRL + F6 / CTRL + Shift + F6 Go to next / go to previous window

Monday, June 17, 2013

VB.NET Combobox CopyTo Array

Bir combobox'tan diğer combobox'a verilerin kopyalanması (myComboBox1 -> myComboBox2)

        Dim myArray(myComboBox1.Items.Count - 1) As String
        myComboBox1.Items.CopyTo(myArray, 0)
        myComboBox2.Items.AddRange(myArray)

VB.NET ToUpper() fonksiyonu içinde CultureInfo kullanmak

        Dim uStr As String
        Dim str As String = "iıu"
        uStr = str.ToUpper(New CultureInfo("en-US", False))   'returns IIU

Thursday, June 6, 2013

SQL Server'da log dosyasını shrink etmek (kesin çözüm)

SQL Server'da veritabanı ve log dosyasını shrink etmek (Kesin Çözüm)

ALTER DATABASE VeritabaniAdi SET RECOVERY SIMPLE 
GO
DBCC SHRINKDATABASE  ( 'VeritabaniAdi', 0 )
GO
ALTER DATABASE VeritabaniAdi  SET RECOVERY FULL 

Wednesday, June 5, 2013

VB.NET'te windows schedule ekleme

VB.NET'te windows schedule ekleme

Dim JobID As String = "Test"
Dim mgmtClass As New ManagementClass("Win32_ScheduledJob")
Dim methodArgs(6) As Object 'seven arguments
methodArgs(0) = "Notepad.exe"
methodArgs(1) = "********143000.000000-420"
methodArgs(2) = True
methodArgs(3) = 1 Or 4 Or 16 'days of the week? 
methodArgs(4) = Nothing
methodArgs(5) = True
Methodargs(6) = JobID
'Execute the method
Dim errorNum As Integer = mgmtClass.InvokeMethod("Create", methodArgs)
MsgBox(errorNum) 'Zero means success. 



http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/04eca99a-d167-4388-b010-7d5ded0da86e/

http://msdn.microsoft.com/en-us/library/aa394399(VS.85).aspx

Monday, June 3, 2013

VB.NET'de dosya adı değiştirmek

VB.NET'de dosya adı değiştirmek

My.Computer.FileSystem.RenameFile("c:\foldername\test.txt", "test2.txt")

LinkWithin

Related Posts Plugin for WordPress, Blogger...