I failed to open certain form in vb.net.
Page 1 of 13 Replies - 672 Views - Last Post: 13 March 2011 - 05:55 PM
#1
I failed to open certain form in vb.net.
Posted 13 March 2011 - 12:37 AM
Hello everyone.
A week ago, I encounter an error while doing my project. I failed to open certain form in vb.net. While clicking a button to show the form this will came out.
"[An error occurred creating the form. See Exception.InnerException for details. The error is: Argument 'Expression' cannot be converted to type 'TextBox']".
Did anyone encounter this form before? If yes, what did you do?
Replies To: I failed to open certain form in vb.net.
#2
Re: I failed to open certain form in vb.net.
Posted 13 March 2011 - 03:53 AM
There is no way to diagnosis a problem with that little of info. Have to you tried to debug it? Maybe put Option Strict on so the compiler has a chance to warn you of something you maybe overlooking.
#3
Re: I failed to open certain form in vb.net.
Posted 13 March 2011 - 04:28 AM
A little code with the error won't do any harm and can help us to identify better the error. With this information, I can guess that you try to assign to a textbox a value, probably a scalar or an object that has other type than textbox. To go further with my guess, I will assume that you try to assign a string to a textbox meaning that instead of
you have something like
TextBox1.Text = aString
you have something like
TextBox1 = aString
#4
Re: I failed to open certain form in vb.net.
Posted 13 March 2011 - 05:55 PM
rj timtim, on 14 March 2011 - 09:54 AM, said:
I got it.. Thnx to all of you. I saw the certain error. Thank you very much!.
[/code]
[/code]
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|