Click here to Skip to main content
15,885,278 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDisplaying photo from access Pin
stevemwangi22-Oct-04 5:22
stevemwangi22-Oct-04 5:22 
GeneralRe: Displaying photo from access Pin
mmcdonald22-Oct-04 9:05
mmcdonald22-Oct-04 9:05 
GeneralCommunication Pin
Daminda21-Oct-04 18:22
Daminda21-Oct-04 18:22 
GeneralRe: Communication Pin
Ray Cassick21-Oct-04 18:47
Ray Cassick21-Oct-04 18:47 
GeneralArrays and Converting String to Double Pin
ConfusedStudent21-Oct-04 16:08
ConfusedStudent21-Oct-04 16:08 
GeneralRe: Arrays and Converting String to Double Pin
Ray Cassick21-Oct-04 18:51
Ray Cassick21-Oct-04 18:51 
GeneralRe: Arrays and Converting String to Double Pin
ConfusedStudent24-Oct-04 13:45
ConfusedStudent24-Oct-04 13:45 
GeneralRe: Arrays and Converting String to Double Pin
Ray Cassick24-Oct-04 14:11
Ray Cassick24-Oct-04 14:11 
Ok, not qwuite sure what you are traying to do here but I just typed in this code and it worked fine (no conversion errors).

Private Sub nudValue_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles nudValue.ValueChanged
   txtValue.Text = CStr(nudValue.Value)
   Gas(0) = 0.9D
   Gas(1) = 1D
   Gas(2) = 1.1D

   txtGasTotal.Text = CStr(CDbl(txtGasTotal.Text) * CDbl(txtValue.Text))

End Sub


This will also work:

txtGasTotal.Text = (CDbl(txtGasTotal.Text) * CDbl(txtValue.Text)).ToString


In the second sample play close attention to where the parens are. It makes a difference.



Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.


GeneralHelp Please - Get the source code Pin
tdaigs21-Oct-04 14:31
tdaigs21-Oct-04 14:31 
GeneralOracleClient Connection Strings Pin
sdornan21-Oct-04 10:49
sdornan21-Oct-04 10:49 
Generalworks in vb 6.0 not dot net Pin
SveFro21-Oct-04 9:57
SveFro21-Oct-04 9:57 
GeneralRe: works in vb 6.0 not dot net Pin
Dave Kreskowiak22-Oct-04 3:10
mveDave Kreskowiak22-Oct-04 3:10 
GeneralRe: works in vb 6.0 not dot net Pin
SveFro22-Oct-04 12:18
SveFro22-Oct-04 12:18 
GeneralRe: works in vb 6.0 not dot net Pin
Duncan Edwards Jones25-Oct-04 1:47
professionalDuncan Edwards Jones25-Oct-04 1:47 
GeneralRe: works in vb 6.0 not dot net Pin
SveFro26-Oct-04 9:36
SveFro26-Oct-04 9:36 
GeneralNeed help with dynamic data in CDO.Message Pin
ICI-MASA21-Oct-04 4:11
sussICI-MASA21-Oct-04 4:11 
GeneralConnectinG REMOTE sql server FROM VB6 Pin
Zapss21-Oct-04 2:00
Zapss21-Oct-04 2:00 
GeneralRe: ConnectinG REMOTE sql server FROM VB6 Pin
Mekong River21-Oct-04 4:11
Mekong River21-Oct-04 4:11 
GeneralVB, ADO, XP - Which one is falling over?! Pin
Pete Belcher20-Oct-04 23:02
Pete Belcher20-Oct-04 23:02 
GeneralRe: VB, ADO, XP - Which one is falling over?! Pin
Mekong River21-Oct-04 4:07
Mekong River21-Oct-04 4:07 
GeneralRe: VB, ADO, XP - Which one is falling over?! Pin
Pete Belcher21-Oct-04 4:20
Pete Belcher21-Oct-04 4:20 
GeneralVb.Net & File Pin
Meysam.Khayatan20-Oct-04 21:18
Meysam.Khayatan20-Oct-04 21:18 
GeneralRe: Vb.Net & File Pin
Mekong River20-Oct-04 22:04
Mekong River20-Oct-04 22:04 
GeneralRe: Vb.Net & File Pin
Meysam.Khayatan21-Oct-04 2:36
Meysam.Khayatan21-Oct-04 2:36 
GeneralRe: Vb.Net & File Pin
Mekong River21-Oct-04 3:47
Mekong River21-Oct-04 3:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.