
PaulieORF
Members-
Posts
24 -
Joined
-
Last visited
PaulieORF's Achievements
Newbie (1/14)
0
Reputation
-
Thanks. I have gotten my program to work after going through the ideas on this thread. Thanks all, even Diesel :D .
-
I should have mentioned that I'm using VB.NET. What I tried doing was creating a parallel array, a boolean that would keep track of whether a card was dealt or not. So I ended up generating a random number between 0 and 51. Once a card was dealt, the boolean was changed from false to true. This does work, but it gets VERY slow. Anyone else here have any ideas?
-
I need to create a simple card game for class, but it needs to be smart enough to deal out random cards and only deal each individual card once. I have to do this with arrays, no other choice. I want to make this question as simple to answer as possible so here goes. First, I want to take my predefined array and just having it be reordered. After that is done, I'd like to be able to deal out the top card (0) when I press a button, then the next (1) and so on, until I reach the final card (51). I've searched all over this forum and the net, and there doesn't seem to be any simple way to just do this with a predefined array. Everything I find is more focused on creating random lists, rather than just reordering an existing list. Any help you guys could give would be greatly appreciated. Thanks.
-
^BUMP^ Is what I want to do here even possible?
-
I have a VB.NET application where a series of external applications are launched, when the first completes, the second one then launches, and so on until the end. Here is the code I'm currently using: Dim p1 As System.Diagnostics.Process p1 = System.Diagnostics.Process.Start("app1.exe") p1.WaitForExit() Dim p2 As System.Diagnostics.Process p2 = System.Diagnostics.Process.Start("app2.exe") p2.WaitForExit() This code works, however when using my program in conjunction with Windows XP SP2, the new box asking you if you want to run the application pops up, requiring the user to click on "Run" in order to actually run the each application. http://www.hallaway.net/open-security-warning.jpg I understand that you can uncheck the box to make it not happen again, but some people like to have this feature on, and also it would have to be unchecked on every computer that my application is run on. When I launch a single application using the following command, I do not get the message from windows, asking me if I want to run it: Shell("app1.exe") I would like to be able to use the "Shell" method to launch the applications, but also be able to use the "WaitForExit" feature in order to run the applications in succession on their own, without requiring the user to click "Run" for each application that tries to launch. Thanks!
-
Thank you!
-
I'm wondering if and how I can execute an EXE that I've embedded into my VB.NET application. I know how to utilize other filetypes that are embedded, like text files and images, but don't know how to execute embedded applications. I've done lots of searching on this, found people who asked how to do the same thing, but none of them were answered. Thanks.
-
How do I create an array from the selected items in a ListBox?
PaulieORF replied to PaulieORF's topic in Windows Forms
I'm kinda new to using arrays, and I have just fiddled around with the CopyTo method, but can't seem to make it work. What is the proper way to declare my array, and what is the proper way to use the ListBox's CopyTo command to fill that array? I appreciate the help, thanks. -
I'm working on an application which requires me to take the items that a user selects from a multi-select ListBox, and put them into another ListBox on another form. I basically just want to add the selected items in the ListBox to an array, and then call on that array to fill the ListBox on the other form. I've looked all around this site and Google for how to do this, and I all I can really find is how to do it in VB6, I need to know how in .NET. Thanks!
-
Here is my situation: I have a bunch of installation EXE files that I have created using InstallRite. For those who don't know, InstallRite creates quiet installation programs that run quickly for deployment, instead of running the standard installation setup for each application. I am creating a front end in Visual Basic .NET for these EXEs that will let the user pick which programs they want to install. I am to the point where I can produce a list of the EXEs that the user selected. But what I want to accomplish is this: I would like it to run the first installation that the user selected. Once that one finishes, and the installer closes, I'd like my program to tell it to begin installation of the second one, and then the third, and so on, until all EXEs have been completed. Does anyone knwo if what I want to do is possible, and if so, how can I go about this? P.S. I previously gave my program the ability to write a Batch file that would execute the files, and use the START /WAIT command so that each app would be allowed to finish before the next woudl run, but unfortuantely the /WAIT command is not compatible with the EXEs that I'm using.
-
Awesome, that works great! Now, my only other question is how can I align this subitem to the right so that the decimals line up? I tried using the same method as I used to align the column headers, but it doesn't seem to work for the actual items themselves. Thanks.
-
Okay, I had just figured that part out. But now my questin is this: How can I format a subitem column in my ListView to display currency? My column is bound to a DataSet column, which itself is in Curreny format, but when I display it in my ListView it is not in currency format. Here is my code for this column: mItem.SubItems.Add(mRow.Item("Total"))
-
I would like to make my ListView behave like a ListBox, as in I want to be able to have the value of the item I click on be put into a string that I've dimmed, something to the effect of SelectedValue. But I noticed that ListView does not have this option. Thanks guys.
-
URGENT! Adding date from Access DB into ListView
PaulieORF replied to PaulieORF's topic in Windows Forms
The date format in the database is set to short. In the Access DB it shows up as 11/22/2004, however in my listview it shows up as 11/22/2004 12:00 AM. How can I make it not show the time? Also, I have a new question regarding ListViews. I would like to make my ListView behave like a ListBox, as in I want to be able to have the value of the item I click on be put into a string that I've dimmed, something to the effect of SelectedValue. But I noticed that ListView does not have this option. Thanks guys. -
URGENT! Adding date from Access DB into ListView
PaulieORF replied to PaulieORF's topic in Windows Forms
Thanks guys. Now, how can I format the date in the listview so that it does not show the time? I just want it to show up as #/#/#.