InvalidArgument=Value Of '-1' Is Not Valid For 'start'
Dec 14, 2009InvalidArgument=Value of '-1' is not valid for 'start'
View 4 RepliesInvalidArgument=Value of '-1' is not valid for 'start'
View 4 RepliesDim group11_0_count = 0
Dim group11_1_count = 0
Dim group11_2_count = 0
[code].....
InvalidArgument=Value of '1' is not valid for 'index'. Parameter name: index
This is my code
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Dim Conn As OleDbConnection = New
[Code]....
My users are getting this error :
ERROR:"InvalidArgument=Value of '5' is not valid for >> index.'
They are getting this while they enter to this page. its a application issue or sth related to database which i need to work on? I really do not know that its right place or i have to choose different type?
dim ItemNum As Integer = 0
Dim Selecteditem As ListViewItem = ListView1.SelectedItems(ItemNum)
Select Case ItemNum
[CODE]...
keeps telling me that InvalidArgument=Value of '0' is not valid for 'index'.
LoopBegin:
Do Until strXMLSingle.Contains("ENDOFXMLCHECK")
strXMLSingle = getTempFile.ReadLine
If strXMLSingle.Contains("<character") Then
[code]....
I have that so far. It was working great for the names part until I attempted to do the level part, now i get the following error:
System.ArgumentOutOfRangeException: InvalidArgument=Value of '1' is not valid for 'index'.
Also at the line where i use a goto statement to go back to the beginning of the loop, is there any way i can do that without a goto statement? Like a second loop statement or something?
I have created player to stream(broadcast) a video from server to clinet in Lan network,my problem is when I send URL of the video to client it take it and add to playlist but when I want to play it message box show's "InvalidArgument value of 0 is not valid for selecteD Index parameter name:selectedIndexSystem.windows. form" I will but the code of client and server but the I have determine the video which will be broacast in client side. [Code]
View 3 RepliesI have this code
[code]...
And I select one and it works! But when I try to select a different one it comes up with an error on..If ListView2.SelectedItems.Item(0).Text = "None" Then
The error..InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index
I've got the web browser with tabs in all working fine, but there's one bug, i can add tabs, delete em, etc.. but when i delete a tab then go to create a new tab, it gives me the error: InvalidArgument=Value of '6' is not valid for 'index'. Parameter name: index '6' is the number of tabs i had open.Here's the bit of code i use to create the tabs with the browser in it:
vbcode
Dim browse As New WebBrowser
browse.Name = "b1"
browse.Dock = DockStyle.Fill
[code]....
When the selected index changes I for a second time this code errors.
vb.net
lvReports.SelectedItems.Item(0).SubItems.Item(2).Text
with this error message
InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index
Why is this?It worked for the listviews.click event perfectly.
I have this code and I getting this error "invalidargument=value of "-1" is not valid for index"
Private Sub lunachange_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lunachange.Tick
If Listlog.Items.Count <> 0 Then
Dim count As Integer
count = Listlog.Items.Count
[code]....
Im just going to have to get used to this language for the rest of the semester And smohd, I will get back to you with my problem. That "Me..." control is so random. Not like JAVA Why am I getting an error with totalGrade
[Code]...
In my application i loop through the contents in a listview, then delete that value after i'm finished with it:
PHP
For x = 1 To listviewIDs.Items.Count
Print to screen the listview values
MessageBox.Show(listviewIDs.Items(x).Text)[code].....
The code works, it uses the values from the listview once it's finished it deletes them, but when it gets to 8 items left in the listview i get an error: InvalidArgument=Value of '8' is not valid for 'index'.Parameter name: index when i look in the listview there is 8 items still left in there, i'm not sure what i have done wrong.
If I uninstall the COM1 and reboot, it works. If I shut down (power off) and restart, I get the message below. If I uninstall then click on Scan for Hardware Changes,The given port name does not start with COM/com or does not resolve to a valid serial port. Parameter name:portName
View 8 RepliesI have made my application to start automaticly when windows start (registry ../currentversion/run/appname + path). In this mode the application start minimized and an little icon appear in the notification icon area. With this icon you can maximize the app or exit it.If you exit the app and start it again using the Menu (Start/programs etc) than the application start in minimized mode (and in this case I would like to have it in normal mode) because the setting autostart is still true.Is there a way you can detect when the application start when windows startup using the above registry or when people click on an icon in the programs menu (or desktop)?
View 2 RepliesI have custom asynchronous WebRequest class that I am testing to find out how fast the request will be cancelled and found some odd results, that starting 6 WebRequests with TPL and cancelling them right away takes 25 sec, but when I used just regular background threads it took only 5 sec.
Update: Running them without cancelling takes with Task.Start 9 sec and Thread.Start 3 sec accordingly.
Imports System.Net
Imports System.Threading
[Code]....
im using vs to create a simple security form, i am successful to create a a form of log but i need some more improve like
1) if the software remain untouch for a minute the login form should be shown as the user try to use it again
2) and how the software start automatically when window start
I'm using Process.Start to start an external command line application and using the StartInfo.Arguments method to send parameters to the application. I imagine I'll need to use a loop... but I can't figure out exactly how yet.I need to send anywhere from 1 - an infinite number of files names to this application. Each file has to be sent one after the other. So once the first one is done, I need to loop back around and past the second one.I can probably use the Directory.GetFiles method to get all of the files, but I don't know how to assign them.
View 7 RepliesI created 3 timers, i want each timer to take turn start which means timer1 stop then timer2 start, once timer2 stop timer3 start. But my code seem to be running together once i click the play button.And is there any ways to easy control how my picturebox move? Because my code for controlling it movement need to keep finding the correct number for it to move.
[Code]...
Visual Basic 2010 - Net Framework 4.0 Client
I have an application (application #1) running with Administrator privileges on Windows 7.
I want application # 1 to start another application (application #2) without Administrator privileges so application #2 is running as a standard user.
Is there a way to do this? I have been using Process.Start.
Here's what I currently have:
[Code]...
I've commented out various things to limit it to specifically this command (example, I can swap mklink out with notepad and it works fine). The command runs fine from a DOS window, but can't be found when I use it this way. I also tried using the SHELL command just to test and I get the same results. No idea why it can't be found, as like I said it executes from the command prompt just fine.
[code]...Cannot Start a Service After Changing 'Start' Property Through Registry
View 3 RepliesI am confused with the terms Build ,rebuild ,start , start without debugging in VS.NET.After writing the code what actually we want to do .We have to run directly by pressing F5 key or we have to build the solution .Usually i tried to run the application after coding and if shows any any errors i will fix that and run again .I never used build or rebuild thing .What exactly meant by building the solution .What is meant by rebuild and start without debugging.
View 5 RepliesHow can I get my application to load the Sub Main at the start rather than loading a form on start up.
I have tried declaring 'Public Sub Main' on my forms and in some modules, yet in my project properties, it is not one of the options.
How can I make it so when a button is clicked it will make the program start on start-up but only if the checkbox is checked?
View 9 RepliesI know that to start a program at startup, we should add this subkey
"C:Program Files<myprogram's path><nameoftheprog>.exe"
to
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun
Alright!
But the problem is when my program has to delete a certain file in C:/ at startup, it just can't because it's not ran as administrator!
I have a vb.net application and want it to start at Windows start up only if the user checks checkbox1 the procedures on how to do this and the code
View 1 RepliesWhile i Minimized the program and clossing the program , next times i start the program, it also minimized. how can i prevent this problem happen!! And i want to start the program at position which start minimized. how can i do it!!!
View 4 RepliesThis is a quick mock up of what my application looks like.Trying to incorporate a progress bar. I want to be able to click "start" then the start button disappears then a progress bar shows up in its place.
View 36 RepliesI am writing an application that in the end needs to execute another executable at some point, the problem is that the executable has dependencies in the directory it runs in that are required to operate. When I use the Process.Start to run the executable it errors out because it's looking for the dependencies in my applications directory.
I tried the startInfo.WorkingDirectory option but that didn't seem to do it either (not sure if I did it right) - here is how I used that:
Process.Start("my.exe").StartInfo.WorkingDirectory = "C:Test"For the life of me I cannot find how to set the "Start In" directory. I looked everywhere, so unless it's under a different name, I'm at a loss.