March 25th, 2015, 05:20 PM
Have you tried CInt()
Another question would be why are you using a double? For numbers that have up to 4 decimal places Currency is generally a better choice.
Double may very well be the most...
March 25th, 2015, 12:19 AM
Private Sub Command1_Click()
Dim dblVal As Double
dblVal = 2.375
Debug.Print Int(dblVal * 100 * 10)
Debug.Print dblVal * 100 * 10
March 19th, 2015, 03:58 PM
So you mean you want to merge the reg file into the system registry then? That is the default behavior in windows but can be changed to have it open in notepad or some other program. It will not...
March 18th, 2015, 11:10 AM
I'm not sure what you mean by "run a reg file" a reg file is not executable so it can't be "ran"
Are you wanting to view? edit? merge? copy? move? delete?
March 17th, 2015, 09:22 AM
Why are you using a loop there? As is if inttotal> inttotal2 then it will show a msgbox and go into a semi endless loop showing as not responding. It should crash if you let it run long enough as it...
March 12th, 2015, 11:14 PM
If NumlvRemovedListItems = 0 Then
' here you remove an item
'here you do not remove an item
the result of course is it will only remove an item when the list is...
March 12th, 2015, 02:32 PM
When you use Set Printer= ....
You are not changing the system default printer, rather you are changing which printer VB will use during that session.
You also do not need to use the wmiservice...
March 5th, 2015, 09:47 AM
March 5th, 2015, 12:09 AM
Thread moved to .Net forum
March 4th, 2015, 12:56 PM
Yeah that is pretty far off. Should result in an endless loop.
Where is the math?
Your var intfactorial will be set to true if the text box is empty or false if it is not empty
You code will...
March 4th, 2015, 11:20 AM
Looks pretty simple, you just need to construct a loop that will multiply by each number needed and keep track of the total.
Show what you have so far
February 24th, 2015, 07:57 PM
Use the datatable with the order by clause like in the first piece of code and then step through the data
February 24th, 2015, 07:52 PM
You can have it use a lic file so that it can not be used in the designer without the proper lic present.
February 11th, 2015, 02:22 PM
You must make sure that you have closed the socket before you try to use it to make another connection.
February 5th, 2015, 04:09 PM
Thread moved from VB6 section to VB.Net section.
Not sure what you mean by attach folder or file.
You can certainly place code in the related click events to open a folder or file of your...
January 30th, 2015, 09:02 AM
Yes you use the RaiseEvent method
January 29th, 2015, 11:12 PM
If it has no graphics then why an activex control? A class would seem to be a better choice.
January 25th, 2015, 05:29 PM
You are dealing with an array of numbers.
Sales(0) would be 5601 Sales(1) would be 8502 and so on for each number in the array
The code is simply looping through the array, formatting the...
January 18th, 2015, 09:46 AM
You need to make it hex
TextBox2.Text = Hex (Val(TextBox1.Text) - Val("2222"))
January 13th, 2015, 10:13 PM
You need to get that part in red off that line.
If you want to add to the score then that is one line
display the score should be another line.
Also note that you should not start more than one...
January 13th, 2015, 09:44 AM
Actually I use 2008 also. One major reason is that they dropped support for Windows CE and Windows Mobile devices after 2008.
While I have not had a need to go backwards I am thinking that the...