Developer re-learning C# and Java
- Interests
- astronomy, playing pool, sci-fi
Greetings again! I'm learning how to write to and read from databases using JDBC, (using Netbeans) and I've run into a snag. I'm trying to save data to a database, but when I try the following exception message is thrown: Column 'COURSEID' is either not in any table in the … |
|
Hello all: I'm teaching myself Java (but for now I'm using one of the Teach Yourself Java 7 books). I'm currently learning about channels and sockets and I'm reading about blocking an nonblocking methods. The book discusses a three steps to set up nonblocking communication, and because technology is ever … |
|
Re:
Hi may i ask how to Get value from database display in textbox?I had a table name mttuser.When i login it will automatic show me the personal informaion. here is my code private void Process_Load(object sender, EventArgs e) { gent_login frm_login = new gent_login(); using (Mttuser_DAL dalObj = new Mttuser_DAL()) … |
|
Re:
hi im getting index out of bound error i cannot find exactly were the error is coming from.can anybodyhelp.tnks import java.util.*; class allshortinVector `{` static Vector<String> v2=new Vector(); public static void main(String[] args) { Vector<String> v=new Vector(); v.addElement("test"); v.addElement("hello"); v.addElement("JAVA"); v.addElement("Program"); for(int i=0 ; i < v.size() ; i++) { … |
|
Re:
Hi Guys, I am getting an error: Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "jLabel4" With this code: public void insertCustomer() { Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "pass"); int q = Integer.parseInt(jLabel4.getText()); try { con = DriverManager.getConnection("jdbc:mysql://91.208.99.2:3379/5thfloor_pos", conProps); con.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE); } catch (SQLException ex) { Logger.getLogger(AddProduct.class.getName()).log(Level.SEVERE, null, … |
|
Re:
i connect mysql using c# and show database in datagridview I want when i click the row in datagridview, textbox, combobox , datetimepicker will show form datagirdview But mysql datetime : yyyy/mm/dd 00:00:00 ( 00:00:00 will default if don't write) Datagridview : mm/dd/yyyy i used code: datetimepicker1.DataBindings.Add("text", dataGridView1.DataSource, "Birthday"); and … |
|
Re:
Hi, and sorry for the title, I don't really know what else to call it, so I'll get right to my point. I've recently decided to use most of my coding time with C# after having tried a few others over the years on and off. I want to start … |
|
Re:
When I add a particular form to my project (AdminConfirmForm.cs) I can no longer access design view of Form1. It appears to run a particular section of the code from a static class (Init()), but since the part of the code it runs should only occur if the folder it … |
|
Re:
Hello there. Currently, I am trying to develop a graphical number guessing game in JAVA. This is my first project in java. Here is an insight in the application: When the application is first opened, a random number (1-100) is assigned to a variable. When the user enters their guess … |
|
Re:
Hello. I'm looking for a good tutorial for creating a chat messenger in java. I checked [this link](http://www.javaworld.com/article/2076864/java-concurrency/building-an-internet-chat-system.html?page=1) but it was not good and clear, was poor tutorial without clear explanation and details. Can you help me with another tutorial? Tutorial video or text both are good. (Let me mention … |
|
Re:
I have a calculator that is supposed to take in scores, compute score total,score count,and score average. I am also to create a list that will store all the scores that have been entered and display them in msgbox which I have already done and have working. My problem is … |
|
Re:
Beginning coding here. But in my programming class I have a basic program to enter a couple of numbers, calculates the basic math then displays the equation and answer. Here is my output to app: lblAdd2.Text = Convert.ToString(vTools.unformat(txtNum1.Text)) + " + " + Convert.ToString(vTools.unformat(txtNum2.Text)) + " = " + mathNum1.ToString(); … |
|
I'm trying to change the form icon on an app I'm creating but I've forgotten how. Does anyone remember how to create a winform icon from an image file (i.e.- jpeg, bmp, etc)? |
|
Hello all: I'm teaching myself Android, using Android Studio, and when I try to run the emulator, it doesn't start up. In otherwords I see the mock device, but the start (home?) page does not appear. I've waited the customary 3-5 minutes and I've even tried creating different emulators, but … |
|
Hello to all my fellow amateur astronomers. Just wanted to start a thread where we could gather and discuss all things astronomy. So what start gazing adventures are on people's radar this month? Tekkno |
|
For those of you looking to challenge your skills check out: https://www.talentbuddy.co/ https://projecteuler.net/ http://www.topcoder.com/ http://rosettacode.org/wiki/Category:Programming_Tasks (the 100 doors challenge looks interesting; I think I'll try that one) Tekkno |
|
Re:
I have class within class public class List { public int RecordCount { get; set; } public IEnumerable<ServiceElementItem> ServiceElement { get; set; } } public class ServiceElementItem { public int ServiceElementId { get; set; } public string ServiceElementBusinessId { get; set; } public string Description { get; set; } public … |
|
Re:
Hi, I wonder if it is possible to put a "Twitter Follow Button" on a windows form application? Usually I have this code on a ASP.net webform. <a href="https://twitter.com/_TwitterName" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false"></a><script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = … |
|
Just thought I'd start a thread for those of us into sci-fi and comicons. I used to attend Creation Conventions when Star Trek TNG was at it's peak. I loved going in costume (Klingon of course). I've since moved from NYC and of course lost some of my gear; and … |
|
Re:
I have a function that counts the commas in each item of an array of string. public int CommaCount(string[] sarray) { int count = 0; int commas = 0; for (int i = 0; i < sarray.Length; i++) { commas = sarray[i].Count(c => c == ','); if (commas > count) … |
|
Re:
i need desperate help with this one nested loop program: 123454321 1234-4321 123---321 12-----21 (the '-'s are actually supposed to be spaces) |
|
|
Re:
I have gone through "How Do I?" Videos for Visual C# but it is all about wpf , and the link is already expired Hoping for some help on this topic where user can choice columns to search in the lookup and when user pick one it search according to … |
Re:
can you anyone say How to Create a .dll file of java from the .net dll |
|
Re:
How to delete DataGridView Row after Selecting Row from Database Using Delete Button |
|
Re:
I want to develop a windows forms application with text boxes and labels and data grid view.Whatever data i enter in textboxes need to be saved in database and must display in data grid.The data grid should show the previous run data also.It should be done in local db of … |
|
Re:
Hi, I have been working on the entity framework for a short span of time. My question is regarding savechanges() or rather what exactly is hapening in this scenario. I have 3 tables: Container , subcontainer, innercontainer there is a 1-n relation between tables in the specified order. i have … |
|
Hello All! I'm reviewing Java (SE, ver 8) and I'm using one of the "Teach Yourself Java..." books. I'm up to the chapter on Java Web Start and I'm stuck. I'm trying to run the sample app (a .jnlp file), but I get an error that reads: "Application Blocked by … |
|
Re:
. Write a code in C# to implement an enumeration of 12 months named YEAR. Also identify that the given expressions will result in True or False. YEAR.May.ToString()="June" YEAR.August.ToString()="August" |
|
Re:
Just to give a little more info; I'm making a simple inventory program. From the main inventory page, a user can click the "Add Item" button, where they will be taken to another form, where they can fill out the item's info. Three fields are required (Category, Item, Quantity). Based … |
|
Re:
hi guys, i have start working with C#, i m making a simple application for my office, i m using mysql database. my question is i want to make a record navigation button like: Next, Previous ..... kindly guide me how to make this. i m using mysql database with … |