473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Invalid Parameter Used

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
Nov 22 '05 #1
7 1222
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."

Nov 22 '05 #2
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

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:l2**************@TK2MSFTNGXA02.phx.gbl...
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."

Nov 22 '05 #3
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."

Nov 22 '05 #4
Still there Kevin. Is it possible that I've done something 'within' the
class definition that would cause this?

Dave
"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:lF**************@TK2MSFTNGXA03.phx.gbl...
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."

Nov 22 '05 #5
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."

Nov 22 '05 #6
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

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:aC*************@TK2MSFTNGXA03.phx.gbl...
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."

Nov 22 '05 #7
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."

Nov 22 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Wally | last post by:
I am trying to display images from an Access 2000 database and I get an error "Invalid Parameter Used" when I execute the code line "picBLOB.Image = Image.FromStream(stmBLOBData)" in my Visual...
8
by: Owen Jenkins | last post by:
Hello. For years I've been using the DBEngine.CompactDatabase code to make backups of backend databases. But now I've struck a baffling problem where I get an Invalid Argument error. This...
0
by: CroDude | last post by:
Hi all! I have problems when writting bitmap to a byte array and after reading it back form byte to Bitmap object. What I do is this: First I throw Bitmap to a memory-stream and then I write it...
3
by: halise | last post by:
Hi, i am in trouble with an exception in .net platform with c#. The exception thrown is exactly as follows: System.ArgumentException: Invalid parameter used. at...
0
by: David Veeneman | last post by:
This post is for the Google archive and does not require a reply. I received an 'Invalid parameter used' error when trying to do double-buffering with the .Net SetStyles method. I used this code...
1
by: Hifni Shahzard | last post by:
Hi, I got a stored procedure, where it returns a value. But if I execute it. It gives an error as "Invalid cast from System.Int32 to System.Byte.". To make clear how do I execute this, below I'm...
3
by: Arnold | last post by:
I am having problem loading the image from the database. It gives this error: "Invalid parameter used." This is my source code: Private abyt() As Byte Private fo As New OpenFileDialog Private sf...
9
by: Tom John | last post by:
Hi I am storing images in an access database, based on an MSDN article. The code i use to store is as follows: <code> 'Create the command object Dim command As New...
4
by: escristian | last post by:
Hello. I'm trying to create an Image so I use something like this: Image newImage = Image.FromFile(filename); Now when it's a bmp file and certain .gif files it gives me an exception that...
0
by: jaffar | last post by:
Hi I am storing images in an access database, based on an MSDN article. The code i use to store is as follows: <code> 'Create the command object Dim command As New...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.