132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DeadH34d

Hey guys, I'm working on a tip calculator as an excercise from the book I'm using to learn Java, and I've run in to a bit of a problem. When I run this code: import java.util.Scanner; public class TipCalculator { public static void main(String[] args) { Scanner input = new …

Software Development java
Member Avatar for DeadH34d
0
258
Member Avatar for fuhanspujisaputra

Hi guys, i created Windows Application form my project and there is a problem that i am facing right now. I already had an array of textboxes, and wanted to connect those database textboxes, however, i cannot get the data because the data that i want to connect is int …

Software Development c# open-source
Member Avatar for fuhanspujisaputra
0
992
Member Avatar for floatingshed

I'm trying to create a custom dialog using pythoncard. My main program looks like this (I'm only testing!): [CODE]import wx from PythonCard import dialog, model import MyDialog class MyApp(model.Background): def on_initialize(self, event): self.MyDialog()[/CODE] The simple Pythoncard dialog looks like this: [CODE]from PythonCard import model class MyDialog(model.CustomDialog): def __init__(self, parent, txt=''): …

Software Development python
Member Avatar for John_43
0
150
Member Avatar for EXTRA_RICE

greetings here in saudi arabia.i come in peace.i have a problem in search hope you guys have time answering this. i have a datagrid table a textbox and adodc controller.if i input the characters in textbox i want to see only the characters that i have entered and the other …

Software Development visual-basic
Member Avatar for Klahr_R
0
203
Member Avatar for michaellooks

i installed a codeblocks IDE in my flash drive while i was using windows 7. After downgrading to windows XP, the IDE won't open and an error message pops up "codeblocks.dll is not a windows dll." Pease assist in help me solving this. Thank you.

Software Development c++ ide
Member Avatar for michaellooks
0
91
Member Avatar for Tyyppi_77

So, I'm coding a IDE in Python and I'm using Tkinter for the GUI. What I'm looking for is a way to add a "recent files" menu to the menu that opens when you right click the program's icon in Windows's task bar. I have a picture to show what …

Software Development microsoft python tkinter
Member Avatar for Tyyppi_77
0
959
Member Avatar for Fatima_110

I have no idea how to do this: Create a class called Date that contains three pieces of information as instance variables – a month, day and year e.g. 4, 14, 2007. All three of type int. Your class should have a constructor that initializes the three instance variables. Provide …

Software Development java
Member Avatar for JamesCherrill
0
227
Member Avatar for shenn.to

Problem with group box. I had created a groups box. With objects inside it with small spaces between each. But when I run the program. The spaces of the objects inside the group box became large. Picture one shows the design phase. Pcture two shows the running phase.

Software Development vb.net
Member Avatar for shann_
0
186
Member Avatar for cleve23

Hi I keep having problem on trying to call the method 'in3050'.Please someone guide me on this???? Thanks public class NumberCheck { private static void main(String[] args) { int num1 = 31; int num2 = 40; boolean check = in3050(num1,num2); } public boolean in3050(int a, int b) { if (a …

Software Development java
Member Avatar for cleve23
0
300
Member Avatar for sujan.dasmahapa

I am trying to extract text from PDF file in PDFNetSDK by PDFTron. But when the execution comes to dumpAlltext() there is no element type e_text. When I am debuggin the code i can see element type is e_path..I think e_path is having the all the text in it. How …

Software Development pdf python
0
105
Member Avatar for Sebastian_1

I am trying to write an app that can be used by different users with different access levels. I have some buttons that I am using a Inputbox to ask for and verify the password. I would like the change them to a password char txtbox However, I dont know …

Software Development vb.net
Member Avatar for Sebastian_1
0
166
Member Avatar for nnayram

#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <time.h> #include <errno.h> #if defined ( __GNUC__ ) || ( _MSC_VER ) # if defined ( _MSC_VER ) && ( _MSC_VER >= 1020 ) # pragma warning ( disable : 4996 ) # pragma warning ( disable : 4172 ) # …

Software Development c# file-stream
Member Avatar for LesF
0
477
Member Avatar for charles.dupree.37

Hi, I was wondering if someone could look at this person class I am working on. The first part is the class header with the constructors for the class. In the second part I am trying to write the code but when I declare the get_age and get_name objects I …

Software Development c++
Member Avatar for charles.dupree.37
0
7K
Member Avatar for SaRa Ahmad

i used this code to send email from vb6 form that connect with out look email account 'Dim olapp As New Outlook.Application 'Dim olMail As Outlook.MailItem 'Create a new mail object form the 'Outlook98 Application object 'Set olMail = olapp.CreateItem(olMailItem) 'Set the mail fields of the olMail object 'olMail.Subject = …

Software Development email visual-basic
Member Avatar for SaRa Ahmad
0
2K
Member Avatar for singularity~

I am trying to combine the data from two repositories in MVC4. I am using a join statement in my Action function to gather information from two tables. I am passing this this data onto my view. I am a little confused to how to correctly combine the data from …

Software Development software-architecture
Member Avatar for tinstaafl
0
207
Member Avatar for mesbahuk

I am working on a Java to C# conversion project. In this project, my custom java library uses `java.net` packages [`DatagramPacket`](http://docs.oracle.com/javase/1.4.2/docs/api/java/net/DatagramPacket.html) and [`DatagramSocket`](http://docs.oracle.com/javase/1.4.2/docs/api/java/net/DatagramSocket.html) classes. Are there similar classes in .NET C# with similar functionalities?

Software Development api c# java oracle
Member Avatar for ddanbe
0
347
Member Avatar for Shels

I am writing a program that has two windows. One window draws the shapes you choose in window2 and saves them in a list. When clicking on the second window once the first shape is supposed to move to the spot clicked. If double clicking the second shape and so …

Software Development c++
Member Avatar for tinstaafl
0
208
Member Avatar for mesbahuk

I have java code that uses Java's `java.util.Timer.schedule()` method. **Method Description:** *The `schedule(TimerTask task,long delay,long period)` method is used to schedule the specified task for repeated fixed-delay execution, beginning after the specified delay.* public void schedule(TimerTask task,long delay,long period)java.util.Timer.schedule() Is there an equivalent method in C#? If NOT, how can …

Software Development c c# c++ java
Member Avatar for Momerath
0
500
Member Avatar for ram619

In this code at line number 7, 'p' is a 1D pointer then how come at the print statement it is being considered as 2D pointer ? and when we do 'a+1' then it would cross whole array. I am not able to understand this code. Please explain. Expected output …

Software Development c
Member Avatar for ram619
0
231
Member Avatar for shermags

Hi, Can anyone help me on how to serialize an inherited datagridviewtextboxcell? I had created a custom cell in which I had incorporated several customized properties and save it to binary file. <Serializable()> _ public class CustomTextboxCell Inherits Windows.Forms.DataGridViewTextBoxCell 'code goes here End Class SaveFile: Private Sub save() For Each …

Software Development assembly vb.net
Member Avatar for shermags
0
135
Member Avatar for EXTRA_RICE

why is command2 in dataenvironment cannot be added on datareport.only the command1 is allowed in datareport.guys pls help me..

Software Development visual-basic
Member Avatar for EXTRA_RICE
0
102
Member Avatar for pc20912

Sir, My DataBase field name "PerID" and "Imagepath" In DataGridview, I want to show "PerID" and Image (Not file path)

Software Development image vb.net
Member Avatar for pc20912
0
1K
Member Avatar for ss125

Good day!!! I have implemented the captcha verification to my application. But I am having a problem in it. I cannot able to find methods that can only reload the captcha image.Instead I have to reload the entire page. Is there any wa y to do it. This is my …

Software Development
Member Avatar for ss125
0
209
Member Avatar for ncauchi

I am new to C and am trying to read the characters in a string serially but I keep getting the error > makes pointer from integer without a cast This is my code void UART1PutChar(char Ch) { //char data; //transmit only if Tx buffer is empty while(U1STAbits.UTXBF ==1); U1TXREG …

Software Development c
Member Avatar for ncauchi
0
216
Member Avatar for Zezo_1

// teachers I have problems with this code, when I sent !q the bot sent all questions and all choices, Please I want someone edit this bot when I sent !q sends only the first question, and when I sent !q again sends the second question . notice * I …

Software Development
Member Avatar for saad749
0
140
Member Avatar for mayback230

I have this array in a page and i want to call it into a listview or textview in another page...how do i do that? [CODE]public class Screen2 extends Activity { public static EditText txt1; public static String player; public static ArrayList<String> playerList = new ArrayList<String>(); /** Called when the …

Software Development android-development java listview
Member Avatar for jwenting
0
343
Member Avatar for SirDarknight

I am a noob at programming.I want to create windows applications with graphical user interface.Which one is best? C# VB.NET C++ Python

Software Development user-interface
Member Avatar for ss125
0
122
Member Avatar for Jam_1

Hello all: I've been reading up on C++, which seems pretty cool. In my office, the HR representative has to manually calculate an employees vacation & sick time. So I was thinking if it's possible to create a program for her to help her out a bit. This is what …

Software Development c++
Member Avatar for Ancient Dragon
0
249
Member Avatar for de Source

Hi, after spending lot of time on google i am fadeup i have a dynamic tab control in which i am able to make dynamic buttons and i am also able to get whole row of a table product in button's tag but i do not know how to retrive …

Software Development
Member Avatar for tinstaafl
0
168
Member Avatar for Judgment

I'm trying to create a game of Go Fish in Python. But I've stumbled onto a little problem that I can't seem to figure out how to deal with. There is a human player (player 0) and three computer players (from 1-3). The human player goes first and chooses a …

Software Development programming-construct python
Member Avatar for james.lu.75491856
0
688
Member Avatar for de Source

Hi, I am trying to insert data into my database throgh Entity framwork my code is below private POSDatabaseEntities1 posde = new POSDatabaseEntities1(); private void btnSave_Click(object sender, EventArgs e) { Tbl_Users Users = new Tbl_Users(); Users.FirstName = txtFName.Text; Users.LastName = txtLName.Text; Users.CNICNumber = txtCNIC.Text; RBSDE.AddToTbl_Users(Users); RBSDE.SaveChanges(); MessageBox.Show("Record has successuffly beem …

Software Development
Member Avatar for de Source
0
182
Member Avatar for sushilsth

hi, i have 12 groupbox in each tabcontrol page. And i want to keep all groupbox in same location of same size overlapping each other. I want to make one function and apply to all groupbox. So that my code wouldnot be lengthy. But i didnot get idea to do …

Software Development vb.net
Member Avatar for ShahanDev
0
141
Member Avatar for rahul8590

i have written many programs using stack , but how do i write a program to find whether the stack is progressing in forward or reverse direction . ?

Software Development c
Member Avatar for gurumukhi
0
184
Member Avatar for pythonforlife

I would like to merge a few dat files in a directory and exclude certain dat files as previously I have already marked out the files that I need and do not need. Below is an example of my codes def onAssemble(self,event): with open("index.dat", 'r') as file: data = file.readlines() …

Software Development python
Member Avatar for pythonforlife
0
202
Member Avatar for Franze

Hi, I have done a test using the lock(lockobject), which will be an interesting question. I have created 2 background threads, that I start simultaniously. Threads uses a while(true) loop to produce the test. If we uncomment and use the lock(lockobject) in the code. None of the loops will write …

Software Development file-stream
Member Avatar for Franze
0
165
Member Avatar for lewashby

I'm looking throug the documentation at python.org for modules and functions allow me to do basic operations on in a Linux file system. I need to do simple things like list the file and folders in a directory 'ls' and change director 'cd'. I found these two pages that looked …

Software Development python
Member Avatar for lewashby
0
146
Member Avatar for NardCake

Hello! I've been very interested in the V8 JavaScript engine recently, so I fetched the source and built it successfully, so far so good. I also successfully compiled the [Hello, World!](https://developers.google.com/v8/get_started) program Google provides. I've also read the [embedders](https://developers.google.com/v8/embed) guide. Other than that I can't find any documentation or examples …

Software Development c++ java javascript
Member Avatar for NardCake
0
160
Member Avatar for dancks

I'm writing a basic sudoku solver. I have a simple method that looks for squareas with only 1 possible number and fills them in before trying to solve the puzzle. the method look like this: def fillinones(sq): table = {1:1,2:2,4:3,8:4,16:5,32:6,64:7,128:8,256:9} for i in range(0,80): p=checkpossible(sq,i) print "p: ",p if p …

Software Development puzzle python
Member Avatar for TrustyTony
0
180
Member Avatar for glenwill101

ive been trying to improve my skills when it comes on to using maps and iterators but i seem to be mostly failing can someone please tell me where im going wrong or point me in the right direction compiler error a.cpp:20:55: error: conversion from ‘std::map<std::basic_string<char>, Object*>::iterator {aka std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, …

Software Development c++
Member Avatar for glenwill101
0
418
Member Avatar for ammukarthi

I am having a database table which stores customers information which includes cutomers country as a column.now i want to convert the customer's country as a single word for example f a customer belong to united states i want to convert it as 'us' and want to dispaly it in …

Software Development vb.net
Member Avatar for ShahanDev
0
221
Member Avatar for Zezo_1

1- code when user send !q the bot send random of question for example : What is the most expensive metals in the world? A - Gold B - iron C - radium . if user send the true answer the bot choose him and write his name and ID …

Software Development api
Member Avatar for tinstaafl
0
237
Member Avatar for LeNenne

Hi I have made a program and now I am not sure how to clear the screen. When I start the program I will have a blank screen and just my program visible. Lenny

Software Development visual-basic
Member Avatar for rishif2
0
187
Member Avatar for cirbab4

I am very new to thread. However I would like to make 2 threads, Thread A and Thread B. When a button is clicked Thread A starts and so does Thread B. Thread B shows a loading image and disables users from clicking any buttons whilst Thread A executes some …

Software Development
Member Avatar for JOSheaIV
0
188
Member Avatar for JOSheaIV

Hello everyone, I am back with yet more Fortran problems it seems. So I have spent some time working on trying to understand the C code that was produced from my f2c conversion of some Fortran 77 code. Well to understand it better I have been trying to use f2c …

Software Development
0
279
Member Avatar for nathan.pavlovsky

Hello Programmers! How can I convert a double to a string without losing its precision (i.e. values after the decimal point)? Thanks!

Software Development c++
Member Avatar for nathan.pavlovsky
0
2K
Member Avatar for somjit{}

my `display()` method is public and looks to be defined , however eclipse says that its not defined. this is a code for an amortized time resizing circular array. can someone help me out here ? also , please do point out if you see something else wrong with the …

Software Development java
Member Avatar for somjit{}
0
291
Member Avatar for philcm

Hi ; I'm trying to add a simple menubar to my lister window : ------------------------------------ #!/usr/bin/env python import subprocess import os, stat, time import pygtk pygtk.require('2.0') import gtk folderxpm = [ "17 16 7 1", " c #000000", ". c #808000", "X c yellow", "o c #808080", "O c #c0c0c0", …

Software Development os-x python
0
138
Member Avatar for JamesCherrill

I have a bizarre thing just happened in NetBeans - the red error markers on the LHS of the editor window have all vanished. There are still errors - the files are flagged as having errors, and the errors are correctly diagnosed when I do a clean/rebuild, but no error …

Software Development java
Member Avatar for JamesCherrill
0
305
Member Avatar for IsaacMessi10

I'm trying to imitate the Windows 8 Start Menu preview'. Private Sub CornerHoverMouseOn() Handles CornerHover.MouseHover Dim CHL As Integer CHL = (Screen.PrimaryScreen.WorkingArea.Height - 100) CornerHover.Anchor = AnchorStyles.Bottom + AnchorStyles.Left CornerHover.Location = New Point(0, CHL) CornerHover.Height = 100 CornerHover.Width = 50 CornerHover.BackgroundImageLayout = ImageLayout.Stretch CornerHover.BackgroundImage = My.Resources.CornerHover End Sub Private Sub …

Software Development html-css image vb.net
Member Avatar for IsaacMessi10
0
2K
Member Avatar for lalitha2294

#include<stdio.h> #include<conio.h> #include<math.h>> main() { int k,i,r,n,j,a[100],m,p,b[100],count=0,count1=0,q,w,g,h,l,z,x,x1; printf("enter the length of the data word:"); scanf("%d",&k); printf("\nenter the data word:"); for(i=1;i<=k;i++) { scanf("%d",&a[i]); } r=1; while((k+r+1)>pow(2,r)) r++; printf("\n r=%d",r); n=k+r; j=1; m=0; for(i=1; i<=n; i++) { p=pow(2,m); if(i==p) { b[i]=0; m++; } else { b[i]=a[j]; j++; } } printf("\n INTERMEDIATE CODE …

Software Development c
Member Avatar for lalitha2294
0
157

The End.