Damage variable
-
i send variable by this fuction dim ss as string = textbox1.text // here imagen i put "2415666:" /// here code whcih minimaze the form of vb.net System.Windows.Forms.SendKeys.SendWait("ss")// here the code which different and change . and after many click of button which make this action the string will print as "245566654" or some thing wrong .. the question why the variable printed like this .... ///here code whcih minimaze the form of vb.net kilany
-
i send variable by this fuction dim ss as string = textbox1.text // here imagen i put "2415666:" /// here code whcih minimaze the form of vb.net System.Windows.Forms.SendKeys.SendWait("ss")// here the code which different and change . and after many click of button which make this action the string will print as "245566654" or some thing wrong .. the question why the variable printed like this .... ///here code whcih minimaze the form of vb.net kilany
Mr kilany wrote:
System.Windows.Forms.SendKeys.SendWait("ss")//
You didn't sned the contents of your
ss
variable. You sent the string "ss" to the other app (without the quotes). The line should look like this:SendKeys.SendWait(ss) ' no quotes!!
Dave Kreskowiak Microsoft MVP - Visual Basic