me ne ye thred phely "Ask an Expert" Section me post kiya lakin wahan kisi ne bhi jawab nahi diya ab yahan post kr raha hon
me ne ye thred phely "Ask an Expert" Section me post kiya lakin wahan kisi ne bhi jawab nahi diya ab yahan post kr raha hon
asan hai bhai ic tareeqey se kar lein
dim a as integer 'a ko aap fix b kar saktey hai
a=7
txttotal.text = txtnumber.text*7
:::[FONT="Fixedsys"]Forget injuries but never forget kindness[/FONT]:::
[CENTER] [SIGPIC][/SIGPIC][/CENTER]
first of all whats the point of variable
if you are not gona use it?
Secondly, it isnt a good way to multiply
text of the text box to a number, incase
user enters a character that isnt a number
your program will break; (run time error),
Thirdly you may have noticed that he
isnt using any button, means he asked
for a way to automatically get answers,
(you didnt provided dat,)
bhai aap yeh code try karien;
From the code above as you mght have noticed,Code:Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged Label1.Text = Val(TextBox1.Text) * 7 End Sub
dat aap ko yeh code textbox1 ke TextChange event mein
likhna pare ga,
-Saif
You realy need to learn some VB Basics,
anyway, i downloaded and upgraded your
project to VB 2008 and found out dat
you have different names of textboxes,
Try this code it will work:
double click on first textbox and enter this code,Code:Text2.Text = Val(Text1.Text) * 7
-Saif
aap ko program bana k deta hon
Ye rha aap ka bana banaya program,,,,.....//// ab khush? sirf changing kar lo
It is also useful for me!
koshish jari rakhein
it is also usfl for me thanks
dear use onlostfocus(), onedit(), onchange() event. en mein se koi aik use kar loo.
Bookmarks