43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Jake.20

How can i disable a button after i click it and shows another form, and enable it after i close the form that was opened. Please, i need help. Thank you in advance.

Software Development vb.net
Member Avatar for Jake.20
0
131
Member Avatar for HeartBalloon

Hi, I have to write a code which should allow to append and item to a list. That is FIFO Logic, First In First Out, but I cannot think of anything of that kind actually. I mean, I should run the list until the last pointer, and then make it …

Software Development c++
Member Avatar for HeartBalloon
0
639
Member Avatar for Archenemie

I have the code below and the exact same code works when its put outside the function but does not when its called as a function, and it seems the function is being called correctly because the print line works[CODE]import wx class DestroyButton(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, …

Software Development python
Member Avatar for Archenemie
0
200
Member Avatar for Violet_82

Hi there, I am doing an exercise from a c++ book, but I get few errors that I can't seem to be able to fix, and I am not quite sure why. The exercise goes:" In a right triangle with dimensions side1, side2 and hypotenuse, find all Pythagorean triples for …

Software Development c++ visual-studio
Member Avatar for Violet_82
0
904
Member Avatar for BlueZephyr

Hey everytime I run this it outputs the else of neither no matter what I enter. And I checked my conditions and the logic seems right but maybe I'm wrong. Help please! [CODE]#include <iostream> #include <cmath> using namespace std; int main(){ int n1, n2, n3; cout<<"Enter the three sides of …

Software Development c++
Member Avatar for BlueZephyr
0
97
Member Avatar for HeartBalloon

[CODE] int findWord(char ma[][iSize], char ca[],int iRing,int& X, int& Y){ int ring=0,i=0,j=0,x=0,y=0,k=0,i2p=0, iLSide=0,iSSide=0; bool bOkay=true, bOver=false; ring = iRing--; iLSide=(iSize-(ring*2)); iSSide=(iSize-((ring*2)+3)); i2p=(iLSide*2)+(iSSide*2); x=y=i=ring; while(i>=ring && i<i2p && bOver==false){ j=i; switch(i){ // WHAT'S WRONG WITH THIS?!? WHY CAN'T I ASK A CASE MINOR OR EQUAL? case =< iLSide: x=ring; y=j; break; …

Software Development c++
Member Avatar for HeartBalloon
0
178
Member Avatar for discovery-power

Hi All. I have developed an application for booking meeting rooms. A user has to log in before he / she can use the system. I want the user name of that user to be shown in the form. I thaught this was easy. Please see my code below for …

Software Development vb.net
Member Avatar for discovery-power
0
142
Member Avatar for Archenemie

I would like to destroy the second button by clicking the first I have also tried "return but2.Destroy() but everything returns an error message. Can anyone help? [CODE]import wx class DestroyButton(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "title") panel = wx.Panel(self) but1 = wx.Button(panel, label = "click me") but2 …

Software Development python
Member Avatar for Archenemie
0
128
Member Avatar for Tellalca

Hey; I am developing a console game in C#. I wanted to create a file called "accounts.bin" to hold players accounts information. So when I try to create or access the file the program halts and throws an exception called "UnauthroizedAccessException". I tried to put the file into the "C:\" …

Software Development
Member Avatar for Momerath
0
268
Member Avatar for RenanLazarotto

Hey guys! Two questions: how can I completely wipe a file from disk with vb.net? I found a code in C#, converted it to VB.net online but didn't understand a letter. I was thinking on a wiper like CCleaner has, but for a selected files only. And, how can I …

Software Development file-system vb.net
Member Avatar for RenanLazarotto
0
573
Member Avatar for PC_Intense

I have an assignment in which I need to rite an OpenGL program that displays a green square on a black background. Does anyone know a good free software I can download to run this. I'm mostly familiar with java, and since this is in C, I don't know where …

Software Development c opengl
Member Avatar for myk45
0
89
Member Avatar for iamthesgt

This may be a simple fix, but I have a class for a program that contains some member functions that manipulate a vector. The vector is a private member variable, and is filled from an array using a constructor. When I try to access the member functions to manipulate the …

Software Development c++ oop
Member Avatar for iamthesgt
0
176
Member Avatar for jaapo2k

I am new to vb.net. i need help in formating a string example: dim balance as string="balance:450005.809999" i will like to leave only two characters after the full stop. the integer will be changing but the string will always contain the 'balance' word and a full stop. will like the …

Software Development vb.net
Member Avatar for jaapo2k
0
89
Member Avatar for Dheerajpro

I m making registration form for teachers in which teach ID is one coloum name i want message box error if id number already exist in side the table means uniqe ID e.g if id no 1 is already exist then 1 should not be added when next time user …

Software Development mssql open-source vb.net
Member Avatar for Pgmer
0
158
Member Avatar for MacUsers

Hi there, I was wondering if anyone can give some advise/tips on this. My goal is to figure out the broadcast address. The way I think I should do is: [LIST] [*]get/detect the IP address and the subnet mask or CIDR [*]convert the mask to binary form [*]count the number …

Software Development python
Member Avatar for MacUsers
0
1K
Member Avatar for Vineeth K

i got a big project really big one and they need this new solution only because of peach tree, tally are not enough for doing their work. My program should be capable of bulk, multiple data transfer and usage at same time.[B]The real problem is their main program is created …

Software Development vb.net
Member Avatar for Vineeth K
0
171
Member Avatar for Jaseem Ahmed

i have one form, with 2 picture boxes, one Vscroll, and so many textboxes in pictureboxes.. when i m clicking the VScroll, it works... now i want that when i press enter button in textbox the scroll should go down, as it goes on click.please help me.

Software Development visual-basic
Member Avatar for Vineeth K
0
227
Member Avatar for iamthesgt

When writing a program that uses separate compilation (I have a header file, a .cpp file that declares all the member functions of the class in thee .h file, and an application file). I used a constructor to pass the contents of a dynamic array to a vector, but it …

Software Development c++ oop
Member Avatar for iamthesgt
0
287
Member Avatar for Heartis24K

I am taking my first class (online) in Visual Basic and we are using VB 2010. The assignment is to create a football calculator(see attached). I have attached the instructions that the teacher gave us and I think that I created the user interface okay but I don't understand about …

Software Development user-interface vb.net visual-basic
Member Avatar for codeorder
0
119
Member Avatar for JudeV

Write a pseudocode... A program is to be developed that will calculate the total length of music to be stored on a CD. Assume a CD may store 76 minutes of music. The user will enter the length of musical tracks in minutes and seconds (separately) in a loop. A …

Software Development
Member Avatar for JudeV
0
88
Member Avatar for HeartBalloon

Hi, I'd like to have a for condition with two interrupting conditions: [CODE] for(temp=hl;temp!=NULL,bOver1==true; temp=temp->next){ bOver=false; int I=0; while(bOver==false){ if(cu.Chars('S')[I]>temp->custs.Chars('S')[I]){ bOver=true; prev=temp; }else if(cu.Chars('S')[I]<temp->custs.Chars('S')[I]){ //FOUND THE ONE GREATER: PREV STAYS THE ONE BEFORE AND LOOP MUST END HERE! bOver=true; bOver1=true; } i++; } } [/CODE] This is a part of …

Software Development c++
Member Avatar for HeartBalloon
0
168
Member Avatar for Rimojenkins

Hello again... My problem is that my if statement isn't working as I believe it should. Here is a snippet of the for loop. [CODE] for(int m=0; m<num; m++) { if(begllts <= intarray[m] && intarray[m] <= endllts); { cout << setprecision(4) << showpoint << dubarray[m] << "C" << stringarray[m]<< endl; …

Software Development c++
Member Avatar for Saith
0
122
Member Avatar for prgrmmngaccnt

I have a txfile.txt file which has the following data: 3 2716 16253 7721 35149 972 2614 I am trying to read the first integer into a variable using this code: [code=c] #include <stdio.h> #include <stdlib.h> int main() { int num_cust[1]; int result; FILE *fp; if( (fp = fopen("tsfile.txt", "r")) …

Software Development c file-system
Member Avatar for prgrmmngaccnt
0
162
Member Avatar for SVW

I would like to complete a project that requires a name as a console input, but returns an output of that name in reverse. It should only use for-loops and strings/substrings. I think it needs to use an array to get it done. I am right? Below is my attempt …

Software Development java
Member Avatar for SVW
0
133
Member Avatar for Rimojenkins

Hey again! I've asked a question here once and have been lurking ever since. I was working on a new program and have come across problem. I don't really know what's wrong so I assume I overloaded something. The problem is in this snip of code [CODE]for(int m=0; m<num+1; m++) …

Software Development c++
Member Avatar for Rimojenkins
0
11K
Member Avatar for curbster

Hi all, I'm almost done with a problem for a java class I'm taking. The chapter I'm studying is on inheritance and I think I understand it ok. The parent class will compile fine, but when the child class tries to compile I get an error saying it cannot find …

Software Development java oop
Member Avatar for curbster
0
466
Member Avatar for CrankyMero

Hello Everyone, I have kind of a problem in a database well its suppose to save a date but like a string, well more like a char type, and i need it that way to do reports So there to tables Ventas and VentasDD so they have the same information …

Software Development vb.net
Member Avatar for CrankyMero
0
120
Member Avatar for DaniwebOS

For some odd reason, I can't get anything to be displayed when the program is running. I believe its not passing anything at all which would explain the blank console. If anyone could help me out that would be great. Without using functions the program successfully shows: 1) Student's name …

Software Development c++
Member Avatar for DaniwebOS
0
131
Member Avatar for iamthesgt

Okay, we had an assignment in computer class that I have been working on for awhile but what I've got so far isn't working. It seems that it may be a compiler issue, but since I can't get to a linux compiler (what the program will be evaluated on), and …

Software Development c++ file-stream oop
Member Avatar for iamthesgt
0
173
Member Avatar for nickliutw

Here is the requirements: create a class include first name, last name, and monthly salary variables. Create a set and get method for each instance variable. What is the set method for(I read the book several times)? I don't quite get how to use it. How to create a set …

Software Development java
Member Avatar for peter_budo
0
138
Member Avatar for skips

My problem is that I need to write a program that asks the user to input a number from 1-99 and outputs the number spelled in english. I believe that I have the general outline down in that I will break it up into statements using If and Switch statements. …

Software Development c++
Member Avatar for Red Goose
0
131
Member Avatar for RenanLazarotto

Hey people! I'm creating a small project which consists of 36 textboxes and one button. When I click a textbox, it should open a open file dialog and, when OK, set the text of the textbox I've clicked to the file name. I've did this: [CODE]Public Class Form1 Private Sub …

Software Development vb.net
Member Avatar for RenanLazarotto
0
4K
Member Avatar for Scooterman1

So I've been working on a program that takes a string and then puts it in an i * 6 char array but I can't seem to get it to work, any help with the problem would be much appreciated. Here is the unsatisfactory code I have so far: [CODE] …

Software Development c++
Member Avatar for Scooterman1
0
382
Member Avatar for mohamed_nasr

At debugging the code, the program gives 2 errors Error 1 error LNK2001: unresolved external symbol _mainCRTStartup Error 2 error LNK1120: 1 unresolved externals

Software Development c++ visual-studio
Member Avatar for mohamed_nasr
0
594
Member Avatar for Sidd_

hi 2 all How to get todaz date in java and store in a string thanx in advance

Software Development java
Member Avatar for anuj_sharma
0
107
Member Avatar for Dane2259

Could someone explain to me why this code will not print the 10th prime number? It says there is a syntax error on the fourth line (the x = range(3, math.sqrt(test_num)). It also says there is a syntax error on the sixth line (while prime_count < 10:). [code]import math test_num …

Software Development python
Member Avatar for richieking
0
123
Member Avatar for thelerner

hye all :) can u help me with this code: [CODE]int list[4][4] ={7,23,12,6, 2,1,4,10, 65,15,33,8, 18,26,42,12}; int i,j; for (i=0;i<4;i++) { for(j=0;j<4;j++) { cout<<list[i][j]; } }[/CODE] there's output but i want it to display 4X4

Software Development c++ display
Member Avatar for daviddoria
0
143
Member Avatar for KazenoZ

Hello, I'm having this problem in my code that I just can't figure out the reason to, I'm trying to set an integer value to an integer variable that's a member of a class that is part of an array member of another class. It should be an int = …

Software Development c++
Member Avatar for KazenoZ
0
581
Member Avatar for CharlieNewey

Hi there, I have a set of coordinates (data points) that I want to use Python3 to fit an exponential decay curve to. I've used this resource [URL="http://mathworld.wolfram.com/LeastSquaresFittingExponential.html"]here[/URL] as a base for building my program. The problem is, no matter what the x-value I put in is, the y-value ALWAYS …

Software Development algorithm mathematics python
Member Avatar for CharlieNewey
0
688
Member Avatar for get connected

Hi All Does Anyone know how to make a variable public to all forms within the application. Eg [ICODE] Public MyPath = "C:\" [/ICODE] can do for one form but not all

Software Development vb.net
Member Avatar for get connected
0
101
Member Avatar for petero_l

Hello it is my first time here and I just started C++ so hopefully my question isn't too dumb or anything: I was writing this thing that can do geometric series and arithmetic series. I can write the geometric series code alright and the arithmetic series code alright but once …

Software Development c++
Member Avatar for petero_l
0
253
Member Avatar for JacobBruce

Just wondering if someone can tell me what I'm doing wrong here, I just can't seem to work this out, I keep getting errors. [CODE]function GetColorFromBmp(XX, YY: Integer; Bmp: TBitmap): TColor; var Line: PRGB32Array; begin Line := Bmp.ScanLine[YY]; Result := RGBtoColor(Line^[XX].R, Line^[XX].G, Line^[XX].B); end; procedure SetColorOnBmp(XX, YY: Integer; Color: TColor; …

Software Development pascal
Member Avatar for JacobBruce
0
198
Member Avatar for PerplexedWon

My problem: I am now able to get the program to compile, however, when i call the functions to count the number of consonants or vowels, the numbers are not what I expect. Instructions: Write a function that accepts a pointer to a C-String as its argument. The function should …

Software Development c++
Member Avatar for PerplexedWon
0
779
Member Avatar for ztini

I'm having some fundamental issues with some basic abstraction. Here is the super class: [CODE] public abstract class Tile extends JLabel implements MouseListener { public Tile() { setIcon(new ImageIcon(getClass().getResource("images/blank.gif"))); } @Override public void mousePressed(MouseEvent e) { System.out.println("clicked"); switch(e.getModifiers()) { case InputEvent.BUTTON1_MASK: leftClick(); break; case InputEvent.BUTTON2_MASK: rightClick(); break; } } public …

Software Development java
Member Avatar for ztini
0
187
Member Avatar for lexusdominus

Hey guys. Im writing a console based application which i want to convert to a windowed application. however, i still want the user to be able to type in input and for my program to be able to output in a console based style, i'd just like the option to …

Software Development c++
Member Avatar for lexusdominus
0
211
Member Avatar for DJSAN10

Are constants, defined by using the keyword const , external linkage or internal linkage? Can constants be modified using pointers? What about constants defined using by #define?

Software Development c
Member Avatar for DJSAN10
0
136
Member Avatar for Mayank23

how can a user be able to type what ever he wants such as " i went to the park...", i tried to do it but with my string variable it only read the first word typed in, such as i in this case. please help.

Software Development c++
Member Avatar for Mayank23
0
171
Member Avatar for jemz

hello please help me how can i get the height of the tree?I really don't have idea how to get this can you help me please thank you in advance hoping for your positive response...here is my code [CODE] private Node root; public boolean isEmpty() { return root==null; } public …

Software Development java
Member Avatar for jemz
0
190
Member Avatar for bklynman01

I'm having trouble getting some data from a combobox. I have a series of comboboxes that populate as you make selections from the boxes. Each combobox is using data that is pulled from a SQL database into a dataset. This all works. When I get to the last box, I …

Software Development dataset sql vb.net
Member Avatar for CodeWord
0
128
Member Avatar for L3gacy

I use Microsoft Visual Studio Professional on my Desktop PC, but my GTX 260 just failed and im dojng an RMA, so I started trying to program on my laptop. I am around 1/3 of the way through Ivor Hortons Beginning Visual C++, the book covers Native C++ and C++/CLI, …

Software Development c++ ide laptop visual-studio
Member Avatar for mike_2000_17
0
401

The End.