Search:

Type: Posts; User: patel45

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. VS 2019 Re: Vb.net - Split large text file by number of lines

    Thanks Paul, very compact code, I modified it so

    Dim OriginalFilePath = "F:\Documenti\Visual Studio 2017\Projects\TextFileSplit.txt"
    Dim LinesPerFile As Integer = 20
    Dim...
  2. VS 2019 Re: Vb.net - Split large text file by number of lines

    Thanks Niya, it runs well
  3. VS 2019 Re: Vb.net - Split large text file by number of lines

    Thanks Karen
  4. VS 2019 Re: Vb.net - Split large text file by number of lines

    I don't know C#, I tried with some code converters without success, they can not convert them.
    I have already solved the problem with a much longer code, I would like to understand how to reduce the...
  5. VS 2019 [RESOLVED] Vb.net - Split large text file by number of lines

    How can I split a single text file with 1000 lines into multiple smaller files of, for example, 300 lines ? I found two C# code, they feel good, but I'm not able to convert them to vb.net

    using...
  6. Replies
    6
    Views
    690

    VS 2019 Re: [RESOLVED] Add a combobox column to DGV

    Thanks jmc for the explanation
  7. Replies
    6
    Views
    690

    VS 2019 Re: [RESOLVED] Add a combobox column to DGV

    My data table has only one field but I understand now, thanks.
  8. Replies
    6
    Views
    690

    VS 2019 Re: Add a combobox column to DGV

    it's just to show that with the same datatable I can't populate the combo column.
    Thank You Paul, your suggestion works, why displaymember is needed?
  9. Replies
    6
    Views
    690

    VS 2019 [RESOLVED] Add a combobox column to DGV

    Here is my code

    Dim connStr As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\Documenti\Visual Studio 2017\Projects\Rubrica.mdb"

    Dim Adapter1 As OleDbDataAdapter
    ...
  10. VS 2019 Re: Create local MDF & table by code

    Thanks to all, all OK
  11. VS 2019 Re: Create local MDF & table by code

    This is my new code, but I receive error "database not exist" in line
    objCon.ChangeDatabase(conStr)

    Dim conStr As String = "Data Source=(LocalDB)\mssqllocaldb;Initial...
  12. VS 2019 [RESOLVED] Create local MDF & table by code

    This is my code, no errors, it creates th db, but without table

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Dim conStr As String = "Data...
  13. VS 2019 Re: OpenFileDialog without showing InitialDirectory subfolders

    OK, Paul, it runs very well
  14. VS 2019 Re: OpenFileDialog without showing InitialDirectory subfolders

    Thanks Paul, i'll use this solution, can I add a filter by extension ?
  15. VS 2019 Re: OpenFileDialog without showing InitialDirectory subfolders

    I can not see the form1.

    To avoid possible data loss before loading the designer, the following errors must be resolved:
    6 mistakes
    Ignore and continue
    Reason for displaying the page...
  16. VS 2019 Re: OpenFileDialog without showing InitialDirectory subfolders

    Thank You Paul, but I'm not able to see the code
  17. VS 2019 [RESOLVED] OpenFileDialog without showing InitialDirectory subfolders

    It's possible to show only files ? no subdir ?
  18. VS 2010 Re: May i ask how to open file dialog read mdb file

    your code is almost all correct, there are only a few syntax errors
  19. Replies
    5
    Views
    1,253

    VS 2017 Re: VB.NET USB Detection

    https://vbforfree.com/detect-when-removable-usbvolume-drive-devices-are-addedremovedconnected-vbnet/
  20. Replies
    12
    Views
    1,241

    VS 2019 Re: VS2019 Instr basic declaration is incorrect?

    left, mid ... are not supported, see
    https://social.msdn.microsoft.com/Forums/en-US/69980195-bf47-4947-9134-487bb3876bf7/how-to-do-the-leftrightmid-functions-in-vbnet?forum=vblanguage
  21. Replies
    11
    Views
    9,870

    Re: How do I export a datatable to a .dbf file?

    Thank You for your time and your teachings
  22. Replies
    11
    Views
    9,870

    Re: How do I export a datatable to a .dbf file?

    OK CrisE, I did not understand the following:
    when I convert accdb to dbf I create the dbf file, when I convert dbf to accdb the accdb file must already exist, I add a table, I don't create a new...
  23. Replies
    11
    Views
    9,870

    Re: How do I export a datatable to a .dbf file?

    Hi ChrisE, your code runs very well for accdb to dbf, but not viceversa, I don't receive error messages, but no accdb file.
    Maybe you have to change the connection string ?
  24. Re: ddrag a selected line from a multiline textbox to drop in another textbox

    Hi Paul, I tested your example, no errors but no drag effects
  25. VS 2019 Re: Binding a ComboBox to a List (What am I doing wrong?)

    Hi jmc, using a datatable as datasource I don't need binding ? correct ?
  26. VS 2010 Re: VB.NET - Create an array from EXCEL worksheet

    did you try my second code ?
  27. VS 2010 Re: VB.NET - Create an array from EXCEL worksheet

    It's not very clear for me what you want, an excel range is an array, but you can try this code

    Dim myexcel As New Excel.Application
    myexcel.Workbooks.Open("fullpath")
    ...
  28. VS 2019 Re: vb.net - Using CommadBuilder with dB access 2010

    Thanks to all
  29. VS 2019 Re: vb.net - Using CommadBuilder with dB access 2010

    When I'm using mdb file I can change DVG cells content and update db, when I'm using accdb file and I change DVG cells content and I click on Update Button I receive this exception message
    ...
  30. VS 2019 Re: vb.net - Using CommadBuilder with dB access 2010

    Sorry, I know, my connection string with accdb is

    Dim connStr As String = "Provider=.ACE.OLEDB.12.0; Data Source=F:\Documents\Visual Studio 2017\Projects\Rubrica.accdb"

    but with accdb I can...
  31. VS 2019 [RESOLVED] vb.net - Using CommadBuilder with dB access 2010

    With the following code I can read, update, delete records directly from Datagridview in my db Access 2003 (mdb ext). Why I can not do the same with an db Access 2010 (accdb ext) ?


    Public Class...
  32. VS 2017 Re: VS 2017 how can i loop in richtextbox and get the desired word ot number?

    For Each line As String In RichTextBox1.Lines
    If line.Substring(0, 5) = "NMBR=" Then
    'split line with "=" separator
    Exit For
    End If
    ...
  33. Replies
    6
    Views
    2,042

    Re: How can i copy text from memory

    maybe you want paste the clipboard content in the label

    Label1.Text = Clipboard.GetText
  34. Replies
    21
    Views
    4,106

    Re: unable to run msconfig.exe

    it still didn't work for me too
  35. Replies
    21
    Views
    4,106

    Re: unable to run msconfig.exe

    I just tried manually on WIN10 64 bit without success
  36. Replies
    6
    Views
    2,351

    VS 2017 Re: [RESOLVED] Word document name

    Can you explain me ? I tried your code without success.
  37. Replies
    6
    Views
    2,351

    VS 2017 Re: Word document name

    Thank You for your input, I resolved with

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
    Dim b As New Process(), s As String = ""
    For Each...
  38. Replies
    6
    Views
    2,351

    VS 2017 Re: Word document name

    I'm sorry, the file has already been opened by another application and I would like to know its name
  39. Replies
    6
    Views
    2,351

    VS 2017 [RESOLVED] Word document name

    I would know the name of a word document I opened manually.
  40. VS 2010 Re: Read csv files by applying a filter

    thanks jmc, you were very clear
Results 1 to 40 of 170
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width