Click here to Skip to main content
15,924,195 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: sending data through the serial port Pin
wtfskh18-May-06 2:22
wtfskh18-May-06 2:22 
GeneralRe: sending data through the serial port Pin
wtfskh18-May-06 10:42
wtfskh18-May-06 10:42 
GeneralRe: sending data through the serial port Pin
Steve Pullan18-May-06 14:58
Steve Pullan18-May-06 14:58 
GeneralRe: sending data through the serial port [modified] Pin
wtfskh22-May-06 2:21
wtfskh22-May-06 2:21 
Questiondynamic listbox event not firing Pin
gooseman11217-May-06 7:01
gooseman11217-May-06 7:01 
QuestionKeyDown and Timer Tick events cant work together Pin
KaKa'17-May-06 6:18
KaKa'17-May-06 6:18 
AnswerRe: KeyDown and Timer Tick events cant work together Pin
Joshua Quick17-May-06 10:23
Joshua Quick17-May-06 10:23 
QuestionVB Code - Ordering Calaculation Pin
NickiG17-May-06 5:09
NickiG17-May-06 5:09 
Hi, been trying to add code to perform a calculation using Check boxes and Radio buttons and using the If, And, Then and Elseif function statements which do appear to work but I don't think that this is the right way to code for this type of calculation (as it goes on and on with the different types of variables that you could have) but don't understand enough to use the DIM functionilty and wondered if someone could provide an example based on some sample code below:

'The following statements calculate the Price of individual and multi-selected options and volumes
If CheckBox7.Checked And RadioButton1.Checked = True Then
txtResult.Text = 1055 * 1
ElseIf CheckBox7.Checked And RadioButton2.Checked = True Then
txtResult.Text = 1055 * 2
ElseIf CheckBox7.Checked And RadioButton3.Checked = True Then
txtResult.Text = 1055 * 4
ElseIf CheckBox7.Checked And RadioButton4.Checked = True Then
txtResult.Text = 1055 * 8

ElseIf CheckBox1.Checked And CheckBox2.Checked And RadioButton1.Checked = True Then
txtResult.Text = 300 * 1 + 120 * 1
ElseIf CheckBox1.Checked And CheckBox2.Checked And RadioButton2.Checked = True Then
txtResult.Text = 300 * 2 + 120 * 2
ElseIf CheckBox1.Checked And CheckBox2.Checked And RadioButton3.Checked = True Then
txtResult.Text = 300 * 4 + 120 * 4
ElseIf CheckBox1.Checked And CheckBox2.Checked And RadioButton4.Checked = True Then
txtResult.Text = 300 * 8 + 120 * 8

ElseIf CheckBox1.Checked And CheckBox3.Checked And RadioButton1.Checked = True Then
txtResult.Text = 300 + 15 * 1
ElseIf CheckBox1.Checked And CheckBox3.Checked And RadioButton2.Checked = True Then
txtResult.Text = 300 * 2 + 15 * 2
ElseIf CheckBox1.Checked And CheckBox3.Checked And RadioButton3.Checked = True Then
txtResult.Text = 300 * 4 + 15 * 4
ElseIf CheckBox1.Checked And CheckBox3.Checked And RadioButton4.Checked = True Then
txtResult.Text = 300 * 8 + 15 * 8
ElseIf CheckBox1.Checked And CheckBox4.Checked And RadioButton1.Checked = True Then
txtResult.Text = 300 * 1 + 5 * 1

Any Help appreciated. Big Grin | :-D

Thanks

AnswerRe: VB Code - Ordering Calaculation Pin
Rizwan Bashir17-May-06 5:38
Rizwan Bashir17-May-06 5:38 
QuestionRemoting - Authentication Failure Pin
dlarkin7717-May-06 4:24
dlarkin7717-May-06 4:24 
AnswerRe: Remoting - Authentication Failure Pin
Rizwan Bashir17-May-06 5:41
Rizwan Bashir17-May-06 5:41 
GeneralRe: Remoting - Authentication Failure Pin
dlarkin7717-May-06 6:03
dlarkin7717-May-06 6:03 
QuestionLookupAccountSid API call Pin
f.duncan17-May-06 3:56
f.duncan17-May-06 3:56 
QuestionHow can I get patterns of viruses? Pin
JUNEYT17-May-06 3:46
JUNEYT17-May-06 3:46 
Questionsizing handles Pin
safalmittal17-May-06 3:28
safalmittal17-May-06 3:28 
AnswerRe: sizing handles Pin
Rizwan Bashir17-May-06 5:47
Rizwan Bashir17-May-06 5:47 
QuestionAttempted to read or write protected memory Pin
dptalt17-May-06 2:54
dptalt17-May-06 2:54 
AnswerRe: Attempted to read or write protected memory Pin
Rizwan Bashir17-May-06 5:56
Rizwan Bashir17-May-06 5:56 
QuestionCould not update datasource using oledbcommandbuilder Pin
hisuman10017-May-06 2:15
hisuman10017-May-06 2:15 
AnswerRe: Could not update datasource using oledbcommandbuilder Pin
adrianamaria17-May-06 16:54
adrianamaria17-May-06 16:54 
Questionget IP addressof remote host(not URL) Pin
QuickDeveloper17-May-06 0:09
QuickDeveloper17-May-06 0:09 
AnswerRe: get IP address from name(not URL) Pin
albCode17-May-06 0:37
albCode17-May-06 0:37 
QuestionHow to use Chart with VB.Net by Coding? Pin
roitha17-May-06 0:05
roitha17-May-06 0:05 
Questionhow to get value from valuemember that is property of combobox Pin
roitha16-May-06 22:41
roitha16-May-06 22:41 
QuestionVB.NET Pin
Wankies16-May-06 20:43
Wankies16-May-06 20:43 

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.