Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 3.64 seconds.

  1. Replies
    13
    Views
    237

    Re: How Can I Print Images from DataGridView ?

    Ok no problem. Sorry for not reading your OP right, but as you see there were several errors to fix there. Don't forget to mark your thread RESOLVED
  2. Replies
    13
    Views
    237

    Re: How Can I Print Images from DataGridView ?

    The code I posted in #9… I edited it after posting. Check you’re using the latest code.
  3. Replies
    13
    Views
    237

    Re: How Can I Print Images from DataGridView ?

    The code I posted should work. All you’d need to change would be the Handles pd.PrintPage clause…
  4. Replies
    13
    Views
    237

    Re: How Can I Print Images from DataGridView ?

    Dim i As Integer = 0

    Private Sub pd_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles pd.PrintPage

    For x As Integer = i To DGV.RowCount - 1
    ...
  5. Replies
    13
    Views
    237

    Re: How Can I Print Images from DataGridView ?

    You need to use a variable for the y position of your images...


    Dim y as Integer = 20

    For i As Integer = 0 To DGV.RowCount - 1

    Dim imgBytes() As Byte =...
  6. Replies
    13
    Views
    237

    Re: How Can I Print Images from DataGridView ?

    Don't forget you have hardcoded x, y values there. Your images will all be drawn in the same place...
  7. Replies
    13
    Views
    237

    Re: How Can I Print Images from DataGridView ?

    For i As Integer = 0 To DGV.RowCount - 1

    Dim imgBytes() As Byte = TryCast(DGV.Rows(i).Cells(17).Value, Byte())

    If Not imgBytes Is Nothing Then

    Dim Ms As New...
  8. Replies
    13
    Views
    237

    Re: How Can I Print Images from DataGridView ?

    Change this…


    If DGV.CurrentRow.Cells(17).Value IsNot DBNull.Value Then

    To this…


    If DGV.Rows(I).Cells(17).Value IsNot DBNull.Value Then
  9. Re: Copy / Cut and Paste on a DaGridView

    Just get your string from the clipboard then use trimend…


    Str = Str.TrimEnd(vbcr, vblf)
  10. Replies
    5
    Views
    221

    Re: How to change label based on day?

    Dude!!! You’re cheap :D
  11. Replies
    18
    Views
    318

    Re: HexBox Control? View .bin file as ushort?

    Add each line to a List of String. At the end set your TextBox Lines property to yourList.ToArray. It will definitely be quicker than 7 minutes
  12. Replies
    4
    Views
    172

    Re: Combo box with data source

    Supposing you want to display the currently selected row’s ‘aField’ in TextBox1…

    TextBox1.DataBindings.Add(“Text”, your combobox’s datasource, “aField”)

    That’s all you need

    Edit: Put that...
  13. Re: Is there a SendData equivalency for vb.net?

    Read this...

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/ff7dd3be-3614-4962-ba23-374d7c0c08de/vb6-winsock-vbnet-equivalent?forum=vbgeneral
  14. Re: draw a transparented image to form background (vb.net)

    Ok. How often does your Timer tick?
  15. Replies
    4
    Views
    183

    VS 2019 Re: Cast to DataTable

    If you just want an empty datatable, you already know the columns you want, as indexDetails just looks to be schema details…
  16. Replies
    4
    Views
    183

    VS 2019 Re: Cast to DataTable

    Are you trying to create an empty DataTable from your Schema? That would be a different method...
  17. Replies
    4
    Views
    183

    VS 2019 Re: Cast to DataTable

    Here's an extension for anonymous IEnumerables...


    Module EnumerableExtensions
    <System.Runtime.CompilerServices.Extension()>
    Public Function CopyToDataTable(ByVal data As IEnumerable(Of...
  18. Re: draw a transparented image to form background (vb.net)

    Put all of your images in a (correctly ordered) Form level List(of BitMap)…


    Dim images as New List(of BitMap)
    Images.add(imgName)

    Use a Form level maximum variable…


    Dim maxImage as...
  19. Re: draw a transparented image to form background (vb.net)

    First… Don’t use Me.CreateGraphics
    Use the Form’s Paint event…



    Private Sub Form1_Paint(sender As Object, e As PaintEventArgs) Handles MyBase.Paint
    ‘e.Graphics is the graphics object
    End...
  20. Replies
    6
    Views
    214

    VS 2019 Re: ContextMenuStrip - click

    Actually, i just read your comment :D



    Dim r As DataRow = Me.DbTestDataSet.Staff.NewRow
    Me.DbTestDataSet.Staff.Rows.InsertAt(r, index)
  21. Replies
    6
    Views
    214

    VS 2019 Re: ContextMenuStrip - click

    Try this...


    DataGridView1.Rows.Insert(index, New DataGridViewRow)
  22. Re: Reading and editing a binary file as a array of Ushorts?

    Try this then...


    Public Class Form1

    Dim G2() As UShort
    Dim fileName As String = "c:\c\LP73.dat"

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles...
  23. Re: Reading and editing a binary file as a array of Ushorts?

    Read your file as a List(of UShort), as shown by Niya (Post #13), Then use the List as Source, and the Match to find as an array of UShort...



    Private Function Int16Match(ByVal Source As...
  24. Re: [RESOLVED] Events triggered when typing in ComboBox dropdown list

    :thumb:
  25. Re: Events triggered when typing in ComboBox dropdown list

    This should work. I'm assuming the timer is called ComboBoxTimer


    Private Sub cboShape_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles cboShape.SelectedIndexChanged
    ...
  26. Re: Reading and editing a binary file as a array of Ushorts?

    Dim length As Integer = reader.BaseStream.Length - 1
  27. Replies
    4
    Views
    205

    VS 2019 Re: Trying to do a REGEX search

    Ok. I missed that part of the question.
  28. Re: find the elements that are not in both objects vb.net

    If a match is found in the second array, there's no need to continue searching so it exits the m loop and continues to the next n in the outer loop. Exit For is used to leave the loop it's contained...
  29. Re: find the elements that are not in both objects vb.net

    Try this…


    Dim ws1 as excel.worksheet
    Dim ws2 as excel.worksheet
    ws1 = xlApp.Workbooks.Open(TextBox1.Text).Worksheets(ComboBox1.SelectedItem)
    ws2 =...
  30. Re: Reading and editing a binary file as a array of Ushorts?

    To avoid freezing your app while performing cpu intensive operations, do your processing in a secondary thread. The easiest way to do that is to use a BackGroundWorker Component
  31. Re: find the elements that are not in both objects vb.net

    So this is what you want to add if it exists in both arrays... ???


    Form2.DataGridView1.Rows.Add(MyArray(n, 1), MyArrayy(m, 1), "Not OK")

    What do you want to add if it only exists in the first...
  32. Replies
    4
    Views
    205

    VS 2019 Re: Trying to do a REGEX search

    Can you give an example of the string you're searching?
  33. Replies
    8
    Views
    383

    VS 2019 Re: Need help converting VBA to VB.Net

    Debug.WriteLine(DirectCast(idx.Fields, TableDef.Fields).ToString)
  34. VS 2019 Re: Check and Set exe's to run as administrator

    Use the Process Class with ProcessStartInfo and set .Verb = “runas”
  35. Replies
    4
    Views
    144

    Re: Select Statement/ Save Method

    Have a look at this page …

    https://stackoverflow.com/questions/42648/sql-server-best-way-to-get-identity-of-inserted-row
  36. Replies
    6
    Views
    258

    VS 2019 Re: Changing excel cell color using vb.net

    So it changes the color, but that color isn’t persistent? Or it doesn’t change the color at all?
  37. Replies
    19
    Views
    581

    Re: click on PictureBox vb.net help me

    Looks like HeroCode has a new account :D
  38. VS 2017 Re: (Resolved) Ideas on quicker way to create forms with many fields

    That's a further step i could've suggested. I'd think it would be quite an improvement to create an entire Designer.vb file, or at least edit the existing one without resorting to copying and pasting...
  39. VS 2017 Re: Ideas on quicker way to create forms with many fields

    The only thing I would do differently is that I’d create the entire Designer.vb file. No copying and pasting. Just change the name and put it in place of the original file
  40. VS 2017 Re: Ideas on quicker way to create forms with many fields

    Oh??? How would you attack this problem? :D
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width