43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for RenanLazarotto

Hey guys! Its me again. I'm working with a SQLite database, and I want to list every entry inside a listbox (only the "Name" row). I know that I can list everything inside a DataGrid, but I don't want to list everything (: Also... sometimes, when you open a window …

Software Development sqlite vb.net
Member Avatar for RenanLazarotto
0
124
Member Avatar for plasticfood

ok so the program gets a list of numbers, and it counts how many times a number is entered. [CODE]for(int i = 0; i < numList.size(); i++){ for(int j = numList.size() - 1; j > i; j--){ if(numList.get(i) == numList.get(j)){ count++; numList.remove(j); } } System.out.println(numList.get(i) +" " + count); count …

Software Development java
Member Avatar for plasticfood
0
107
Member Avatar for Ashena

Hi. I have an external file where I have the results of a dictionary: [CODE]google.com {'facebook.com': 230, 'yahoo.com': 9, 'fifa.org': 67, 'msn.com': 3} yahoo.com {'apps.facebook.com': 13, 'msn.com': 9, 'myp2p.eu': 2} [/CODE] The results show the search engines, the links have been clicked from the search engine and the number of …

Software Development python
Member Avatar for Ashena
0
413
Member Avatar for Rimojenkins

Sorry about the title, but I thought it would be interesting. Here is my problem. I am supposed to convert a certain input into a desired output. The input is 2 201101190930 F76.4 201101191330 C16.3 The first number is the number of strings in the file. It then goes YYYYMMDDHHMM …

Software Development c++
Member Avatar for Rimojenkins
0
116
Member Avatar for emko

Hi I need to create an application that converts an image to an icon. This is for a school project, and I know there are libraries in VB that do image conversion, however I have to make the conversion process myself. My first task is to convert an JPEG into …

Software Development gui image vb.net
Member Avatar for emko
0
4K
Member Avatar for MaddTechwf

If I wanted to call the RUN prompt and the Command prompt in my application, what exe's would I need to reference?

Software Development vb.net
Member Avatar for zinnqu
0
116
Member Avatar for atticusr5

Hello, I have a program with the following variable: [CODE]char dateCode[13];[/CODE] and the this type of data is held by the variable -> 2011006+0000 Now if i want to print only 2011006, and ignore the + and everything after, is there a way to do that in c++? Would i …

Software Development c++
Member Avatar for atticusr5
0
101
Member Avatar for onlinessp

hi, i have wrote the following code.... [CODE] private void button_MouseEnter(object sender, EventArgs e) { if ( button.Enabled== false) label1.Text = "Please Select the area to scan"; else label1.Text = "It will scan the specified area"; } [/CODE] and used mouse enter handler.The problem i am getting is it give …

Software Development
Member Avatar for ddanbe
0
104
Member Avatar for Translucentbill

So I have started learning Java for my senior project at school and I would really like to make a tower defense game as my project. I have been looking for tutorials that would help but I am having trouble finding some. I have been using [url]www.javacoffeebreak.com[/url] and I've been …

Software Development flash java
Member Avatar for jon.kiparsky
0
3K
Member Avatar for justin3085

I have an app put together that reads from a text file using streamreader. I have it coded, maybe not the best but it returns only the first line in the text file. I'm trying to get it to select a random line each time a button is pressed. [CODE] …

Software Development display
Member Avatar for justin3085
0
421
Member Avatar for Monkeeboy

Hello, i'm justarting out with OOP with Java and i'm looking for a bit of help with a bit of code as i can't quite work out why it wont work as i'm still learning. Here's what im being asked to do [I]write a public method called requestPositionsAndMove() which takes …

Software Development java oop
Member Avatar for Monkeeboy
0
176
Member Avatar for AaronLLF

Nevermind... fixed it right after posting. Epic. Fail.

Software Development java
Member Avatar for Akill10
0
182
Member Avatar for vbx_wx

[code] class A: def __init__(self): print 'A()' class B(A): def __init__(self): A.__init__(self) print 'B()' class C(B): def __init__(self): B.__init__(self) print 'C()' c = C() [/code] Cans omeone help me explaining what am I doing wrong here? I`m getting an error like: [code] B.__init__() TypeError: unbound method __init__() must be called …

Software Development python
Member Avatar for vbx_wx
0
131
Member Avatar for coroll

Hi, Can enyone helpsme.Im new to C#. i gt this error. Embedded statement cannot be a declaration or labeled statement My code is [CODE] foreach (Form form in Application.OpenForms){ if (form is productResults) productResults pr =(productResults)form; } [/CODE] PLZ...help me.

Software Development
Member Avatar for kvprajapati
0
977
Member Avatar for PM312

How can i trigger Leave Cell event for Msflexgrid through command button click or textbox lost focus.

Software Development visual-basic
Member Avatar for AndreRet
0
1K
Member Avatar for jogieglenmait

my problem is so simple guys, how do i make [B]3 textboxes[/B] connect to a database of users using [B]adodc in a different form?[/B] [B]so that if you entered your userid, username and password you could log in.[/B] i cant post my code now but ill try later on.

Software Development visual-basic
Member Avatar for panchong
0
1K
Member Avatar for daniwaber

Hi:) How can I scroll the report in runtime by mousewheel. I am using VB6 (SP6) and for reports I am using VB report control.

Software Development visual-basic
Member Avatar for AndreRet
0
286
Member Avatar for tim8w

This is such a basic question, I'm almost embarassed to ask it. How do I loop through seleted rows in a DataGridView and remove the rows? I've tried this, but it doesn't work. After one row is removed, the index is all screwed up... [CODE] iIndex = dgvRecipe.Rows.GetNextRow(-1, DataGridViewElementStates.Selected) While …

Software Development vb.net
Member Avatar for bhagawatshinde
0
172
Member Avatar for Leodumbi

Hello! I'm still on my long run of selfteaching... My current problem is this: I have a form and I have in it three textboxes, 1 button and 1 datagridview; I also have an access database. I can retrieve the data from the dtabase and add it to the datagridview. …

Software Development vb.net
Member Avatar for Leodumbi
0
742
Member Avatar for elsiekins

Before people go why would i want to create an array of size 0 - this is due to writing a test program. at the moment i have two diffeent ways of doing - not sure which one is even slightly correct 1.[CODE]uint8_t * BufferB = new uint8_t[0]; uint8_t* p; …

Software Development c++
Member Avatar for elsiekins
0
422
Member Avatar for tendaimare

I am using this code to to generate a crystal report from aa sql string that i construct using a supplied table name and some column names in txtSQL.This code contains functionality to export to ms word.However when the save dialog comes up and the user enters the intended filename.and …

Software Development vb.net
Member Avatar for tendaimare
0
143
Member Avatar for vineeshvs

[code] #include <stdio.h> #include<stdlib.h> int **matrix_mul(int **m1,int **m,int a,int b,int c,int d); main() { int i,j,r1,r2,c1,c2,**p,**q; printf("Enter the number of rows and columns of first matrix :\t"); scanf("%d%d",&r1,&c1); printf("Enter the number of rows and columns of second matrix :\t"); scanf("%d%d",&r2,&c2); //memory allocation for m1 int **m1; m1 = malloc(r1 * …

Member Avatar for vineeshvs
0
159
Member Avatar for NewOrder

Hi, here is a class with the methods that i have created: [CODE]class BlackCheckAlgorithm { bool checkCheckMeh; string checkOrpiece; bool checkOrPiece; string chessPiece; bool checkSafe; int kingRow; int kingColumn; int blackkingRow; int blackkingColumn; bool dynamicCheckBlack; int whitekingRow; int whitekingColumn; bool dynamicCheckWhite; bool mate; int kingRow2; int kingColumn2; bool pieceDoesntCollideKing; bool …

Software Development
Member Avatar for NewOrder
0
166
Member Avatar for MasterGberry

I have spent all of yesterday and this morning trying to think of how to do this, and I am still stuck. I don't understand how I can take a std::vector<char> (bytes) and extract values from it by combining the bytes. I have read everything that people have posted but …

Software Development c++
Member Avatar for MasterGberry
0
214
Member Avatar for rssk

hi all........ file1 99 root S 5176 95 [B]41.2[/B] 8.3 snmpd file2 99 root S 5176 95 [B]1.0 [/B] 8.3 snmpd i want to caluculate difference between two files fifth column(i.e bolded columns as mentioned above).. thanks in advance...:'(:)

Software Development python
Member Avatar for snippsat
0
193
Member Avatar for _neo_

I have two codes in C and in Python. They gave me different results. Can anybody explain how they works, why I get different results? Thank you in advance!!! In C: ----------- #include <stdio.h> int main() { int a = 100; printf("%d = %02x\n", a, a); a = ~a; printf("%d …

Software Development python
Member Avatar for _neo_
1
215
Member Avatar for bhagawatshinde

Hi, how i can find the last element of arraylist.

Software Development
Member Avatar for bhagawatshinde
0
91
Member Avatar for Nandomo

Okay, I was given a picture in bitmap format and a very brief explanation on seekp and seekg. And was told to write a program. I am supposed to make overwrite the image as its own negative and output in binary. I don't know where to even start, I know …

Software Development c++ image ios
Member Avatar for Nandomo
0
132
Member Avatar for pseudorandom21

Using C++/CLI-- Is there a good way to return a value (not a DialogResult) from a form shown as a dialog? I plan to use Invoke on a method to update the previous form from within the dialog, if not. I also would like to thank the fine members of …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
336
Member Avatar for Mayank23

how can i display all the account numbers that have been entered. it only shows the last account number entered, not any before it. heres the code- [code] #include <iostream> using namespace std; int main() { double deposit; double previous; double newtotal; double withdraw; int total; int number; int res; …

Software Development c++ programming-construct
Member Avatar for Mayank23
0
189
Member Avatar for Joey_Brown

Hello So I have a simple structure : [CODE] struct students { char name[30]; unsigned int noofcourses; char course[50]; char status[30]; }arr[50]; //50 students [/CODE] I would like to know is how could I read multiple courses in per student from memory.[CODE]Example: Joey Brown 4 Math$Chem$Phy$Cooking Enrolled m8!! [/CODE] So …

Software Development c c# c++ data-structure
Member Avatar for Adak
0
175
Member Avatar for tacker

I'm writing a simulation in population genetics and am having a problem setting up the initial population. The problem boils down to this... [CODE]int test[1][1][1]; test[0][0][1]=1; test[1][0][0]=2; printf("test: %d\n",test[0][0][1]);[/CODE] Why does this print 2? I feel like it should print 1. I've searched forums for an answer, but haven't been …

Software Development c
Member Avatar for tacker
0
237
Member Avatar for atticusr5

Hello out there, I am trying to compile some simple code but am running into a weird error that I can not figure out terminate called after throwing an instance of 'std::ios_base::failure' what(): basic_ios::clear Aborted This is happening when I do an Infile>> read in the code below. What I …

Software Development c++ ios
Member Avatar for Fbody
0
5K
Member Avatar for Xcelled194

Hi, I'm making a simple utility for browsing an intra-net site using VB.net webbrowser and for reasons outside my control, everything requires a passcode to be accessed. So, for example, [CODE]Index.html[/CODE] is blocked by the company server but [CODE]Index.html?pass=123456[/CODE] is allowed. Is there a way to get the web browser …

Software Development vb.net web-browser
Member Avatar for Xcelled194
0
306
Member Avatar for TYDIRocks

Hey, so I'm creating a program that creates a SHA512 hash. I have a problem though. I try to encrypt the word 'test' and I get this encrypted hash as: ?&??J??I???? ???a??w.G????? ?z???????O????{72??_???oW? Which isn't a SHA512 hash. Here is my code so far, maybe you can help me. [CODE=VB.Net] …

Software Development encryption vb.net
Member Avatar for Unhnd_Exception
0
449
Member Avatar for CHOCHOCHO

Write a program that simulates an Internet connection error. Display a MessageBox that notifies the user of the error and provide three buttons: abort,retry, and ignore. If the user chooses Retry, display a message indicating the connection succeeded. If the user choose Ignore, display a message indication that the user …

Software Development
Member Avatar for CHOCHOCHO
0
120
Member Avatar for jamshed ahmed

WHAT I WANT FROM THE FOLLOWING CODE IS THAT IF CONNECTION IS OPEN THEN SWITCH USER TO LOGIN FORM IF CONNECTION IS FAIL TO OPEN THEN SEND USER TO CONFIGURATION FORM WHERE THE NEW PATH FOR DATABASE CAN BE DEFINED. IN THE FOLLWING CODE IF I REMOVE THE DATABASE FROM …

Software Development open-source vb.net
Member Avatar for Unhnd_Exception
0
193
Member Avatar for vedro-compota

Hi there) Tell me please -is there any picturebox method to redraw it in C # ? Thanks in andvance.....)

Software Development
Member Avatar for vedro-compota
0
43
Member Avatar for LianaN

Hi! Could someone please give me any idea on how to add a background image to JInternalFrame without subclassing. Below I provide a code snippet, but the line [ICODE]jif.setBackgroundImage(backImage);[/ICODE] is incorrect. Please, help me to fix this error. But I don't want to create a subclass, e.g. MyJInternalFrame. Thanks! [CODE] …

Software Development image java
Member Avatar for LianaN
0
854
Member Avatar for gerard4143

Am I correct assuming that a reference to an object will not call the object's destructor when the reference goes out of scope? The code I attached supports my assumption but I'm not certain if its correct...Any comments? [code] #include <iostream> class myint { public: myint():itsvalue(0) {} myint(unsigned long val):itsvalue(val) …

Software Development c++
Member Avatar for gerard4143
0
2K
Member Avatar for arthurav

I have the following program : [CODE] #include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int,int); matrice(char *); matrice(int,int,T **); matrice(matrice &x); ~matrice(){}; template <class U> friend ostream &operator <<(ostream &,matrice<U> &); int getNrLinii(){ return m; } int getNrColoane(){ return …

Software Development c++ oop os-x
Member Avatar for Fbody
0
190
Member Avatar for javanoob101

I've changed some of the code but the animation plays when you keep pressing the space bar. I want it to animate my bullet across the screen just by pressing the space bar(not by pressing the space bar mulitple times). Thank for your help! *Note: the old code was posted …

Software Development java
Member Avatar for javanoob101
0
231
Member Avatar for coroll

Hi, I want to send no emails with attachments.But i dont know anything about sending emails.Im using windows 7 visual studio 2008. I was looking for help on internet. According to them I installed IIS.I think it is IIS 7. How to check the version of IIS? Also smtp is …

Software Development email visual-studio
Member Avatar for coroll
0
311
Member Avatar for get connected

Hi I Have a form that contains around 30 Labels and 30 Pictureboxes. I have a piece of code that on form load that steps through the labels and changes the text to a file name from a directory. This all works fairly well however: I need to be able …

Software Development vb.net
Member Avatar for get connected
0
156
Member Avatar for divakar.it

I would like to copy and paste special values in excel using VB6 during report generation. But pastespecial is not working. Its throwing error 1004 Paste Special method worksheet failed. Below is the code. can you please advise [CODE]xlTmp.ActiveSheet.Range("H7:H23").Select xlTmp.Selection.Copy xlTmp.Sheets("Consolidation").Activate xlTmp.ActiveSheet.Cells(6, 4).Value = P(N) xlTmp.ActiveSheet.Cells(8, PS).Select xlTmp.ActiveSheet.PasteSpecial xlPasteValues, xlNone, …

Software Development visual-basic
Member Avatar for AndreRet
0
212
Member Avatar for neosonic

Hi, I just want to ask a simple question.. hopefully. I use package and deployment wizard to create my software's installer. My software can be run by using a lot of pictures and document that because it contains millions of pictureboxes. Those pictures must be located in the same folder …

Software Development visual-basic
Member Avatar for AndreRet
0
344
Member Avatar for sirlink99

Hello. I am having trouble with my menu and buttons (which are just pictures that change when you scroll over them). One of my buttons works perfectly, but when I coded the rest in the same way (at least I think so) they dont work. Sorry for the long code. …

Software Development gaming java perl
Member Avatar for sirlink99
0
164
Member Avatar for MasterGberry

I am having issues with the compiler in checking to see if a piece of a string is empty or not. I have a feeling this is simple, but today has not been my day with this code, but I am still doing my best. Ty tableRow is a std::vector<std::string> …

Software Development c++
Member Avatar for elsiekins
0
163
Member Avatar for sirlink99

I imported a picture onto another picture and I am wondering how to get rid of the white around the smaller picture.

Software Development java
Member Avatar for sirlink99
0
272
Member Avatar for sirlink99

when the space key is pressed then the menu apears, but when you press the resume button (cont) then the menu should dissapear, but it doesn't. please help. Thanks [code]// The "ArrowKeys" class. import java.applet.*; import java.awt.*; import java.awt.event.*; public class ArrowKeys2 extends Applet implements KeyListener, Runnable, MouseListener, MouseMotionListener { …

Software Development java
Member Avatar for sirlink99
0
368

The End.