Invalid Parameter Used

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I have several projects that have an item listed in the taks list that says
"Invalid parameter used". It points to the first line of a class definition,
"Public Class pPreview", but doesn't cause an error or give me any
indication of what the problem could be.

The class is defined by:

Public Class pPreview
Inherits System.Windows.Forms.Form

' other stuff here

End Class

Thanks in advance for your help

Dave
 
Hi Dave,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you are getting a "Invalid parameter
used" prompt in the task list. If there is any misunderstanding, please
feel free to let me know.

Based on the code you have provided, I didn't see anything wrong. So I
suggest you try to rebuild the project to see if the prompt message in the
task list goes away. Does it cause any compile time error?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
No compile errors Kevin. And you have it right. When I double click the item
in the task list it sends me to the beginning of the line that contains
Public Class pPreview.

Doesn't seem to cause any trouble but I can't get rid of it.

Dave
 
Hi Dave,

This tast might be a user created task. You can try the following steps to
show the build errors only.

1. Right click on the Tast list.
2. Select Show tasks/Build Errors

Does it get away after doing so?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Still there Kevin. Is it possible that I've done something 'within' the
class definition that would cause this?

Dave
 
Hi Dave,

Did you see any error or warning messages that might be associated with
this task? It's weird that the task remains there if there is no error or
warning messages. You can also try to check if the project has been built
during the whole build process by right clicking on the solution in the
solution explorer and select properties. In the left pane, select
Configuration Properties/Configuration. In the right pane, check the build
checkbox of the project that generates the task.

It's hard to troubleshoot on this issue, since I cannot repro it on my
machine. So I suggest you just leave as it is, if it doesn't affect the
building process.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Ok Kevin, thanks for your help. I'll check the configuration properties and
if I can't get rid of it after that I won't worry too much about it. It's
not really causing me any trouble that I'm aware of.

Dave
 
You're welcome, Dave. Thanks for sharing your experience with all the
people here. If you have any questions, please feel free to post them in
the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top