Search:

Type: Posts; User: kevininstructor

Page 1 of 13 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    223

    Re: Help Text To Columns

    What is not clear?
    In regards to .CSV, that is simply a file extension, a .TXT file can have the exact same structure and data as a .CSV file.

    If your first row are column names try


    Imports...
  2. Replies
    7
    Views
    105

    VS 2008 Re: grid views

    If you have load data say into a DataTable from a database or perhaps reading data from a local xml file then after loading the data into the DataTable add a new DataColumn to the DataTable, set the...
  3. Re: Help with sending E-mails through VB.NET

    Conceptually, create all objects for sending messages as you have done, loop thru say a collection of some sort that has the message text to send to the one user, set the body text and then send the...
  4. Replies
    13
    Views
    223

    Re: Help Text To Columns

    You have to account for if the first line is column names or some other type of data other than the bulk of the data. What exactly is the structure of your file?
  5. Replies
    13
    Views
    223

    Re: Help Text To Columns

    Hard to say but here is a VS2010 example that works using code I provided already
    100107
  6. Replies
    13
    Views
    223

    Re: Help Text To Columns

    That is right, nothing visibly happened, instead you have a DataTable populated with data that you need to select something like a DataGridView to display the data in.
  7. VS 2008 Re: DataGridView and button click information sharing question

    Other options are to control validation and adding rows using a BindingSource component and DataTable events. Any time you can avoid the user interface and work directly with the data is the best way...
  8. VS 2008 Re: DataGridView and button click information sharing question

    Hello Andy,

    For anyone to assist you relevant code needs to be shown otherwise there are too many directions to go and that leads to undue guessing and wasted time.
  9. Replies
    13
    Views
    223

    Re: Help Text To Columns

    I have updated the code. Any time you allow the IDE to generate items it is prudent to look at them, especially "FileName" as the core thing here is working on a file :-)
  10. Replies
    13
    Views
    223

    Re: Help Text To Columns

    You can read data from a delimited text file using TextFieldParser class.

    Example


    Public Class Form1
    Private Sub Demo()
    Dim Errors As New List(Of String)
    Dim FileName...
  11. VS 2010 Re: VB.NET: How To Copy Data From Excel Workbook To Specific Table In SQL Server Data

    Reading CSV files try using TextFieldParser class.

    Read Text file into a DataTable


    Dim FileName As String = "People.txt"
    Private Sub DemoReadTxt_Load(ByVal sender As System.Object, ByVal e...
  12. Re: auto add and fill dataset DGV Rows

    If you want to add data via BindingSource AddNew here is a comceptual example which means you would need to have private variables when getting dropped data to set then use in the AddingNew event.
    ...
  13. VS 2010 Re: VB.NET: How To Copy Data From Excel Workbook To Specific Table In SQL Server Data

    I agree with slamany, if the part to move to a staging area (never a good idea to move a large amount of data into production) just be done via code you could tinker with the following

    Create a...
  14. VS 2010 Re: Creating a DLL in VS2010 and Referencing it in VB6

    The Microsoft InteropForms Toolkit 2.1 might be worth looking at. The description suggest forms yet I have done non-form DLL projects with this library.
  15. VS 2005 Re: Read Excel data with retain spacing between data

    Hello,

    The following code I seeded a cell with "ABC...DEF" where the dot is a space, so that cell value has a length of 9 and upon running the code got the proper cell value with embedded spaces....
  16. Replies
    8
    Views
    192

    Re: read sheet 2 in an excel file

    Try it, this will tell you if it works.
  17. Re: Populate new form based on Combobox

    Hello,

    Before getting into code and fields I would suggest explaining exactly what you want beginning with what information is being displayed on the first screen as the code shown is generic in...
  18. VS 2010 Re: Mixed Data in Datagridview from Excel

    See how this might be a starting point for reading mixed types

    SkyDrive VS2010 project
  19. VS 2010 Re: Mixed Data in Datagridview from Excel

    Perhaps the following might work. Not sure as I don't have a sheet with that much data here at home.



    Dim Builder As New OleDbConnectionStringBuilder With
    {
    .DataSource = "Your...
  20. Replies
    8
    Views
    192

    Re: read sheet 2 in an excel file

    Here is an example for searching for data in a cell within a specific column



    ''' <summary>
    ''' Shows how to locate text in a specific column of a specfic sheet
    ''' </summary>
    ''' <param...
  21. VS 2010 Re: Need advice - best way to query access data (or read in .csv?)

    Hey you are using the same spellllkecker as me :lol:
  22. VS 2010 Re: Need advice - best way to query access data (or read in .csv?)

    Seems in my hast I provided the wrong file contents, should had been



    1,Customer1,4/1/2013,OEF12
    2,Customer2,4/1/2013,OEF11
    3,Cusomter3,4/2/2013,AAF23
    4,Customer1,4/1/2013,B12BX
  23. VS 2010 Re: Need advice - best way to query access data (or read in .csv?)

    Hello,

    - What is shown below is conceptual, done in VS2010, VB.NET, Option Strict On.
    - For the OleDb the file needs to be in ANSI format, does not matter for the second example.
    - Fields in the...
  24. Replies
    2
    Views
    113

    Re: excel file read query

    You might explain things like;

    What is "ExcelHandler", "GetDataFromExcel" etc. There are way to many unknowns in your code to provide suggestions. Lastly, when there is an error as you have...
  25. Replies
    1
    Views
    161

    Re: Displaying book titles

    Here is a conceptual example of working with your data (my source I am sure is slightly different than yours yet you can adapt). No UI controls are used, should be easy for you to work out.


    Dim...
  26. SortableBindingList -- SortableBindingList(Of T)

    I found this SortableBindingList(Of T) at the following site listed below, thought it might be on interest.

    http://www.timvw.be/2007/02/22/presenting-the-sortablebindinglistt/

    The web site...
  27. VS 2008 Re: Excel Objects are not getting Closed in Task Manager

    There are many reasons for this to happen, the most common is explained here The Two dot rule. If you adhere to what is written up here you have a 99.99% chance of releasing all objects use for Excel...
  28. VS 2010 Re: How to show images in DataGridView?

    The following VS2010 shows how to display images based on the value of a column other than the image column. Images are icon files in the project resource file. By taking your time to study the code...
  29. OpenXML Wrapper library for C# (and easy to convert to VB.NET) for Excel 2007 up

    Project Description

    ClosedXML makes it easier for developers to create Excel 2007/2010 files. It provides a nice object oriented way to manipulate the files (similar to VBA) without dealing with...
  30. Re: VB 2010 Counter from reading a file

    Okay, I am not versed in VB6 style of coding so if I was going to work with a hashtable it would be something like the following which may not work for you.

    Adapted from MSDN BinaryFormatter class...
  31. Re: VB 2010 Counter from reading a file

    Hello,

    I would suggest showing code you currently have, otherwise it's a pot-shot in which direction to go in for assisting you.
  32. Re: Competition Winner Announcement Program

    Hello,

    A couple of suggestions. First off, do not use InputBox, use a TextBox instead, secondly, when using TryParse use it as it was intended to be used as shown below



    Dim Score As Decimal...
  33. Replies
    0
    Views
    150

    Google collides with Elmer Fudd

    Google does indeed has a sense of humor
    http://www.google.com/webhp?hl=xx-elmer
  34. Replies
    11
    Views
    227

    Re: DataGridView sorting

    Hello,

    Check out Generic sortable binding list in VB.
  35. VS 2010 Re: Trouble closing EXCEL.exe COM instances

    You already have been pointed in the right direction, let me push a tad harder :) The article below is referenced in one of the links in my first reply in this thread

    Basics of using Excel...
  36. VS 2010 Re: Trouble closing EXCEL.exe COM instances

    Excel when done right is easy in regards to releasing objects yet always prone to keeping objects in memory when done wrong and it takes a good deal of time to get it right.

    I agree with...
  37. Re: VB 2010 Express: Yet Another Stubborn Excel Process Won't End

    Just curious, when I see "data stream", are you using JSON ?
  38. Re: VB 2010 Express: Yet Another Stubborn Excel Process Won't End

    Not that I will have a direct section of code to provide but instead reference back to things I said last time, got to be mindful of the "Two Dot Rule" and looping thru cells.

    I just wrote about...
  39. Re: Do you have .NET? (Not exactly a question)

    Got there from NuGet Package of the Week #4 - Deserializing JSON with Json.NET
  40. Do you have .NET? (Not exactly a question)

    http://smallestdotnet.com/

    From the site above:
    This site looked at your browser's "UserAgent" and figured out what version (if any) of the .NET Framework you have (or don't have) installed, then...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4