Search results for query: *

  1. Y

    Question [2008] Different colors per line in a ListView

    Hi, I fixed your code and it's working good. If index Mod 2 = 0 Then
  2. Y

    Question [2008] Different colors per line in a ListView

    Hi, I found a way to do it: For n As Integer = 0 To ListView.Items.Count - 1 ListView.Items.Item(n).BackColor = Color.Blue ListView.Items.Item(n).ForeColor = Color.Red Next For n As Integer = 0 To ListView.Items.Count - 1 Step 2...
  3. Y

    Question [2008] Different colors per line in a ListView

    Hi, Thanks for your reply, but it's not working good. I believe that you do not tried it.
  4. Y

    Question [2008] Different colors per line in a ListView

    Hi, Different color for each row, ForeColor and BackColor. Example: Row ForeColor= blue and BackColor= red Row ForeColor= red and BackColor= blue Row ForeColor= blue and BackColor= red Row ForeColor= red and BackColor= blue
  5. Y

    Question [2008] Different colors per line in a ListView

    Hi, Different colors per line in a ListView How can I drew Different colors per line in a ListView ? Thanks in advance
  6. Y

    Question [resolved] Printing text centralized to the width of the page

    Hi, I tried the next code and it is not printing in the center. Can you tell me whats wrong ? Private Sub PrintDocument2_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument2.PrintPage Dim MyText As String = "Hello...
  7. Y

    Question [resolved] Printing text centralized to the width of the page

    Hi, VB2008 How do I print to the printer text that will be centralized to the width of the page ? Thanks in advance
  8. Y

    Checking Hard Disk Serial Number

    Hi, VB2008 Checking Hard Disk Serial Number The code below Checking the Serial Number of the Hard Disk: FROM Win32_PhysicalMedia And immediately after it Checking the Serial Number of the Hard Disk: FROM Win32_LogicalDisk If there is matching the program continue to run, If ther is no...
  9. Y

    [RESOLVED] e.HasMorePages don't work

    Hi, Thanks working good.
  10. Y

    [RESOLVED] e.HasMorePages don't work

    Hi, When I'm doing e.HasMorePages to false it not stop to print.
  11. Y

    [RESOLVED] e.HasMorePages don't work

    Hi, Can someone tell me why the e.HasMorePages = True in the code below don't work I need to print the word Aetek in a new page. Private Sub PrintDocument1_PrintPage... e.Graphics.DrawString("Makor", DrawFont, DrawBrush, x, y, RTL_Alignment) e.HasMorePages = True...
  12. Y

    How can I prevent from the user to print from PrintPreviewDialog

    Hi, Working great Thank you very much
  13. Y

    How can I prevent from the user to print from PrintPreviewDialog

    Hi, Working great Thank you very much
  14. Y

    How can I prevent from the user to print from PrintPreviewDialog

    Hi, Sorry I want that the user will print from another place (button), because the program needs to save some data before printing.
  15. Y

    How can I prevent from the user to print from PrintPreviewDialog

    Hi, How can I prevent from the user to print from PrintPreviewDialog I am using the code below: Dim PPD As New PrintPreviewDialog PPD.WindowState = FormWindowState.Maximized PPD.Document = PrintDocument1 PPD.ShowDialog() When the PrintPreviewDialog show the...
  16. Y

    [vb2008] Open a menu in MenuStrip

    Hi, Working great Thank you very much
  17. Y

    [vb2008] Open a menu in MenuStrip

    Hi, I am using VB2008 I have menustrip and in it there is Filetoolstripmenuitem how can I open with code the Filetoolstripmenuitem? I tried with code: Filetoolstripmenuitem.performclick this do not open the Filetoolstripmenuitem. Any suggestions?
  18. Y

    Multi pages printing

    Hi, Thank you, it's working good.
Back
Top