Search Results - VBForums

Search:

Type: Posts; User: kevininstructor

Page 1 of 13 1 2 3 4

Search: Search took 0.15 seconds.

  1. VS 2010 Re: Error when trying to save date from date time picker to access database?

    Here is a working example, would upload the project but I am using VS2013



    Imports System.Data.OleDb

    Public Class Form1

    Public Function UpdateRow(ByVal Identifier As Integer, ByVal...
  2. Re: DataGridView checks before adding to other DataGridView

    One way to get checked rows in the first DataGridView

    Add a code module and place this function within it


    <System.Diagnostics.DebuggerStepThrough()> _
    <Runtime.CompilerServices.Extension()>...
  3. Replies
    25
    Views
    533

    VS 2012 Re: linq query in vs2012

    Hello,

    Is there a particular reason why you are not using native SQL SELECT statement with joins to retrieve your data? Seems the only reason to load several DataTable objects then use LINQ to...
  4. Re: How to save project and automatically creates folder

    When you create a new solution you have the opportunity to change from the default path to a different path. Note the Location for the solution in the dialog below from selecting from the IDE menu...
  5. Replies
    1
    Views
    124

    Re: Limited CheckBoxes

    Hello,

    See if this is what you are looking for


    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    Controls.OfType(Of CheckBox).ToList.ForEach(
    ...
  6. Re: Need Simple Async/Await Progress Bar Example

    Both projects would be good to learn from and for the record both were done as there are not many decent examples other than the web downloads as you have found out.
  7. Re: Need Simple Async/Await Progress Bar Example

    Hello,

    Look at the first link in my signature for an example that uses Async/await includes a progress bar. All the work is done in a class project called from a Forms project.
  8. Replies
    9
    Views
    314

    Re: Form Positioning

    What other thread?
  9. Replies
    9
    Views
    314

    Re: Form Positioning

    Hello,

    Perhaps this project on Microsoft OneDrive might be what you are looking for which I did a while back.

    Code for startup form


    Public Class Form1
    Private mChildForm As ChildForm...
  10. Replies
    2
    Views
    144

    VS 2010 Re: [HELP] Split In ListBox

    Here is one method where we populate the ListBox with a DataTable, get information back then remove a row. I kept things simple which can easily be expanded upon.



    Private Sub LoadListBox()
    ...
  11. Re: Need help adding with check boxes (new to VB)

    Hello,

    Try the following for VS2012 or VS2013



    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim Sum = Me.Controls.OfType(Of CheckBox) _
    ...
  12. Re: Problem formatting a 0 to a space in a DGV

    Hello,

    Try the following which of course you would need to adapt to your table


    Public Class Form1
    Private Sub Form1_Load(
    ByVal sender As Object,
    ByVal e As EventArgs)...
  13. Replies
    13
    Views
    363

    Re: Bind a database relation

    My point is you should be creating your relationships in the database so to avoid having to setup relationships each time you need to use the database tables in one or more projects which makes sense...
  14. Replies
    13
    Views
    363

    Re: Bind a database relation

    Simply setting the relationships afterwards does not mean the code is regenerated so you will need to regenerate the code. Select in the Solution Explorer the dbml file, right click, select "run...
  15. Replies
    13
    Views
    363

    Re: Bind a database relation

    Hello,

    Best to set relations in the database then when setting up the data source in your project the relationship(s) are there i.e.
    122193
  16. Replies
    2
    Views
    108

    Re: reference Excel in vb.net

    Hello,

    Look at demo6 project in the following article using Excel and OleDb Excel and OleDb basics to advance operations. Focus on IMEX in the connection string. Also note HRD should be HDR in...
  17. Re: VB.net Datagridview Help About Displaying Data from Database

    Hello,

    I will show a method that populates a list which is done statically here but you could fill the list from say a text file.



    Public Class Person
    Public Sub New()
    End Sub
    ...
  18. Replies
    11
    Views
    1,144

    Re: c# or vb.net ?

    As already mentioned by others, it depends on the area you are looking for work. Five years ago it was VB.NET and now the shift is to C# followed by C# and VB.NET together so to manage solutions that...
  19. Replies
    2
    Views
    635

    Re: Cue banner text

    I invite you to try run the project then if there is still a question by all means ask again.
  20. Re: Insert array value into Datagridview

    Yes this does happen from time to time when moving between C# and VB.NET :-)
  21. Re: Vb . net : userform multiple text boxes + data grid view with multiple rows save

    Hello,

    You need to supply specific details i.e. where is the data coming from and how are you loading this data. There are a multitude of methods for working with data from hand-coding via a data...
  22. VS 2013 Re: [Help] Intercepting Internet Traffic

    With no disrespect, I believe you are biting off more than you can code being new to these topics. A good tool available is Fiddler.
  23. Replies
    10
    Views
    509

    Re: Anyone using Azure yet?

    I am not yet but have a full licence and ready to dig in shortly more for exploratory reasons than actual need.
  24. Re: Insert array value into Datagridview

    Do you want to add a new row and only populate specific cells? If not, to edit a current cell



    DataGridView1.CurrentCell.Value = "TODO"


    Or
  25. Re: Insert array value into Datagridview

    See if this is what you are looking for



    Public Class Form4
    ''' <summary>
    ''' DataGridView has four columns defined in the IDE
    ''' </summary>
    ''' <param...
  26. VS 2010 Re: YAHOO! Weather API Icons not working

    Hello,

    On Code Project Weather Using VB.NET and Yahoo RSS!
  27. Re: Where to Go From Here Advice Needed

    It's beyond me why you are so unwilling to allow them to consider this to if nothing else have a stable environment to run rather than rewrite which from what I read would take a considerable amount...
  28. Re: Where to Go From Here Advice Needed

    Never said terminal server would be a magic bullet but instead avenues to explore. I can not provide details on implementing as our engineering team work out the solution (for terminal server) for...
  29. Re: Where to Go From Here Advice Needed

    Hello,

    If rewriting this in a newer language is not a option consider a) look at Windows Shims b) create a terminal server with the environment expected then the app is frozen in time per-say and...
  30. VS 2013 Re: Added data doesn't show once restarted the application...

    Hello,

    If your database is local, in the bin\debug folder check "Copy to Output Directory" property of the database under Solution Explorer. The default is Copy Always, change it to Copy if Newer....
  31. Replies
    10
    Views
    375

    Re: Role of Current User

    Where ever you want, it's a singleton pattern/static class so no matter where you access the members of the class its one instance.

    The Try/Catch statement is optional, I had no issues but never...
  32. Replies
    10
    Views
    375

    Re: Role of Current User

    Hello,

    Here is a simple class for AD information


    Imports System.DirectoryServices
    Imports System.Security.Principal

    ''' <summary>
    ''' Provides basic information for the current user from...
  33. Re: Need to get an average from dataset columns

    Hello,

    Here is a mixture of old school and current methods.

    uses mocked data


    Public Class Form11
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ...
  34. Re: remove Duplicate Cell Values in multiline Datagridview cell

    It appears you will need to examine the value results prior to adding it to the DataGridView, is there a line feed? If so perhaps split on line feed and see if both parts are equal or not etc.
  35. Replies
    4
    Views
    180

    VS 2005 Re: insert into excel 2003

    Try adding IMEX =0 to extended properties
  36. Re: remove Duplicate Cell Values in multiline Datagridview cell

    How are you loading this data, the more details the better responses you will get but at this point it's a potshot without more details.
  37. Re: LINQ To Objects and the performance of nested “Where” calls

    I click on the link and get the expected page from this thread. Yes it's three years old but I see it still provoking thoughts when writing statements
  38. Re: Updating a table in Ms Access using OLEDB in VB.net

    Hello,

    It is easy to make small mistakes here when using string concatenation. The following is an example of using XML literals and embedded expressions to assist with writing a SQL statement w/o...
  39. LINQ To Objects and the performance of nested “Where” calls

    Ran into this article from a Reflector newsletter and thought is was worth posting here.

    http://codeblog.jonskeet.uk/2014/12/08/c-6-in-action/
  40. VS 2013 Re: Way to make application think that it is in debug mode at runtime?

    Hello,

    If you are referring to MyApplication.UnhandledException then this only works when compiled for Debug mode. If Debugger.IsAttached returns True when there is an exception and you have...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.