Search Results - VBForums

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 0.12 seconds.

  1. Replies
    6
    Views
    168

    Re: Advice - Duplicate Data

    I am only working with one state, so the county names are unique.
  2. Replies
    10
    Views
    217

    Re: Application not Closing on Close Window

    What is the relationship between the forms? How is Shutdown mode in the projects properties set?
  3. Replies
    6
    Views
    168

    Re: Advice - Duplicate Data

    I am not aware of a County changing names, but if they do it will be rare. I may need to pull the population data from another table based on the primary key. Don't know that for sure yet.
  4. Replies
    15
    Views
    5,408

    VS 2010 Re: How to make DataGridView render fast

    Another tip about speeding up DGV's...
    1. turn off the auto resizing
    2. set the row height manually
    3. set column width manually
    4. set the DefaultCellStyle of the columns
  5. Replies
    6
    Views
    168

    Re: Advice - Duplicate Data

    The name is not the primary key. This data is a list of counties and the data is their classification based on census data. County names almost never change and census data is decennial.
  6. Replies
    6
    Views
    168

    Advice - Duplicate Data

    I have a table that looks something like this:

    Name, Effective Date, real data

    The table has < 200 rows initially. Once the data is added it is static, has to be because it is historic.

    If...
  7. Replies
    15
    Views
    5,408

    VS 2010 Re: How to make DataGridView render fast

    Here is the code as an extension


    Imports System.Runtime.CompilerServices

    Module DGV_Extensions
    <Extension()>
    Public Sub DoubleBuffered(aDGV As DataGridView, Optional setting As...
  8. Replies
    2
    Views
    206

    Re: Holidays - USA

    The Easter calculation was from the location specified. Sadly, other than y,m,d, I haven't a clue what the other variables are or what each line of code does. I do know that the whole calculates...
  9. Replies
    12
    Views
    184

    VS 2012 Re: Calculate Recision Date

    For Holidays see:

    Holidays
  10. Replies
    2
    Views
    206

    Calculate Holidays

    A way to generate Holidays. Several are defined in the Class:


    Public Class MyHolidays

    Private Class DefHolidays
    Property Name As String
    Property...
  11. VS 2013 Re: VB.NET program to save user inputs and to retrieve it later

    Is this so that the user inputs are accessible on any machine, or just the machine they are using?
  12. Re: How to "freeze" the screen so I can Capture it with my ScreenCapture

    Have you looked at this

    http://msdn.microsoft.com/en-us/library/fw1kt6f9%28v=vs.110%29.aspx
  13. Re: convert dd-MM-yyyy hh:mm:ss to yyyy-MM-dd hh:mm:ss

    There is a one topic per thread rule. If the date is in the correct format then start a new question with the current error / problem.
  14. Re: convert dd-MM-yyyy hh:mm:ss to yyyy-MM-dd hh:mm:ss

    Try this:


    Dim CurrentDateString As String = "11.12.2013 0:35:04"
    Dim FormatOfCurrentDateString As String = "dd.MM.yyyy H:mm:ss" 'must match exactly the format of...
  15. VS 2010 Re: Need help with calculating MAC address sequences.... I appreciate the help!

    The example was the range you specified, 04:00 - 17:FF. When I ran the code without showing the results it took less than 2 ms. to execute. The values are your range without the :'s.

    Here is...
  16. VS 2010 Re: Need help with calculating MAC address sequences.... I appreciate the help!

    An alternative that might be slightly slower than SH's solution:
    '
    Dim srange As Integer = &H400 '&H0 min
    Dim erange As Integer = &H17FF '&HFFFFFF max

    For x As...
  17. Replies
    3
    Views
    153

    VS 2008 Re: Sending huge Data buffer to Serial Port

    Sending the entire 255 bytes at 9600 baud should not be an issue. Check your settings on both ends, and the cable.
  18. Replies
    4
    Views
    125

    VS 2013 Re: Brackets in Random.[Next]()

    Here is a reference for what the others have said.

    http://msdn.microsoft.com/en-us/library/hwx24eb6%28v=vs.110%29.aspx
  19. Replies
    0
    Views
    167

    Pascal's Triangle

    An implementation of Pascal's Triangle.

    Class PascalsTriangle
    Private Class triRow
    Property value As Integer = 0
    Property aboveRow As Integer = -1
    Property...
  20. Replies
    0
    Views
    157

    Random Wrapper

    Random is not thread safe, hopefully this will help


    Public Class RandomWrap
    Inherits Random
    Private Shared lock As New Threading.AutoResetEvent(True)

    Public Overrides Function...
  21. Re: Integer / String Concatenation

    This was knew to me, and found while helping a co-worker. I am so used to calling .ToString when assigning a base data type to a string that it never occurred to me that the concatenation operator...
  22. [RESOLVED] Integer / String Concatenation

    Options: Explicit On, Strict On, Infer Off


    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Dim i As Integer = 3

    TextBox1.Text &= i...
  23. Replies
    13
    Views
    389

    Re: Reading a file makes RAM Usage too high

    You have a one line read / convert. Try changing that one line to this and see if it helps.


    'your read looks like this
    ' Dim bytesf As String =...
  24. VS 2010 Re: Possibly a datatype problem -- debugging needs help

    Here is a solution of sorts. It uses the least optimal algorithm for fitting (first fit), but might give you some ideas.


    Public Class Form1

    Private Sub Button1_Click(sender As Object, e...
  25. Replies
    31
    Views
    585

    VS 2010 Re: Help me understand Generics

    This is a guess at what you might mean.
    Class xMyGeneric(Of MyGeneric)
    Public Property Prop As MyGeneric
    End Class

    Class MyGenericList(Of MyGeneric As xMyGeneric(Of...
  26. Replies
    0
    Views
    144

    Dart Out Shots

    Calculates all 3 dart checkouts for a given score.

    Dart Outshots Solution
  27. Replies
    14
    Views
    307

    Re: [RESOLVED] Timer spanning multilpe forms

    DateTime is much coarser. There is even a remark in the DateTime.Now method description that addresses this; "The Now property is frequently used to measure performance. However, because of its low...
  28. Replies
    10
    Views
    322

    Re: Rock paper scissors code problem

    Last night there was a re-run of one of the Big Bang episodes that had rock-paper-scissors-lizard spock. If you take a look at the code bank you will find my answer to that.
  29. VS 2010 Re: When you begin creating an application, what........

    Let me add a quote I once heard, "It is not all you know that is the problem, it is all you think you do that is." The original designers of the internet 'knew' that 32 bits of address space was...
  30. Replies
    0
    Views
    192

    Rock Paper Scissors Lizard Spock

    Simple classes and enum to implement the game.


    Public Class RPSLS
    ' Rock Paper Scissors Lizard Spock
    'Rock 0 -1 1 1 -1
    'Paper 1...
  31. Replies
    14
    Views
    388

    Re: Communication DB Location

    I was thinking of two 'apps', one of which ran all the time broadcasting the location. The other app would be the 'real' app and would work the same for all machines, even the one with the DB.
  32. Replies
    14
    Views
    388

    Re: Communication DB Location

    If the machine with the DB had a service that ran continuously it could send the location messages periodically. That would eliminate the need for the other machines to parrot the location messages,...
  33. VS 2010 Re: 1's Complement Checksum problem..... please HELP!!

    This code is close to the C code, though it does produce a checksum of zero for one of the cases...


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    ...
  34. Replies
    0
    Views
    210

    Roman Numerals - Conversion to/from

    Code to aid in the conversion of standard Roman Numerals (1 - 3,999).


    Public Class RomanNumerals
    'I 1
    'V 5
    'X 10
    'L 50
    'C 100
    'D 500
  35. Replies
    32
    Views
    612

    Re: VS 2010 - Integer to Roman Numeral

    FWIW - code to work with standard roman numerals (1 - 3,999)


    Public Class RomanNumerals
    'I 1
    'V 5
    'X 10
    'L 50
    'C 100
    'D 500
  36. VS 2010 Re: Connection to aux equipment via usb/serial

    If you want to add SerialPorts to your PC you can do so by installing a USB to Serial Port adapter.
  37. Replies
    9
    Views
    490

    Re: reading data from serial port

    I'd check that the speed, databits, stopbits, and parity of the sender and receiver match. Also check the connections and ensure that the cable is in good condition. If this is an electrically...
  38. Replies
    3
    Views
    183

    VS 2013 Re: Need help editing .xml file

    It is unclear what you are trying to do. Here is a short example that changes the activeOption nodes value to 9.


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles...
  39. Replies
    8
    Views
    239

    VS 2010 Re: Simple List Question

    This is because the load event is throwing an error (NullRef) that you aren't seeing. If you search for errors in load event you will find out why you don't see it. To find YOUR error create a...
  40. Replies
    10
    Views
    326

    VS 2012 Re: Prime Number Checker Code Question.

    Isn't it the square root of the number?
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.