43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for k99rs

I have an application that where i have a an Asp textBox and i added TextBoxWatermarkExtender to it. <asp:TextBox ID="txtCellNo" runat="Server" /><br /> <ajax:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" BehaviorID="CellNoBehavior" TargetControlID="txtCellNo" runat="server" WatermarkText="Cell No."> </ajax:TextBoxWatermarkExtender> Because i have the page constantly postpage the TextBoxWatermarkExtender Blinds everytime it does a Postback. So i added this …

Software Development vb.net
0
81
Member Avatar for BogdanCov

Hello guys. the AutoSize is true, but the form is not autsizing :( first the form looks like [this](http://i60.tinypic.com/2s1uk1v.jpg) . when i press that button generates a matrix of buttons but the form is not autsizing it should look like this [this](http://i58.tinypic.com/11gni9h.jpg) . but no change, it remains at the …

Software Development
Member Avatar for BogdanCov
0
168
Member Avatar for Khyxz

How CAn I get the "sum" of a "Column" in a Data Grid? I dont't use /connect database with my Data Grid! How can I make this happen? Thank you for any responses!

Software Development
Member Avatar for oussama_1
0
158
Member Avatar for SkyCross

Pls do help me, I got an error **Input String was not in a correct format**. Here is the code where error appears, This is in my Record form. After I click edit, it will be redirected to my Update2 form Update2 f2 = new Update2(); f2.BlockNo1 = Convert.ToInt32(BlockNo1);//error here …

Software Development
Member Avatar for ZER09
-1
421
Member Avatar for brett.warren.1612

Hi, I was working on a solution to problem ten of Project Euler, which states: > The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. > Find the sum of all the primes below two million. I've got code that solves this …

Software Development python
Member Avatar for slate
0
251
Member Avatar for mavtcr

I want to save data in to my ACCESS database from textboxes. My code is here. Private Sub BtnSubmit_Click(sender As Object, e As EventArgs) Handles BtnSubmit.Click Dim cb As New OleDb.OleDbCommandBuilder(DA) Dim dsNewRow As DataRow DA = New OleDb.OleDbDataAdapter(SQL, CN) DA.Fill(DS, "Deposit") dsNewRow = DS.Tables("Deposit").NewRow() dsNewRow.Item("Bank") = TxtBank.Text dsNewRow.Item("Acno") = …

Software Development vb.net
Member Avatar for oussama_1
0
364
Member Avatar for sciprog22

Hello, I am writng a simple networking program with a single server and multiple clients. I would like to send and receive objects between the clients and the server and hence I use the ObjectOutputStream/writeObject(Object) and ObjectInputStream/readObject() combination. First, my server program: import java.net.*; import java.io.*; import java.awt.*; import java.awt.event.*; …

Software Development java java-swing
Member Avatar for sciprog22
0
907
Member Avatar for TheFearful

I keep getting a corruption for my array and I do not know why. Can anyone help me figure out what is causing my run-time error to happen? my heapInsert function is at the very bottom #include <iostream> #include <algorithm> using namespace std; //function prototypes int getParent(int index); int getLeftChild(int …

Software Development algorithm c++
Member Avatar for TheFearful
0
284
Member Avatar for ZJRG.1997

I'm quite new to Python, and am trying to make a simple unit converter - was hoping if anyone could tell me where i'm going wrong? This is the script as it stands: input('Would you like to convert centimeters to inches (a), or inches to centimeters (b)?\ntype a or b: …

Software Development python
Member Avatar for slate
0
265
Member Avatar for hassan.kiani.10

Write a program which asks the user to either convert the number of days into hours or minutes. Based on the option entered by user your program should calculate the result accordingly.

Software Development c++
Member Avatar for talha ijaz
0
213
Member Avatar for It tech

I am having problem with programming, i have been given a program to perfom and so far i have benn unable to start..can anyone help me? This is my question..1. Create a class called MyString. Within this class, you are to implement, from scratch, two versions of each of the …

Software Development c c# c++
Member Avatar for David W
0
339
Member Avatar for ganges

My eclipse id is taking too long time to open (at least 15 minutes) I tryed all the options in google search but the problem remains the same kindly give me tips to fix the problem thanks for your time

Software Development java
Member Avatar for ganges
0
4K
Member Avatar for JaneLewis1615

I am a beginner to VB.NET, and I am creating a program that displays a new string in a label. The new string should take a sentence entered by the user and remove every occurrence of a substring supplied by the user. This is my code so far: Dim input …

Software Development vb.net
Member Avatar for JaneLewis1615
0
191
Member Avatar for pwolf

As a beginner java learner, I would be grateful if some people could point out a few open source projects with a high quality code base. Not necceserily aimed at a beginner, I would rather see a professional quality example, and preferabbly the project would use some common tools for …

Software Development github java open-source
Member Avatar for pwolf
0
482
Member Avatar for Khyxz
Member Avatar for Khyxz
0
119
Member Avatar for np complete

I'm trying to emulate bash/cmd type program. I have written programs like cat, ls, grep (simple one) and kept it under \bin\ directory. This program will take user input and run programs present in \bin\ accordingly. I'm using `_spawnv ()` as the argument list is going to be variable. When …

Software Development c
Member Avatar for Ancient Dragon
0
199
Member Avatar for thirteen_xx

Hi, I'm new to vb and I need to record the time the user used a certain privilege and the time s/he finished using it. i used date/time picker but whenever i run the program, i can't edit the time. only the date. help please?

Software Development vb.net
Member Avatar for thirteen_xx
0
816
Member Avatar for jeffersonalomia

Can someone help me on my database with regards that the records can be prone to data redundancy.. pls help to avoid record redundancy on my database.... How do I check if the record that i will be input is existing on my database.. and i want to prompt the …

Software Development vb.net
Member Avatar for jeffersonalomia
0
210
Member Avatar for Khyxz

Hello, Can you please help me? Is it posible to **input data** on a "DATAGRID" **even if it is not connected to a database**? My Datasource Connection is not working because of some installation problems. I don't have the CD for installation that is why I couldn't re-install it. How …

Software Development vb.net
Member Avatar for oussama_1
0
198
Member Avatar for tanatos.daniel

I'm having a ComboBox in which I added items in order provide the user autocomplete for the text he's typing. I am looking for a property of ComboBoxes that could identify if the text was an item of the ComboBox or not. (I would like not to loop each time …

Software Development
Member Avatar for tanatos.daniel
0
447
Member Avatar for ravi_14

According to Herbert schildt C++ complete reference "A non-static member variable cannot have an initializer." however when i run following code,it runs.. class ABC { public: int a=3; ABC(); }; ABC::ABC() {cout<<a; } int main() { ABC obj; } regards,

Software Development c++
Member Avatar for deceptikon
0
191
Member Avatar for Mohammed_9

Is this correct? #include <stdio.h> #incluede <string.h> void getname(char name[][50],int num) int main() { void getname(char name[][50]) { for(int i=0;i<numofname;++) scanf("%[^\n]",name[i]); }

Software Development c
Member Avatar for 2teez
0
249
Member Avatar for Ajay_9

I am getting the error while inserting the image from win-form.Can anyone please tell me the in the code.I am using Visual Studio 2013 and MS Sql 2008 R2. Thanks . using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using …

Software Development image open-source visual-studio
Member Avatar for Ajay_9
0
165
Member Avatar for liz517

I am to write a censor program for all 4 letter words from an imported file, only I'm stuck. can you help? [code = python] # wordcensor.py # Program replaces 4 letter words in a text file. import string def main(): print "This program replaces 4 lettter words in a …

Software Development file-system python
Member Avatar for kcm1
0
1K
Member Avatar for ravi_14

cout is defined in std namespace and we also include iostream to use cout...i am confused ,please clarify this.where 1)cout is defined 2)where it is declared. and if we are including iostream ,then what is the need of STD::COUT regards,

Software Development c++
Member Avatar for vmanes
0
533
Member Avatar for admiri92

Are exceptions standardized in C++? I mean if the rules of exception handling might be changed in the future. i.e: int Funct1(int) throw(); // does it throw an exception?

Software Development c++ programming-construct
Member Avatar for mike_2000_17
0
291
Member Avatar for alagez

Hai there, I am a robotic student and very new in python programming. Here, I have a project to classify the type of robot. For example, a customer would like to buy a robot arm for their company. So, this project will aid them to select robot of their choices. …

Software Development python
Member Avatar for alagez
0
290
Member Avatar for Rahul47

Hello folks, This nitty problem is haunting me today. Here is the code I have written, but am not getting the expected output. This is a program for printing matrix in spiral order. #include<stdio.h> #include<stdlib.h> int main() { int rows,cols,i,j; int tr=0,rc,br,lc=0; /* tr = top row index. rc = …

Software Development c matrix-multiplication
Member Avatar for Rahul47
0
302
Member Avatar for tony75

HI Where can I download python 2.7.6 or 2.7.3 for 32bit windows?

Software Development python
Member Avatar for tony75
0
271
Member Avatar for ParPau

Having issues with array. Seems to pull in the enum files (month and average rainfall) and print accordingly. Also seems to read in the updated rainfall per month. However, problem is I can not make updated print with the enum. Also, last line in program has ..."actual[i]". If use a …

Software Development java
Member Avatar for ParPau
0
280
Member Avatar for tanatos.daniel

I would like to do something like this: comboBox6.Items.AddRange(new IEnumerable<int> { Enumerable.Range(1,8).ToArray() } ); (add numbers 1 to 8 to ComboBox Items using an IEnumerable object), but i can't figure out how. Thanks.

Software Development
Member Avatar for castajiz_2
0
355
Member Avatar for Khyxz

I have a backspace key button. Then I have two text boxes. Well, it is working but when the letters in a certain text box are all cleared up then i keep on clicking the button I get this errror. This is the code: desiredTextbox.Text = desiredTextbox.Text.Substring(0, desiredTextbox.Text.Length - 1) …

Software Development vb.net
Member Avatar for Khyxz
0
150
Member Avatar for Suzie999

I'm creating some automation utils. Part of it is automating mouse input. I think I have my math wrong because the X coordidnate is incorrect at certain points for example is I give it x = 114 which should translate to 114 pixels from left of screen (0) it will …

Software Development api c++
Member Avatar for Suzie999
0
764
Member Avatar for V3N0M

I just started learning Java and I have been playing around with it. I am trying to make this program return a double value like 1000/3 = 333.33333..... but it returns 333.000 what am I doing wrong in Java. It works in C though :P. Thanks in Advance! //Exercise : …

Software Development java
Member Avatar for JamesCherrill
0
210
Member Avatar for Alex_20

I'm getting this every time I try and write Hello, World in Python I get this. I'm using Pycharm 3 C:\Python33\python.exe C:/Users/Alex/PycharmProjects/Learning/Helloworld File "C:/Users/Alex/PycharmProjects/Learning/Helloworld", line 1 print "Hello, World" ^ SyntaxError: invalid syntax Process finished with exit code 1

Software Development python
Member Avatar for ishaan3731
0
277
Member Avatar for jared.geli

Hi guys can you help me in this one? I can add cell values in Datagrid using their column address or column name but I want to add the columns which contain a specific word for example I want to add all cells with a column name containing "Amount" Dim …

Software Development vb.net
Member Avatar for jared.geli
0
175
Member Avatar for Zahra_1

import random while True: dice = random.randrange(1,5) dice2 = random.randrange(1,7) dice3 = random.randrange(1,13) sides = int(input)("Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice. Type 0 to exit the loop.") if sides ==0: break elif sides ==4: print …

Software Development algorithm python
Member Avatar for Zahra_1
0
4K
Member Avatar for Khyxz

![ff8496abfb91bf20a23a64db591fa997](/attachments/small/4/ff8496abfb91bf20a23a64db591fa997.jpg "align-left") Hello there! Newbie here! It is my first time to post something here! Can somebody help me please with my problem on my codes. I have already build/created a **Log In Form** but my problem is I created an **On-Screen Keyboard** which must be use for that **Log …

Software Development vb.net
Member Avatar for Khyxz
0
1K
Member Avatar for firepower

please help me how to close the window. code: JButton quit = new JButton(); public Mainmenu() { setLayout(new FlowLayout()); Icon quitb = new ImageIcon(getClass().getResource("quit.jpg")); quit = new JButton(quitb); add(quit); quit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } });

Software Development ide java
Member Avatar for mKorbel
0
166
Member Avatar for GagaCode

hey all once again i have a little issue ... i'am really having a hard time with this issue i have a datagridview that contain one column as a text and another column as a combobox i would like to populate the combobox from MS Access Table and as a …

Software Development vb.net
Member Avatar for GagaCode
0
299
Member Avatar for joseph.suanino

#include <stdio.h> #include <math.h> #include <conio.h> #include <process.h> #include <string.h> void main() { int i, n, diff; int x = rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Word Program\n"); for (i = 1; i <= 5; i++) { printf("ATTEMPT %d: Enter the …

Software Development c gaming
Member Avatar for Schol-R-LEA
0
225
Member Avatar for MatthewYeend

package die.java; import java.util.Random; class DieGame2 { private final int sides; private final Random generator = new Random(); public DieGame2(int s) { sides = s; } public boolean throwDie() { int faceValue = generator.nextInt(sides) + 1; System.out.print(faceValue); return faceValue == 6; } public static void main(String[] args) { DieGame die1 …

Software Development java
Member Avatar for stultuske
0
346
Member Avatar for Niveatha

hai.... i am doing inventory project. if sell a product it should afffect the stock. so i need a coding to retrieve the stock quantity and i have to change the value according to sales then i have to update the values into the stock table and also if no …

Software Development vb.net
Member Avatar for Niveatha
0
104
Member Avatar for nitish.mohiputlall

here is the original codes that has been set in the question paper: #include <stdio.h> #define numitems 10 int main(int argc, char* argv[]) { int data[numitems]; int i; int *ptr; for(ptr = data; ptr < &data[numitems]; ptr++) *ptr = 0; for (i=0;i<numitems;i++) printf("data[%d]=%d\n", i, data[i]); return 0; } HERE ARE …

Software Development c
Member Avatar for 2teez
0
537
Member Avatar for nitish.mohiputlall

here is the original codes that has been set in the question paper: #include <stdio.h> #define numitems 10 int main(int argc, char* argv[]) { int data[numitems]; int i; int *ptr; for(ptr = data; ptr < &data[numitems]; ptr++) *ptr = 0; for (i=0;i<numitems;i++) printf("data[%d]=%d\n", i, data[i]); return 0; } HERE ARE …

Software Development c
0
93
Member Avatar for katharnakh

Hi, How do I disable Copy/Cut/Paste operations on a textbox in Tkinter. I want to implement this in simple login form, where I found I can copy or paste or cut from textbox which is meant to accept PASSWORD. Can we do that? How? Thank you, Regards, kath.

Software Development python tkinter
Member Avatar for Gribouillis
0
2K
Member Avatar for Stefce

Hello everybody i have a little problem with making a java command for program i have some code but i do not know how to continue i stuck in one place BTW the command i want to make is > /sendcash [username] [money] // how it looks like I have …

Software Development java
Member Avatar for stultuske
0
229
Member Avatar for rabadiyaronak

i have two different programs that compare float and double variales and gives output , i shown that below : 1. #include<stdio.h> main() { int r; float f=22.5; double d=22.5; r=(f==d); printf("r=%d",r); } **Output:- r=1** 2. #include<stdio.h> main() { int r; float f=22.7; double d=22.7; r=(f==d); printf("r=%d",r); } **Output:- r=0** …

Software Development c
Member Avatar for jwenting
0
298
Member Avatar for ashley.vanhoesen.7

Write the definition of a function named copy that reads all the strings remaining to be read in standard input and displays them, one on a line with no other spacing, onto standard output . void copy() { string x; if(cin >> x) { if(cin != '\n') { copy() } …

Software Development c++
Member Avatar for NathanOliver
0
1K
Member Avatar for Zahra_1

![0930ac8855b75aa7c11605d2c389c3a5](/attachments/small/4/0930ac8855b75aa7c11605d2c389c3a5.PNG "align-left") here is the task, I don't want anyone to do the coding for me. I just would really love if I got a starting point on how to begin this code. thank you. oh and this is in python program.

Software Development python
Member Avatar for Zahra_1
0
224

The End.