Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 3.37 seconds.

  1. Replies
    15
    Views
    322

    VS 2019 Re: Tiling one Form with a part of another Form

    How did you try to put the whole form background in your image property?
  2. Replies
    15
    Views
    322

    VS 2019 Re: Tiling one Form with a part of another Form

    Is it a picturebox with a dynamically loaded image? Form70.frmImage should work as long as you set the property at the right time...
  3. Replies
    15
    Views
    322

    VS 2019 Re: Tiling one Form with a part of another Form

    CopyFromScreen doesn't work if the form isn't visible...
  4. Replies
    15
    Views
    322

    VS 2019 Re: Tiling one Form with a part of another Form

    Is Form70 visible and TopMost when you try to capture the image?
  5. Replies
    1
    Views
    157

    Re: Copy and Paste - Data Grid View - Issue 2

    What if the selected cell area is smaller than the copied cell area, such as less cells wide but more cells tall?
  6. Replies
    15
    Views
    322

    VS 2019 Re: Tiling one Form with a part of another Form

    Is your Form70 the default instance or a new instance?
  7. Replies
    11
    Views
    380

    Re: Image tag not found.

    two = CInt(box.Image.Tag)

    Box has an Image property and a Tag property
    Image does not have a Tag property
  8. Replies
    13
    Views
    339

    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
  9. Replies
    13
    Views
    339

    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.
  10. Replies
    13
    Views
    339

    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…
  11. Replies
    13
    Views
    339

    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
    ...
  12. Replies
    13
    Views
    339

    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 =...
  13. Replies
    13
    Views
    339

    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...
  14. Replies
    13
    Views
    339

    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...
  15. Replies
    13
    Views
    339

    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
  16. Re: Copy / Cut and Paste on a DaGridView

    Just get your string from the clipboard then use trimend…


    Str = Str.TrimEnd(vbcr, vblf)
  17. Replies
    5
    Views
    268

    Re: How to change label based on day?

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

    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
  19. Replies
    4
    Views
    224

    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...
  20. 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
  21. Re: draw a transparented image to form background (vb.net)

    Ok. How often does your Timer tick?
  22. Replies
    4
    Views
    220

    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…
  23. Replies
    4
    Views
    220

    VS 2019 Re: Cast to DataTable

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

    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...
  25. 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...
  26. 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...
  27. Replies
    6
    Views
    224

    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)
  28. Replies
    6
    Views
    224

    VS 2019 Re: ContextMenuStrip - click

    Try this...


    DataGridView1.Rows.Insert(index, New DataGridViewRow)
  29. 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...
  30. 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...
  31. Re: [RESOLVED] Events triggered when typing in ComboBox dropdown list

    :thumb:
  32. 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
    ...
  33. Re: Reading and editing a binary file as a array of Ushorts?

    Dim length As Integer = reader.BaseStream.Length - 1
  34. Replies
    4
    Views
    216

    VS 2019 Re: Trying to do a REGEX search

    Ok. I missed that part of the question.
  35. 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...
  36. 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 =...
  37. 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
  38. 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...
  39. Replies
    4
    Views
    216

    VS 2019 Re: Trying to do a REGEX search

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

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

    Debug.WriteLine(DirectCast(idx.Fields, TableDef.Fields).ToString)
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width