I just wanna ask about this ... i think this is very noob question ... but is this the new VB.Net ? is this the whole setups ?
Printable View
I just wanna ask about this ... i think this is very noob question ... but is this the new VB.Net ? is this the whole setups ?
Yes.
Thank you ... Looks nice, wonderful :D
By the way ... instead the VB.Net Library "F2" is there any site that include all functions of this VB.Net .... so i can start to learn on it ..... its better if there is a sample ^^ ...
Excuse me... i have 2 problems
1. When im going to initialize why it keep telling me that its "Unused Local variable"
2. What is the correct syntax in VB.NetCode:
Dim timeAfter as Single, timeBefore as Single, inputNum as Single
Dim timeFin as String
Im Using VB 6.0
Code:
Msgbox "Are you sure?",vbyesno,"Confirmation"
If vbyes then
me.show
unload me
ElseIf vbno then
me.deactivate
End If
What is the correct syntax Using .Net
Same with thisCode:
Msgbox "Are you saure?", MsgBoxStyle.YesNo, "Confirmation"
If MsgboxResult.Yes Then
Me.show()
Dialog.Close()
ElseIf MsgboxResult.No Then
Me.Close()
End If
Code:
Msgbox "Are you saure?", MsgBoxStyle.YesNo, "Confirmation"
If Msgboxstyle.YesNo = MsgboxResult.Yes Then
Me.show()
Dialog.Close()
ElseIf Msgboxstyle.YesNo = MsgboxResult.No Then
Me.Close()
End If
1. Initialise variables only when you have a meaningful value to give them. Otherwise, you run the risk of attempting to access them when they are uninitialised. The compiler warns you of this.
2.
Code:If (MessageBox.Show(_
"Are you sure?", _
"Confirmation", _
MessageBoxButtons.YesNo, _
MessageBoxIcon.Exclamation _
) = DialogResult.Yes) Then
' code here
End If
Thank you for your rely ..... itry that code but theres an error ... so i made this but why theres only one dialogresult prompting which is "You regret it"
this is my code
#3 Question .... ALso what is the correct syntax now about timerCode:
MsgBox("Are you sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation)
If Windows.Forms.DialogResult.Yes Then
MsgBox("You regret this")
ElseIf Windows.Forms.DialogResult.No Then
MsgBox("Good Choice")
End If
coz when i use this code in VB 6.0 its ok ... it prompting how many secs. did click the button this is my code
Using VB 6.0
but when use it in VB.Net it says "Timer is a type cannot use as an expression"Code:
Dim timeAfter as Single, timeBefore as Single, num as Single
timeAfter = Timer
Msgbox "Do you want to know how many secs. did you clicked me?", VBExclamation
timeBefore = Timer
num = timeBefore - timeAfter
Msgbox "It took " & num & " sec."
CheersCode:
Dim timeAfter as Single, timeBefore as Single, num as Single
timeAfter = Timer
Msgbox "Do you want to know how many secs. did you clicked me?", VBExclamation
timeBefore = Timer
num = timeBefore - timeAfter
Msgbox "It took " & num & " sec."