hemal shah


{ City } ahmedabad
< Country > india
* Profession * software developer
User No # 52427
Total Questions Posted # 1
Total Answers Posted # 2

Total Answers Posted for My Questions # 4
Total Views for My Questions # 7911

Users Marked my Answers as Correct # 4
Users Marked my Answers as Wrong # 2
Questions / { hemal shah }
Questions Answers Category Views Company eMail

Can we change back color of command button control? if yes than how it is possible?

Wipro,

4 Visual Basic 7911




Answers / { hemal shah }

Question { Infosys, 12342 }

Can we display only integers / numbers through the message
box? Is there any constraint to do so?


Answer

yes, we can display only integers/numbers through the
message box. following is the code.

'code starts here
'declaring variable which holds integer number.
dim intA as integer
'declaring variable which holds string value
dim strB as string

'now, if we have textbox control in which we enter the
value of any number which may or may not be integer.

intA=cint(val(text1.text))'text1 is name of textbox
control.
strB= cstr(intA)
msgbox strB,vbokonly,"here is integer number"
'code ends here.

paste this code in command1_click event in the form which
contains textbox control text1 and commandbutton control
command1.run the program. enter any number in textbox,
click command1 and see the result in message box. thanks.



Is This Answer Correct ?    0 Yes 1 No

Question { 4962 }

what is the difference between vb and vb.net


Answer

vb is partially object oriented. while vb.net is completely
object oriented. vb.net supports .net framework. with the
help of vb.net we can create applications like console
application, windows form applications, web base
applications etc. which is not possibe in vb.

Is This Answer Correct ?    4 Yes 1 No