dcsimg

Search:

Type: Posts; User: dbasnett

Page 1 of 13 1 2 3 4

Search: Search took 1.31 seconds.

  1. Re: What on earth is happening here ?

    You might find this helpful. This shows how to get the calling method name by using the CallerMemberName attribute.



    'add these
    'Imports System.Runtime
    'Imports...
  2. Replies
    1
    Views
    126

    VS 2017 Re: Reading nodes in XML file

    See if this approach helps.


    Dim xe As XElement
    'xe = XElement.Load(_mod_xml) 'to load from file / uri
    'for testing
    xe = <BACSDocument>
    <Data>...
  3. Replies
    3
    Views
    161

    Re: What's module and class in VB.NET 2008

    What a module is.

    What an object / class is.

    MSDN Search
  4. Re: [RESOLVED] VS 2017 checking if textbox dosnt starts with 05 at the beginning

    What if the textbox has less than 2 characters?
  5. Re: VS 2017 checking if textbox contains 05 at the begening

    See

    String.StartsWith
  6. VS 2010 Re: VB 2010 - help for *.docx as attachment in System.Net.Mail?

    Show the code that works with jpg or pdf please.
  7. Replies
    2
    Views
    237

    VS 2017 Re: Read Entire Table

    It is several thousand pages long.
  8. Replies
    2
    Views
    237

    VS 2017 Read Entire Table

    We have a table that represents the index for all of the laws for the state of Missouri. It has roughly 200,000 entries as a linked list. The table is being moved from an AS400 to MSSQL.

    As I...
  9. Replies
    10
    Views
    610

    Re: Memory allocation issues

    @BB - what version of VS? I get this when I close the form. Running VS2017 here.

    System.OutOfMemoryException
    HResult=0x8007000E
    Message=Exception of type 'System.OutOfMemoryException' was...
  10. Replies
    10
    Views
    610

    Re: Memory allocation issues

    On my machine BB's code ran fine for 50MB files, but not for 100MB files. I created some code for 100MB files and it displays, but in other parts of the program(resize the RTB for example) I get OOM...
  11. VS 2019 Re: Keeping record of how many times a form has been opened.

    If you use My.Settings and this is an installed application you 'll want to make certain the setting isn't lost if the app is upgraded.
  12. Re: [RESOLVED] VB.net: Query XDocument Variable using Linq

    $0.02 using xelement


    Public Class Form1

    Private COUNTRYLIST As XElement
    Public Function GetCountryByCode(CountryCode As String) As String
    Dim path As String = "path to xml...
  13. VS 2017 Re: Trouble generating an array of random numbers between -n and n

    $0.02


    Private Shared prng As New Random
    Private A20(19) As Integer
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    For idx As Integer = 0...
  14. Replies
    0
    Views
    429

    WPF Teeview Creation in Thread

    We have an API that creates a Forms TreeNode, the root for a Forms TreeView. This process takes a couple of seconds so the users normally do this in a separate thread. Works great.

    Now we have a...
  15. VS 2019 Re: Best practice for functions return value (since functions do not exit immed.)

    What is the Function supposed to do?
  16. Re: Notify user when thread has started and when it has finished?

    Here is your code modified to use Task and Await. Note the UI will remain responsive while the task is running.


    Private Sub exportToExcel()
    ' exporting code
    ...
  17. Re: How to convert following C# code to vb.net code

    It sounds like they do. Is there a reason you can't get the converter jmc mentioned and give that a go?
  18. Replies
    18
    Views
    410

    VS 2015 Re: Random Binary Matrix

    Don't read too much into it. I have classes that have a random for use by the class. In a class it would look like


    Public Class Form1
    Private rslts As New List(Of String)
    Private Sub...
  19. Replies
    18
    Views
    410

    VS 2015 Re: Random Binary Matrix

    I must be misunderstanding...

    Private Shared prng As New Random 'no seed
    Private letters As String = "abcdefghijklmnopqrstuvwxyz"
    Private rslts As New List(Of String)

    Private...
  20. Re: me....on vbforums...with my reputation...oh well :)

    :D :afrog: :check:
  21. VS 2019 Re: How to Convert an image from My.Resources ToBase64 & save it to My.Settings?

    Something like this. Uses memory stream

    Dim img As Image = My.Resources._1_035 'your image here
    Dim ms As New IO.MemoryStream
    img.Save(ms, img.RawFormat) 'save to memory...
  22. Replies
    30
    Views
    1,070

    VS 2015 Re: Write Current Time

    Can you provide a document that describes the rs-232 commands.
  23. Replies
    30
    Views
    1,070

    VS 2015 Re: Write Current Time

    Can you post the details about the manufacturer and the product please.

    I am just having a hard time believing that the datetime has anything to do with this. When you write to the serialport...
  24. Replies
    30
    Views
    1,070

    VS 2015 Re: Write Current Time

    To disprove that creating the buffer manually v. with Datetime makes no difference I came up with this. I also show a different way of creating the buffer that might help debugging. The write to...
  25. Replies
    30
    Views
    1,070

    VS 2015 Re: Write Current Time

    This millennia until 2255... Right
  26. Replies
    30
    Views
    1,070

    VS 2015 Re: Write Current Time

    Check this out

    Mod Operator
  27. Replies
    30
    Views
    1,070

    VS 2015 Re: Write Current Time

    What is the max value for a byte? What is the value of DateTime.Now.Year?
  28. Replies
    3
    Views
    244

    VS 2012 Re: MouseMove Event not working

    If you want to capture any movement something like this might be useful. It is a loop that constantly tracks the location.


    Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles...
  29. Replies
    1
    Views
    145

    Re: Disabled Treeview color settings..

    You could create methods that disabled / enabled the treeview and changed the background color as appropriate.
    Something like

    Private Sub DisableTV(atv As TreeView)
    atv.BackColor =...
  30. Replies
    11
    Views
    331

    Re: [RESOLVED] comparing double to decimal

    AndAlso not OrElse


    ' AndAlso not OrElse I think
    ' what about equal?
    ' v
    If d > (dc - tolerance) AndAlso d < (dc +...
  31. Replies
    10
    Views
    398

    VS 2010 Re: Serial port cannot received HEX reply

    Here is your code with some changes.


    Public Class Form1

    Private WithEvents SerialPortZ As New IO.Ports.SerialPort '<<<<

    Private Sub writeButton_Click(ByVal sender As System.Object,...
  32. Replies
    15
    Views
    577

    VS 2017 Re: Prevent control flickering

    You could even make it switch to the next tab when you tabbed out of the last textbox.

    One form, 270 Textboxes!!! :eek:
  33. Re: Help needed with paranormal things

    The title leaves me feeling cheated.
  34. Replies
    10
    Views
    288

    Re: Application Installation

    What has worked for me is to check for new version when the app is started and then notify the user that the app will update when closed. I have the app check for updates after the app starts every...
  35. Re: VS 2017 trying to find the right way to count checked items nothing works.

    I created this test. Notice that I am filling a list and then filling the listveiw from that.


    Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles Me.Shown
    ...
  36. Re: VS 2017 trying to find the right way to count checked items nothing works.

    Count checked items


    Dim ct As Integer = 0
    'count checked
    For Each item As Windows.Forms.ListViewItem In LsvwCusts.Items
    If item.Checked Then
    ...
  37. Replies
    22
    Views
    528

    Re: [RESOLVED] How to find &H values

    No. The sub was to illustrate. I meant change your Select Case to use the enumeration.

    @Tommy - that was what jumper posted originally.
  38. Replies
    22
    Views
    528

    Re: [RESOLVED] How to find &H values

    If you have an enumeration you should use that.


    Public Enum IconSize As Integer
    Size16 = &H0 '16x16
    Size24 = &H1 '24x24
    Size32 = &H2 '32x32
    Size38 = &H3...
  39. Replies
    5
    Views
    323

    Re: Database Read Only Access

    Thanks. I have an API that provides access but for political reasons I hear things like, give me a read only connection string.

    I am looking for reasons to force the use of the API . All I...
  40. Replies
    5
    Views
    323

    Database Read Only Access

    A separate division in our company is asking for 'read only access' to one of our databases. First of all I am not sure what that means. Second, I don't know what, if any, are the drawbacks to...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width