Search:

Type: Posts; User: TizzyT

Search: Search took 0.02 seconds.

  1. Re: [VS 2015] Command line to start with new project ready to use?

    You could make a program which creates the project files needed. I am doing that now (actually already done this specific part just not the whole program) as a collaboration program for my group....
  2. Replies
    3
    Views
    662

    Re: Not able to append logs to a file.

    I agree with @jmcilhinney, The constructor you used already specifies that you are appending to the file you specified as the first argument and the constructor clearly states that if the file...
  3. Replies
    10
    Views
    4,055

    VS 2015 Re: Need help with calculator

    Wow I just didn't think about it since I CnP the condition from OP lol. Also to note String concatenation in VB.Net unlike in other languages is & (which I'm sure everyone already knows) instead of +...
  4. Re: Easy way to get icons used in Windows forms apps?

    You can get the default Icon for each associated filetype.
    https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/how-to-extract-the-icon-associated-with-a-file-in-windows-forms
  5. Replies
    11
    Views
    1,036

    VS 2017 Re: Application Security Concerns

    If you are storing credentials then dont store anything in plain text besides the username. Things should be stored as follows UserName:PasswordHash:PasswordSalt. Furthermore never specify which...
  6. Re: How to open a program in a hidden state?

    Try shell although I guess it would have the same problem?

    Dim ProcessID as integer = Shell("C:\Program Files\Test111\Test111Launcher\Test111.exe", Hide)
  7. Replies
    10
    Views
    4,055

    VS 2015 Re: Need help with calculator

    Like others have mentioned I would parse the text to an integer at least.
    Hint: Integer.Parse() or Integer.TryParse().

    if its short code you want I guess its doable although short code doesn't...
  8. Thread: VB and Monogame

    by TizzyT
    Replies
    13
    Views
    2,633

    VS 2015 Re: VB and Monogame

    Hmm seeing as no one really answer the part about the sample I will a template here for you to "get started" (yes I know its an old thread)....
  9. Replies
    9
    Views
    12,697

    Re: MicroTimer, Resource Friendly Accurate Timer

    As suggested here is the source:


    Imports System.Runtime.InteropServices
    Imports System.Threading

    Public Class MicroTimer

    Public Shared Event Elapsed()
  10. Replies
    9
    Views
    12,697

    Re: MicroTimer, Resource Friendly Accurate Timer

    Okay I know its been a while but I finally got around to working on my MicroTimer again and now it uses about 0.0% CPU (on my system). I also got rid of the Async/Awaits. This also allows you to...
  11. Thread: -----------

    by TizzyT
    Replies
    27
    Views
    3,185

    Re: Stuck on programming assignment!

    JamezyH did you look at my example code?
    It provides classes and if statements and loops etc, I think everything that was asked. All you have to do i figure is make a form application from it.
  12. Thread: -----------

    by TizzyT
    Replies
    27
    Views
    3,185

    Re: Stuck on programming assignment!

    LOL im in the middle of my semester as well.
  13. Replies
    9
    Views
    12,697

    Re: MicroTimer, Resource Friendly Accurate Timer

    Sure @passel, After I get home from class today I'll change those to use the threading.thread class. It would be great news if my code was of some use to people :)
  14. Replies
    9
    Views
    12,697

    Re: MicroTimer, Resource Friendly Accurate Timer

    @passel is correct. The looping only happens after the time (in ms) has elapsed which calls that loop. The loop will then poll (only within that ms, which is how it can achieve <1ms precision) the...
  15. Replies
    11
    Views
    2,617

    Re: Image format and drawing speed

    Don't know if this will help:

    Imports System.Drawing
    Imports System.Drawing.Imaging
    Imports System.Runtime.InteropServices
    Public Class LockBitmap
    Private source As Bitmap = Nothing
    ...
  16. Replies
    13
    Views
    2,779

    VS 2015 Re: Working with coordinates?

    Yeah I realize Decimal is way out of the need but I saw you guys dabbling in precision so I though hey, might as well use the most precise available type lol. And computations with Decimals...
  17. Replies
    9
    Views
    12,697

    MicroTimer, Resource Friendly Accurate Timer

    So I was working on a parallel game a while back and had the need for an accurate timer as .Net doesn't provide one out of the 3 usual timer classes. I originally started out using a typical loop and...
  18. Replies
    8
    Views
    1,828

    Re: Replace Function to return the count

    Here is a Naive way of doing it but the logic is there if you aren't familiar with RegEx:


    Module NaiveReplaceCount
    Sub Main()
    Dim text As String = "box box"
    ...
  19. Thread: -----------

    by TizzyT
    Replies
    27
    Views
    3,185

    Re: Stuck on programming assignment!

    I quickly threw this together in a Console Application. You can use it as an example and/or reference if applicable:


    Module JamezyHProgrammingAssignment

    Private WithEvents SM As New...
  20. Thread: Frustrating.

    by TizzyT
    Replies
    11
    Views
    1,358

    Re: Frustrating.

    DllImport is most likely what you are looking for, P-Invoke should be what to look up.

    Here is an example with winmm


    [DllImport("winmm.dll")]
    Private Shared Function...
  21. Replies
    13
    Views
    2,779

    VS 2015 Re: Working with coordinates?

    Maybe construct some kind of PointM (Point Decimal) struct?



    Public Structure PointM
    Public X as Decimal
    Public Y as Decimal
    Public Sub New(Byval X As Decimal, Byval Y As...
  22. Replies
    36
    Views
    6,179

    Re: timer loses one second every tick!

    The Built in Timers aren't accurate if you need more accuracy you can try using the multimedia timer which is accurate to about 1ms, or if you need even more accuracy you can try my MicroTimer.

    My...
  23. Replies
    11
    Views
    33,103

    Re: Drawing an image using XNA in VB.Net

    Here is my MicroTimer solution I made:
    http://pastebin.com/NnvJQCmK
  24. Thread: Reboot

    by TizzyT
    Replies
    16
    Views
    2,182

    Re: Reboot

    The only ways I know of to auto launch a program is through the registry or the startup folder. As for the automation knowing that you restarted the computer there are many ways you can go about...
  25. Thread: Reboot

    by TizzyT
    Replies
    16
    Views
    2,182

    Re: Reboot

    Sure a button would be easier but that is outside the scope of "I want to get back to the same point it was at before the reboot. I see this on other applications that require a reboot and then after...
  26. Thread: Reboot

    by TizzyT
    Replies
    16
    Views
    2,182

    Re: Reboot

    What do you mean the same point?
    If you mean that exact state then you will need to save information somewhere which represents the data you have already accumulated prior ex: serialization etc. But...
  27. Thread: Reboot

    by TizzyT
    Replies
    16
    Views
    2,182

    Re: Reboot

    the -t or /t specifies the duration until shutdown/restart should happen. the 00 basically means instantly.
    Alternatively you can specify the -f or /f for a forced shutdown/restart....
  28. Thread: Reboot

    by TizzyT
    Replies
    16
    Views
    2,182

    Re: Reboot

    VB6 like passel mentioned should be something along the lines of:
    Shell("shutdown.exe /r")
  29. Replies
    1
    Views
    21,681

    Re: [Vb.Net] Managed Game Loop

    But isn't this essentially just a:



    Public Event Tick()

    Dim Interval as Long = CLng(stopwatch.Frequency / 60)
    Dim NextTime as Long = 0

    Public Sub Start()
  30. Re: Demo style 4k Procedural Graphics for VB6. Sources included.

    Strange windows defender flagged/removed Sunrise.zip after download.
  31. Replies
    11
    Views
    33,103

    Re: Drawing an image using XNA in VB.Net

    Good to know that isn't being used anymore, and that game loop contribution should be linked imo because the information here is dated and not optimal. I don't mean The forms timer or the thread...
  32. Replies
    11
    Views
    33,103

    Re: Drawing an image using XNA in VB.Net

    I know this thread is old but...
    The GameLoop should not be ran in an infinite. This is very inefficient and eats CPU. It is better to use a type of Timer instead. There are several timers you can...
Results 1 to 32 of 32



Click Here to Expand Forum to Full Width