Click here to Skip to main content
16,006,006 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionConvert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Paramu197318-Apr-11 5:23
Paramu197318-Apr-11 5:23 
AnswerRe: Convert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Simon_Whale18-Apr-11 5:33
Simon_Whale18-Apr-11 5:33 
JokeRe: Convert From Vb.Net 2008 To Vb.Net2010 [DMO Problem] Pin
Andy_L_J24-Apr-11 1:52
Andy_L_J24-Apr-11 1:52 
QuestionLogin Project Help... Pin
dzhello18-Apr-11 4:01
dzhello18-Apr-11 4:01 
AnswerRe: Login Project Help... Pin
Dave Kreskowiak18-Apr-11 4:38
mveDave Kreskowiak18-Apr-11 4:38 
AnswerRe: Login Project Help... Pin
Simon_Whale18-Apr-11 5:31
Simon_Whale18-Apr-11 5:31 
QuestionProject Help! Pin
Member 784273314-Apr-11 16:15
Member 784273314-Apr-11 16:15 
AnswerRe: Project Help! Pin
Luc Pattyn15-Apr-11 0:17
sitebuilderLuc Pattyn15-Apr-11 0:17 
Inside orderButton_Click() the total isn't changing at all;
a sequence of statements such as totalLabel.Text = total + 19.99 is modifying what can be seen in the totalLabel label, it doesn't do anything to the total variable. And the GUI will only show the outcome of the last assignment to totalLabel.Text

What you should have is like so:
Dim total As Double = 0
If ... Then
   total = total + 199.5
If ... Then
   total = total + 370
...
totalLabel.Text = total.ToString("C2")


That way, the total variable starts at a known value (zero), and increases by accumulating the selected prices. Note how the totalLabel control is used only once, to display the result, when all calculations have finished.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

AnswerRe: Project Help! Pin
_Erik_18-Apr-11 3:19
_Erik_18-Apr-11 3:19 
Questionvisual basic data report Pin
sandeepkumardadwal11-Apr-11 19:30
sandeepkumardadwal11-Apr-11 19:30 
AnswerRe: visual basic data report Pin
Abhinav S11-Apr-11 21:00
Abhinav S11-Apr-11 21:00 
AnswerRe: visual basic data report Pin
thatraja12-Apr-11 18:36
professionalthatraja12-Apr-11 18:36 
QuestionBest way to return class at runtime - based on value Pin
DeepToot7-Apr-11 7:23
DeepToot7-Apr-11 7:23 
AnswerRe: Best way to return class at runtime - based on value Pin
Ali Al Omairi(Abu AlHassan)7-Apr-11 11:16
professionalAli Al Omairi(Abu AlHassan)7-Apr-11 11:16 
AnswerRe: Best way to return class at runtime - based on value Pin
Eddy Vluggen8-Apr-11 0:31
professionalEddy Vluggen8-Apr-11 0:31 
GeneralRe: Best way to return class at runtime - based on value Pin
Ali Al Omairi(Abu AlHassan)10-Apr-11 10:06
professionalAli Al Omairi(Abu AlHassan)10-Apr-11 10:06 
GeneralRe: Best way to return class at runtime - based on value Pin
DeepToot11-Apr-11 4:05
DeepToot11-Apr-11 4:05 
QuestionWrite special cahrs from database to text file using vb.net Pin
vijay24825-Apr-11 5:30
vijay24825-Apr-11 5:30 
AnswerRe: Write special cahrs from database to text file using vb.net Pin
Luc Pattyn5-Apr-11 5:53
sitebuilderLuc Pattyn5-Apr-11 5:53 
GeneralRe: Write special cahrs from database to text file using vb.net Pin
Thomas Krojer5-Apr-11 21:05
Thomas Krojer5-Apr-11 21:05 
GeneralRe: Write special cahrs from database to text file using vb.net Pin
vijay24825-Apr-11 21:41
vijay24825-Apr-11 21:41 
GeneralRe: Write special cahrs from database to text file using vb.net Pin
riced5-Apr-11 23:36
riced5-Apr-11 23:36 
GeneralRe: Write special cahrs from database to text file using vb.net Pin
vijay24826-Apr-11 0:05
vijay24826-Apr-11 0:05 
Questionfind window lock time and unlock time? Pin
kartheeee5-Apr-11 1:23
kartheeee5-Apr-11 1:23 
AnswerRe: find window lock time and unlock time? Pin
dan!sh 5-Apr-11 1:45
professional dan!sh 5-Apr-11 1:45 

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.