458 Posted Topics

Member Avatar for erik.pierce1

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 …

Member Avatar for erik.pierce1
0
132
Member Avatar for lfcoats

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 …

Member Avatar for lfcoats
0
1K
Member Avatar for london-G

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 …

Member Avatar for london-G
0
646
Member Avatar for Taras20

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 …

Member Avatar for cgeier
0
267
Member Avatar for rjanelli

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)

Member Avatar for cgeier
0
796
Member Avatar for Parthptl

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.

Member Avatar for Fenrir()
0
134
Member Avatar for R.M.

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 …

Member Avatar for Mr.M
0
277
Member Avatar for darrylnuyda

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)

Member Avatar for darrylnuyda
0
4K
Member Avatar for Jjaus

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.

Member Avatar for Jjaus
0
215
Member Avatar for Sevyt
Member Avatar for Sevyt
0
253
Member Avatar for mavtcr
Member Avatar for RoseB

What is the problem that you are having? What is the formula that you are using to calculate the values?

Member Avatar for RoseB
0
336
Member Avatar for thorin

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..."* …

Member Avatar for thorin
0
619
Member Avatar for DeepKiran

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 …

Member Avatar for DeepKiran
0
207
Member Avatar for avenzEncina

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)

Member Avatar for cgeier
0
147
Member Avatar for khair.ullah

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.

Member Avatar for Kavitha_2
0
388
Member Avatar for theashman88

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 …

Member Avatar for tinstaafl
0
1K
Member Avatar for riayas

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)

Member Avatar for cgeier
0
228
Member Avatar for AbstractEden

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 …

Member Avatar for AbstractEden
0
4K
Member Avatar for BogdanCov

Did you try refreshing the form after the buttons are generated? this.Refresh();

Member Avatar for BogdanCov
0
168
Member Avatar for SkyCross

That error occurs if you have non-numeric data in the variable that you are trying to convert. Check to see what "BlockNo1" contains.

Member Avatar for ZER09
-1
421
Member Avatar for Cara2014

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 …

Member Avatar for cgeier
0
373
Member Avatar for snowhite021

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 …

Member Avatar for snowhite021
0
117
Member Avatar for Goffy
Member Avatar for a.wamzo
Member Avatar for Reverend Jim
0
111
Member Avatar for Khyxz

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 …

Member Avatar for Khyxz
0
1K
Member Avatar for DGianni

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 = …

Member Avatar for cgeier
0
307
Member Avatar for GagaCode
Member Avatar for GagaCode
0
299
Member Avatar for nickurooo

[This post](http://www.daniweb.com/software-development/csharp/threads/473541/combobox-value-member-issue) might help you.

Member Avatar for castajiz_2
0
223
Member Avatar for Kent55

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?

Member Avatar for Reverend Jim
0
417
Member Avatar for babyluxe03

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 …

Member Avatar for cgeier
0
135
Member Avatar for garyndeborah.kuhre
Member Avatar for frontier6444

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 …

Member Avatar for cgeier
0
338
Member Avatar for ant72

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

Member Avatar for khakilang
0
139
Member Avatar for SkyCross

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?

Member Avatar for cgeier
0
505
Member Avatar for julie.macfarlane.73

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

Member Avatar for julie.macfarlane.73
0
328
Member Avatar for uDevv

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.

Member Avatar for tinstaafl
0
247
Member Avatar for babyluxe03

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

Member Avatar for cgeier
0
170
Member Avatar for babyluxe03

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)};

Member Avatar for babyluxe03
0
245
Member Avatar for ignnniter

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 …

Member Avatar for Reverend Jim
0
2K
Member Avatar for ignnniter

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 …

Member Avatar for cgeier
0
240
Member Avatar for chenpaii

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)

Member Avatar for cgeier
0
324
Member Avatar for romain2193
Member Avatar for khakilang

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 …

Member Avatar for khakilang
0
183
Member Avatar for mary.fatulalohr
Member Avatar for Sevyt

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.

Member Avatar for Sevyt
0
202
Member Avatar for Grazel

Your question is unclear. Are you trying to write a batch script? If so, you should probably post it in "Shell Scripting".

Member Avatar for Grazel
0
316
Member Avatar for omojolinho

[PDF Library](http://techymedia.com/post/2012/09/09/Free-Dot-NET-PDF-Libraries-and-Components.aspx)

Member Avatar for BobS0327
0
253
Member Avatar for Gaurav_14

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 …

Member Avatar for YA RAMSAMKER
0
328
Member Avatar for Kent55

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 …

Member Avatar for Reverend Jim
0
304

The End.