132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Begginnerdev

I am having a problem with a datareader. [CODE] Do While myData.Read itmListItem = New ListViewItem() strValue = IIf(myData.IsDBNull(0), "", myData.GetValue(0)) itmListItem.Text = strValue For shtCntr = 1 To myData.FieldCount() - 1 If myData.IsDBNull(shtCntr) Then itmListItem.SubItems.Add(" ") Else itmListItem.SubItems.Add(myData.GetString(shtCntr)) End If Next shtCntr view_data.DatabaseListView.Items.Add(itmListItem) Loop [/CODE] I have used message …

Software Development vb.net
Member Avatar for lolafuertes
0
287
Member Avatar for deucalion0

So I am looking at a past exam paper which I am studying for my exams coming up and I am really confused regarding this question, can someone give details on the state of the memory for the following: [CODE] class Q2 { private static int num = 0; private …

Software Development
Member Avatar for lolafuertes
0
171
Member Avatar for singhs18

Ok so lets say I have any GUI that needs its contents changed while it is running, so that it will re-display the new contents. An example would be in my defaultlistmodel it would have: Exactors Diggers But once the user selects "Exactors" and moves to a new GUI which …

Software Development gui java
Member Avatar for singhs18
0
178
Member Avatar for Tobyjug2222

Hello, I'm currently making a program in Visual Basic 2010 for my Course work, and I'm struggling a little as it involves a "log-in system." The system will save the Users Information in a folder (Called UserInfo.txt) (Address, Password, Email etc..), and the folder name being the username of the …

Software Development vb.net visual-basic
Member Avatar for berniefitz
0
1K
Member Avatar for mrjeck2008

I need my program to take user input look throught the text file that is being read and find the the text and print back the corresponding text. In the text file I have a list of java compile time errors and their sample code separated by a colon. For …

Software Development file-stream file-system java
Member Avatar for NormR1
0
585
Member Avatar for Begginnerdev

Hello, I have one more question. I am connectinag to SQL Server 2008, not express, and I keep getting the "login failed for user "..."" The connection string I am using is: [CODE] Dim connStrg As String = "Data Source=" _ & ServerAdressTextBox.Text & _ ";Initial Catalog=" & _ DatabaseNameTextBox.Text …

Software Development mssql sql vb.net windows-server
Member Avatar for Begginnerdev
0
2K
Member Avatar for tvone

Say i have these XML tag: [CODE]<?xml version="1.0" encoding="utf-8" ?> <AutoMobile> <KeyPhrases list="BMW"> <[COLOR="Green"]Question value="Is this type I or type II?"[/COLOR]> <[COLOR="Red"]Option value="Type I"[/COLOR] id="1"> <Question value="Is this controlled or uncontrolled?"> <Option value="Controlled" id="1"> <Diagnosis_List> <Diagnosis icd9=""> type I - controlled</Diagnosis> </Diagnosis_List> </Option> <Option value="Uncontrolled" id="2"> <Diagnosis_List> <Diagnosis icd9="">type I …

Software Development vb.net xml
Member Avatar for hericles
0
187
Member Avatar for seek

I am getting this error PYTHON - TypeError: unsupported operand type(s) [CODE]weekPay = [] names = [] hours = [] wages = [] while True: name = raw_input("Please input yor first and last name or type \"Done\" to continue: ") if name.title() == "Done": break names.append(name.title()) hour = raw_input("Please input …

Software Development python
Member Avatar for vegaseat
0
223
Member Avatar for AdampskiB

In my code they're instructed to enter a width and height. However obviously these will be intergers, but I need to perform checks that they are intergers before they're used. Atm I've got this: [CODE] while True: if width.isdigit() == True and height.isdigit() == True: if width >= 2 and …

Software Development python
Member Avatar for TrustyTony
0
199
Member Avatar for newbie14

Dear All, I got a standalone application where I update 3 db at one time. One on local db, one is central db and one more is the its exact copy of local db in the central server. So I have been using the normal begin and commit when there …

Software Development c# mysql
Member Avatar for lolafuertes
0
156
Member Avatar for toldav

I'm trying to find out what is the final output value for this "for loops." I'm getting 81 [CODE]Dim sum As Integer sum = 0 For i As Integer = 1 To lstNumbers.Items.Count - 2 sum = sum + lstNumbers.Items(i) Next lstNumbers.Items.Add("The sum is " & CStr(sum)) "lstNumbers.Items" 5 10 …

Software Development vb.net
Member Avatar for toldav
0
90
Member Avatar for dennis_ian

hi iam new with vb and iam just trying to learn this one by reading tutorials online. After months of trying, i have created one db which i would like to use at our office. Its a counter Ticketing system. Its fun actually i must say, but its also giving …

Software Development vb.net
Member Avatar for Reverend Jim
0
164
Member Avatar for AndresOend

Hi there, I'm writing my first Python script for a(n imperative) programming class at university, and I want to make it a little better. It's meant to be fairly short, 50 lines. I've written the basic 'mechanism' to look at the user input. Instead of simply printing every property of …

Software Development python
Member Avatar for AndresOend
0
40K
Member Avatar for razree

Hi all I run into a problem and I'm asking for you help again. I have a IF statement which is checking each row in the data table (for a match) and ELSE statement with commands which are executed if the If statement is not satisfied. Now I would like …

Software Development vb.net
Member Avatar for Begginnerdev
0
194
Member Avatar for churni

Hi All I am creating a program which will (in the end) help me quickly transfer products from one category into another within a MySQL Database. I have a database with TWO separate tables which are connected using INNER JOIN where the products have a categoryID as do the categories …

Software Development dataset mysql vb.net visual-studio
Member Avatar for invisal
0
1K
Member Avatar for Nandomo

I am making an ATM machine and trying to get my accounts from a .csv file to an ArrayList and am having all sorts of issues. Can I get help? It is giving me problems on line 52 of the class where I read and put the items into Arraylist. …

Software Development java java-swing
Member Avatar for JamesCherrill
0
144
Member Avatar for n3red

Hi, I have 2 JTree components on my JForm. If a user clicks on a DefaultMutableTreeNode on JTree A i want app to add it to JTree B. [CODE] public void addModule(final JTree a, final JTree b){ a.addTreeSelectionListener(new TreeSelectionListener(){ @Override public void valueChanged(TreeSelectionEvent e) { DefaultMutableTreeNode node = new DefaultMutableTreeNode(a.getLastSelectedPathComponent()); …

Software Development java
Member Avatar for Ezzaral
0
262
Member Avatar for eavila

Hey, so as you can tell, this is my first attempt at writing a class. I put in a mock int main() in order to follow what exactly is going wrong. As far as I can tell, every time the struct in push is used, it always has the same …

Software Development c++ queue
Member Avatar for gusano79
0
145
Member Avatar for riahc3

Hello Im trying the ini4j library but I seem to be having problems writing a Unicode file (no problems reading I believe) Is this a Java issue or ini4j? Thank you

Software Development java
Member Avatar for riahc3
0
747
Member Avatar for Ntropy

Basically, i'm doing an exercise that requires me to decrypt some numbers in an array, which will then read out something about "THEO", i've written my code out in this way, and it compiles fine, but it's having a problem when i run it, i'm getting a problem with my …

Software Development java
Member Avatar for Ntropy
0
216
Member Avatar for kesh1000

hi all, I came through this question and was confused as to what and why the ans should be?? [CODE]String str = "10"; int a = new Interger (10);[/CODE] which of the following is legal: - choose any 3. a) str += a; b) boolean b = str == a; …

Software Development java legal
Member Avatar for Ezzaral
0
93
Member Avatar for blackrainbowhun

Hello everybody! I'm participating in a competition, and I just finished my program. It doesn't really matter what it does, and how. I have encountered a bug I think. I'd appreciate every kind of help, because with the problem, my solution fails for the test file. I have to read …

Software Development c++
Member Avatar for Schol-R-LEA
0
173
Member Avatar for dlayante

I have created a DLL files using C#.... How can i use it in Visual Basic 6.0? Please help me with this project...can you give me codes for it or step by step procedure THANK YOU!!!!!!!!!!!!

Software Development visual-basic
Member Avatar for hkdani
0
7K
Member Avatar for newbie26

hey.. can someone help me here?? how can i get the second to the last and the last record in the notepad?? then, i will subtract those values and insert into the database. tnx. im using vb6 and mysql.

Software Development visual-basic
Member Avatar for hkdani
0
124
Member Avatar for ssdeep

i have a file of the form [CODE](9430, 3656) (9147, 14355) (133, 14393) (7917, 9513) (3719, 12775)[/CODE] lets say i need to store it as a hash.such that 9430=>3656 and so on.I tried using split but it takes whitespaces for right hand values.How can i do it the better way?

Software Development perl
Member Avatar for d5e5
0
229
Member Avatar for dmtYork921

Hi, I was trying to figure this out. I've been scratching my head all morning and I'm at a mental dead end. Can anyone help me? Malicious code in red [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package …

Software Development java java-netbeans tcp-udp
Member Avatar for JamesCherrill
0
189
Member Avatar for Akusa

Okay so for my beginners c++ class we have to make game for our final project. The game is a simple shooter type game with ascii chars and stuff for the player and the enemy. We covered up to 2d arrays in class and then the teacher gave us the …

Software Development c++
Member Avatar for Schol-R-LEA
0
429
Member Avatar for itsmrshow

i need to compare these two arrays. one array in the lottotest class, method getdata gets the users numbers and stores them in an array. the nest in loto class, method gendata, generates 6 random numbers between 1-9. i need to then call both methods into the main method and …

Software Development java java-swing
Member Avatar for itsmrshow
0
324
Member Avatar for kbj123

am using vb6 and ms office 2007 on Windows 7 professional platform i wrote code as below dim db as database dim rs as recordset dim ws as workspace Private Sub Form_Load() Set db = OpenDatabase(app.path & "\Contacts.mdb") Set rs = db.OpenRecordset("Info", dbOpenTable) End Sub Now, when i run my …

Software Development visual-basic
Member Avatar for hkdani
0
265
Member Avatar for stereomatching

Now I have a lot of airplanes, in the ideal world the interface of the airplanes(or anything) should be unify but for some kind of weird reasons, the class for different airplanes are designed like this [code] struct airplane_A { fly_A(); speed_up_A(); //blah blah blah }; struct airplane_B { fly_B(); …

Software Development c++
Member Avatar for stereomatching
0
106
Member Avatar for RaoxFaello

I'm new to VB.Net i was asked by my professor to create and pass an application (He didn't mention any specifics so i'll take it as creating my own application) So i'm thinking to create something simple and it include something like opening a form within a form For example …

Software Development vb.net
Member Avatar for Begginnerdev
0
89
Member Avatar for khizer03

how to link a form so that the form should appear as soon as the computer gets on in VB.net

Software Development vb.net
Member Avatar for Reverend Jim
0
93
Member Avatar for aishapot

I need to save pictures in my database, my database is MSSQL as of now, my code for getting the picture is this: Private Sub browsepic_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles browsepic.Click With dialogpic 'Open File Dialog sa toolbox .InitialDirectory = "C:\Users\CAMILLE\Pictures" .Filter = "JPG Files|*.jpg|PNG Files|*.png|GIF …

Software Development image mssql vb.net
Member Avatar for aishapot
0
255
Member Avatar for lili22

[B]Hello .. im a business student with a vb.net course .. donno why we're being taught vb but that's that .. any ways could anyone help me solve this problem: Develop an application which reads two integers n1 and n2 from the user via two textboxes and displays in a …

Software Development vb.net
Member Avatar for Reverend Jim
0
379
Member Avatar for Bheeman89

Hello people. Im having a problem in my coding. I am doing a username and password application (sumtthing like a password keeper). So I have created the interface and i integrated vb 2008 with sql server 2008. So the adding of account and password all went fine. I have applied …

Software Development client-server vb.net visual-basic
Member Avatar for lolafuertes
0
433
Member Avatar for subhra1234

hi everyone,i am just a beginner in python,i am going through "head first programming" and saw about the [B][COLOR="red"]pygem[/COLOR] [/B],but iam unable to install pygem....i already downloaded [B][COLOR="red"]pygame-1.9.1release.win32-py2.5[/COLOR][/B] from pygem site,but at the time of running the set up i am getting a error that it is not compatible with …

Software Development python
Member Avatar for subhra1234
0
293
Member Avatar for kavi4u

Hi, I want to assign a f2 key for the save button in my c# application, is it possible ? if not any other ways where i can assign short cut key for the buttons ? any one can help me Thanks in Advance ..

Software Development asp.net
Member Avatar for Mike Askew
0
126
Member Avatar for j23

hi, does anyone know how it would be possible to change my code so that the circles drawn by the applet are resized as the applet screen size is changed? [CODE] import java.awt.Graphics; import javax.swing.JApplet; import java.awt.Color; @SuppressWarnings("serial") public class OvalApp extends JApplet { private int width, height, x=10, y=10; …

Software Development java java-swing
Member Avatar for j23
0
1K
Member Avatar for galhajaj

Hello :) i intend to make a game in c# that will contain information of 10,000 people i dont familiar with db yet but i guess from a little reading that the best way is to use ADO.NET sql library... the game is not on the internet, it will be …

Software Development c# sql
Member Avatar for rotten69
0
299
Member Avatar for flywheeljack

I am currently working with a vb2010 front end with access as the database. everything works for accessing the information adding information. But when I try to edit/update the contents of a row I find that the update is being applied to the first row of the table rather than …

Software Development vb.net
Member Avatar for Netcode
0
164
Member Avatar for surakesh

// ws is an object variable of worksheet // systype is a string variable Range r = (Range)ws.Cells[2, 2]; systype = r.Value2.ToString(); how can I combine these two lines into one single line ? Please help ....

Software Development microsoft-office
Member Avatar for surakesh
0
93
Member Avatar for Morney

Hello, So I have started to learn java from scratch, and I love it, any time spare I try to create programs (nothing complex yet) The last one I have done is the game Pontoon, blackjack or 21, many names. It works to how I would like it to, but …

Software Development java
Member Avatar for Morney
0
749
Member Avatar for skran

Hi! I m trying to open a filter form at the center of a form which is inside the panel 2 of a split container.. I ve selected Start Position of the filter form => Center Screen but the problem is that when I push the button which opens the …

Software Development html-css vb.net
Member Avatar for Netcode
0
370
Member Avatar for skp03

i have a form in which their is a two text boxes text box1=username text box2=password when i execute then i have to enter the username and password when i cancel the execution it will close every thing ok But i need the same username which has been used at …

Software Development vb.net
Member Avatar for skp03
0
140
Member Avatar for crapped

Well is there any built-in function to do this ?, or 3rd party library EXAMPLE code [CODE]source := Sock.Get('http://www.google.com/'); if source('Google Search Engine', a) > 0 then begin NeededPattern := GetPattern(source, '<font>','</font>'); result := neededPattern; // will display ABC of the <font>ABC</font> end;[/CODE] Then it will get the middle of …

Software Development html-css pascal regex
Member Avatar for pritaeas
0
151
Member Avatar for juliusmasa

Can you help me put actions to the buttons [code]public class TimeIn extends javax.swing.JFrame { /** Creates new form Timein */ public TimeIn() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of …

Software Development java java-netbeans java-swing
Member Avatar for stultuske
0
148
Member Avatar for WARburg

Hello Everyone! That's my first post on this forum and I'd like to greet Everyone I got a question about getting the last key pressed without stopping the programm. I know that getchar(), cin, getch() commands don't allow to do that. Have You any idea how to solve this problem? …

Software Development c first-post
Member Avatar for zeroliken
0
3K
Member Avatar for manhthaodn

I'm building a C # application on Visual.NET. Now, After packing program to deployment. When users use the program, if have internet connection, the program will automatically send mail notification to me. To do that I do like? Thanks!

Software Development email
Member Avatar for manhthaodn
0
469
Member Avatar for MORFIOUS

i got project on student information management system .... i have no idea about the topic and content ... please if you have C# project please share ........ if you have software on student management system do share :) college management or institute management or school management ... any of …

Software Development
Member Avatar for kamilacbe
0
411
Member Avatar for skp03

A bit of confusion what to do I have a form1 in that their is a button by name "login" by clicking on the button "login" the form2 will be shown in a form2 their is username and password text boxes and two button one is "ok" and another one …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
85

The End.