Topic: Information

Date 31/01/2011

By den

Subject tutorials(docking,autoscroll)

Reply

https://www.codeproject.com/KB/books/vbdotnetkickstart.aspx

Date 31/01/2011

By den

Subject text to string builder important

Reply

Private Function GenerateVBStringBuilderCode() As String
Dim s As String
Dim sb As New StringBuilder(5000)
'Append StringBuilder declaration
sb.Append("Dim sb As New System.Text.StringBuilder(5000)")
sb.Append(vbCrLf)
For Each s In Me.tbSource.Lines
'Append each line
sb.Append("sb.Append(""")
sb.Append(EscapeString(s))
sb.Append(""")")
sb.Append(vbCrLf)
If Me.cbPreserveCRLF.Checked Then
'Append a vbCrLf if new lines are to be preserved
sb.Append("sb.Append(vbCrLf)")
sb.Append(vbCrLf)
End If
Next
Return sb.ToString
End Function

Private Function GenerateCSharpStringBuilderCode() As String
Dim s As String
Dim sb As New StringBuilder(5000)
'Append StringBuilder declaration
sb.Append("System.Text.StringBuilder sb = new System.Text.StringBuilder(5000);")
sb.Append(vbCrLf)
For Each s In Me.tbSource.Lines
'Append each line
sb.Append("sb.Append(@""")
sb.Append(EscapeString(s))
sb.Append(""");")
sb.Append(vbCrLf)
If Me.cbPreserveCRLF.Checked Then
'Append a vbCrLf if new lines are to be preserved
sb.Append("sb.Append(Environment.NewLine);")
sb.Append(vbCrLf)
End If
Next
Return sb.ToString
End Function

Private Sub CopyToClipboard()
'Put the generated code on the clipboard
Try
Clipboard.SetDataObject(Me.tbResult.Text)
Catch
MessageBox.Show("The code could not be copied to the clipboard.", "Error Copying to Clipboard", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)
End Try
End Sub

Private Function EscapeString(ByVal source As String) As String
'Escape(double) any quotes that appear in the text
If Not source Is Nothing Then
Return source.Replace("""", """""")
Else
Return String.Empty
End If
End Function

Private Sub btnGenerate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGenerate.Click
If Me.rbVB.Checked Then
Me.tbResult.Text = Me.GenerateVBStringBuilderCode
Else
Me.tbResult.Text = Me.GenerateCSharpStringBuilderCode
End If
End Sub

Private Sub btnCopy_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCopy.Click
Me.CopyToClipboard()
End Sub

Date 31/01/2011

By den

Subject need website for tutorials

Reply

https://www.knowdotnet.com/windowsforms.html

Date 28/01/2011

By den

Subject link for reportviewer

Reply

https://www.vbdotnetheaven.com/UploadFile/mahesh/ReportViewerControl09062007051533AM/ReportViewerControl.aspx

Date 28/01/2011

By den

Subject needed website

Reply

https://www.eggheadcafe.com/searchform.aspx?search=undo%20redo%20comm%20f%20textbox%20%20in%20VB.net%202008

Date 25/01/2011

By den

Subject benefit for student in microsoft link

Reply

https://www.microsoft.com/student/en/US/default.aspx#career

Date 25/01/2011

By den

Subject Microsoft smallbasic documentation and curriculum link

Reply

https://msdn.microsoft.com/en-us/beginner/cc979165.aspx

Date 24/01/2011

By den

Subject vb.net and mysql tutorial(need)

Reply

https://dev.mysql.com/tech-resources/articles/ebonat-load-and-search-mysql-data-using-vbnet-2005.html

https://www.dreamincode.net/forums/topic/68848-how-to-add-delete-and-update-database-using-datagridview/

Date 20/01/2011

By den

Subject website for tutorials

Reply

https://www.telerik.com/help/wpf/radtreeview-how-to-enable-horizontal-vertical-scrollbar.html

Date 18/01/2011

By den

Subject list all process and kill it

Reply

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ListBox1.DisplayMember = "ProcessName"

' Load info on all running processes in the ListBox control.
Dim p As Process
For Each p In Process.GetProcesses
ListBox1.Items.Add(p)

Next


End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName(ListBox1.Text)
For Each p As Process In pProcess
p.Kill()
Next


End Sub

Poll

What is you favorite Programming Languages?

Total votes: 655