861 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Tân_3

1/Write a TeachArithmeticFrame class that teaches children arithmetic. The frame uses a JLabel for a problem and a JTextField for the user answer. When the user presses the Enter key (while the JTextField object is active) or clicks the OK button, display a message stating whether the user’s answer is …

Software Development java
Member Avatar for rproffitt
0
311
Member Avatar for Abdallaselim77

MyMainWindow::createUI() { label = new QLabel("foo"); button = new QPushButton("Browse"); connect(button, SIGNAL(clicked()), SLOT(browse())); layout = new QHorizontalLayout(); layout->addWidget(label); layout->addWidget(button); setLayout(layout); } void MyMainWindow::browse() { QString directory = QFileDialog::getExistingDirectory(this, tr("Find Files"), QDir::currentPath()); if (!directory.isEmpty()) { if (directoryComboBox->findText(directory) == -1) directoryComboBox->addItem(directory); directoryComboBox->setCurrentIndex(directoryComboBox->findText(directory)); } } MyMainWindow::createUI() { label = new QLabel("foo"); button = …

Software Development c++ python
Member Avatar for Reverend Jim
1
907
Member Avatar for amvx86

Hello Everyone, I'm trying to create / edit a binary value within the windows registry so far I have this: Dim data As Byte() = New Byte() {&H48, 96} Microsoft.Win32.Registry.SetValue("hkey_local_machine\hardware\description\system\bios", "SystemProductName2", data, Microsoft.Win32.RegistryValueKind.Binary) However, I want to set a product name say "Acer Stuff" to the registry and what is …

Software Development microsoft vb.net
Member Avatar for rproffitt
0
338
Member Avatar for JerryShaw

Well I guess it is my turn to ask a question, since most of the time I spend answering questions on DaniWeb. The Problem: DataViewGrid throws a "System.ArgumentException parameter is not valid..." when the dataset contains an SQL 2005 TimeStamp type column. The error occurs in System.Drawing.FromStream... da da da …

Software Development
Member Avatar for work.caglar
0
1K
Member Avatar for namra

i am new to c++ and m having a problem in making a scientific calculator plsss help me i dun know how to make the power function work here is my program m working in visual studio 2005 ,c++ getiing this error error C2064: term does not evaluate to a …

Software Development c++
Member Avatar for Jawad_9
0
8K
Member Avatar for bookday502

**Task** Your task is to write a program that will draw graphs and output them as coloured image in the .ppm file format and display them using a suitable external image viewer (IrfanView). The program will use code generated sine waves, and harmonics of these, to calculate and display the …

Software Development
Member Avatar for bookday502
0
2K
Member Avatar for mister-fett

I am new to C and C++, but I wrote this calculator in C++. It compiles okay on borland 5.5, and can do addition, subtraction, multiplication, and division of two numbers. If you type any characters except numbers, +,-,*,/,or e, there will be lots of beeping noises and error messages! …

Software Development c++
Member Avatar for Jawad_9
0
1K
Member Avatar for matt21mcr

Hello everyone, I am writing this post again because there were ambiguities in the previous one. I need help with this task tomorrow. I will present what I have, what I got from you and ask which code is best to use to perform this task. I will start with …

Software Development c++
Member Avatar for Reverend Jim
0
623
Member Avatar for M_27

I made this game equivalent to tictactoe but with a slight twist called find the X between two players using socket programming with Java. Don't know where I went wrong in trying to find the X but for some odd reason my count variable never updates allowing the victory message …

Software Development java
Member Avatar for JamesCherrill
0
488
Member Avatar for Mariam_9
Member Avatar for vegaseat

Just trying to find out which of these five isprime functions is the fastest.

Software Development python
Member Avatar for paddy3118
1
2K
Member Avatar for Saran_1

I have scoured Stack over flow and the Pandas documentation for a solution to this issue. I am attempting to recursively move through a directory and concatenate all of the headers and their respective row values. Below is what I have so far after much experimentation with other libraries: import …

Software Development file-system python
Member Avatar for m_26
0
18K
Member Avatar for joy_deep

Hello, I am new to Python. I am learning boxsizer. I want to put two buttons on my panel. One at top right corner and one at bottom right corner. How do I achieve this? Thanks

Software Development python
Member Avatar for Jonny_4
0
994
Member Avatar for sofia-net

Hello, help me When you apply the save, an error occurs Dim c As Integer Dim val As String If cmbfeuille.Text = "" Then Exit Sub xlApp.ScreenUpdating = False xlApp.DisplayAlerts = False xlWorkBook = xlApp.Workbooks.Open(chemin) xlWorkSheet = CType(xlWorkBook.Worksheets(cmbfeuille.Text), Excel.Worksheet) For l As Integer = 1 To DataGridView1.RowCount - 1 For …

Software Development vb.net visual-basic
Member Avatar for RobDownUnder
0
405
Member Avatar for henks

first of all, I wanna say hi to u all as I'm new to daniweb. I'm a freshman in a college so I don't know much of c yet. So please be understanding in case that I will ask some n00b question later on :) So this is my problem...first …

Software Development c
Member Avatar for therese_1
0
502
Member Avatar for ddanbe

Wanted to let two forms work together. One form would be the input form and the main form would consume this data. I managed to succeed with the help of a few of my friends here at daniweb., who helped me setup a static form. Just posted a bit of …

Software Development mathematics
Member Avatar for JamesCherrill
1
2K
Member Avatar for pixma

Hi! We are a 4 member group for our thesis and we already have submitted 5 topic proposals yet nothing was accepted...and here are the topics: enrollment system, gadgets on track, employment resource system, subdivision technical entry pass Now, I need a help for new ideas that can be developed …

Software Development vb.net
Member Avatar for Aldrin_1
0
6K
Member Avatar for BirdaoGwra

Hi, I am getting an error while making a vector. frame.h #include <wx/wx.h> class Frame : public wxPanel { public: Frame(wxPanel* parent, int xx, int yy); ~Frame(); private: int x; int y; } frame.cpp #include "frame.h" Frame::Frame(wxPanel* parent, int xx, int yy) :wxPanel(parent) { x = xx; y = yy; …

Software Development c++
0
842
Member Avatar for Kincso

This is a program to get a student mark, as an input from user and print its grade based on the following criteria: if mark>=80 print 'A' if mark between 70-80 print 'B' if mark between 60-70 print 'C' if mark between 50-60 print 'D' if mark < 50 print …

Software Development python
Member Avatar for Reverend Jim
0
635
Member Avatar for Gacso

Hello everyone! I'm sorry to bother you all, but I really need your help. I'm an economy and management student at uni, but somewhy I have to deal with programming. We got a task that looks like this: There's a 5x5 sized field where there are 8-8 disks for both …

Software Development c#
Member Avatar for Reverend Jim
0
341
Member Avatar for zdreggs

Hello, I am trying to understand how to use C-style strings in C++. My goal is to store a C-style strings into a string type array. If I pass "This is a test" into word_token, it displays: This Is A test So from here I believe my setup is almost …

Software Development c++
Member Avatar for rproffitt
0
259

The End.