132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shizzle08

what sql command i must use. this is my current command but it give me an error saying "The specified filed 'ClientNo' could refer to more than one table listed in the FROM clause of your sql statemate." Try dc.Connection = conn dc.CommandText = "SELECT * FROM tblClient, tblClientInfo WHERE …

Software Development vb.net
Member Avatar for JorgeM
0
370
Member Avatar for Nikhar

The following is my code for Edit Distance problem. The problem asks us to find the edit distance between two strings. My code, I think gives the correct output. If I run the code with two strings of 1500 length each, I get the error. But if I run it …

Software Development c++
Member Avatar for Nikhar
0
352
Member Avatar for chudapati09

I created a JTree and also created a class which implements `TreeSelectionListener` then I pass that object into the JTree's function `addTreeSelectionListener`. In the [JavaDocs](http://docs.oracle.com/javase/tutorial/uiswing/examples/components/TreeDemoProject/src/components/TreeDemo.java), there is an example where they implemented the function `public void valueChanged(TreeSelectionEvent e)` within the main class and passed `this` into `addTreeSelectionListener`. I tried to …

Software Development java java-swing oracle
Member Avatar for JamesCherrill
0
180
Member Avatar for steven467

Hello Folks, Im really newbie in VB.NET and i hope that someone could explain how may i do this successful, ok im explaining now.. I had two richtextboxes and one button First richtextbox contains the following text: <user_register.php: 2012-02-21 00:03:49 POST username=sexhunger15 email=ho_t**@hotmail.com email_confirm= password=vergota password_confirm=vergota country=CA msisdn= isyp=0 isPremiumChat= …

Software Development vb.net
Member Avatar for Reverend Jim
0
188
Member Avatar for SuchANewb

Hello everybody! My roommate had a problem and asked me for some help. I do not write in Java so I would need some help translating my code from PHP into Java. Here is the code: <?php mysql_connect ( "someserver", "someusername", "somepassword" ) ; mysql_select_db("somedatabase"); $q = mysql_query ( "SELECT …

Software Development java php
Member Avatar for NormR1
0
428
Member Avatar for evry1falls

What we have done was : Specifying valid FTP remote server name, a username and a password if password required in their relevant textboxes on the form then we click on connect, we notice that the TreeView control is filled with main directories while ListBox control is filled with main …

Software Development file-system ide microsoft visual-basic
0
239
Member Avatar for Om Alooi

I have an Attendence form the form is like this the employee should select there number then click on sign in button it should save the date of the day , the time in , the number of the employee and display tha data in the gridview and disable the …

Software Development vb.net
Member Avatar for Om Alooi
0
163
Member Avatar for harsh01ajmera

Hello everyone.I am new to vb.net 2008 and i am in trouble.The problem for me is that i am making a windows form for a company and i am in a mess in getting my database connection to my datagridview by clicking a button and my data should been shown …

Software Development vb.net
Member Avatar for poojavb
0
984
Member Avatar for M.Waqas Aslam

hello ! i am new in c# , i have images in my mssql table and i want to show those images in the datagridview , i add a column type image , but i am not able to show images in it , please help me in this . …

Software Development c# mssql
Member Avatar for Mitja Bonca
0
849
Member Avatar for yavindu

What is the difference between import static java.lang.System; and import static java.lang.System.*;

Software Development java
Member Avatar for poojavb
0
78
Member Avatar for 1qaz2wsx7

Hi :) I have a caple of questions: 1) How can i create a global function or a global class that will be available to the entire project ? 2) I want to create derived class from the DataGridView class and change it so it will fit to my needs, …

Software Development
Member Avatar for JerryShaw
0
2K
Member Avatar for el33t

I'm beginning android development and was going through some guides in which I tumbled across this piece of code : myEditText.setOnKeyListener (new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { if (event.getAction() == KeyEvent.ACTION_DOWN) if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER) { todoItems.add(0, myEditText.getText().toString()); aa.notifyDataSetChanged(); myEditText.setText(“”); return true; } return …

Software Development android android-development java
Member Avatar for el33t
0
110
Member Avatar for suneye

hello, I want to open a new connection in main() instead of openning it each I need to read or save something on the database. I opened the connection in main() but the problem is how to use it in the form? Do I have to pass it as a …

Software Development sql
Member Avatar for suneye
0
105
Member Avatar for arunkumars

Hi all, I know that one advantage of method overloading is that the implementation can be overridden for the same method name, but wanted to know how is that going to be an advantage for us. All the links explain how to do it, and not why to do it …

Software Development
Member Avatar for Mitja Bonca
0
227
Member Avatar for GilbertB

AM I doing the right syntax for this parameter? da.SelectCommand = new SqlCommand("SELECT Member.MemberID, Member.Name , Member.Surname, Rentals.RentalID FROM Member,Rentals WHERE Member.MemberID = (@MemberID) Rentals.MemberID", c); da.SelectCommand.Parameters.Add("MemberID", SqlDbType.VarChar).Value = txtID.Text; ds.Clear(); da.Fill(ds); dtgv1.DataSource = ds; It is giving me an error "Incorrect syntax near 'Rentals'." Thanks

Software Development sql
Member Avatar for Mitja Bonca
0
121
Member Avatar for james6754

I am trying to use the Sqlcecmd (command line tool for compact DB) but all it seems to do is open and close straight away... Any ideas?

Software Development
Member Avatar for Mitja Bonca
0
94
Member Avatar for suneye

I am getting an error that is"Invalid object name 't_Images' " here is my code: SqlConnection s = new SqlConnection(con); s.Open(); byte[] data; using (System.IO.MemoryStream stream = new System.IO.MemoryStream()) { video.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp); data = stream.ToArray(); } SqlCommand s_Com = new SqlCommand("INSERT INTO t_Images (Image_ID,Image)"+" VALUES (1,@data) ; ", s); SqlParameter …

Software Development sql
Member Avatar for Mitja Bonca
0
137
Member Avatar for codechrysalis

private void btnSend_Click_1(object sender, EventArgs e) { To = txtPhoneNumber.Text.Trim() + cboCarrier.SelectedItem.ToString().Trim(); From = txtSender.Text.Trim(); Subject = txtSubject.Text.Trim(); MailServer = txtMailServer.Text.Trim(); Msg = txtMessage.Text.Trim(); try { MailMessage message = new MailMessage(From, To, Subject, Msg); SmtpClient mySmtpClient = new SmtpClient(MailServer); mySmtpClient.UseDefaultCredentials = true; mySmtpClient.Send(message); MessageBox.Show("Message has been sent to " + …

Software Development c# email
Member Avatar for codechrysalis
0
242
Member Avatar for SoftBa

Hi to all first to say I am beginner in programming so please dont mind for mistakes I could write here :) I have this problem, on the form I use one combobox with Data Bound items, Data source, Display member & Value member. Besides this combobox I have textbox …

Software Development vb.net
Member Avatar for SoftBa
0
1K
Member Avatar for SuperManofBC

public void findHighestNumber(int timesToLoop) { int highNumber = 0; int counter = 0; int userInput = 0; while(counter < timesToLoop) { System.out.print("Enter a whole number: "); userInput = reader.getInput(); counter++; System.out.println(""); } if(userInput > highNumber) { highNumber = userInput; } if(counter == timesToLoop) { System.out.println("Finished looping! Highest is " +highNumber); …

Software Development java
Member Avatar for SuperManofBC
0
137
Member Avatar for fatalaccidents

Hey guys, I'm trying to install my own version of python on an HPC without root access so I can use my own packages. So far I am banging my head against the wall and getting nowhere. I actually had my own version of python, numpy, ipython and a couple …

Software Development python suse
Member Avatar for fatalaccidents
0
381
Member Avatar for iamthesgt

For a shell script used to automatically generate c++ code files, I have to split certain names apart for them to be formatted. I split them at a capital letter, but I do not want to split if there are multiple capital letters in sequence. For example: I want this …

Software Development shell-scripting
Member Avatar for iamthesgt
0
2K
Member Avatar for Albino

I have a problem. 1>------ Build started: Project: SDL Test, Configuration: Debug Win32 ------ 1> playa.cpp 1> main.cpp 1> Generating Code... 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(43): warning C4715: 'load_image' : not all control paths return a value 1>c:\users\will\documents\visual studio 2010\projects\sdl test\sdl test\main.cpp(43): warning C4715: 'load_image' : not all control paths …

Software Development c++ visual-studio
Member Avatar for Albino
0
470
Member Avatar for Gamer0077

Hello everyone, I'm writing an application with a ListView in C# WPF. I was wondering if I was missing a reference of something, because I get this error all the time: `'System.Windows.Controls.ListView' does not contain a definition for 'Columns' and no extension method 'Columns' accepting a first argument of type …

Software Development assembly c# listview visual-studio
Member Avatar for Gamer0077
0
537
Member Avatar for Perry31

Hi, I tried to do like below, but its not printing the expected one. Plz suggest to proceed further. OUTPUT: Enter the string: abc Entered string is : NULL void main() { char *a; printf("Enter the string: "); scanf("%s",&a); printf("\nEntered string is :%s", a); getch(); }

Software Development c
Member Avatar for DeanMSands3
0
8K
Member Avatar for Ari5555

In XP, I was able to show the File Properties dialog from c# code. The essential bits are shown below; This no longer works in Windows 7 64 bit. Surely it must be implemented more simply now? I have searched the internet for a replacement method without success. I noticed …

Software Development file-system
Member Avatar for Ari5555
0
406
Member Avatar for iAndrewMeyer

I am trying to store the permutations generated by the recursive permutation function so that I can use them in main; however, I cannot figure how to get them to store correctly. I.E. when I run this function with a string AB, inside the recursive AB and BA gets printed …

Software Development c
Member Avatar for VernonDozier
0
189
Member Avatar for neoseeker191

I have looked through a few SQL hierarchy tutorials, but none of them made much sense for my application. Perhaps I am just not understanding them correctly. I'm writing a C# ASP.NET application and I would like to create a tree view hierarchy from SQL data. This is how the …

Software Development asp.net sql
Member Avatar for Momerath
0
4K
Member Avatar for juliermills

What is the difference between java and java script ? No Google Use :)

Software Development java
Member Avatar for Akill10
0
230
Member Avatar for muthukumar46

hi, i want to one simple register form. on my form user name , age , sex , email address, state , city , country these are the fields i need to register for every user.. my pbm is i need to check user name into databse table, **if user …

Software Development
Member Avatar for Mitja Bonca
0
138
Member Avatar for muthukumar46

protected void Button1_Click1(object sender, EventArgs e) { string sql = "INSERT INTO user(CustomerName,Age,Sex,Email address,State,City,Country) VALUES (@Val1,@Val2,@val3,@val4,@val5,@val6,@val7,@val8,@val9,@val10)"; try { SqlConn.Open(); SqlCommand cmd = new SqlCommand(sql, SqlConn); cmd.Parameters.AddWithValue("@Val1", txtcname.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@Val2", txtAge.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@Val3", txtsex.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@Val4", txtEmail.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@Val5", txtaddress.Text.ToString().Trim()); cmd.Parameters.AddWithValue("@val6", DrpState.SelectedItem.ToString().Trim()); cmd.Parameters.AddWithValue("@Val7", DrpCity.SelectedItem.ToString().Trim()); cmd.Parameters.AddWithValue("@Val7", DrpCountry.SelectedItem.ToString().Trim()); cmd.CommandType = CommandType.Text; cmd.ExecuteNonQuery(); } catch (System.Data.SqlClient.SqlException ex) { …

Software Development
Member Avatar for Mitja Bonca
0
143
Member Avatar for nuclear

So I was trying out SDL_gfx lib and tryed using the rotozoomSurface() [Click Here](http://www.ferzkopp.net/Software/SDL_gfx-2.0/Docs/html/_s_d_l__rotozoom_8h.html#a3cb0c11d5edc929579c807dc7612348c) which should've rotated my surface at runtime, but it seems that whenever I do that my surface turns invisible. It doesn't matter if I predefine the rotation or use it at runtime, the same happens, I've …

Software Development c++
Member Avatar for nuclear
0
234
Member Avatar for steveh000

` connectionString="Data Source=########;Initial Catalog=DowntimeD51;Persist Security Info=True;User ID=#######;Password=########;Connection Timeout=120;Encrypt=False;TrustServerCertificate=False;Network Library=dbmssocn"` I have the above connection string in a vb windows application , This is part of my app config file. I then have a number of table adapters for connecting my business logic to the database , One of the queries …

Software Development vb.net visual-basic
Member Avatar for steveh000
0
874
Member Avatar for vilas_tadoori

**Pyramid Pattern** Dear Listers, I am in the process of wrting a java code that prints the following pattern 123454321 1234*4321 123***321 12*****21 1*******1 This is the code that I have written as public class Pyramid { public static void main(String[] args) { int j; for (int i=1; i<5; i++) …

Software Development java
Member Avatar for NormR1
0
998
Member Avatar for Jdan2388

hi all, i am building a squared pyramid calculator and writing all the code from scratch, but I seem to have run into my first problem though. i am giving the user a welcome message and then giving them a dropdown menu asking them what they want to "adjust" for …

Software Development java java-swing
Member Avatar for stultuske
0
234
Member Avatar for G_Waddell

Hi, Ever had an application that you want to store user specific settings on? e.g. login name or Form background colours, User specifc DSN connections etc. So the next time they run the app the information is there for them? This can be achieved in VB.net with just a few …

Software Development app-store vb.net
0
185
Member Avatar for pritish.kamath

Can Anyone please take a loo at this code and tell me whats wrong??? Sorry.................for the indentation is screwed :( import java.applet.*; import java.awt.*; import java.net.*; import java.awt.event.*; import java.util.*; public class Pritish extends Applet implements ActionListener implements Runnable { Thread t,t1; public void init() { String link1 = "yahoo"; …

Software Development java
Member Avatar for stultuske
0
120
Member Avatar for shizzle08

can you help me how to select from multiple tables. so far this is my code how do i Dim dr As OleDbDataReader Dim dc As New OleDbCommand dc.Connection = conn dc.CommandText = "SELECT * FROM tblClient, tblLoan WHERE ClientNo = '" & ClientNo & "'" dr = dc.ExecuteReader If …

Software Development vb.net
Member Avatar for poojavb
0
158
Member Avatar for GilbertB

Hi all, I have two tables in SQL Server : Rent and Member . And they are in a relationship. Member ID (from Memner table) is in the table of Rent. I would like to know if there is a way that when I view a new Rent in the …

Software Development display
Member Avatar for GilbertB
0
337
Member Avatar for A0110

hi, i hav a grid view which displays data from my database. i hav added delete buttons to my gridview....i want that,when i press the del button to del a particular row,then that row should become red...and it should remain red even after the page reloads on pressing the del …

Software Development session
Member Avatar for A0110
0
353
Member Avatar for blackasninja

Heres the thing. This was one our class test and the image below is the lecturers question that is supposed to be one of his jokes(Binary/base). A large amount of the class answered that it was decimal 10. Every ideas and thought would be appreciated. Heres the image [Click Here](http://imgur.com/OwEKO)

Software Development
Member Avatar for blackasninja
0
156
Member Avatar for neti1987

hi! I have 2 columns SWT table. but when I insert data (from Mysql query), it appear only in the first column. for make it show in the second, I have to change the size of the column and then the data appear. so right now, after every query, I …

Software Development java
Member Avatar for stultuske
0
243
Member Avatar for poojavb

Hello Friends, One help is required.... I have a select query which is based on two criterias.... if the order is in process or if the order is received.... The datagridview will show all the records from the database,,,, I want to disable the rows in datagridview which will be …

Software Development vb.net
Member Avatar for poojavb
0
5K
Member Avatar for mrki

Dear developers... I have problem with code... I cant understand where is mistake... here is my code... [code]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace Phon_Imenik { public partial class Form1 : Form { public Form1() { …

Software Development open-source
Member Avatar for Momerath
0
2K
Member Avatar for abhilam

EXPERIMENT : KSAS1201 SG CLIMAT CHANGE DATA PATH : C:\DSSAT45\Sorghum\ TREATMENT 1 : N.American SGCER045 @ VARIABLE SIMULATED MEASURED -------- ------- -------- Panicle Initiation day (dap) 62 -99 Anthesis day (dap) 115 -99 Physiological maturity day (dap) 160 -99 Yield at harvest maturity (kg [dm]/ha) 8478 -99 Number at maturity …

Software Development python
Member Avatar for snippsat
0
733
Member Avatar for RyMarr475

Hello, I'm pretty new to Java and this is my first GUI project, so try to explain like I am 5. I declare a label normally, then I set an Icon into it like this: x=rand.nextInt(4)+1; if (x==1) { computer.changeInfo("Fox McCloud", 500, 250, 100, 100, 65, 25, 15, 110, 35, …

Software Development gui java
Member Avatar for NormR1
0
1K
Member Avatar for hughesadam_87

Real quick question. If I have a string 'hi my name is bill' and I want to reduce this to a list of letters, with no whitespaces (eg ['h', 'i', 'm', 'y'] as opposed to ['hi', 'i', ' ' , 'm', 'y', ' ', 'n'...]), is there a really quick …

Software Development python
Member Avatar for snippsat
0
189
Member Avatar for niths

hi all, I have a asp page. In that i am displaying some data in a grid view from database.In grid view i am displaying TicketNo,TicketName and status. Now my problem is that when page loads if the status have a value as 'OPEN' that row should be in red …

Software Development dataset
Member Avatar for A0110
0
258
Member Avatar for GeekTool

Hello, i am now trying to draw a tree with stars using for loop. I find a code for this but i did not get the logic of the code. Please can anybody explain it to me ? The code is below: public class DrawingTree { public static void main(String[]args) …

Software Development java
Member Avatar for GeekTool
0
2K
Member Avatar for king03

hi there guys can anyone here provide me with a guide on how to create an enrollment system in cSharp the OOP way? I just want to create it for a school project. Please help me I really need it if someone can provide me one I'd be very thankful …

Software Development
Member Avatar for Akill10
0
135

The End.