dcsimg

Search:

Type: Posts; User: kpmc

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: Close Please

    by kpmc
    Replies
    17
    Views
    467

    Re: Setting Control Tag from Background Worker

    As is, you would go with Option A for simplicity?
  2. Thread: Close Please

    by kpmc
    Replies
    17
    Views
    467

    Re: Setting Control Tag from Background Worker

    Here is one for yas,

    Mission is to fill a datatable available from Class scope, which of the below options most closely matches how you would do it, and do you recon there is anything "unsafe"...
  3. Thread: Close Please

    by kpmc
    Replies
    17
    Views
    467

    Re: Setting Control Tag from Background Worker

    This one is all you, JMC
  4. Thread: Close Please

    by kpmc
    Replies
    17
    Views
    467

    Re: Setting Control Tag from Background Worker

    Show your complete code.
  5. Replies
    7
    Views
    258

    VS 2017 Re: Binding a textbox to a code built datagrid

    Though your description contradicts your code, or in the least, makes very little sense, the problem is youre not binding to a table, youre binding to a dataset.

    txtcust.DataBindings.Add("Test",...
  6. Thread: Close Please

    by kpmc
    Replies
    17
    Views
    467

    Re: Setting Control Tag from Background Worker

    No, you cant, You can however pass the Tag value into the DoWork event
  7. Replies
    10
    Views
    278

    Re: Add a row to DatagridView

    I was just doing some tests on dgv and found its the new row messing with it and was about to tell you to calculate for it.
  8. Replies
    10
    Views
    278

    Re: Add a row to DatagridView

    What if you hired a DataTable?


    Option Strict On
    Public Class Form1

    Dim DtTable As New DataTable

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  9. Replies
    10
    Views
    278

    Re: Add a row to DatagridView

    Dim Position As Integer = 20
    Dim RowCount As Integer = DataGridView1.Rows.Count - 1

    If Position > RowCount Then
    DataGridView1.Rows.Add(Position - RowCount)
    ...
  10. Re: Problem with radiobuttons when looping through controls on a Windows form

    You are better off describing what you want without the code.
  11. Re: Replace characters in textfile without opening it

    No, it is not possible to open and write string to txt without opening it.
  12. Replies
    30
    Views
    1,132

    Re: Insert records into two related tables

    I dont know about that tablemanager/updateall business, but it is likely there is no command builder, insert or update commands, I dont see any fk update/delete/cascade rules. It seems like you are...
  13. Replies
    30
    Views
    1,132

    Re: Insert records into two related tables

    Do you have a particular reason that you are using a TableAdapter rather than a DataAdapter?
  14. Replies
    24
    Views
    846

    VS 2017 Re: Working with CheckedListox and database

    Why is that? A Union would form 1 table with their items from useritems table and from all items in itemtable minus their items. then just databind to that table with 1 clb.
  15. VS 2019 Re: How To Make RichTextBox So That The User Can Not Type Text Into It?

    You could

    Private Sub RichTextBox1_KeyDown(sender As Object, e As KeyEventArgs) Handles RichTextBox1.KeyDown
    e.SuppressKeyPress = True
    End Sub
  16. Replies
    24
    Views
    846

    VS 2017 Re: Working with CheckedListox and database

    If both lists come from SQL type database you could select all user items and union all items where not in user items.
  17. Replies
    1
    Views
    156

    Re: Commit issues with CurrentCellDirty event

    If you call on `NotifyCurrentCellDirty` after the WriteXml then the cell will act normally, but then for some reason `Dgv.IsCurrentCellDirty` no longer returns True... Scratching my head on this one....
  18. Replies
    1
    Views
    156

    Commit issues with CurrentCellDirty event

    I would like to understand what is happening with a DataGridViewCell and why keypresses are replacing instead of appending. For some reason it is difficult for me to explain, so I have prepared a...
  19. Replies
    3
    Views
    164

    Re: List Issue

    Try like this

    Public Class check
    Public payee As String
    Public amount As Single
    End Class

    Module Module1

    Sub Main()
  20. Re: Can not see value entered into text box when code running.

    this forum is for visual basic.net not vb6
  21. Replies
    1
    Views
    127

    Re: Help !! Binding Excel with Visual Basic

    Try Application.StartupPath
  22. VS 2015 Re: Problem: Serial port stops when I hold mouse on Tab Control

    Fair point JMC, and I did know that, it is the reason you need a method invoke from within that event to access controls; though I reckon that the data is not taking the same journey when using...
  23. VS 2015 Re: Problem: Serial port stops when I hold mouse on Tab Control

    I have been tinkering with ThreadPooling lately. See if this solution will help. More info for ThreadPool


    Private Sub FormThreading_Load(sender As Object, e As EventArgs) Handles MyBase.Load...
  24. Replies
    30
    Views
    1,132

    Re: Insert records into two related tables

    I cant speak much on tableadapter, but using DataAdapter a typical setup may look like this (give or take)


    Dim DtSet As New DataSet
    Dim ParentBS, ChildBS As New BindingSource

    Using SqlConn...
  25. VS 2017 Re: [RESOLVED] Update TableAdapter without losing focus in DGV selected row

    I am glad it worked out for you.
  26. VS 2017 Re: Update TableAdapter without losing focus in DGV selected row

    I cant think of a reason to refill the table at all unless you need data that another user entered. The database table gets the row from the row entered into the DataTable, its redundant to pull all...
  27. VS 2017 Re: Update TableAdapter without losing focus in DGV selected row

    Yes. When you say they are related I am going to assume that they are related in a dataset. I also assume you related them through the table wizard dealyo... If that is the case then goto that wizard...
  28. VS 2010 Re: How to export to excel the autoincremented row value of datagridview using VB.NET

    Remove the AI from the datagridview and add it to the datatable prior to filling it
  29. Replies
    9
    Views
    310

    VS 2017 Re: Write DataGridView Headers to excel

    You can use the OledbConnection to write changes back to the excel file. The only thing you cant do is delete.
  30. Replies
    9
    Views
    310

    VS 2017 Re: Write DataGridView Headers to excel

    I am pretty confused by what your problem is. I am going to use the keyword "unbound" and ignore the rest of what you said.
    Here is a working sample how to add data from an XLSX to a datagridview...
  31. Replies
    9
    Views
    310

    VS 2017 Re: Write DataGridView Headers to excel

    Nono, not ADODB... ADO.Net

    it looks more like this

    Dim XLSFile As String = "C:\DATA\xlfile.xlsx"
    Dim connstring As String = "Provider=Microsoft.ACE.OLEDB.12.0;" &
    "Data...
  32. Re: How do I get the DataGridView to add a new row when records are more than col cou

    You will find that the .DayOfWeek property can help you do what youre trying to do
  33. Replies
    7
    Views
    266

    VS 2017 Re: Update ID's in bound DGV

    I always add a bool column to the source datatable and set/get values from it and leave the dgv for display purpose only.

    There is no reason to suspend binding.


    Dim SelRows() As...
  34. Re: How do I get the DataGridView to add a new row when records are more than col cou

    the question is, what do you want to do with the string elements that do not have a corresponding column?
  35. Replies
    7
    Views
    266

    VS 2017 Re: Update ID's in bound DGV

    Call Validate() before going through row loop, or you could commit the changes to the checkbox col as you are changing them through the CurrentCellDirtyStateChanged event


    Private...
  36. Replies
    9
    Views
    310

    VS 2017 Re: Write DataGridView Headers to excel

    you could if you were using ADO.Net /OleDb
  37. Re: Use first row (Heading) of csv filel as my varibale names.

    On another note, if you take the OleDb route you can define all the column datatype in a Schema.ini file, which works only for text based delimited sources.
  38. Re: Use first row (Heading) of csv filel as my varibale names.

    Maybe a TextFieldParser would be more your style. You would read the first row as column names (header row)then the whileloop would read the remaining as rows.

    As for the IMEX thing, from my...
  39. Re: How to insert a Pie Chart in a DataGridView cell?

    Though I cant comment on the performance, the chart control has a SaveImage method that you could potentially use in an iteration. I would think it the sample was small it should process in a...
  40. Re: Use first row (Heading) of csv filel as my varibale names.

    Is there a reason you're not using ADO.Net/Jet driver to read the csv as a standard delimited datasource?
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width