43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for samm22

Hi, Am trying to create a multipage (or multitab) user form and each one of page (tab) has several textboxes in it. After user enters the input in the textboxes, the data goes into an xml file. All I wannna know is, what is the syntax for getting inputs from …

Software Development vb.net xml
Member Avatar for codeorder
0
135
Member Avatar for DecreaseEntropy

[code] # nth_prime.py def nth_prime(n): primes = [2] test_int = 1 while len(primes) < n: test_int += 2 for p in primes: if test_int % p is 0: break else: if p is primes[len(primes)]: primes.add(test_int) return primes[n - 1] while True: try: num = int(input("Enter a number:\n")) print(nth_prime(num)) except ValueError: …

Software Development python
Member Avatar for woooee
0
236
Member Avatar for LianaN

Hi! I'm trying to create borders around JLabel components. However, the line [ICODE]c[i].setBorder(border)[/ICODE] cannot be compiled. Please, help me to improve this code. Thanks! [CODE] public void mouseReleased(MouseEvent e) { if (Menu.getgroup()) { Component[] c = getComponents(); Border border = LineBorder.createGrayLineBorder(); for(int i = 0; i < c.length; i++) { …

Software Development java
Member Avatar for LianaN
0
94
Member Avatar for SpecialForce

Here I have a small piece of code: [CODE]ofstream hello ("hello.txt"); hello << "Γειά σου!"; //hello in greek hello.close();[/CODE] And here is the output: [CODE]Output on greek windows: "Γειά σου!"[/CODE] [CODE]Output on english windows: "ÃåéÜ óïõ!"[/CODE] Can someone, please, help me find out how to fix this?

Software Development c++
Member Avatar for danb737
0
110
Member Avatar for Waldek

Hello All! Does anyone know how to list all the paths to one or several (if they exist) versions of msaccess.exe on a PC. I'm using VB2005 and have a project with an Access backend that contains reports which are called at various points. These need to be opened with …

Software Development vb.net
Member Avatar for lolafuertes
0
119
Member Avatar for Duki

What happens if I have a method declaration of: [code=c++]int method( char * a, char * b, int * c );[/code] and then I pass in: [code=c++] char a; char b; int c; method(a, b, &c); [/code] This has me a little puzzled. What values will be passed by reference?

Software Development c++
Member Avatar for Duki
0
216
Member Avatar for MrCapuchino

Hello I created a setup project for an application. The output goes to the program files folder. I create a shorcut on desktop too. The thing is that the application works with some text files embeded. When I run the application and click new there is an error saying that …

Software Development
Member Avatar for Ketsuekiame
0
152
Member Avatar for vanzhyme

ahmm.. guys could u please help me about tab control . I have a text input in textbox1 in tab page 1 and i want that text from textbox1 will be displayed in textbox2 in tab page 2. please help me ..

Software Development vb.net
Member Avatar for vanzhyme
0
152
Member Avatar for hanslim77

I'm trying to run audio in a different thread but I have no idea why but when I call wait(), my entire program seems to wait or hang.. not sure if it's deadlock since all it does is wait(), though if I set a time period, after that period it'll …

Software Development audio java multithreading
Member Avatar for hanslim77
0
214
Member Avatar for chabo

hello i need a countdown timer that count from 10 to 0 and then give me a msg "win"....??

Software Development vb.net
Member Avatar for manimaran.m
0
111
Member Avatar for Annettest

Hello all: I would be grateful for some basic advice about C++ error handling. From my reading, I understand that the "try, throw, catch" method is preferable to dealing with return values, which can be cryptic. But I'm not sure if I understand exactly how this works. I made a …

Software Development c c# c++
Member Avatar for Moschops
0
174
Member Avatar for alex9292

hi im trying to make a simple guess a number game for an assignment and i dont get why im getting a does not exist in the current context error here is my code i put the part that gets an error in red any help appreciated thx [CODE]using System; …

Software Development
Member Avatar for alex9292
0
159
Member Avatar for Neversleepin

Hello, here is a code for retrieving some lines from a text file. i'd like to extract data from line2 to line4 ---> this is working but in the same time i want to data from Line10 to line12 here is the code, my conditions is not working: Thank you …

Software Development java
Member Avatar for Neversleepin
0
167
Member Avatar for Climber Ty

I am working on an ATM machine project for my college class. It's in its early stages but here what I have so far. [CODE] /** * * @author Ty */ import java.util.Scanner; public class Main { private double currentBal =1000; Scanner input = new Scanner(System.in); public void mainMenu(){ int …

Software Development java java-netbeans
Member Avatar for Climber Ty
0
8K
Member Avatar for ash07

Dear all I am developing an application in VB & Access .I am trying to secure application by adding user control,trace modules,database password. (just today i saw how to make a folder inaccesible+ not to allow delete.) 1)I would like to know how do i secure my application.. am i …

Software Development visual-basic
Member Avatar for AndreRet
0
157
Member Avatar for TIP.Synergy

I want to UPDATE query instead INSERT INTO using this code help me thanks. [CODE] Dim cmd As New OleDbCommand("INSERT INTO tblPurchase_Order ([Order_Id],[Supplier_Id],[Address],[Project_Id],[dtpDate],[Material_Id],[Material_Name],[Unit],[Quantity],[Unit_Price],[Amount]) VALUES (@Order_Id,@Supplier_Id,@Address,@Project_Id,@dtpDate,@Material_Id,@Material_Name,@Unit,@Quantity,@Unit_Price,@Amount)", conn) cmd.Connection = conn cmd.CommandType = CommandType.Text cmd.Parameters.AddWithValue("@Order_Id", lstItems.Items(i).SubItems(0).Text) cmd.Parameters.AddWithValue("@Supplier_Id", lstItems.Items(i).SubItems(1).Text) cmd.Parameters.AddWithValue("@Address", lstItems.Items(i).SubItems(2).Text) cmd.Parameters.AddWithValue("@Project_Id", lstItems.Items(i).SubItems(3).Text) cmd.Parameters.AddWithValue("@dtpDate", lstItems.Items(i).SubItems(4).Text) cmd.Parameters.AddWithValue("@Material_Id", lstItems.Items(i).SubItems(5).Text) cmd.Parameters.AddWithValue("@Material_Name", lstItems.Items(i).SubItems(6).Text) cmd.Parameters.AddWithValue("@Unit", lstItems.Items(i).SubItems(7).Text) cmd.Parameters.AddWithValue("@Quantity", lstItems.Items(i).SubItems(8).Text) …

Software Development vb.net
Member Avatar for TIP.Synergy
0
222
Member Avatar for Latvija13

I don't understand how to check for non-alpha characters in a string that has more than one word. I'm basically asking for a retype if the string has more than 3 words or if it has non-alpha characters. I'm wondering if Character.isLetter is not what I'm looking for since it …

Software Development java
Member Avatar for JamesCherrill
0
123
Member Avatar for irenejd

I have an electronic subscription to a newspaper and I generally download and print the puzzles for doing them later. Due to health issues, I'm behind about 6 months, but I'd like to catch up. I'd like a script to automate the download and save it to my PC. I'm …

Software Development file-system legal pdf puzzle shell-scripting
Member Avatar for irenejd
0
151
Member Avatar for LeMajestique

I am having trouble making this menu, I followed some instructions online but I can't seem to get it to loop back to the menu after I am done with a menu selection. Please Help! [CODE]#include <iostream> #include <string> #include <cmath> using namespace std; int main () { int choice; …

Software Development c++
Member Avatar for LeMajestique
0
116
Member Avatar for gingank

Hi All, I want to ask how to remove unwanted character from string?? Can provide an example? Dim A As String A = "@AA@BB@CC@DD" If i want to remove @BB what method i should use? First i try to use instr to detect where the @BB but how to do …

Software Development visual-basic
Member Avatar for jhai_salvador
0
235
Member Avatar for Lxyslckr

I'm trying to do four operations. Find the minimum including 0 # (working on) find the sum of the negative # (Think I'm done) Find the sum of the odd # (working on) How many positive #(working on) I need help on the sum of negative This is what will …

Software Development java
Member Avatar for Lxyslckr
0
92
Member Avatar for billly

hello everyone, can someone please help me this may be a simple question but im trying to open a file with a script typed into notepad (like .vbs or .bat). but i dont want to use the full directory to of the file im opening because the file is on …

Software Development vb.net
Member Avatar for codeorder
-1
111
Member Avatar for javanoob101

Hello! I need to get some collision detection going in my code but I have no idea where to start! can anybody find out how to put this in? the detection will stop drwaing monstors if the bullet hits them [code] // The "SpaceShooter" class. //import java.applet.*; import java.applet.Applet; import …

Software Development java java-swing
Member Avatar for javanoob101
0
370
Member Avatar for Mr.BunyRabit

Hey there. So i have this database, that updates when i press the "update" button. Now everything works good, until you dont enter a value into the primary key slot. Now i know what the problem is, (you cant have that slot open). What i want to konw is what …

Software Development
Member Avatar for Mr.BunyRabit
0
190
Member Avatar for tim8w

I have a DataGridViewComboBoxColumn that I allow the user to add new items to by typing in the ComboBox and hitting the 'Enter' key. That triggers CellValidating and I do the adding there by the following: cmbColumn.Items.Add(e.FormattedValue) All this works well, except that it leaves the DataGridViewComboBoxColumn blank. How can …

Software Development vb.net
Member Avatar for tim8w
0
698
Member Avatar for martin11ph

I need a program that opens a sample program and counts the number of reserved words, operands and operators. Operands and operators are easy to distinguish. My problem is how do I determine the reserved words there? One solution I thought of is to create a separate text file that …

Software Development c++
Member Avatar for mrnutty
0
154
Member Avatar for nocookies92

Recently, i found a book online that walks you through various elements of java game creation. The code from the book uses the java3D timer, so to compile the example programs, I had to download and install java3D. At Oracle's site, I selected WindowsXP as my OS and downloaded the …

Software Development java oracle
Member Avatar for nocookies92
0
399
Member Avatar for ThatGuy2244

I had tried to make a compare strings function in real mode assembly, but it didn't work, so I tried it another way and it did. It seems to me that both functions I wrote do the same thing yet one doesn't work. Can someone tell me why, the two …

Software Development assembly
Member Avatar for ThatGuy2244
0
190
Member Avatar for tiuwulf

Hi there, i've ran in a problem and made up an example code of my prob. [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct mystruct { int a; }mytype; mytype* createMytype(int x) { mytype *mt; mt = (mytype*)calloc(1, sizeof(mytype)); mt->a = x; return mt; } int foo(mytype* mt) { mt …

Software Development c
Member Avatar for tiuwulf
0
91
Member Avatar for nambiajith

i am doing project bandwidth efficient video simulation in java. I set class path in jdk set classpath=%classpath%;.\\lib\\gif4j_pro_trial_2.3.jar; [Ljava.lang.String;@15151aa Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation p roblems: The import javax.media cannot be resolved The import javax.media cannot be resolved The import javax.media cannot be resolved The import javax.media cannot …

Software Development java java-swing window-manager
Member Avatar for peter_budo
0
577
Member Avatar for ftl25

Hi, Does anyone know of some code analysis tools (add-ins) for VB6? I used to use checkstyle and some other tools for Java, and am looking for something similar for our VB6 project. There is a huge codebase, and as I'm just starting out in VB coding, I'd like advice …

Software Development visual-basic
Member Avatar for IssamLahlali
0
1K
Member Avatar for theurbanist

Hello everyone, I'm trying to create a diagram of numbers as represented by asterisks. I'm taking an integer and turning it into a string of *. For example, for the value of 4, it'd be ****. For the value of 7, it'd be *******. Does anyone know of a way …

Software Development java
Member Avatar for JamesCherrill
0
118
Member Avatar for moni94

Hi. Let's say I have a method in a foreach statement, for example: [ICODE] foreach(string str in GetStrings()) ... [/ICODE] Does the method (GetStrings() in our example) get called once or once per iteration?

Software Development
Member Avatar for Mitja Bonca
0
115
Member Avatar for blondie.simon

Hello I have an array of boolean data that I'm trying to display on the screen using 144 check boxes. Is there an easy way of updating all 144 check boxes with the data from an array and an easy way to update the array when changes are made to …

Software Development vb.net
Member Avatar for blondie.simon
0
215
Member Avatar for Annettest

Hello all: I have read that the purpose of const member functions is to specify which functions may be used on const objects. This makes sense. An example is given in my text and I don't understand it. If anyone could help, I would be very grateful. Here is the …

Software Development c c# c++
Member Avatar for Annettest
0
220
Member Avatar for Amoryethel

I'm in the works of creating a program that dishes out basic arithmetics with fractions, i.e., add, subtract. However, I found myself stumped over this error. [QUOTE]Test.java:18: 'void' type not allowed here System.out.println(r1.add(r2)); ^ 1 error[/QUOTE] My code is as follows: [CODE] \\ The constructor \\ public class RationalNumber { …

Software Development java
Member Avatar for Amoryethel
0
6K
Member Avatar for horserider

how to get list of installed programs into my listbox ...

Software Development vb.net
Member Avatar for horserider
0
179
Member Avatar for MrCapuchino

Hello, I'm developing an application where if a user clicks a button a comparisson is performed, if the user was right an image needs to show for 1 second if the user was wrong another image needs to show for one second too. The thing is, I don't know what …

Software Development image
Member Avatar for MrCapuchino
0
690
Member Avatar for ajst

Hi guys and girls, I've decided to pick up C++ again after not using it for 2 nearly 3 years. I've been programming in java and c# in the mean time so my understanding of programming is very good. I've been trying to make a pack of cards but for …

Software Development c++ visual-studio
Member Avatar for ajst
0
361
Member Avatar for Mr.BunyRabit

Hey there, =) My head is almost through with my database im working on. I just need one more thing i Cant seem to do. Now this is my code for connecting to my datagridview [CODE] String connString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\\Resources\\db1.mdb"; string query = "SELECT * …

Software Development
Member Avatar for Mr.BunyRabit
0
2K
Member Avatar for ram619

At line 12 compiler gives error....`float*' to `float' for argument `6' to `int fun(int, int, int, int, int, float, float)' could anyone plz tell me, where i m wrong......... Thanks [code=c]#include<stdio.h> #include<conio.h> int fun(int,int,int,int,int,float,float); int main() { int a1,a2,a3,a4,a5; float avg=0.0,sum=0.0; printf("Enter the five values"); scanf("%d %d %d %d %d",&a1,&a2,&a3,&a4,&a5); …

Software Development c
Member Avatar for ram619
0
5K
Member Avatar for jk09

what is meant by infinite time complexity??? i mean, does it imply that the problem cannot be solved by the algorithm as it takes infinite time..??:?:

Software Development algorithm c
Member Avatar for Narue
0
76
Member Avatar for jijo cleetus

Hi i need to convert date format 16/1/2010 10:10:2011 AM to 1/16/2010 10:10:2011 AM after that i need to put values to database too as datetime datatype.Can you please help. many thanks in advance

Software Development asp.net
Member Avatar for jijo cleetus
0
164
Member Avatar for almefab

Hi all, i have a variable in a JFRAME that i need to use in a JPANEL. How can i do that. Example: MainProgram that launches Java Application. Window1 that is a JFRAME Window2 that is a JPANEL In Window1 I have a variable declared example int X = 0; …

Software Development java
Member Avatar for almefab
0
990
Member Avatar for masterfact18

[CODE]Form3.Adodc1.RecordSource = "select * from login where username = '" + Text1.Text + "'" Form3.Adodc1.Refresh If Form3.Adodc1.Recordset.EOF = False Then If (Text2.Text = Form3.Adodc1.Recordset.Fields("password")) Then MsgBox "login success" Unload Me Else MsgBox "invalid pasword" Text1.Text = "" Text2.Text = "" Text1.SetFocus Form2.Refresh End If Else MsgBox "invalid username" Text1.Text = …

Software Development visual-basic
Member Avatar for peter_budo
0
155
Member Avatar for masterfact18

[code]Form3.Adodc1.RecordSource = "select * from login where username = '" + Text1.Text + "'" Form3.Adodc1.Refresh If Form3.Adodc1.Recordset.EOF = False Then If (Text2.Text = Form3.Adodc1.Recordset.Fields("password")) Then MsgBox "login success" Unload Me Else MsgBox "invalid pasword" Text1.Text = "" Text2.Text = "" Text1.SetFocus Form2.Refresh End If Else MsgBox "invalid username" Text1.Text = …

Software Development visual-basic
Member Avatar for abelingaw
0
290
Member Avatar for TIP.Synergy

I WANT TO UPDATE ALL ITEMS IN LISTVIEW USING PARAMETERS W/ DATABASE (ms acess)

Software Development listview vb.net
0
77
Member Avatar for AWPROGRAMMER

I want to simulate the enter key when my form opens so that it can continue it processes without the user having to push the enter key or selecting OK with the mouse. I know the question is then why have the form at all. I did not write the …

Software Development open-source visual-basic
Member Avatar for AndreRet
0
206
Member Avatar for Xjmaslord4

[CODE]Dim Hours As Integer Dim Minutes As Integer Dim Seconds As Integer Dim Time As Date Private Sub Mydisplay() 'This code is common to all three text boxes so I 'put it in it's own sub. 'Extract the numbers from the text boxes by using 'the Val() statement. Hours = …

Software Development visual-basic
Member Avatar for AndreRet
0
180
Member Avatar for Annettest

Hello all: I would be very grateful if someone could help me to understand header and definitions files. A colleague told me that definitions should never be included in a header file, but I also read that template and inline functions should be included. Is this true? If so, is …

Software Development c c# c++
Member Avatar for thelamb
0
242

The End.