dcsimg

Search:

Type: Posts; User: VB.NET Developer

Page 1 of 4 1 2 3 4

Search: Search took 0.23 seconds.

  1. Replies
    13
    Views
    645

    Re: Calculator error

    I have already big integer simple calculator. But what I need is to make this process more automated. Consider this, what if my user write long equation such as

    ...
  2. Replies
    2
    Views
    165

    The value could not be parsed

    I have got error about value could not be parsed with the following code:


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim...
  3. Replies
    13
    Views
    645

    Re: Calculator error

    I want to build calculator like Wolfram Alpha. I only found two youtube tutorials for that, but all of these uses only small values. I need something like that with big integer type. BigInteger works...
  4. Replies
    13
    Views
    645

    Re: Calculator error

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    Dim tabulka As New DataTable
    Dim equation As BigInteger
    Dim obj...
  5. Replies
    13
    Views
    645

    Re: Calculator error

    I also tried this:

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim equation As BigInteger = CType(TextBox1.Text,...
  6. Replies
    13
    Views
    645

    Re: Calculator error

    I want to build calculator like google calculator with support up to 43 digits. Mainly numbers, but sometimes other characters such as "/" or "*".

    Dim tabulka As New DataTable
    Dim equation As...
  7. Replies
    13
    Views
    645

    Re: Calculator error

    Thanks Shaggy! Kinda works, but Iīm getting the error about converting from string to double is not valid with this code:

    Dim equation As BigInteger = CType(TextBox1.Text, BigInteger)
    Dim ssedd...
  8. Replies
    13
    Views
    645

    Calculator error

    I want to make a calculator, but I got the following errors:
    1.Object reference not set to an instance of an object.
    with code


    Public Class Form7
    Dim cal As MSScriptControl.ScriptControl
    ...
  9. Re: Partial prime factorization of big number using trial division

    I want implement something like this. Note that I donīt want to factor it fully.


    sage: a = 207411784165069788403685789342707568622276103
    sage: f = trial_factor(a)

    Trying primelike...
  10. Partial prime factorization of big number using trial division

    Hello,
    Iīd like to make an app for partial prime factorization using trial division - BigInteger. Kinda works, but when I type big number (15 digits), Iīve got an error: Arithmetic operation...
  11. Prime number generator for big number

    I want to make the fastest prime number generator (school project) for HUUUGE numbers from range 2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
  12. Re: Remove last repeated characters

    Thanks, paul! And sorry for late reply...
  13. Re: Remove last repeated characters

    One-line example isnīt enough?
  14. Re: Remove last repeated characters

    example is already included, just for clarification.
    original: Thereīresomeproblems_withit:1581221551111111
    processed: Thereīresomeproblems_withit:158122155
  15. [RESOLVED] Remove last repeated characters

    I want to remove the last repeated characters from my sequence.
    Sequence looks like this: Thereīresomeproblems_withit:1581221551111111
    I want to remove all ending characters (ones). Iīm able to do...
  16. Replies
    4
    Views
    380

    VS 2019 Re: Stop Using a DLL

    I mean without rebuilding.
  17. Replies
    8
    Views
    396

    Re: Count long characters

    I tried to speed up calculation using stringbuilder, but it does not work:


    Dim pocitacznakov As BigInteger = BigInteger.Parse(TextBox1.Text)
    Dim sb As System.Text.StringBuilder =...
  18. Replies
    8
    Views
    396

    Re: Count long characters

    It works with another label for me. But, can it be faster? 500000 characters (spaces, double spaces, enter) calculation is not that fast. Maybe with stringbuilder or something?
  19. Replies
    8
    Views
    396

    [RESOLVED] Count long characters

    I want to count how many characters are in my PDF-converted book. I loaded it into RTB and I attempt to count it via Label. But it shows me only the max. number 32768. Therefore I switched to...
  20. Replies
    4
    Views
    380

    VS 2019 Re: Stop Using a DLL

    Yes, DLL file is still embedded, so you must remove it also from your project - one way is via Solution Explorer.
  21. Re: BigInteger trying to convert result to Double

    I forgot to add biginteger.parse at number1 and number2. Now it works perfectly! Thanks.
  22. Re: BigInteger trying to convert result to Double

    The same error.
    I also tried this:

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    Dim number1 As BigInteger = CType(TextBox1.Text,...
  23. [RESOLVED] BigInteger trying to convert result to Double

    I successfully declared BigInteger library and it works for power function. But Iīm getting the following error:
    Value was either too large or too small for a Double.

    Option Strict On
    Imports...
  24. Replies
    6
    Views
    353

    Re: Ecel files keep living in memory

    Use TaskKill or something to kill excel.exe processess in taskmanager.
  25. Re: BigInteger slow performance

    Yes. Thanks for correction!
  26. Re: VS 2017 displaying a video in splash screen startup is it possible?

    you can implement timer, set the interval to 1000, stops it, close that form and show form2.
  27. Re: BigInteger slow performance

    Thanks Shaggy Hiker! Now it works as expected, though I must told student tomorrow that calculations of numbers of that size is pointless until he is scientist.
  28. Re: VS 2017 displaying a video in splash screen startup is it possible?

    Iīm little bit confused. What do you want to achieve exactly?
    As for splash screens, it might be possible to insert a blank form (or make a form from it) inside and display the desired content.
    Or,...
  29. Re: BigInteger slow performance

    Yes, it is. Three days ago, one student at school where I am working as system admin asks me if theīs something to work with very large numbers thatīs fast. I told him that online solutions exists,...
  30. Re: BigInteger slow performance

    I tried this:

    Using Writer As New System.IO.StreamWriter("C:\users\acer\desktop\biginteger_testBYTES.txt")
    Dim number1 = CType(TextBox1.Text, BigInteger)
    Dim number2 =...
  31. Re: BigInteger slow performance

    Slow for calculation 123578^127812 - result contains 650812 digits an it tooks 40 seconds to generate result in textbox.



    I want to represent biginteger as text... or convert bytes to text...
  32. [RESOLVED] BigInteger slow performance

    I want to play with biginteger class, but I encountered performance issues - itīs slow for 600 000 digits (calculation). Itīs possible to speed up biginteger and compute results that contains 10 000...
  33. Re: Export biginteger result to a file

    I finally solved my problem! BigInteger result is exported to the desired file. Thanks.
  34. [RESOLVED] Export biginteger result to a file

    I want to export BigInteger result to a file (test_results.txt), but this code does not work - file isīt created at all.


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As...
  35. Re: Replace characers from predefined database

    Ah, I didnīt noticed that, sorry. That was the problem. Now it works without interferences, though itīs little bit complicated. Thanks!
  36. Re: Perform action only when the time exactly match

    this works for me:

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Timer1.Enabled = True
    Timer2.Enabled = True
    End Sub...
  37. Re: Perform action only when the time exactly match

    Option Strict On
    Public Class Form1
    Dim WithEvents timer2 As New Timer With {.Enabled = True, .Interval = 1000}
    ' alarmtime
    Dim alarmTime As DateTime = DateTime.Parse("08:00:00")
    ...
  38. [RESOLVED] Perform action only when the time exactly match

    Stupid question, but...
    I want to show my second form only when time will be exactly 08:00:00 and again at 15:00:00.
    Kinda works - it shown msgbox when time does not match, but if it match, form2...
  39. Re: Replace characers from predefined database

    This does not work:

    Dim replacements = File.ReadLines("C:\Users\acer\Desktop\database.txt").
    Select(Function(line) line.Split("-"c)).
    ...
  40. Re: Replace characers from predefined database

    Sure. Here you are:
    database

    12-232
    13FILE-2334
    14-234
    15COPY-235
    16INFO?-2364
    17_DONOTHING-237
    18MOVETO-238
Results 1 to 40 of 149
Page 1 of 4 1 2 3 4



Featured


Click Here to Expand Forum to Full Width