132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for samreen36

hello friends i am new in c# i am started learning it from 2 days ago.bt now my teachrs say that everyone should make mini project in c# widow base. i have no ideas abt it can u give me suggestions about it plzzzzzzzzzzzzzzzzzz

Software Development
Member Avatar for Mitja Bonca
0
117
Member Avatar for java beans

Im trying to to create a simple 4 function calculator using a jump table without switch case or if/else statements. I understand I can create the jump table via function pointers but I am kindda blanking out. I've started with the addition and subtraction part of the program but am …

Software Development java
Member Avatar for JamesCherrill
0
418
Member Avatar for ac20734

I need help figuring out how to write a program with recursive functions in order to identify the path to a given maze. The maze is read in from a file and then when the path is found the maze is printed with the path shown. The read in maze …

Software Development c++
Member Avatar for gerard4143
0
158
Member Avatar for chintan_1671

I am facing a small problem. Something i might have mis understood. If u see the code without using a function if i print the message then i am getting proper output. But after i create Error function and print message from main function it is creating some problem. I …

Software Development
Member Avatar for chintan_1671
0
217
Member Avatar for AngelicOne

I have a datagridview and a status strip on my form. When I click a row or cell, the label from the status strip should change according to it's row number. My datagridview is being generated at run time by a dataset.

Software Development dataset
Member Avatar for Mitja Bonca
0
803
Member Avatar for Dec28

Not sure why my comparisons aren't working between my input (text) and my several char arrays. I'm trying to get the user's input to terminate certain functions as you'll see below. I realise it's not the most efficient code but if there's anything obvious I'm missing please let me know. …

Software Development c shell-scripting
Member Avatar for Narue
0
212
Member Avatar for Transcendent

I got my hands on the Accelerated C++ book and I'm trying to work the exercises. I want to see the solutions to see if I'm right and see how they did it and how i did it.

Software Development c++
Member Avatar for arkoenig
0
1K
Member Avatar for anthonyjpv

I created a console program in jcreator (java) which asks the user to enter a number in string and converts that string value into char array and then converts each char array into an integer which I also stored each as an array and then adds all the value from …

Software Development java mathematics
Member Avatar for anthonyjpv
0
163
Member Avatar for DKDeath

Hello! I'm a beginner in the worl of C++. I'm building a program that acts as a launcher for a game. In it I have Start and Exit button. What I want the Start button to do is start an .exe with extra conditions: IP and Port. [CODE] if (nResponse …

Software Development c++
Member Avatar for DKDeath
0
898
Member Avatar for donaldw

I'm using the function CInternetSession::OpenURL in a "try" to open a webpage (a servelet which returns XML). The servelet take a little while to respond sometimes (around 13-15 seconds in a web browser). When it's slow like this, the code catches a CInternetException. Is there a way to see what …

Software Development c++ web-browser xml
Member Avatar for donaldw
0
416
Member Avatar for emaduddeen

Hi Everyone, Can you tell me how to fix my query so I can determine if an amount entered into a textbox is < the largest number in a database table? Here is some sample data: [CODE] CategoryNumber ---------------- 10 20 30 40 50 [/CODE] If the user enters 35 …

Software Development vb.net
Member Avatar for emaduddeen
0
96
Member Avatar for Utsav Chokshi

Question:Write a program which prints " Testing C Skills" without no use of semicolon. I have found one answer : [CODE]1. #include <stdio.h> 2. void main() 3.{ 4. if(printf("Testing C Skills")) 5. {} 6.}[/CODE]

Software Development c
Member Avatar for rajeevpareek
0
93
Member Avatar for grebote

So I've only been programming for a few weeks, and I thought that I'd learn how to program by converting a rather complicated baseball board game to a program. I'm writing a preliminary program that stores player information from a card into a random access file. My Struct holds the …

Software Development c++ file-system ios
Member Avatar for grebote
0
222
Member Avatar for trebor-pl

Hi, I am writing a program that allows to keep track of some racing records and to do this I need to be able to save objects on a external file and then load them with next startup of the program. As I am just a beginner I need your …

Software Development c++ career oop
Member Avatar for trebor-pl
0
1K
Member Avatar for sciprog1

Hello Members, I am trying to solve the following problem using threads: Thread_1 outputs values from 1 to 1000. Thread_1 waits. Thread_2 outputs values from 1 to 1000. Thread_2 now waits. Thread_1 outputs values from 1000 to 2000. Thread_1 is done. Thread_2 outputs values from 1000 to 2000. Thread_1 exits …

Software Development java
Member Avatar for sciprog1
0
96
Member Avatar for jay_el_em

Hi guys I'm a newbie, and can't figure out the problem with the following code. I get the error inthe line in Bold. Please help [CODE]private void Form1_Load(object sender, EventArgs e) { con = new SqlConnection(); con.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=C:\\Users\\KAMESH\\Documents\\Visual Studio 2010\\Projects\\bankDBApp\\bankDBApp\\bankAcc.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"; con.Open(); MessageBox.Show("Connecting to SQL Database", …

Software Development dataset open-source visual-studio
Member Avatar for tirthraj201186
0
111
Member Avatar for virendra_sharma

Hi friends , i have some code for to find out whether the no is prime or not. but i want it in c# using the same logic. int isPrime(int n) { int c =0, s=0; if (n == 1) { return 0; } if (n == 2) { return …

Software Development c c# c++
Member Avatar for Momerath
0
184
Member Avatar for arjunpk

hi... can someone please explain how to create a new excel file using an excel template in c# I have no idea how to go about doing it and that is why i haven't pasted any code.... i have been developing an application as part of my college project..... and …

Software Development c# microsoft-office
Member Avatar for ddanbe
0
158
Member Avatar for rssk

hi all....... I m running a program in windows like this import os os.system('snmpwalk -v2c -c ar441c 192.168.1.10 .1.3.6.1.4.1.18489.1.2.1.1') when i run this i m getting error like [B]SNMPWALK IS NOT RECOGNISED AS A INTERNAL AND EXTERNAL COMMAND,OPERABLE PROGRAM OR BATCH FILE[/B] so anyone can plz help me........ thanks in …

Software Development python
Member Avatar for rssk
0
4K
Member Avatar for nHulk

Hello, i Want to do project on Java.... any one tell me some new ideas to do my project.... some thing new i can implement as for my final year project

Software Development java
Member Avatar for stultuske
0
118
Member Avatar for ajinkya112

Hey people, I want to make an application which would be connected to a database. It would retrieve data make changes and store it in database again. I have figured on how to make this application. But the real catch is i want database to be stored on a single …

Software Development
Member Avatar for ajinkya112
0
99
Member Avatar for ajst

Hi, I currently have a method that is called on a ActionEvent of being clicked. Now I want to call that method from another method. Is there a way to do this with out having to just copy and paste my code into another method and just call that? This …

Software Development java
Member Avatar for JamesCherrill
0
97
Member Avatar for luijean

[code]import java.awt.*; import javax.swing.*; public class image extends JFrame{ JButton b1; ImageIcon im; Container c=getContentPane(); public image() { im=new ImageIcon("Pictures/sad.jpg"); b1=new JButton(" ",im); c.setLayout(new FlowLayout()); add(b1); setSize(500,500); show(); } public static void main(String [] args) { new image(); } }[/code]

Software Development java java-swing
Member Avatar for mKorbel
0
122
Member Avatar for jotae

Part of the void code: [CODE]string sql = "SELECT SUM(monto) As TOTALM from meses where status='ACTIVO' and mesactual= '" + vMes.ToString() + "' and ano= '" + vAno.ToString() + "'"; dtm = new OleDbDataAdapter("Select * from meses order by nombre", con); oCM = new OleDbCommandBuilder(dtm); OleDbCommand cmd = new OleDbCommand(sql, …

Software Development
Member Avatar for Mitja Bonca
0
85
Member Avatar for htq2511

hi everyone. i am working on the tower of Hanoi code and got a very interesting question. Here is the code of Tower of Hanoi problem: [code]#include<iostream> using namespace std; void move( int n, char*s, char*i, char*d ) // s stands for source tower // d stands for destination tower …

Software Development c++
Member Avatar for pseudorandom21
0
168
Member Avatar for vn412

Hi, i have a code where I dynamically generate the columns name and bind it it datatable. now I am iterating thru loop for each column and fill the datatable. My Problem is when I fill for first column row is already added to the position(e.g 0,1). I want help …

Software Development vb.net
Member Avatar for Mariandi
0
2K
Member Avatar for zizuno

I have code the goes to a page and downloads information on its update. Every once in a while it errors out with [code] url2z = url2z.read() File "/usr/lib/python3.1/http/client.py", line 502, in read s = self._safe_read(self.length) File "/usr/lib/python3.1/http/client.py", line 594, in _safe_read raise IncompleteRead(b''.join(s), amt) http.client.IncompleteRead: IncompleteRead(15928 bytes read, 37182 …

Software Development python
Member Avatar for TrustyTony
0
350
Member Avatar for determine

It's my first code. I put alot of effort into it. I just haven't been able to see if it actually works because tomorrow I go the the computer lab to test it. Positive and negative feedback is welcomed. Also, here is a link to the description of what the …

Software Development c++ pdf
Member Avatar for user422
0
148
Member Avatar for curse019

hi mam sir can i ask for a copy of a reservation system using vb 6.0?

Software Development visual-basic
Member Avatar for AndreRet
0
90
Member Avatar for oldezwe

how do i add a scrollbar to my JEditorPane this is the format i have everything in. [CODE]private JEditorPane tos; tos = new JEditorPane(); tos.setEditable(false); tos.setForeground(new Color(250, 250, 250)); tos.setBackground(new Color(84, 84, 84)); tos.setText("fuuuuuuuuuuuuuuuuuuuuuuuuu bbbarrrrrrrrrrrrrrrrrrrrrrrrr"); addComponent(contentPane, tos, 500,180,210,170); [/CODE]

Software Development java
Member Avatar for mKorbel
0
677
Member Avatar for iProgram

I'm working on a project that would require me to integrate PayPal into it somehow. I don't know how exactly to go about this, but I'd like the code to be in Java if possible, but really any programming language is fine. Does anyone know if I could do this …

Software Development java
Member Avatar for peter_budo
0
339
Member Avatar for gyuunyuu

[CODE]#include <stdio.h> #include <string.h> typedef struct { int count; // counter to use the word's occurrence char *word; } word; int main() { word myword[50]; FILE *myfile; if ((myfile = fopen("wordlist", "r")) == NULL) { printf("\n Error:Can't open file \n "); exit(0); } char str[99]; int position = 0; while …

Software Development c
Member Avatar for kings_mitra
0
112
Member Avatar for nickvuja

Ok so... I have a problem with completing my code for class tomorrow. I need help with this ASAP. I'm asked to implement a program that generates a random number of jelly beans in a jar, prompt the user to make a guess on how many jelly beans are in …

Software Development java
Member Avatar for ~s.o.s~
0
2K
Member Avatar for f_atencia

Say I have some code: [CODE]<input type="text" name="{$valcompname}/@LikelyWeeklyUnfRental" value="{$valcompdata/@LikelyWeeklyUnfRental}" id="RentalValue" style="text-align:right">[/CODE] I want the text box to output a value in a format $#,##0.##. At the moment I can only get it to display only decimal place. I have tried using the format-number function with that regular expression, but no …

Software Development xml
Member Avatar for JohnBampton
0
105
Member Avatar for soumya_mjmder

Hi, i have the folwing xml, i want to compare the dates Modifyts and ActualDate using XPATH and XSLT and print the date which is newer.Can you please help me regarding this. [CODE]<ABC> <InputDocument> <OrderList LastOrderHeaderKey="2011013111595948350" LastRecordSet="Y" ReadFromHistory="" TotalOrderList="1"> <Order DocumentType="0001" EnterpriseCode="XYZ" Modifyts="2011-02-14T13:53:04+00:00" OrderNo="Y100000042"/> </OrderList> </InputDocument> <EnvironmentDocument> <Order DocumentType="0001" EnterpriseCode="XYZ" …

Software Development xml
Member Avatar for soumya_mjmder
0
242
Member Avatar for Joshua Kidd

Any Ideas on how to get a picture of just a certain program widow and not the entire Desktop? This is the Code I used to get a pic of the Desktop [CODE] Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim bounds As Rectangle Dim …

Software Development vb.net
Member Avatar for Joshua Kidd
0
283
Member Avatar for MaDo4

Hi guys i am trying to write a program that counts the number of lowercase characters in an input file and display the two most used lowercase letters. My problem is I dont know how to get my program to count each lowercase character and save them into an array …

Software Development c++
Member Avatar for MaDo4
0
122
Member Avatar for tomtetlaw

Something very strange is happening. I put a breakpoint in VC++ at the line [icode]char *arg[/icode] and string is what it should be. But as soon as I go to the next line, string changes to this: [icode]0x0012f864 ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ[/icode] I really have no idea why this is happening and I …

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for oldezwe

I've been creating a login system in Java. The functionality of all the programming in java has been a breeze. Though, I can't find any good comprehensive tutorials on creating a login database, which is something I have never done before. [B]Could someone please give me or link me to …

Software Development java mysql
Member Avatar for prem2
0
85
Member Avatar for mr3army

Hi, Im trying to click a button on [url]http://www.threatexpert.com/submit.aspx[/url] but my code does not want to fill it in. It fails are the [CODE]Form2.WebBrowser1.Document.GetElementById("txtEmail").SetAttribute("value", TextBox1.Text)[/CODE] [CODE]Form2.WebBrowser1.Document.GetElementById("File").InvokeMember("click") If Form2.WebBrowser1.Document.GetElementById("File").GetAttribute("value").ToString = vbNullString Then Form2.WebBrowser1.Document.GetElementById("File").InvokeMember("click") Form2.WebBrowser1.Document.GetElementById("txtEmail").SetAttribute("value", TextBox1.Text) Else WebBrowser1.Navigate("javascript: WebForm_DoPostBackWithOptions(btnSubmit") End If[/CODE] What is wrong with my code Cheers

Software Development vb.net web-browser
Member Avatar for codeorder
0
161
Member Avatar for Uday2009

I am developing an inventory application. There is a form named frmInventory where material receipt has been done. Logic The logic is that First you Enter the Transaction no. in text box named TxtChalanNo Then a combobox named cmbval on flexgrid named mf1 will got focus then the user select …

Software Development open-source visual-basic
Member Avatar for Uday2009
0
347
Member Avatar for Newskin01

Hello, I need to write a remove method for an array of 10 things. So object can can a name. I have a getName() method and others that sort out things. The array can only have 10 objects inside. However when I use this method it doesn't remove anything. I'm …

Software Development java
Member Avatar for thekashyap
0
528
Member Avatar for Dexxta27

How do I create a pointer for a struct. This is an example [CODE]typedef struct worker_t { char name[25]; job_t title; double payrate; double hours; }; int input(worker_t); [/CODE] I tried it here [CODE]worker_t employee[10]; worker_t* ptr_worker; *ptr_worker = &employee; input(worker_t employee[10]); [/CODE] I know how to use pointers on …

Software Development c++
Member Avatar for Dexxta27
0
154
Member Avatar for CityThrille

Good day to all. How can I transfer entries from listview to disk using System.io? Help is appreciated. Thank you. :-/

Software Development listview vb.net
Member Avatar for codeorder
0
96
Member Avatar for AnooooPower

I want to outpout part of a richtextbox content to a textbox. Exemple (This is just part of the richboxtext1: [CODE]<meta http-equiv="refresh" content="0;url=?sid=defd7592f5b806ad8a4fa1273bd73077"> <[/CODE] This is code i used but is faulty :( : [CODE]Dim strBuild As String = Nothing strBuild = Split(Split(RichTextBox1.Text, "sid=")(1), "''>")(0) TextBox6.Text = strBuild[/CODE] I want …

Software Development vb.net
Member Avatar for AnooooPower
0
744
Member Avatar for jubba_us

need help adding feeting and inches together [CODE]#include <iostream> using namespace std; // introduces namespace std int main () { int ft1, in1; int ft2, in2; int ft3, in3; int total; int fft; int iin; cout << "The measurement in feet and inches" << endl; cin >> ft1 >> in1 …

Software Development c++
Member Avatar for triumphost
0
157
Member Avatar for Transcendent

[COLOR="Green"]I'm supposed to write this program using a default constructor but when I compile I got this errors: [/COLOR] [COLOR="Red"]Exception in thread "main" java.lang.Error: Unresolved compilation problems: The constructor Date1(int, int, int) is undefined The constructor Date1(int, int, int) is undefined at Date1Test.main(Date1Test.java:23) [/COLOR] [CODE]/** * */ /** * @author …

Software Development java
Member Avatar for kekkaishi
0
198
Member Avatar for Prisms

Hello I have been working on this program for a few days and have gotten stuck. I allow the user to enter in a string and remove special characters and turn upper case characters to lower case. after all that is done i compare the characters in the string to …

Software Development c mathematics
Member Avatar for Prisms
0
312
Member Avatar for coolbeanbob

I can't figure out why I am getting this error. I have tried #include several things and I have tried changing the location of srand. #include <iostream.h> #include <ctime> class Horse { int position; public: Horse(); //Horse constructor??? Per UML int random; srand( time(0)); void advance(){ random = rand() % …

Software Development c++
Member Avatar for sfuo
0
4K
Member Avatar for CityThrille

Good day to all. I'm a VB.NET newbie. How can I search, for example ID Number, and want to highlight the listview item found in search from my first form? I'm using combobox from my second form to search. Thanks.

Software Development listview seo vb.net
Member Avatar for CityThrille
0
213

The End.