Type: Posts; User: Niya
Search took 0.01 seconds.
April 29th, 2015, 02:43 AM
You're supposed to call Add:-
lblAnswer.Text = Add(decNumber1, decNumber2).ToString
April 28th, 2015, 03:51 PM
You mean you don't know how to use threads and you have a Thread object created in your code ?
April 28th, 2015, 03:46 PM
There is no where in that code where you perform any addition. Of course it would be 0.
April 28th, 2015, 03:11 AM
Here a partial implementation of your assignment. Note that it doesn't adhere to all the requirements made by your instructor. You're gonna have to fix those:-
Public Class Form1
April 28th, 2015, 02:58 AM
This might be your problem:-
Public Function Add(ByVal decAdd As Decimal) As Decimal
Return decAdd = (decNumber1 + decNumber2)
Firstly, you need two parameters if that...
April 28th, 2015, 02:47 AM
I'm assuming your canvas is some kind of control or a Form. You need to set the DoubleBuffered property on this control/Form to True to prevent flicker. Also, don't delete the previous frame when...
April 28th, 2015, 02:44 AM
I'm going to wager that your C++ calls are allocating some native handles. For example, file handles. The .Net GC doesn't know about these resources. That means you have to clean them up yourself....
April 28th, 2015, 02:39 AM
You can use that code and some simple multi-threading to achieve this.
April 28th, 2015, 02:37 AM
Maybe something in this thread can help.
April 28th, 2015, 02:32 AM
Here is some sample code that will show a message every hour from when the app was started:-
Public Class Form1
Private g_dtStart As Date
April 28th, 2015, 02:15 AM
Wow....can't I go anywhere on the internet without seeing this troll thread ? VBForums wasn't enough ?
You're supposed to pass delegates I believe. Not Longs or IntPrts. Define a delegate that corresponds with the callback expected and declare the API's parameter to use this delegate as its type. When...
October 17th, 2013, 08:52 AM
Well arrays are fixed in VB.Net. When you need to add items to a list its generally recommended you use a List(Of T). It has an Add method.
October 17th, 2013, 08:45 AM
Catherine Zeta-Jones is a close second.
October 17th, 2013, 08:41 AM
The answer is obviously Jessica Alba.
August 25th, 2013, 04:23 PM
Nvm, I see you asked the same question over at VBForums and got some assistance.
August 25th, 2013, 04:03 PM
If the list is tied closely to the instance of the Form then it should definitely be a field of the Form class. However, if the list is part of some global state then I would opt to use a property of...
August 25th, 2013, 03:53 PM
How are you communicating with this web service ?
August 25th, 2013, 03:48 PM
The FormClosing event can provide info on how the Form is going to be closed. That event passes a FormClosingEventArgs which has a property called CloseReason.
August 25th, 2013, 03:43 PM
Let 'em watch some George Carlin clips. He is really good at using truth as comedy. He's not PG-13 though.
August 21st, 2013, 03:15 AM
Alternatively you can use LINQ to sort the array. IMO its the better choice because of its flexibility. You can specify a function for it to use in a transformation. Basically, you can tell it how to...
August 6th, 2013, 12:27 PM
Those loops you are using are called spin-waits and they are strongly discouraged for the very reason you are concerned about. Essentially they consume a hell of a lot of CPU cycles while not doing...
August 6th, 2013, 02:17 AM
Here, I posted a suggestion in the thread you have over @ VBForums.
July 31st, 2013, 06:30 AM
Why would a guy with 99/100 white FB friends be racist ? That's not enough to go on.
March 4th, 2013, 02:05 AM
Hmm...well its kinda like counting don't you think ? Imagine we only had 4 symbols for representing basic numbers:-
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.