Search:

Type: Posts; User: hannibal smith

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    633

    Re: Function as Parameter

    Thanks. Now it work.
  2. Replies
    4
    Views
    633

    [RESOLVED] Function as Parameter

    Hello, I'm trying to use this method that I found online:

    Function Bisect(a as Double, b As Double, f As Function(Of Double, Double)) As Double
    Dim c As Double = (a + b) / 2
    Dim d As...
  3. Replies
    3
    Views
    568

    Math.log() give me wrong result

    Hello, I need to calculate the natural log of a number: ln(0.156) for example.
    I try to use Math.Log(0.156) that give me -0,1448596594468274
    my calculator said instead : 0.14496577 as my book.
    So...
  4. Re: [RESOLVED] How to dynamically load and use a .NET dll

    Very useful Thanks!!
  5. [RESOLVED] How to dynamically load and use a .NET dll

    I have some dlls in my app folder. Each one contains 3 methods: methodA methodB methodC; of course the methods from one dll do stuff in different way that the others.
    Since I want to be able to add...
  6. Re: Best practice for store db string connection

    this db contains I'm using a local db to store binary patterns that my app will find into user's file. Since they are not public, I would share the whole db; I known that one can get this patterns...
  7. Replies
    3
    Views
    1,085

    Re: populate a complex list of object

    Please note that the table I posted is the way that the old DOS program display and store data, but I'm not bounded to that.
  8. Re: Best practice for store db string connection

    I made some test and you are right.
  9. [RESOLVED] Does a Multicolumn checked listbox control exist?

    I've this Class:


    Class Person
    Private _name As String
    Public Property Name As String
    Get
    ' Return the value stored in the field.
    Return _name
    ...
  10. Best practice for store db string connection

    I need to distribuite a .NET 6 Winform application, that work with a db.
    Since no one should know db password, which is your best practice to store the string connection and credentials ?
  11. Replies
    2
    Views
    885

    TableLayoutPanel and Drag and Drop

    187885
    I have thi TableLayoutPanel and 4 colored picturebox. In runtime user can drag each picturebox and drop on a cell of the tablelayoutpanel, so once dropped the picturebox should be docked to...
  12. Replies
    3
    Views
    1,085

    Re: populate a complex list of object

    You are right: I made a digit mistake. days are 3.
    Each team plays for itself, it's actually more a group of players (that play for itself).
    for gamefields, I think I'm wrong translating from my...
  13. Replies
    3
    Views
    1,085

    populate a complex list of object

    I'm working to rebuild a very old 16bit application used to manage games championship. (I have no access to source code).
    Since there are multiple teams, multiple match and multiple gamefield, the...
  14. Replies
    10
    Views
    1,917

    Re: [RESOLVED] how to search in a combobox

    Yes you are right
  15. Replies
    10
    Views
    1,917

    Re: how to search in a combobox

    I found out that a third part control with the feature that I need already exist (sfCombobox).
  16. Replies
    10
    Views
    1,917

    Re: how to search in a combobox

    If you mean by:

    AutoCompleteMode=SuggestAppend
    AutoCompleteSource=ListItems
    it give me ony the names that start with the entered string, not all the name that contain it.
    But maybe I...
  17. Replies
    10
    Views
    1,917

    [RESOLVED] how to search in a combobox

    I've a combobox to display names:

    Dim names As New List(Of String)

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    names.Add("John")
    ...
  18. [RESOLVED] Convert JQuery Datatable into List of object.

    I need to convert a JQuery datatable donwloaded by httpclient as a string like this:
    ...
  19. Re: How to send PUSH messages to an Android APP (General overview)

    You can use firebase cloud messaging, for B4A side you have a good support of it, and for vb.net side you can use basically HTTP Methods GET vs POST.
  20. Re: SerialPort Change Configuration in runtime

    Of Course.
    It not work, I get wrong chars.
    What I already tried:รน
    change config without close and reopen the port: I get some garbage in rx and sometime device did not get the command. As...
  21. Re: SerialPort Change Configuration in runtime

    You are right it not cover it.
    I can't build a custom cable since is not db9 connection, but a FT232 into the device board.
    I don't need to switch fast, only switch, data that coming from device...
  22. Re: SerialPort Change Configuration in runtime

    I'm looking at the code you linked; My code is similar, but I used only function and Subs, none Tasks, since I'm not familiar with it.
  23. SerialPort Change Configuration in runtime

    Hello,
    I need to use RS232 with an old device that use different configuration for TX and RX:
    TX:
    9600 bps, Parity.Even, data bit 8
    RX
    9600 bps, Parity.None, data bit 7

    I've tried to switch...
  24. Replies
    3
    Views
    5,591

    Re: Prepurchase question about VB.Net

    It is not clair if you are talking about VS (the IDE used to program), the applications, or the framwork.
    If you talk about application or framework you can deploy them from server, run them on...
  25. Replies
    0
    Views
    4,068

    binding to datagrid

    Hello, I've this class to manage the final result of a competition:

    Public Class Player

    Private _name As String
    Public Property Name As String
    Get
    ...
  26. Replies
    1
    Views
    919

    Printing

    Hello,
    I'm looking for advice for printing. I need to print 2 things by pressing 2 different button:
    1- a datagrid as a table, with a title and a logo
    2- Starting from a list of Person, an empty...
  27. Re: Order a list of T by multiple properties

    Thanks. I managed to make it work starting of your post #2. I need to test a little more the logic that I implemented for the comparision, but it should work fine.
    Thanks.
  28. Re: Order a list of T by multiple properties

    ok, what about this point:

    if they still have same score need to check the single point from the last stage, the fist that have a miss get the baddest placement.


    Should I declare theme as...
  29. Order a list of T by multiple properties

    Hello,
    I need to calculate the final result of a complex multiplayer game. Here the rules:


    Every stage, every player need to hit a baloon, if he get it he earn 1 point if not 0. (the PX...
  30. Re: Dinamically fill datatable rows

    I get it It work. What about rows header, I didn't found much on microsoft documentation to set them as customm value.
  31. Re: Dinamically fill datatable rows

    I'm sorry, I'm not sure that I have understand in the right way.
    this loop is executed for each columns 1 time to fill a row, so I have to put it into another loop to add nC rows, right?...
  32. Re: Dinamically fill datatable rows

    Ok, thank you.
    I'm missing one thing:
    since the number of column will change( nc is a variable), how can I set up the rows at runtime?
    I mean this line:


    newRow(bpc(I).ToString) = whatever
  33. [RESOLVED] Dinamically fill datatable rows

    Hello,
    I have an array numbers that contanis some data that need to display on datagrid so I'm buildind a datatable. It also contains the headers, and the numbers of rows and columns.
    Of course...
  34. Replies
    9
    Views
    1,958

    Re: Calculate angle between points

    Here an example of data from array and angles that I'am expecting:
    Data:
    &H4800,&H01C3,&H0000,&H0000,&H4800,&H0306,&H0000,&H0000
    angles in degrees : 89,89,0,167,89,89,0 (without decimals that...
  35. Replies
    9
    Views
    1,958

    Re: Calculate angle between points

    I understand that, but the measurement are taken every 1 sec so I would take the step as 1. I undestand that it may result in very steep angles, but I'm looking for that "spikes" because they are...
  36. Replies
    9
    Views
    1,958

    Re: Calculate angle between points

    Yep, it's my mistake in copy and past the code form visualstudio.


    They are value from a log that take a measure every second. As I write in first post the X should be always 1, because the...
  37. Replies
    9
    Views
    1,958

    Calculate angle between points

    I've an array with values, I need to calculate the angle between them, like in picture, assuming the increment of x is always 1
    183297
    So i tryed:

    Const Rad2Deg As Double = 180.0 / Math.PI
    ...
  38. Re: Object of type 'System.Windows.Data.Binding' cannot be converted to type

    I solved: the problem was that in WPF to use databinding with usercontrol/custom control properties must implement dependency property.
  39. [RESOLVED] Object of type 'System.Windows.Data.Binding' cannot be converted to type

    Hello,
    I've this usercontrol here: https://www.vbforums.com/showthread.php?892294-RESOLVED-Custom-user-control-with-custom-proprety-and-event&highlight=
    that have the property SelectedEndianess
    ...
  40. [RESOLVED] update collection from datagrid

    I've ha datagrid dgArt


    <DataGrid Grid.Row="4" Grid.RowSpan="3" Grid.Column="1" Grid.ColumnSpan="9" x:Name="dgArt" AutoGenerateColumns="False" DataContext="MainWindow"...
Results 1 to 40 of 174
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width