
PaulieORF
Members-
Posts
24 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by PaulieORF
-
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 #/#/#. -
I'm trying to add the date column from my database into a listview, but I get an error when adding the subitems. I forgot how to add the date in correctly. Here is my item adding code in form_load: Dim mRow As DataRow Dim mItem As ListViewItem For Each mRow In DataSet61.Tables("Orders").Rows 'Column 1 mItem = ListView1.Items.Add(mRow.Item("Order_ID")) 'Column 2 mItem.SubItems.Add(mRow.Item("Customer_ID")) 'Column 3 mItem.SubItems.Add(mRow.Item("Date")) 'Column 4 mItem.SubItems.Add(mRow.Item("Total")) 'Column 5 mItem.SubItems.Add(mRow.Item("Fulfilled")) Next Plase help me, I need it working for a project that's due Monday. THANKS!
-
Anybody else have any advice for me on this? Thanks.
-
I'm not really sure what code you want me to post up. It's not a problem with any code, it's just that the Data Adapter Configuration Wizard will not allow me to configure the Data Adapter. Under "Generated SELECT statement" on the final screen of the wizard, it says "There were errors configuring the data adapter." I can still click finish, but I cannot make a DataSet from it.
-
Okay, that select statement does work and gets me the info I want. However, I cannot seem to get it to work properly in VS.NET. Keep in mind, I'm a beginner with VB.NET, and I'm using the OleDbDataAdapter wizard to work with my Access DB. When I put this statement into the wizard and run it, it works. But when I have the wizard finish up, it gives me an error saying that it was unable to generate the SELECT statement. What should I do to get around this? Thanks, and I really appreciate your help, a LOT.
-
Here's my situation. I have an Access Database that has 3 tables; Users, Interests, and Interests_Log. Each user int he Users table has a User_ID, and each interest in the Interests table has an Interest_ID, as well as an Interest_Name. The Interests_Log table consists of a composite key: User_ID and Interest_ID. What I want to be able to do here is when someone is editing a user's interests, to be able to see a CheckedListBox that contians the interests from the Interests table. If the Interests_Log table contains any Interest_ID's for the selected User_ID, then those items should be checked when the form loads. If the user clicks on an Interest that was not previously checked, I'd like it to add a new row to the Interests_Log table that would consist of the current User_ID and the Interest_ID of the newly checked item(s). I can get as far as setting the datasource, display member, and value member of the CheckedListBox. I just can't figure out a way to make the CheckedListBox do what I want it to. Could someone please help me with this? It would be greatly appreciated. Thanks!
-
VB.NET and SQL Server over the Internet
PaulieORF replied to PaulieORF's topic in Database / XML / Reporting
**BUMP** So can anyone help me with this? -
VB.NET and SQL Server over the Internet
PaulieORF replied to PaulieORF's topic in Database / XML / Reporting
So what exactly am I doing wrong? -
VB.NET and SQL Server over the Internet
PaulieORF replied to PaulieORF's topic in Database / XML / Reporting
The reason I want to do this is because I'm writing an application for a project that I'm doing for a class in school. I would like to be able to install the application in school, and be able to connect to my SQL Server database over the internet, from my server running at home. So, I'm not all that concerned about it being exposed to the internet, since I would only have it up and running for just a few hours. Anyway, what is the deal with the ports? I've read in many places that 1433 is the port I need to forward, what's this about 1434? Do I have to forward both of these ports? Thanks. -
I would like to connect to a SQL Server database over the internet from a Visual Basic .NET 2003 application. I've looked around on the internet, but nothing I find cant help me. I am using a router, and for the time being I've turned off all of the firewall features. I've also set DMZ to the server's local IP. Now, using SQL Enterprise Manager, I am able to connect to the server via the local private IP address, but when I try to use my static IP (exposed to the internet) I cannot connect. Does anyone know why this is happening, and what I can do to get it working? Thanks!