3 Replies - 1193 Views - Last Post: 13 March 2011 - 05:55 PM Rate Topic: -----

#1 rj timtim  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 10-March 11

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?

Is This A Good Question/Topic? 0
  • +

Replies To: I failed to open certain form in vb.net.

#2 _HAWK_  Icon User is offline

  • Master(Of Foo)
  • member icon

Reputation: 1067
  • View blog
  • Posts: 4,174
  • Joined: 02-July 08

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.
Was This Post Helpful? 0
  • +
  • -

#3 Ionut  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 385
  • View blog
  • Posts: 1,057
  • Joined: 17-July 10

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
TextBox1.Text = aString


you have something like
TextBox1 = aString


Was This Post Helpful? 1
  • +
  • -

#4 rj timtim  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 10-March 11

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]

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1