[Vb.net] Not defteri yapma

N

Nazdravia

Ultra Member
Joined
Aug 1, 2019
Messages
606
Reaction score
164
1 Rich Text Box, 9 buton, 1 Save Dialog ve 1 Open Dialog ekleyelim.



Butonlarımızın ismi şöyle olsun: Kaydet, Aç, Kes, Kopyala, Yapıştır, Temizle, Geri Al, İleri Al, Hepsini Seç.





Kaydet Butonuna :
Code:
Try
Dim d1g As SaveFileDialog = New SaveFileDialog
d1g.Title = "Save"
d1g.Filter = "Rich Text Files (*.rtf)|*.rtf"
If d1g.ShowDialog() = Windows.Forms.DialogResult.OK Then
RichTextBox1.SaveFile(d1g.FileName, RichTextBoxStreamType.RichText)
End If
Catch ex As Exception

End Try


Aç Butonuna:
Code:
Try
Dim d1g As OpenFileDialog = New OpenFileDialog
d1g.Title = "Open"
d1g.Filter = "Rich Text Files (*.rtf)|*.rtf"
If d1g.ShowDialog() = Windows.Forms.DialogResult.OK Then
RichTextBox1.LoadFile(d1g.FileName)
End If
Catch ex As Exception

End Try


Kes Butonu:
Code:
RichTextBox1.Cut()

Kopyala Butonu:
Code:
RichTextBox1.Copy()

Yapıştır Butonu:
Code:
RichTextBox1.Paste()

Temizle Butonu:
Code:
RichTextBox1.Clear()

Geri Al Butonu:
Code:
RichTextBox1.Undo()

İleri Al Butonu:
Code:
RichTextBox1.Redo()

Hepsini seç Butonu:
Code:
RichTextBox1.SelectAll()
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Tema düzenleyici

Top Bottom