43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for major_lost

I have a form with A GroupBox on it. Within the GroupBox is a TextBox and a ComboBox. I am trying to disable one or the other when either text is entered into the textbox OR when an item has been selected in the combobox. I can get the combobox …

Software Development vb.net
Member Avatar for major_lost
0
309
Member Avatar for laurel.jackson.12

#include <iostream> using namespace std; int main () { //declaring variables double Pi= 3.1416 ; double Diameter_ofcircle = 0.0; double priceofrailingmaterial = 0.0; double Totalpriceofrailingmaterial = 0.0; //Getting the user input cout<<"Enter the diameter of the circle "; cin>>Diameter_ofcircle ; cout<<"Enter the price of railing material per foot "; cin>> …

Software Development c++ visual-studio
Member Avatar for laurel.jackson.12
0
302
Member Avatar for overwraith

I just glued together two codes I found online, and found an interesting result. Some of my flash drives have been appearing twice on the system. Here is what the output looks like: Drive: C:\ Volume Name: Drive: D:\ Volume Name: Drive: E:\ Volume Name: Drive: F:\ Volume Name: Drive: …

Software Development c++ pc-peripheral
Member Avatar for overwraith
0
223
Member Avatar for LeNenne

Hi folks I wonder if this code can bee converted to VB6 or there are a simular code. Lenny Dim strMSG As String > strMSG = "This Demo Has Expired" & vbCrLf & "Please Contact Me to Obtain > the Full Version" > > If DCount("[autonumberID]", "app.path/phonetel.mdb") > 20 Or …

Software Development visual-basic
Member Avatar for bonzo2008
0
200
Member Avatar for overwraith

Hello, I was doing some research on enumerating the different drives on a system, and I found some code on MSDN. Here is the page: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364975%28v=vs.85%29.aspx The source code looks like this: DWORD dwSize = MAX_PATH; char szLogicalDrives[MAX_PATH] = {0}; DWORD dwResult = GetLogicalDriveStrings(dwSize,szLogicalDrives); if (dwResult > 0 && dwResult …

Software Development c c# c++
Member Avatar for overwraith
0
266
Member Avatar for FC Jamison

How would I write a C++ class of which only one can be created ever be instantiated in any program. I know that ClassName* objectName = new ClassName(); instantiates an object, but how would I make it so when you try to instantiate it more than once you still end …

Software Development c++
Member Avatar for rubberman
1
6K
Member Avatar for kiail

Okay I'm here with a question about a form I'm creating. It's a simple form that reads in the input from text boxes. I should be able to enter the text, and press my enter button to display it in the display box. I should also be able to save …

Software Development
Member Avatar for kiail
0
111
Member Avatar for Lp_baez

I am currently learnning c++ from a text book. but I have come accross an error when trying to run the program. The error reads like this: fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source code? …

Software Development c c# c++
Member Avatar for Lp_baez
0
387
Member Avatar for Karan_4

Please Explain me the code A a = b as A; Iam confused with it public class A { public virtual void One(); public void Two(); } public class B : A { public override void One(); public new void Two(); } B b = new B(); A a = …

Software Development c c# c++
Member Avatar for ddanbe
0
102
Member Avatar for UKnod

I am able to find and replace in word, however all I want to know is if the word was found, I have tried the following code: This works oDoc.Content.Find.Execute(FindText:=x, ReplaceWith:=y, Replace:=Word.WdReplace.wdReplaceAll) This never give the true statement oDoc.Content.Find.Text = x If oDoc.Content.Find.Found = True Then But why not?

Software Development vb.net
Member Avatar for UKnod
0
162
Member Avatar for kvahanyan

Hello people, I want create and use a simple library but this is the first time, so I need help. 1. If I have cpp file with it's header, how do I create a shared library with g++. 2. After I created the .so library, how do I include it …

Software Development c++
Member Avatar for vijayan121
0
236
Member Avatar for mesbahuk

I have a Java code block like following: public TcpConnection(TcpSocket socket, long alive_time, ITcpConnectionListener listener) { init(socket,alive_time,listener); start(); } For the conversion in C#, When I try to replace the `start()` method with `System.Threading.ThreadStart()`, it gives an error. How can I start a thread in C#?

Software Development c# java
Member Avatar for ddanbe
0
282
Member Avatar for vinnitro

I am creating a game of Racing cars in java But the problem is that my car when moved in any direction makes flickering on the screen. As the project is a Core java project it can only be made in a Windows application form. I set the speed of …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for gbhs

Hi I have a datagrid with 2 columns (Scores(Int) index 0 and Comment(varchar) index 1) Comment columnvalue depends on score columnvalue. This code works well in my cellvaluechanged event If e.ColumnIndex = 0 Then If Not IsDBNull(Me.dgvStudDisc.Rows(e.RowIndex).Cells(e.ColumnIndex).Value) Then If Me.dgvStudDisc.Rows(e.RowIndex).Cells(e.ColumnIndex).Value >= 0 And Me.dgvStudDisc.Rows(e.RowIndex).Cells(e.ColumnIndex).Value <= 5 Then Me.dgvStudDisc.Rows(e.RowIndex).Cells(1).Value = "Very …

Software Development vb.net
Member Avatar for gbhs
0
2K
Member Avatar for Casperjames

I have searched the google machine to the ends of they internets and back again and tried everything from clean builds to removing registry entries. This has vexed me for the past week. It all started out as a simple application project windows form style. New project deserves new visual …

Software Development perl vb.net windows-vista-7-8
Member Avatar for Casperjames
0
2K
Member Avatar for ogsirus

Hey Guys, I'm Learning a bit more about things you can do with OpenFileDialog. One of the things was to see if I could move a file to specfic destination depending on the filename. That works fine However come to a halt when trying to do the same thing with …

Software Development
Member Avatar for ogsirus
0
497
Member Avatar for Mr.M

Hi DW I created a program in NaviCoder For Java and now I want to export it so that it can be a exe file so that it can be executed on a computer on it own without the need of an IDE. Thanks

Software Development ide java
Member Avatar for JamesCherrill
0
164
Member Avatar for reincom

public class PolarCoordinates { public static void main(String[] args){ int r=10; double x=0,y=0,theta=30; x=r*Math.cos(theta); y=r*Math.sin(theta); System.out.println("The value of x is :" +x); System.out.println("The value of y is :" +y); } } help please? it gives me wrong answer. 10cos(30) should equal to 8.7, but it gives me 11.7 ans. 10sin(30) …

Software Development java
Member Avatar for reincom
0
273
Member Avatar for masakii

Anyone can tell me what is a module actually? how it differs from others files?

Software Development visual-basic
Member Avatar for rishif2
0
4K
Member Avatar for Labdabeta

Hello, I made an arbitrary precision integer library a few weeks ago. It works well, but is bounded by `256^(8*sizeof(size_t))` because it uses a simple dynamically allocated array to do its work. I want some way to have theoretically unbounded storage. I think that file io is probably best, but …

Software Development c++ motherboards-cpu-ram storage
Member Avatar for Labdabeta
0
213
Member Avatar for Mr.M

Hi Dw I'm creating an atm appication and now my research pointed me to use the Java Point Of Service/Sale (JPOS) my application allow user to choose the amount from the options displayed on the screen and the user will use the number keypad to make his/her selection and the …

Software Development java
Member Avatar for Mr.M
0
600
Member Avatar for murali2489

Hi all, I have created an abstract class Named Employee and one Sub-Class named FullTimeEmployee. In my abstract class "Employee", i have defined two constructors one without parameter and one with two parameter, both used to intializee first name and last name. My aim is to print payroll for employee …

Software Development apple java
Member Avatar for murali2489
0
206
Member Avatar for IsaacMessi10

How can I close a user generated button? Here's the code for the button that creates new user generated buttons: Public Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click TC = TC + 1 Dim TCP As New Integer TCP = TC * 100 Dim NT As New MyButton …

Software Development vb.net
Member Avatar for IsaacMessi10
0
162
Member Avatar for Suzie999

I'm running this code. SHELLEXECUTEINFO ExecuteInfo = { 0 }; ExecuteInfo.cbSize = sizeof(ExecuteInfo); ExecuteInfo.fMask = 0; ExecuteInfo.hwnd = nullptr; ExecuteInfo.lpVerb = L"open"; ExecuteInfo.lpFile = L"C:\\progra~1\\intern~1\\iexplore.exe"; ExecuteInfo.lpParameters = L"http://www.google.co.uk"; ExecuteInfo.lpDirectory = nullptr; ExecuteInfo.nShow = SW_SHOW; ExecuteInfo.hInstApp = nullptr; ShellExecuteEx(&ExecuteInfo); Sleep(5000); CloseWindow((HWND)ExecuteInfo.hwnd); exit(GetLastError()); It's not closing the window. And it's exiting with …

Software Development api c++
Member Avatar for Suzie999
0
1K
Member Avatar for laurel.jackson.12

Problem 1: When I need to display my zipcode, I get zipcode and city. Problem 2 : When I enter zipcode I get zipcode not found. This my zipcode and city 60561 Darien 60544 Hinsdale 60137 Glen Ellyn 60135 Downers Grove #include <iostream> #include <string> #include <fstream> using namespace std; …

Software Development c++ ios
Member Avatar for tinstaafl
0
149
Member Avatar for problematic:)

hi! can someone help me with my problem, I'm using msaccess2003 and vb6. I've been trying to determine how can I save data using one form to two database. the scenario is like this, I have one form, the details of some information of the customer will be input in …

Software Development visual-basic
Member Avatar for Mark Alonzo16
0
184
Member Avatar for Jahliah

I want to set value for html input text through code behind but can't seem to work :( p.s. i'm new to c# and this is my first c# project. I appreciate any type of help or critic. Thanks! Error in banana.cs: "txt_URL" is not in context apple.html: <%@ Page …

Software Development apple html-css
0
114
Member Avatar for 2384443

plzz help me with this program #include<iostream.h> #include<conio.h> int sum(int s); int sum(int x); int sum(int j,int k); float sum(float p,int q); float sum(float y,float z); void main() { cout<<sum(0)<<"\n"; cout<<sum(3)<<"\n"; cout<<sum(6,7)<<"\n"; cout<<sum(5.5,8)<<"\n"; cout<<sum(4.9,3.5)<<"\n"; getch(); } int sum(int s) { return s; } int sum(int x) { return x; } …

Software Development c++
Member Avatar for richieking
0
142
Member Avatar for mrkm1188

How do you change the "Apply to" portion of the permissions on a folder from "This folder, subfolders, and files" to "Files only" and to "This folder and subfolders" ?

Software Development vb.net
0
134
Member Avatar for corliss

Hi All, I have created an application that allows a user to select a diectory, where we parse the photos, and upload to a database. The issue that I am having is that I have a button on the form found in the newJFrame.java class called upload that when pressed …

Software Development gui java oop
Member Avatar for corliss
0
380
Member Avatar for soche123

![729809d51c75da2de9381dc33f42887d](/attachments/large/4/729809d51c75da2de9381dc33f42887d.jpg "729809d51c75da2de9381dc33f42887d") okay guys this the program in which we have to add a record,modify it or delete it. it adds and shows it successfully but whenever we want to delete a record it doesn't. When we add to records and delete the second one ,the list looks like this,

Software Development c++
Member Avatar for tinstaafl
0
707
Member Avatar for JamesCherrill

I know this is going to be really simple, and I'm going to look like a fool when someone answers it, but... I'm tryingto replace any occurrenxe of any of these characters - ?_ with a * in a String I start with replaceAll("[ _-]", "*"); and all is well …

Software Development java regex
Member Avatar for masijade
1
237
Member Avatar for IsaacMessi10

Hi. I want to create a picturebox when a specific button is clicked. The code below displays nothing :( TC has an initial value of 0. It will count he number of times the picturebox has been created. Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click TC = …

Software Development vb.net
Member Avatar for Luc001
0
156
Member Avatar for somjit{}

doing this works : contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, 0)); textArea = new JTextArea(); scrollPane = new JScrollPane(textArea); contentPane.add(scrollPane,BorderLayout.CENTER); setContentPane(contentPane); however this doesnt : contentPane = new JPanel(); textArea = new JTextArea(); scrollPane = new JScrollPane(textArea); contentPane.add(scrollPane,BorderLayout.CENTER); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); contentPane.setLayout(new BorderLayout(0, …

Software Development java
Member Avatar for somjit{}
0
356
Member Avatar for newbie26

hi please help me..how can i add checkbox in a listview? i already set the properties of listview checkboxes to TRUE. but it appears in the first column..i wanted it on the last column.. is it possible?? or the other way: programmatically move the first column (with checkbox) to the …

Software Development listview visual-basic
Member Avatar for newbie26
0
263
Member Avatar for alastair1008

I am writing a program that does one thing, it finds out the current link speed of the wifi connection and reports it to the user in real time. the problem I am having is that it does not seem to be able to find out the current link speed, …

Software Development wireless-networking
0
167
Member Avatar for Papa_Don

Hi group! I have what I hope is a unique question: In need to populate a combo Box with the information stored in 6 different columns on one row of a data table. I know how to do this if it just one column and one row. To be specific, …

Software Development vb.net
Member Avatar for Papa_Don
0
174
Member Avatar for J-P1988

Hey! On Qt, i created an QList<QLabel*> but when i try to access or modify it in later functions i get: DĂ©marrage de C:\Projet QT\Text Based RPG\build-textbasedrpg-Desktop_Qt_5_1_0_MinGW_32bit-Debug\debug\textbasedrpg.exe...ASSERT failure in QList<T>::operator[]: "index out of range", file ..\..\..\Qt\Qt5.1.0\5.1.0\mingw48_32\include/QtCore/qlist.h, line 460 Invalid parameter passed to C runtime function. Invalid parameter passed to C …

Software Development c++ qt
Member Avatar for J-P1988
0
885
Member Avatar for Klahr_R

I do very little programming these days, but I try to maintain an application for our church that maintains most of it's bookkeeping and report generation. The application is all done in Excel/VBA, using many forms and several workbooks. Yes, we are using antiquated programs (XP/Office 2003) because we are …

Software Development visual-basic
Member Avatar for Klahr_R
0
269
Member Avatar for Mireya B.

Hello, I am using VBA userform in MS Excel to insert data for database purpose. When I tested it for the first time, it was running okay. But after I saved it and used it again to insert the real data, it happens to repeat/duplicate the data to multiple times …

Software Development microsoft-office vb.net visual-basic
Member Avatar for Stuugie
0
321
Member Avatar for Andy_2

I've tried installing the jackcess libaray (http://sourceforge.net/projects/jackcess/files/) into my project using Project/Preferences/install jar. However, when I try import static com.healthmarketscience.jackcess.Database.*; it just says 'Incorrect package'. How do you install this type of libarary? (I'm a real nooob so sorry if this is obvious). Also - why so many programmers so …

Software Development java
Member Avatar for JamesCherrill
0
317
Member Avatar for mesbahuk

I'm currently working in a java to c# conversion project. In one part I got this Java code snippet. public CustomType someMethod(Message msg) throws IOException { byte[] data = msg.toString().getBytes(); } to my understanding, data contains the byte representation of the string *msg.toString()* But when I try to write it …

Software Development c c# c++ java
Member Avatar for mesbahuk
0
266
Member Avatar for james.lu.75491856

notdone = [tuple((x,y))for x in range(5) for y in range(6)] for i in showns: s = lambda :tuple(random.sample(notdone,1)) #random.sample gives a LIST even though I used tuple() print notdone #debug a = s() print a #debug notdone.remove(a) b = s() flashcards[a] = Flashcard((x*20,y*100),i) flashcards[b] = Flashcard((x*20,y*100),i) [(0, 0), (0, 1), …

Software Development python
Member Avatar for james.lu.75491856
0
178
Member Avatar for 26bm

Hi, I'm wondering if anybody knows of a python compiler to make an exe with. I have tries cx_freeze and py2exe so far, but I haven't been able to get it to work. If anyone has any good python to exe compilers please post here. Thanks, 26bm

Software Development python
Member Avatar for james.lu.75491856
0
381
Member Avatar for reincom

public static void main(String[] args){ /*The number of bacteria, B, in a culture that’s subject to refrigeration can be approximated by this formula: B=300000*e^-0.032t Using this formula, write a program that prompts the user for a value of time, calculates the number of bacteria in the culture, and displays the …

Software Development java
Member Avatar for reincom
0
109
Member Avatar for valipour

Hi i created class a and b is it's child (a:b) public class a { string text = "class a"; public void alert() { MessageBox.Show(text); } } public class b : a { string text = "class b"; } b myb = new b(); myb.alert(); but when i call alert() …

Software Development c#
Member Avatar for sepp2k
0
243
Member Avatar for yksrmc

Dear Experts, Thanks for your time. I have got stuck on following problem. I have one file with five column name Chr, Pos Qial GT1 and GT2. In file Column 4 Gt1 is with 01 value only. I like to do comparision between col GT1 and col GT2. I like …

Software Development perl
Member Avatar for 2teez
0
170
Member Avatar for yksrmc

Dear Experts, Thanks for your time. I have got stuck on following problem. I have one file with five column name Chr, Pos Qial GT1 and GT2. In file Column 4 Gt1 is with 01 value only. I like to do comparision between col GT1 and col GT2. I like …

Software Development perl
Member Avatar for 2teez
0
145
Member Avatar for rofln

Hello, I have to submit a makefile along with my source code for a project in my data structures class. I have never done this before, so I had to do a lot of Googling. Needless to say, I have successfully created a makefile and ran it, but I have …

Software Development c++
Member Avatar for rofln
0
129
Member Avatar for wolf29

I want to create sqlite3 databases from within a python script. I am currently running this code which does not pass the right variable content to the sqlite3 command prompt, so I have one issue there. I also do not want to have the user have an sqlite3 command shell …

Software Development python sqlite
Member Avatar for james.lu.75491856
0
366

The End.