Search:
Type: Posts; User: TizzyT
Search:
Search took 0.02 seconds.
-
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....
-
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...
-
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 +...
-
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
-
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...
-
Try shell although I guess it would have the same problem?
Dim ProcessID as integer = Shell("C:\Program Files\Test111\Test111Launcher\Test111.exe", Hide)
-
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...
-
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)....
-
As suggested here is the source:
Imports System.Runtime.InteropServices
Imports System.Threading
Public Class MicroTimer
Public Shared Event Elapsed()
-
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...
-
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.
-
LOL im in the middle of my semester as well.
-
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 :)
-
@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...
-
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
...
-
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...
-
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...
-
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"
...
-
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...
-
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...
-
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...
-
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...
-
Here is my MicroTimer solution I made:
http://pastebin.com/NnvJQCmK
-
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...
-
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...
-
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...
-
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....
-
VB6 like passel mentioned should be something along the lines of:
Shell("shutdown.exe /r")
-
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()
-
Strange windows defender flagged/removed Sunrise.zip after download.
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|