458 Posted Topics
Re: Two errors. **Error #1:** **OrderCalc** In line 10, you declare "decks". private deckPanel decks; In line 47, you attempt to use "decks": add(decks, BorderLayout.NORTH); However, you haven't created a new instance of "decks": deckPanel decks = new deckPanel(); before attempting to use it. In line 23, you have: deckPanel dp … | |
Re: Please review the following documentation: [For-each loop](http://docs.oracle.com/javase/1.5.0/docs/guide/language/foreach.html) *"...When you see the colon (:) read it as “in.” "* Applied to one of your loops: `for(int bigTemp: studentsArray){ ` The loop reads as “for each int bigTemp in studentArray.” [Arrays](http://docs.oracle.com/javase/specs/jls/se7/html/jls-10.html) *"a one-dimensional array is created of the specified length, and each … | |
Re: In "ChooseAnAction", after changing: possibleAction = getRandomAction(Q_SIZE); To: possibleAction = getRandomAction(Q_SIZE - 1); it will compile. However, there is an infinite loop in "getRandomAction". R[currentState][action] is always -1 so choiceIsValid = true; never occurs. To help you debug: In "episode" add a println statement in the for loop (as shown … | |
Re: Why are you wanting to create a separate table for each week? I recommend that you create one table named "Weather" (it will be the same as one of the tables that you currently have, except add the following columns: "WeekNumber" (Number), "MonthNumber" (Number), "YearNumber" (Number) to the columns you … | |
Re: Try this: Dim myxml As String myxml = "<response><item><acct>1001</acct></item><item><acct>1002</acct></item></response>" Dim ds As New DataSet() ds.ReadXml(New System.IO.StringReader(myxml)) Dim DataGridView1 As New DataGridView() DataGridView1.DataSource = ds DataGridView1.DataMember = "item" Me.Controls.Add(DataGridView1) | |
Re: Unless this is a homework assignment, I hope that you are not storing a username / password in plain text in a text file. Use "String.Compare" to compare your strings. | |
Re: I'll help you to get started. Create a variable for each final result you want to calculate. Use if-then-else if-else statements as appropriate. Your tasks. Find out: 1. What is an integer? 2. What is a double? 3. What data types should you use? 4. How do you write an … | |
Re: If you have a large dataset you may want to read about virtual mode. [Here is a post that discusses it](http://stackoverflow.com/questions/6089674/whats-better-to-use-a-datagrid-or-listview-for-displaying-large-amounts-of-dat) | |
Re: We've done our homework assignments. This one is yours. People are here to assist if you get stuck, but you have to show that you've put in effort. Show some code for each one of your pseudo code items. | |
Re: I haven't worked with WPF, but can't you just use an eventhandler (and a delegate)? | |
Re: [Connection Strings](http://www.connectionstrings.com/) | |
Re: What is the problem that you are having? What is the formula that you are using to calculate the values? | |
Re: Not a fix, but here is some info I found that may or may not be helpful. [Document Compatibility Modes in Internet Explorer 9](http://css.dzone.com/articles/document-compatibility-modes) The above article states that *"...an end user can click the Compatibility View button which will cause IE 9 to switch to IE 7 Standards mode..."* … | |
Re: You haven't provided any code so it's difficult to know how you are transferring information between the forms or if you are transfering information between the forms. Also what controls are on CashBookUpdation? What is supposed to cause the update to happen? Click on a button? A screen capture would … | |
Re: In line #6 you do the following: Me.Ministry_HeadTableAdapter3.Fill(Me.DbVPioDataSet.Ministry_Head) Then in line #13: Me.TableAdapterManager3.UpdateAll(Me.DbVPioDataSet) Try changing line #13 to: Me.TableAdapterManager3.UpdateAll(Me.DbVPioDataSet.Ministry_Head) | |
Re: It is probably a case-sensitive issue as ddanbe said. Try changing: protected override void onload(EventArgs e) To: protected override void OnLoad(EventArgs e) The "O" and the "L" should be capitalized. | |
Re: You probably want to do some input validation to ensure that the user entered an integer value when an integer value is required. See "isInt" below for a way of performing integer validation. Declare the following variables as global (before "Main"): //need to declare as static //if used inside static … | |
Re: I haven't really checked this out, nor have I tried to print to a COM port printer, but see if it might help you. The initial post is for DataGrid, but if you scroll down, you will see a file "DataGridViewPrinter.zip" that you can download. [DataGridViewPrinter](http://www.vbforums.com/showthread.php?356115-DataGridPrinter-A-class-to-print-data-grid-in-a-nicely-formatted-way&p=2478600&viewfull=1#post2478600) | |
Re: Place numbers 1-16 in an ArrayList: //holds numbers 1-16 ArrayList uniqueNums = new ArrayList(); //add numbers 1-16 for (int i=0; i < 16; i++) { uniqueNums.add(i+1); }//for Use the following random number generator method. It was taken from [here](http://stackoverflow.com/questions/363681/generating-random-numbers-in-a-range-with-java). **randInt:** public static int randInt(int min, int max) { // Usually … | |
Re: Did you try refreshing the form after the buttons are generated? this.Refresh(); | |
Re: That error occurs if you have non-numeric data in the variable that you are trying to convert. Check to see what "BlockNo1" contains. | |
Re: In line 19, use "String.Compare" instead of "<>". This seems unnecessary however, because you already passed all of the information in your SQL query and if it returns any rows, then the information is correct. You could just do a `Select Count(*) FROM ....`, if the result == 1 then … | |
Re: Access is just a file, and uses a file lock. It is single-user. What issues are you having? Copy the file to your local computer, and see if you encounter the same issues you are having. What is your connection string? Are you using a mapped drive? ODBC Connection for … | |
Re: [Click Here](https://www.google.com/#q=how+to+learn+to+program) | |
Re: You haven't given any information about your code. I am going to make the following assumptions: * Each virtual key is a Button * TextBox named: TextBox1 * TextBox named: TextBox2 There are a few different events that you could probably use, although I don't have a touch-screen to test … | |
Re: There may be a simpler solution, but this one will work: **Client.vb** Public Class Client Private _id As String = String.Empty Private _name As String = String.Empty Private _sender As String = String.Empty Private _errorWords As String = String.Empty Private _falseWords As String = String.Empty Private _link As String = … | |
Re: You probably aren't going to receive many responses without posting your code. | |
Re: [This post](http://www.daniweb.com/software-development/csharp/threads/473541/combobox-value-member-issue) might help you. | |
Re: In your latest code you seem to be referencing radio buttons: radDef1 AND RadioButtonDef1. radDef2 AND RadioButtonDef2. radDef3 AND RadioButtonDef3. Do you have 6 buttons or did you forget to change this after a rename of the radio buttons? | |
Re: Ensure ListView.View = View.Details 'set to details view ListView1.View = View.Details Did you already create the columns? If not, add this to your code: 'Add columns to listview ListView1.Columns.Add("SKU") ListView1.Columns.Add("Quantity") ListView1.Columns.Add("Description") ListView1.Columns.Add("UOM") ListView1.Columns.Add("SRP") ListView1.Columns.Add("Origin") ListView1.Columns.Add("Department") To add the data to ListView1: 'increment through each record in recordset 'and add data … | |
Re: Click on "</> Code" and paste using Ctl-v. | |
Re: Check line 91 on "Form1". You do the following: `TextBox3.AppendText(TextBox1.Text & TextBox2.Text & Environment.NewLine)` every time a date is selected. Private Sub MonthCalendar1_DateSelected(ByVal sender As Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateSelected TextBox3.AppendText(TextBox1.Text & TextBox2.Text & Environment.NewLine) End Sub "Append" means to add to the end of that which already … | |
Re: Backup your favorites from "C:\Users\<username>\Favorites" to somewhere else. Un-install IE 11. Reboot. Then re-install IE 11. Also run a chkdsk on your hard drive. Start => Computer => Right-click "C:" => and select "Properties", Tools => Check Now = > select both checkboxes => Start | |
Re: Check to see if this is causing the error: `SET BlockNo ='" + BlockNo.Replace("'", "''") + "'`. What data does "BlockNo" contain? And how are you wanting it to be stored in the database? | |
Re: What type of device is it? Is it a bluetooth device? Did you try searching the registry for COM9? * regedit * Edit * Find search for: COM9 | |
Re: I haven't ever tried it, but [this article](http://www.dreamincode.net/forums/topic/165221-load-windows-form-from-dll-file/) talks about it. Click "Project" => "Add Reference" => "Browse" => <your dll> => "OK". Then add `Imports YourDLL` Create an instance of your class and call the method to show the form. | |
Re: Is Access 2013 installed on the development computer or did you copy the file from a computer that has Access 2013 installed? Did you add a reference to the Access object library? Project => Add Reference => COM => Microsoft Access xx.x Object Library | |
Re: The driver name has a space in the name that should not be there. Remove the space after `*.accdb `. Change driver from: Driver={Microsoft Access Driver (*.mdb, *.accdb )}; To: Driver={Microsoft Access Driver (*.mdb, *.accdb)}; | |
Re: You only seem to be retrieving no rows or 1 row, so it seems unnecessary. You could use a status label, instead to keep the user informed what is going on. In order to use a progress bar above, you will need to first get the number of rows: Select … | |
Re: Adding "New" should fix your issue: From: Dim con As SqlConnection Dim cmd As SqlCommand To: Dim con As New SqlConnection Dim cmd As New SqlCommand You should consider using a [Using statement](http://msdn.microsoft.com/en-us/library/htd05whh.aspx): The scope of your variables should only be as big as necessary. Also, use parameterized queries to … | |
Re: You need to convert "splittedText2[i]" and "splittedText3[i]". What database are you using? Here are some mappings: [SQL Server Data Type Mappings](http://msdn.microsoft.com/en-us/library/cc716729(v=vs.110).aspx) [OLE DB Data Type Mappings](http://msdn.microsoft.com/en-us/library/cc668759(v=vs.110).aspx) [mySQL Data Type Mappings](http://www.devart.com/dotconnect/mysql/docs/DataTypeMapping.html) | |
Re: I'm not an expert in this, but have you checked "Local Security Policy? * Control Panel * Administrative Tools * Local Security Policy * Security Settings * Local Policies * Security Options (and perhaps "User Rights Assignment") Check the event logs: * Control Panel * Administrative Tools * Event Viewer … | |
| |
Re: Use a keyboard hook. [Click Here](http://www.codeproject.com/Articles/7294/Processing-Global-Mouse-and-Keyboard-Hooks-in-C) for an article about mouse hooks and keyboard hooks. | |
Re: Your question is unclear. Are you trying to write a batch script? If so, you should probably post it in "Shell Scripting". | |
Re: [PDF Library](http://techymedia.com/post/2012/09/09/Free-Dot-NET-PDF-Libraries-and-Components.aspx) | |
Re: Add a "WebBrowser" control to your current form (or create a second form and add it to that form). Then use "Navigate". Change the "Dock" and "Anchor" properties of the WebBrowser control as needed to fit properly and resize properly on your form. Call `webBrowser1.Navigate("myurl.com")` in the "LinkClicked" event (of … | |
Re: You might consider using a class with Property values. **Quiz.vb** Public Class Quiz Private _question As String Private _answer As String Private _randomAnswer1 As String Private _randomAnswer2 As String Private _randomAnswer3 As String Private _numberOfTimesCompleted As Integer Public Sub New() End Sub Public Sub New(ByVal Question As String, _ ByVal … |
The End.