Click here to Skip to main content
15,917,859 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFew Questions " dialog box" " global variable" Pin
Ultima Reborn17-Oct-06 5:52
Ultima Reborn17-Oct-06 5:52 
AnswerRe: Few Questions " dialog box" " global variable" Pin
Christian Graus17-Oct-06 7:08
protectorChristian Graus17-Oct-06 7:08 
AnswerRe: Few Questions " dialog box" " global variable" Pin
UltraCoder17-Oct-06 7:52
UltraCoder17-Oct-06 7:52 
GeneralRe: Few Questions " dialog box" " global variable" Pin
Dave Kreskowiak17-Oct-06 10:02
mveDave Kreskowiak17-Oct-06 10:02 
AnswerRe: Few Questions " dialog box" " global variable" Pin
UltraCoder17-Oct-06 10:11
UltraCoder17-Oct-06 10:11 
GeneralRe: Few Questions " dialog box" " global variable" [modified] Pin
Dave Kreskowiak17-Oct-06 10:25
mveDave Kreskowiak17-Oct-06 10:25 
QuestionRe: Few Questions "dialog box""global variable" Pin
Ultima Reborn17-Oct-06 10:28
Ultima Reborn17-Oct-06 10:28 
AnswerRe: Few Questions "dialog box""global variable" Pin
UltraCoder17-Oct-06 10:56
UltraCoder17-Oct-06 10:56 
Here is how you should do it:

<br />
Dim BoxCall As MsgBoxResult<br />
BoxCall = MsgBox("Message", MsgBoxStyle.YesNo)<br />
If BoxCall = MsgBoxResult.Yes Then<br />
If System.Windows.Forms.DialogResult.Yes = Windows.Forms.DialogResult.Yes Then<br />
txtTotal.Text = CStr(rlMemory)<br />
Form2.txtTotalCost.Text = CStr(rlMemory)<br />
Form2.txtDiscount.Clear()<br />
Form2.Show()<br />
Else<br />
'Code for "No" goes here. Leave blank if no procedure is needed.<br />
End If<br />


And you said that you want rlmemory to go to 0? If so, then use this:
rlmemory = "0".

Hope this helps.


GeneralRe: Few Questions "dialog box""global variable" Pin
Christian Graus17-Oct-06 12:44
protectorChristian Graus17-Oct-06 12:44 
GeneralRe: Few Questions "dialog box""global variable" Pin
Dave Kreskowiak17-Oct-06 17:41
mveDave Kreskowiak17-Oct-06 17:41 
GeneralRe: Few Questions &quot;dialog box&quot;&quot;global variable&quot; [modified] Pin
Ultima Reborn17-Oct-06 14:33
Ultima Reborn17-Oct-06 14:33 
GeneralRe: Few Questions "dialog box" global variable Pin
UltraCoder17-Oct-06 15:17
UltraCoder17-Oct-06 15:17 
AnswerRe: Few Questions &quot; dialog box&quot; &quot; global variable&quot; Pin
nlarson1117-Oct-06 17:19
nlarson1117-Oct-06 17:19 
GeneralRe: Few Questions &quot; dialog box&quot; &quot; global variable&quot; Pin
UltraCoder17-Oct-06 20:35
UltraCoder17-Oct-06 20:35 
GeneralRe: Few Questions &quot; dialog box&quot; &quot; global variable&quot; Pin
Dave Kreskowiak18-Oct-06 1:41
mveDave Kreskowiak18-Oct-06 1:41 
GeneralRe: Few Questions &quot; dialog box&quot; &quot; global variable&quot; Pin
nlarson1118-Oct-06 3:19
nlarson1118-Oct-06 3:19 
Questionhow to create hotkey with combination of letters Pin
Ali 11017-Oct-06 5:39
Ali 11017-Oct-06 5:39 
AnswerRe: how to create hotkey with combination of letters Pin
Dave Kreskowiak17-Oct-06 6:05
mveDave Kreskowiak17-Oct-06 6:05 
AnswerRe: how to create hotkey with combination of letters Pin
UltraCoder17-Oct-06 8:04
UltraCoder17-Oct-06 8:04 
GeneralRe: how to create hotkey with combination of letters Pin
Dave Kreskowiak17-Oct-06 10:00
mveDave Kreskowiak17-Oct-06 10:00 
QuestionCreate folder with current date Pin
jds120717-Oct-06 5:15
jds120717-Oct-06 5:15 
AnswerRe: Create folder with current date Pin
UltraCoder17-Oct-06 8:12
UltraCoder17-Oct-06 8:12 
AnswerRe: Create folder with current date Pin
Dave Kreskowiak17-Oct-06 9:59
mveDave Kreskowiak17-Oct-06 9:59 
GeneralRe: Create folder with current date Pin
jds120717-Oct-06 11:01
jds120717-Oct-06 11:01 
GeneralRe: Create folder with current date [modified] Pin
UltraCoder17-Oct-06 15:26
UltraCoder17-Oct-06 15:26 

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.