132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for limonzmn

Recently I am facing a problem when I am browsing or clicking links in web pages. As I click to a particular link, an additional windows open with another website as advertisement. Is there any software to avoid such unexpected adds ?

Software Development seo
Member Avatar for limonzmn
0
154
Member Avatar for spud91

Hi Guys I have a program thats supposed to generate 9 random objects made from lines and then allow me to save the panel showing the state of all 9 objects. Currently all 9 objects are being generated and when i click save the panel is being saved to a …

Software Development gui image java java-swing
Member Avatar for JamesCherrill
0
405
Member Avatar for mcoliver88

Hi Guys I am coding as very simple database in VB.net. I have decided to manually code my buttons but for some reason my save button returns with an error. Below is my code for my entire program (I know its not perfect). This is the error i Get: An …

Software Development dataset open-source vb.net
Member Avatar for mcoliver88
0
233
Member Avatar for pars99

I need to fill an image created using a ton of QuadCurves, but they don't fill it all the way using the traditional fill method. Any suggestions? public class MonstercatComponent extends JComponent{ public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; drawGrid(g2); g2.setStroke(new BasicStroke(5)); QuadCurve2D earLeft1 = new QuadCurve2D.Double(145, 155, …

Software Development image java
Member Avatar for mKorbel
0
390
Member Avatar for kayecng

I am calling function (i don't know, if this code is really called function.. so please correct me if i'm wrong) to disable the fields except for buttons and other necessary information needed during form load. But my problem is, some fields are not disabled. My application goes like this: …

Software Development dataset open-source vb.net
Member Avatar for kayecng
0
216
Member Avatar for rikb53

guys, i have a bit of an anomole exporting to excel. on date formats, it seems no matter what i export to excel, it becomes a 24hr clock. for instance the date format thats being exported is stored as:: 03/11/2015 04:26:09 PM - however when it hits excel, it becomes: …

Software Development microsoft-office
Member Avatar for JerrimePatient
0
340
Member Avatar for Muhammad Faizan_1

I am trying to write a program that takes unlimited input of names using dynamic memory and stop when the first character is the enter key. i tried, but i am unable to do it. #include "ReadString" void main() { const int NumNames(20); char **pNames; pNames=new char [NumNames++]; for (i=more;i<NumNames;i++) …

Software Development c++
Member Avatar for tinstaafl
0
615
Member Avatar for papuccino1

A THOUSAND apologies if this question has been asked time and time again. Google gave no results and Jeeves is retired so I come looking for help in the best programming forum around. [code=csharp]private void button1_Click(object sender, EventArgs e) { pictureBox1.ImageLocation=??????????? }[/code] My question is fairly simple, what do I …

Software Development gui image
Member Avatar for NetJunkie
0
2K
Member Avatar for Tcll

so I was trying to think of ways to reduce python's memory usage when you write your code. my logic is telling me your class instances will use less memory if you write your class functions before writing your class: def classfunc( inst, arg ): pass class mainclass: pass inst …

Software Development python
Member Avatar for Tcll
0
233
Member Avatar for karodhill

need to code a linq statement that codes the grade display button so it allows the user to display either all records or only records matching a specific grade. Also it has to calculate a gpa where a=4 b=3 c=2 d=1 f=0 My main problem is with a linq statement …

Software Development asp.net vb.net visual-basic
Member Avatar for karodhill
0
354
Member Avatar for sing1006

I having a problem with the cloneNode tag problem. NodeList movielist = doc.getElementsByTagName("movie"); Element child = (Element)movielist.item(6); Element newNode = (Element)child.cloneNode(true); child.appendChild(newNode); newNode.setAttribute("id", "this is newnode"); code above will clone the whole set of thing. but the problem is it colne in wrong tag. i want some thing like this …

Software Development html-css java xml
Member Avatar for sing1006
0
333
Member Avatar for SpeakerKeyboard

Hey everyone. I'm currently trying to figure out how to use the StreamReader and ReadAllLines functions of VB.NET to search a text file for keywords and pull the information that follows those keywords. To elaborate more, I have a PDF which I convert to text and once converted, the text …

Software Development pdf vb.net
Member Avatar for SpeakerKeyboard
0
2K
Member Avatar for iris91

I have texts (Paragraphs) and I want to replace each of annotated wrong word in the paragraph with the correct word indicated by the position (index) number of the wrong word and i need to do it for each paragraph... So, what method should I use to search by index …

Software Development data-science java
Member Avatar for JamesCherrill
0
392
Member Avatar for markdean1989

Good day. I was surprised to see that there are no members on objects declared as IFSTREAM and OFSTREAM. I have this code; ifstream indata; ofstream outdata; indata.open(""); outdata.open(""); It can't seem to recognize the member "open". Why is that? Any solution?

Software Development c++ microsoft-access
Member Avatar for Moschops
0
202
Member Avatar for Mr.M

Hi Dw I was just reading another article on video recording using AVICAP32 this shows how to use this library to record video from a video device such as webcam but what I would like to know is that how can I record internal video, I want to record my …

Software Development vb.net video webcam
Member Avatar for Mr.M
0
233
Member Avatar for Metalvoice

Hi All i dynamically created gropbox and dynamically insert inside it listview and button Dim count1 As Integer Dim Listvcounter As Integer Dim flashCounter As Integer Private Panel As New System.Windows.Forms.GroupBox Private ListV As New System.Windows.Forms.ListView Private Btn As New System.Windows.Forms.Button Private PancLeft As Integer = Me.Controls.OfType(Of GroupBox)().ToList().Count Private cLeft …

Software Development listview vb.net
Member Avatar for Santanu.Das
0
997
Member Avatar for mohammed_22

after setup file created,i copied my project into other computer but the report is not working on that system,rest all is working properly.i dont have any idea

Software Development vb.net
Member Avatar for mohammed_22
0
117
Member Avatar for ervinmalkaj

Hello folks, I am having difficulties in an exercise about parallel programming using mpi and socket in C language.Below is the exercise.I would appreciate any help or suggestions Thanks Exercise 5.3: In one of the local network nodes there is a file named FILE = "..." Develop a program using …

Software Development c file-system socket-programming
Member Avatar for rubberman
0
278
Member Avatar for kouty

Hi my friends! Here is a wrong code, Wrong and I don't know why. My purpose is to make a **sieve of Erasthotene**. I make an unique function with many inner loops. But the execution **don't go cross the lines** I illustrate this with the help of printing the different …

Software Development python
0
205
Member Avatar for NOVICE3

I have written a program in C# for telescope control. When I double click on the screen icon for the first time, the form will come up but there is no response from the buttons on the form. After shutting down the program and re-launching it, it works fine. What …

Software Development
Member Avatar for JerrimePatient
0
146
Member Avatar for Petcheco

Hey, guys. Find the sum of all the primes below 2000000. My code: *main.cpp* #include <iostream> #include <vector> #include <cmath> #include "Sieve.h" using namespace std; typedef unsigned long long int ulli; ulli Sum = 0; ulli Sum_of_Primes(vector<bool>, ulli&); ulli Sum_of_Primes(vector<bool> Primes, ulli& Sum) { for(ulli a = 2; a < …

Software Development c++
Member Avatar for Petcheco
0
421
Member Avatar for Tcll

ok, I just want to note, I understand the basic methods of a struct, but I'd like to understand deeper... how exactly does a struct work on the CPU?? (where and how does it store the code template, how is it called, and what is it stored as) I'm trying …

Software Development c visual-basic
Member Avatar for Tcll
0
160
Member Avatar for deonis

Hi Guys, I am trying to draw on PlotCanvas using wx.DC module. I have several problems with drawing on WXBufferedPaintDC, for some reason my DC text disappears after windows resizing and it looks that I draw my text in the wrong place. Any help appreciated. Here is my code: import …

Software Development python
Member Avatar for deonis
0
1K
Member Avatar for westsiderailway

hi there , i would like to use the select statement in this event and not sure how to proceed... Private Sub TreeView1_AfterSelect(sender As Object, e As TreeViewEventArgs) Handles TreeView1.AfterSelect Dim NS As String = "" Select Case NS Case "Monday" If NS And e.Node.Text = "Monday" Then MessageBox.Show("The user …

Software Development vb.net
Member Avatar for westsiderailway
0
303
Member Avatar for sing1006

xml file <?xml version="1.0" encoding="UTF-8" standalone="no"?><movies> <movie id="1111"> <title>Blackhat</title> <genre>thriller</genre> <duration> 90 mins </duration> <age>28</age></movie> <movie id="1002"> <title>The Wedding Ringer</title> <genre>comedy</genre> <duration> 100 mins </duration> </movie> <movie id="1003"> <title>The Avengers</title> <genre>action</genre> <duration> 180 mins </duration> </movie> <movie id="1004"> <title>Taken 3</title> <genre>action</genre> <duration> 100 mins </duration> </movie> <movie id="1005"> <title>Insurgent</title> <genre>Science …

Software Development java socket-programming xml
Member Avatar for JeffGrigg
0
342
Member Avatar for dadaas

Hi, i m new and i will sure seek for some help also i will try to help others as well with my for now limited knowledge of Python. So here is my problem: I m learnign and i want to learn how to scrape things. i did scrape some …

Software Development python
Member Avatar for dadaas
0
247
Member Avatar for divinity02

here I am again, I am currently stuck on round 1 and I have two week to build this game, and I am from there, system.out.println(hello, p2 what is your name) p2name = dashin.next(); system.out.println(now tell me love, what is your age p2); p2age = dashin.nextInt(); if(age < 4 || …

Software Development java
Member Avatar for stultuske
0
222
Member Avatar for Mike1986

Hi I did a Simpletron program in GUI interface, but when I want to print the instructions in the window, it will not be as I want to. I used JGrasp to run the program and it just prints the instruction after each and not the way I wrote it …

Software Development gui java java-swing user-interface
Member Avatar for JamesCherrill
0
471
Member Avatar for noobjavacoder

ok, so i know this is stupid and probably the easiest thing in java but my brain is not working right now. so i'll ask, how do you add the numbers after you divide them in a for loop. for example: i ask a user to enter a number, the …

Software Development java
Member Avatar for noobjavacoder
0
164
Member Avatar for cambalinho

from MSDN: https://msdn.microsoft.com/en-us/library/windows/desktop/dd145213%28v=vs.85%29.aspx "An application returns zero if it processes this message." see these code on my label control: case WM_PAINT: { PAINTSTRUCT test; BeginPaint(inst->hwnd, &test); image imglabel(inst->imgtest.width(),inst->imgtest.height()); brush brshbackcolor(inst->clrBackColor); imglabel.Backcolor=inst->clrBackColor; brush brshTransparent; FillRect(imglabel,&test.rcPaint,brshbackcolor); if(inst->imgtest.haveimage()) DrawHICONtoHDC(imglabel, inst->imgtest); imglabel.DrawText(inst->strCaption); pen penColor(1,2,RGB(0,255,0)); penColor.ToDC(imglabel); imglabel.DrawRectangle(10,10,10,10); pen penColor2(1,2,RGB(255,0,0)); penColor2.ToDC(imglabel); imglabel.DrawLine(0,0,20,20); pen penColor3(1,2,RGB(0,0,255)); penColor3.ToDC(imglabel); //brshTransparent.ToDC(imglabel); …

Software Development c++
Member Avatar for BeautyBeast
0
337
Member Avatar for sing1006

try { File file = new File("/Users/Alex Ting/Desktop/test2/MovieList.xml"); DocumentBuilder dBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = dBuilder.parse(file); NodeList movielist = doc.getElementsByTagName("movie"); for(int i =0;i<movielist.getLength(); i++){ Node m=movielist.item(i); if(m.getNodeType()==Node.ELEMENT_NODE){ Element movie = (Element) m; String movieID = movie.getAttribute("id"); NodeList mnamelist=movie.getChildNodes(); for(int j=0;j<movielist.getLength(); j++){ Node n = mnamelist.item(j); if(n.getNodeType()==Node.ELEMENT_NODE){ Element name = (Element) …

Software Development java socket-programming xml
Member Avatar for JeffGrigg
0
350
Member Avatar for markdean1989

Hi guys, I just found out that setw is not recognized in Netbeans C++ with Cygwin even when IOMANIP is included in my program. Is there anything I can do for this? I need to format the output of my program, thanks.

Software Development c++
Member Avatar for markdean1989
0
157
Member Avatar for Kenneth_3

My code is working almost the way I need it to. However, when I run the program I am getting this Welcome to Johnny's Restaurant Bacon and Egg $2.45 Muffin $1.98 Coffee $0.50 Tax $0.25 Amount Due $5.18 When I want to get this: Welcome to Johnny's Restaurant 1 Bacon …

Software Development c++
Member Avatar for rubberman
0
144
Member Avatar for wael_3

HEllO guys I have been stuck for 3 weeks on this thing in vb .net. usually when we use suggestappend or autocomplete in a combobox for example three names in database retreived 1- Jack Nickelson 2- John Wether 3- Robert Garland If I just remember the family name and I …

Software Development asp.net seo vb.net
Member Avatar for Reverend Jim
0
443
Member Avatar for sing1006

for(int i =0;i<movielist.getLength(); i++){ Node m=movielist.item(i); if(m.getNodeType()==Node.ELEMENT_NODE){ Element movie = (Element) m; String movieID = movie.getAttributes("movie id"); NodeList mnamelist=movie.getChildNodes(); for(int j=0;j<movielist.getLength(); j++){ Node n = mnamelist.item(j); if(n.getNodeType()==Node.ELEMENT_NODE){ Element name = (Element) n; //System.out.println("MovieID: "+ movie id + name.getTagName()+ ": "+ name.getTextContent()); } } } } it gave me error of …

Software Development java
Member Avatar for sing1006
0
242
Member Avatar for flebber

I am trying to solve a simple problem. But I am stuck by a simple problem I am confused by "context" in c#. So for this simple problem I am solving Euler problem 1. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Timers; namespace Euler …

Software Development c#
Member Avatar for cgeier
0
299
Member Avatar for Amiet_1

Guys I want to insert a Null dateTime Value into SQL database connected to C# desktop application. I'm using following code. I can insert Null dateTime Value into database, but I am having problem with how to update dateTime picker value and saving it into database.. I'm posting my code …

Software Development open-source
Member Avatar for Amiet_1
0
6K
Member Avatar for Hector_2

This is supposed to used quick sort using the header "arrayListType.h using quick sort and get the numbers entered smallest to largest but I'm not sure on how to do it. Can I please get some help? #include <iostream> #include "arrayListType.h" #include <cstdlib> using namespace std; void printList(arrayListType<int>& list); void …

Software Development c++
Member Avatar for rubberman
0
423
Member Avatar for savedlema

Hi all! I have a form with a combobox, a listbox and 2 command buttons.(see photo and neglect the blank listview) I select items from the combobox and add items to my listbox after clicking the button.(no problem with this) Then, I need to save each item of the ListView …

Software Development listview mysql vb.net
Member Avatar for savedlema
0
3K
Member Avatar for Petcheco

Hey, guys. A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a² + b² = c². For example, 3² + 4² = 9 + 16 = 25 = 5². There exists exactly one Pythagorean triplet for which a + b + c …

Software Development c++
Member Avatar for Petcheco
0
349
Member Avatar for ram619

Hello, day's greet!! I was trying to pass a 3D array. But the following code generate error. Please tell me where am I wrong and why. Thanks a lot !!!! #include<stdio.h> void print_all(int [][][],int,int,int); int main() { int degree=3, row=2, col=3; int arr[3][2][3] = { {1,2,3, 4,5,6 }, {7,8,9, 10,11,12 …

Software Development c
Member Avatar for ram619
0
217
Member Avatar for mark103

I need some help with my code, I'm stored the list of elements in arrays and when I try to print the list of elements, it would print only one element where I have more than one. When I try this: pos_start = list() pos_top = list() pos_width = list() …

Software Development python
Member Avatar for woooee
0
281
Member Avatar for sing1006

I want to pass the string from client to server and the server will display the string. First the client enter the option 1 and the server will reply ask from the movie name. My problem is i cannot enter the name from client and send it to server and …

Software Development client-server java socket-programming
Member Avatar for sing1006
0
1K
Member Avatar for janetheath

Hi, I am getting this error and just can not figure out what is causing it. I have looked at code from 2 different books. I have google searched. Here is part of my program that contains the code giving me problems. I posted the program from the beginning to …

Software Development java java-swing
Member Avatar for JamesCherrill
0
6K
Member Avatar for phoenix254

HI everyone, I need help in c++. Problem : I want to write a program that calculate x digits of pi. Like if my input is 3 output should like this 3,14 or this 3,145 if my input is 10 output should like this 3,14529xxx or lik this 3,14529xxxx. I …

Software Development c++
Member Avatar for phoenix254
0
262
Member Avatar for mohammed_22

i have a number of values in my database and i want to list only those values which is greater than zero

Software Development vb.net
Member Avatar for mohammed_22
0
140
Member Avatar for Satyam_1

hi, I have dgv1 that contains amount column, and dgv2 that also have amount aolumn. I have following code to sum total vlaues of dgv1. but i want display both column vlaues from both dgv in to single textbox. how can i do this? Dim total As Integer For Each …

Software Development vb.net
Member Avatar for Satyam_1
0
515
Member Avatar for naz1234

I have Button A and Button B. How to make Button A, same with action like Button B ? For example , if I click Button A , it will do calculation x = 1 + 1 . Button B also will do that if I click at somewhere else. …

Software Development gui vb.net
Member Avatar for Reverend Jim
0
223
Member Avatar for Thomas_25

Hi all, This is something very basic i know. I just wanted to avoid some confusion. What is the difference between char *names[100]; and char names[100]; This is what i know char names[100]; - its just a character array which can hold 99 characters and the last one will be …

Software Development c++
Member Avatar for deceptikon
0
279
Member Avatar for Mike Bishop

I have the folling code which imports my CSV file into the respective columbs on my datagridview I would like to clean the string by removing any " from the string before populating the datagridview. can anyone point me in the right direction please? Dim newstring As String = Nothing …

Software Development vb.net
Member Avatar for Reverend Jim
0
255

The End.