help plz

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 6
Reputation: mahvish is an unknown quantity at this point 
Solved Threads: 0
mahvish mahvish is offline Offline
Newbie Poster

help plz

 
0
  #1
Nov 16th, 2007


hello mam/sir

how to get different results by cliking the same button in vb.net.for eg if iam clicking button1 to get 'xyz' in txtbox1 then how to get some 'abc' in the same txtbox bycliking the same button

thnqqqqqqqqq
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 9
Reputation: MehdiAnis is an unknown quantity at this point 
Solved Threads: 0
MehdiAnis MehdiAnis is offline Offline
Newbie Poster

Re: help plz

 
0
  #2
Nov 18th, 2007
You can have two different function to get ABC and XYZ. In OnButtonClick function you decide which function to call. Exsmple:

Private Sub ButtonClicked_Method(..) Handles MyButton_Click
If (today=sunday) then
GetABC()
Else
GetXYZ()
End If
End Sub

Private Sub GetABC()
txtMyTextBox.Text = "ABC"
End Sub

Private Sub GetXYZ()
txtMyTextBox.Text = "XYZ"
End Sub
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 8
Reputation: mufliha is an unknown quantity at this point 
Solved Threads: 0
mufliha mufliha is offline Offline
Newbie Poster

Re: help plz

 
0
  #3
Nov 19th, 2007
thnkuuuuuuuuu
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC