Click here to Skip to main content
16,020,186 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to BitConverter.GetBytes() return 2 digits only Pin
EngrImad3-Dec-21 23:39
EngrImad3-Dec-21 23:39 
GeneralRe: How to BitConverter.GetBytes() return 2 digits only Pin
Richard MacCutchan4-Dec-21 0:18
mveRichard MacCutchan4-Dec-21 0:18 
AnswerRe: How to BitConverter.GetBytes() return 2 digits only Pin
EngrImad4-Dec-21 1:54
EngrImad4-Dec-21 1:54 
AnswerRe: How to BitConverter.GetBytes() return 2 digits only Pin
Dave Kreskowiak4-Dec-21 3:43
mveDave Kreskowiak4-Dec-21 3:43 
Questionerror 50003 in vb6 in win 10 Pin
Member 110192491-Dec-21 0:10
Member 110192491-Dec-21 0:10 
AnswerRe: error 50003 in vb6 in win 10 Pin
jsc421-Dec-21 0:26
professionaljsc421-Dec-21 0:26 
AnswerRe: error 50003 in vb6 in win 10 Pin
Richard Deeming1-Dec-21 1:08
mveRichard Deeming1-Dec-21 1:08 
QuestionHi How can i print listview with database im using phpmyadmin xampp Pin
Kyooshi29-Nov-21 19:54
Kyooshi29-Nov-21 19:54 
im making insert update and delete with database for my activity and the teacher give task to add print and im trying to make on my own but its diffucult for me i hope you can help me out with these.

im beginner at visual basic.

im using printdocument and printpreviewdialog
Here my code

Print button
VB
Private Sub btnprint_Click(sender As Object, e As EventArgs) Handles btnprint.Click
      Dim PrintPreview As New PrintPreviewDialog
      PrintPreview.Document = PrintDocument1
      PrintPreview.ShowDialog()
  End Sub

Print Document Print Page
VB
Private Sub PrintDocument1_PrintPage(sender As Object, e As Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        Dim H As Integer = 0
        H = 50
        e.Graphics.DrawString("PRINT", New Drawing.Font("Times New Roman", 10), Brushes.Black, 50, H)
        For Each Itm As ListViewItem In ListView1.Items
            e.Graphics.DrawString(Itm.Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 50, H)
            e.Graphics.DrawString(Itm.SubItems(0).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(1).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(2).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(3).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(4).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(5).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(6).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(7).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(8).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            e.Graphics.DrawString(Itm.SubItems(9).Text, New Drawing.Font("Times New Roman", 10), Brushes.Black, 150, H)
            H += 20
        Next
    End Sub

here's my ouput

Output
AnswerRe: Hi How can i print listview with database im using phpmyadmin xampp Pin
Richard Deeming29-Nov-21 21:47
mveRichard Deeming29-Nov-21 21:47 
AnswerRe: Hi How can i print listview with database im using phpmyadmin xampp Pin
Richard MacCutchan29-Nov-21 21:56
mveRichard MacCutchan29-Nov-21 21:56 
Questionface identification and recognition with visual Basic 2010 Pin
Member 1535104216-Nov-21 23:20
Member 1535104216-Nov-21 23:20 
AnswerRe: face identification and recognition with visual Basic 2010 Pin
Richard MacCutchan16-Nov-21 23:27
mveRichard MacCutchan16-Nov-21 23:27 
AnswerRe: face identification and recognition with visual Basic 2010 Pin
CHill6024-Nov-21 0:32
mveCHill6024-Nov-21 0:32 
QuestionHOW TO CODE A REFRESH BUTTON IN VB.NET FORM Pin
WAHID ASSOCIATES8-Nov-21 9:09
WAHID ASSOCIATES8-Nov-21 9:09 
AnswerRe: HOW TO CODE A REFRESH BUTTON IN VB.NET FORM Pin
Member 153296138-Nov-21 10:39
Member 153296138-Nov-21 10:39 
AnswerRe: HOW TO CODE A REFRESH BUTTON IN VB.NET FORM Pin
Dave Kreskowiak8-Nov-21 11:38
mveDave Kreskowiak8-Nov-21 11:38 
AnswerRe: HOW TO CODE A REFRESH BUTTON IN VB.NET FORM Pin
Mycroft Holmes8-Nov-21 11:50
professionalMycroft Holmes8-Nov-21 11:50 
GeneralRe: HOW TO CODE A REFRESH BUTTON IN VB.NET FORM Pin
den2k888-Nov-21 21:49
professionalden2k888-Nov-21 21:49 
GeneralRe: HOW TO CODE A REFRESH BUTTON IN VB.NET FORM Pin
Eddy Vluggen10-Nov-21 5:44
professionalEddy Vluggen10-Nov-21 5:44 
QuestionSave, Retrieve Image on SQL Database using VB.net Pin
EngrImad6-Nov-21 10:42
EngrImad6-Nov-21 10:42 
AnswerRe: Save, Retrieve Image on SQL Database using VB.net Pin
RedDk6-Nov-21 11:10
RedDk6-Nov-21 11:10 
AnswerRe: Save, Retrieve Image on SQL Database using VB.net Pin
Dave Kreskowiak6-Nov-21 12:09
mveDave Kreskowiak6-Nov-21 12:09 
SuggestionRe: Save, Retrieve Image on SQL Database using VB.net Pin
Richard Deeming8-Nov-21 21:48
mveRichard Deeming8-Nov-21 21:48 
QuestionGot a problem with the ffmpeg.exe Pin
meaeg26-Oct-21 8:48
meaeg26-Oct-21 8:48 
AnswerRe: Got a problem with the ffmpeg.exe Pin
meaeg26-Oct-21 14:43
meaeg26-Oct-21 14:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.