132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for artemix22

i have a datagridview with 2 columns on it. i add column 1 manually from Datagridview task (add columns), it should numeric value and came from user input. for column 2 (it's numeric value), on load event from database with this : Using conn As New MySqlConnection("connection string") conn.Open() Dim …

Software Development vb.net
Member Avatar for TnTinMN
0
409
Member Avatar for Rahul47

Hey fellas, Is there any method by which I can declare a Variable that can be used in multiple forms in VB.NET ?

Software Development vb.net
Member Avatar for Rahul47
0
131
Member Avatar for shanki himanshu

why it doesnot works for values other than 0 and -1 i mean when i tried to print values of array 'a' after memset() then it shows incorrect values. int a[100]; memset(a,0,sizeof(a)); ///it works memset(a,-1,sizeof(a)); ///it works memset(a,1,sizeof(a)); ///it doesnt

Software Development c
Member Avatar for Tumlee
0
548
Member Avatar for E.RANJANI

I want do a small project based on c programming. so send me a project names......

Software Development c c# c++
Member Avatar for tux4life
0
57
Member Avatar for yvrej17

I just wanna ask what's wrong with my code it says syntax error on INSERT STATEMENT but I can't find the error @.@ Try Using conn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & System.Environment.CurrentDirectory & "\employeedb.mdb;") conn.Open() Dim command As New OleDbCommand("INSERT INTO employees (first_name, last_name, MI, address, age, contact, status, department, …

Software Development open-source vb.net
Member Avatar for yvrej17
0
380
Member Avatar for ScarWars9

Hello, I have been working on a time clock program where the user can enter their time in and time out using two DateTimePickers, and it will tell them how many hours and minutes they worked. I was able to format the DateTimePicker to only show the hours and minutes. …

Software Development vb.net
Member Avatar for Begginnerdev
0
910
Member Avatar for Everyauction

Dear Readers, 10 Years ago, Matt Hahnfeld (Everysoft.com) released the legendary EveryAuction Version 1.53 Perl Auction Script, the last Version of a serie of simple, but very popular source, still used worldwide in many different forms of applications. To honor this, I soon plan to release the new EveryAuction 2.53 …

Software Development html-css perl
0
126
Member Avatar for carbonicacid81

I need to write a program that implements Newton's method ((guess + x/guess) / (2)). The program should prompt the user for the value to find the squareroot of (x) and the number of times to improve the guess. Starting with a guess value of x/2, your program should loop …

Software Development python
Member Avatar for vegaseat
0
5K
Member Avatar for reezn

hi what i want is to separate a file in many variables and store it in an arrayList to use it for creating objects and printing. The file is as follows: L1234; Land; 50000 euros; 120 sq.m.; Artemida Attikis; near the sea; for sale FF4234; Flat; 120000 euros; 72 sq.m.; …

Software Development file-system java
Member Avatar for reezn
0
434
Member Avatar for xHellghostx

Hey guys.. I am having a small problem with a program I wrote, the problem is that I have an array that stores a user input and it should be numeric only when the user inputs an invalid input like let's say J the program will notifiy them that they …

Software Development
Member Avatar for Ketsuekiame
0
250
Member Avatar for london-G

Hello, When I am trying to build my application in Netbeans I have this error message coming up in the output. null575775 is invalid. I have check the null file but there is nothing in there. Any ideas?

Software Development java
Member Avatar for london-G
0
395
Member Avatar for ramy.merc

Hi programmers, I am a c# programmer but I have a very big project in C++ (Which I am not familiar with) and I am facing a big problem. As part of the project, I need to convert the image (any image of any type bmp,jpeg,png...etc) to grayscale using openMP. …

Software Development c++ image
Member Avatar for Moschops
0
2K
Member Avatar for elrond

#include<stdio.h> void main() {int a[100];int i;int getchar;int sum; for(i=0;i<=100;i++) while {((a[i]=getchar())!=EOF)} i++; printf("your no is =%d",&a[i]); i=0; sum=0; while(i<=100) {sum=sum+((a[i])^3); } i++; if(sum==a[100]) printf("number is armstrong"); else printf("number is normal"); not working,can someone give me an alternative usiing arrays,i got the for loop,want to execute using arrays!

Software Development c
Member Avatar for elrond
0
261
Member Avatar for kaizen202

I have my own ListView class, inheriting from Forms.ListView. When double clicking on the column divider, the columns resize to show the column items in full size. However, for me this doesnt work properly - some words are partially hidden because I am using large font size to draw items. …

Software Development listview
Member Avatar for ChrisHunter
0
854
Member Avatar for daniel1977

Dear Friends: I m hung up in Mod3 Ch5 Exercise 1. On line 149 (visible on my wiki below), the Xcode compiler throws an error saying that I'm not passing a valid parameter. http://www.jeffgeiger.com/wiki/index.php/School/CS270Mod3Ch5ProgEx1 As I understand it, remove(elem) takes an element and deletes any matching elements in the list …

Software Development c++
Member Avatar for NathanOliver
0
144
Member Avatar for IsaacMessi10

I want to display the current web address for my custom web browser. Any help? Thanks in advance.

Software Development vb.net web-browser
Member Avatar for azareth
0
98
Member Avatar for lewashby

In the following test case program I'M trying to figure out how I can use the remainder of divison to make a decision but I can not seem to get this test case to respond in the way that I think and want it to respond based upon the remainder …

Software Development c++
Member Avatar for deceptikon
0
108
Member Avatar for edensigauke

Here is my code, and i would like to read images from my mysql database and display it over a JButton using the BufferedImage casting into Image. Everytime i want it to display, it would fail to read the data and run to the Exception, may i please have help …

Software Development java java-swing mysql
Member Avatar for edensigauke
0
660
Member Avatar for Begginnerdev

Upon playing with the graphics/random class - I have discovered something odd. Private Sub Me_Load(sender As Object, e As EventArgs) Handles Me.Load For i = 0 To 5000 DrawColor(GimmiRectangle) Next End Sub Private Sub DrawColor(ByVal rNew As Rectangle) Try Dim g As Graphics = Me.CreateGraphics g.DrawRectangle(New Pen(Color.FromArgb(New Random().Next(255), New Random().Next(255), …

Software Development image vb.net
Member Avatar for Begginnerdev
0
219
Member Avatar for Andyvonschweal

I am working on an assignment in college using RUR-PLE as a starting program. I don't know if you know what that is or not, but I was wondering how to use it? I enter in this code: x = input("How many beepers are in this maze?") def place_all(): repeat(put_beeper,totalBeepers) …

Software Development python
Member Avatar for Lucaci Andrew
0
253
Member Avatar for DeepAnalyzer

Hi, I put a JTextArea on mu gui.But i can't print multiple lines on that?Why is that?.I have created a Item class and then created an Item object array in my gui.Then i print it on my jTextArea.This is my code i have put in my button. jTextArea2.setText("Item Name"+" | …

Software Development gui java
Member Avatar for Lucaci Andrew
0
221
Member Avatar for sujit.patil

int x=5; int y=10; object o1=x; object o2=y then how we can compare o1 and o2 (=,<,>,<=,>=)

Software Development c#
Member Avatar for Ketsuekiame
0
2K
Member Avatar for xHellghostx

Okay here is the problem I am having.. I am trying to make an array based on a user input.. That means the size of the array is unknown.. Here is what the program should look like. How many expierments do you want to do? *Insert user input here* expierment …

Software Development
Member Avatar for Ketsuekiame
0
629
Member Avatar for ztdep

Dear friends: I am trying to convert a double to string format using the std::to_string function, but it gives me the following error message. i do not understand why the functgion does not support the double format. i use the vs2010. > error C2668: 'std::to_string' : ambiguous call to overloaded …

Software Development c++ visual-studio
Member Avatar for tinstaafl
0
973
Member Avatar for brendalyn.quiba

hi i cant seem to make the search code for my program work . . how is this so . .? this is my code: Private Sub cmdSearch_Click() With Adodc1 .RecordSource = "Select * from PATIENT where Last Name='" & txtSearch.Text & "'" If .Recordset.RecordCount = 0 Then MsgBox "No …

Software Development visual-basic
Member Avatar for AndreRet
0
131
Member Avatar for on93

Can anyone tell me about this program how the delete tail work ? ..................................................................... void linklist::deleteSearchList(int id) { node * cur; cur = head; if (cur == NULL) return; // no node in list if (cur->link == NULL){ delete cur; head = NULL; }else if (id == head ->st.id){ cur …

Software Development c++
Member Avatar for Lucaci Andrew
0
107
Member Avatar for rishif2

hello experts . . . i've designed a form (two textboxes and one commandbutton) i wanna display id and user(fields of the table). and i display id and user on the basis of the id(inputted through textbox1).And for that i've written following code within command button's click event Private Sub …

Software Development visual-basic
Member Avatar for rishif2
0
152
Member Avatar for yup790

In the main class the user enters text trying to find the file in the same directory as the source file. The string gets passed into the constructer and a file object is made but the file isn't found. The print statements are just to find out what is happening. …

Member Avatar for yup790
0
389
Member Avatar for kartouss

Hello, I need to encrypt an image but my program is accepting 16 bytes of data for encryption from a file named plaintext.txt.. The program is encrypting data in blocks of 16 bytes that is the 1st 16 bytes are read then it is encrypted and saved in the ciphertext.txt …

Software Development c++ encryption image
Member Avatar for gnrsu
0
1K
Member Avatar for nitin1

i have a undirected graph and i want to print a cycle with length >=k (given) , can you suggest me a algo ? i dont want any code, snippet. i am hoping for hint and algo for this. thanks. it is guaratned that cycle of length >=k exists.. thanks.

Software Development c
Member Avatar for Taywin
0
142
Member Avatar for AstralPlain

Hello. I'm attempting to create a program in C# that reads lines of text from a text file and stores them in a list. Then I have to compare each line to another equally large (50 lines) text file, and display the differences to the screen? Could anyone help? It …

Software Development
Member Avatar for tinstaafl
0
210
Member Avatar for ShiftLeft

This code will not work on EMU8086 or any processor prior to 80286. Line 40 would need to be changed.

Software Development assembly
Member Avatar for mathematician
0
542
Member Avatar for chira.laura.9

Hi. I have this example for an lab and I don't understand what's happening. Especially what MEM32[0] means... DATA SEGMENT MEM32 DD 316423 DATA ENDS CODE SEGMENT … … MOV AX, 43981 SUB DX, DX ;load dx ax 43981 ADD AX, WORD PTR MEM32[0] ;add inf. word ADC DX, WORD …

Software Development assembly
Member Avatar for mathematician
0
495
Member Avatar for Pauliuz

Hey. Does anybody know how to change Form designe on button click in the same Form, but not by opening new one. Sorry for my English.

Software Development
Member Avatar for TnTinMN
0
333
Member Avatar for ziadkassam

I need help... I want to parallelize the MD5 algorithm using OpenMP in C++.

Software Development algorithm c++
Member Avatar for ziadkassam
0
723
Member Avatar for anisha.silva

Hi, i am trying to implement a federated search. I have no idea how to start implementing it? i have several questions relating to this. 1. has the application needs to be web based or desktop based? 2. do i have to have a database in the application side? i …

Software Development seo sql
Member Avatar for tinstaafl
0
188
Member Avatar for rkelly70

I have splicontainer inside another spitcontainer, I can open the form in any section but I can not get the form to stay maxamized and stop the user from moving the form. Ideally I'd like to dock the form but I'm not sure thats possible. Thanks Ross

Software Development
0
69
Member Avatar for uzair.tabassumwahla

#include<iostream.h> #include<conio.h> #include<stdio.h> #include<math.h> main() { system("cls"); int h,w,m; cout<<"Press1,if you are male"<<endl; cout<<"press2,if you are female"<<endl; cin>>m; if(m==1) { cout<<"you are male"<<endl; } if(m==2) { cout<<"you are female"<<endl; } cout<<"Enter your height="; cin>>h; cout<<"Enter your weight="; cin>>w; if(m==1) { if(h<60) { cout<<"you are unfit"; } if(h>=60&&h<65) { if(w<45) cout<<"you …

Software Development c++
Member Avatar for Moschops
0
177
Member Avatar for arasten

I made a program that makes someone think his desktop cleaned up, its just for fun and make me learn a littel bit of codes because i'm still a beginner in programming i'm 16 years old in high school grade 11 so i wanna learn more codes because at school …

Software Development visual-basic
Member Avatar for pritaeas
0
5K
Member Avatar for 03hasnam

From Class Model: public TableModel getTableData() { TableModel model=null; try { String sql = "SELECT eventID as 'Event ID', date as 'Date',eventName as 'Name', time as 'Start Time' FROM Event"; pst = conn.prepareStatement(sql); rs = pst.executeQuery(); model = (DbUtils.resultSetToTableModel(rs)); } catch(SQLException e){ e.printStackTrace(); } finally { try {rs.close(); pst.close(); } …

Software Development java java-swing
Member Avatar for Taywin
0
236
Member Avatar for jasonlolwut

I need a source code for JAVA for balancing a chemical equation. CH4 + O2 = CO2 + 2 H20 CH4 + 2 O2 = CO2 + 2 H20

Software Development java
Member Avatar for Taywin
0
2K
Member Avatar for zvjezdan.veselinovic

Hi everyone. My name is Zvjezdan Veselinovic and I am a student at Rasmussen College over in New Port Richey, Florida studying Game and Simulation Programming. For my student portfolio, I want to create a "tron-like"/ "snake-like" game called Colors and Explosions. I have so far arrow key movement. That …

Software Development c++
Member Avatar for deceptikon
0
488
Member Avatar for SoulofchaOs

I am coding an image puzzle game and one part of the code is to compare the pieces the user has selected to the pieces of the correct image to check if it is correct. Each image piece is already added to a JButton as an ImageIcon. An identifier is …

Software Development gui java java-swing
Member Avatar for mKorbel
0
252
Member Avatar for uzair.tabassumwahla

#include<iostream> using namespace std; int main() { for(int i=0;i<13;i++) { cout<<"*"; if(i==0 || i==12 ||i==9) { for(int j=0;j<10;j++) { if(i==9 && j==0) { cout<<" "; } else cout<<"*"; } } else if(i==10) { cout<<" "; cout<<"*"; for(int j=0;j<7;j++) { cout<<" "; } cout<<"*"; } else if((i==1 || i==2 || i==11)) …

Software Development c++
Member Avatar for CGSMCMLXXV
0
200
Member Avatar for DJSarma

Please help me!I want the code for doing following task in perl. Task is that "Read the paragraph from a file and print it in another file in ascending(total number of words in a sentence) order." My sample task: If the input "Hi! my name is Sarma. Can you help?" …

Software Development open-source perl
Member Avatar for voidyman
0
580
Member Avatar for triumphost

How can I calculate CLOCKS_PER_SEC.. It is defined as 1000 in ctime. I don't want it defined. I want to calculate the actual value.. I tried the below code but it seems to be giving me my CPU speed.. on a 2.8 Ghz processor, it prints 2800. On a 2.0 …

Software Development c++
Member Avatar for deceptikon
0
2K
Member Avatar for uzair.tabassumwahla

> *Inline Code Example Here*hi i want to print the diamond as shown bellow,which is generic i mean depend on the user input.the following output is for "5", Heading Here 1 232 34543 4567654 567898765 4567654 34543 232 1

Software Development c++
Member Avatar for uzair.tabassumwahla
0
109
Member Avatar for Tortura

Hello, I have several textboxes and it is possible to write something in one of them and then without losing the focus I could or would save the input. But there is no FocusLost and therefore the TextChanged event doesn't fire. How can I save the input of one these …

Software Development
Member Avatar for Tortura
0
2K
Member Avatar for somaye.s

hi i need to get pixel value of an color image but i don`t know how. i need code for do this.

Software Development java
Member Avatar for radhakrishna.p
0
112
Member Avatar for AquaNut

Hi All, I am working on a project that involes reading in an xml and sending out a soap message but have come stuck with an error of Cannot implicitly convert type 'string' to 'string[]'. The code is: foreach (var dr in DataRecords) { //build up the values we're interested …

Software Development
Member Avatar for AquaNut
0
680

The End.