132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kingsonprisonic

I am using WebBrowser Control... When form is loading i set webbrowser to navigate a website. Now this website running too much popup ads.. So each time webbrowser navigate a new popup window open out of my application.. Is their any way to stop that.. Thanks in advance...........

Software Development vb.net web-browser
Member Avatar for kingsonprisonic
0
132
Member Avatar for _Nemesis_

Hi guys, Brief Background: I'm currently working on a project in which I wish to create an autonomous game agent capable of traversing 3D environments. To do this I would like to implement a custom path finding algorithm that works with a navigation mesh. The Problem: I'm currently looking at …

Software Development algorithm c++
Member Avatar for _Nemesis_
0
174
Member Avatar for mrbungle

I've been at this for a few days, not making any progress, so I'm asking for help. I have an application you log into based on an ID number (example 45) In the app, there is a label. By default is has "lblID" in it, when when you log in, …

Software Development vb.net
Member Avatar for ChrisPadgham
0
182
Member Avatar for reds8

Can I create 2 users and they have different function?? Database base using is MS Access. For example I have "staff" and "admin". Staff can insert,edit and delete data only. Admin can check the total sales of the day. Can I do that in VB.Net and can somebody give me …

Software Development vb.net
Member Avatar for ChrisPadgham
0
282
Member Avatar for rfrapp

I'm trying to finish this assignment for class, but I've got a problem.It seems as though my code will always make the new generation blank, and I'm not sure why. If you could read my code, then I'd greatly appreciate it. Thanks! [CODE] // Life.cpp : Defines the entry point …

Software Development c++ gaming
Member Avatar for StuXYZ
0
262
Member Avatar for rithish

[CODE]#include<stdio.h> struct rec { int i; float PI; char A; }; int main() { struct rec *ptr_one; ptr_one =(struct rec *) malloc (sizeof(struct rec)); ptr_one->i = 10; ptr_one->PI = 3.14; ptr_one->A = 'a'; printf("First value: %d\n", ptr_one->i); printf("Second value: %f\n", ptr_one->PI); printf("Third value: %c\n", ptr_one->A); free(ptr_one); return 0; } [/CODE] …

Software Development c
Member Avatar for deceptikon
0
116
Member Avatar for SCass2010

Hi everyone :) At the minute I'm working on some stuff learning c++ and was wondering if ayone could offer some advice... Say I have a pile of objects that need to be created (for example say, a Log object, XML parsers object, and a command line parser object). In …

Software Development c++
Member Avatar for Bench
0
198
Member Avatar for aanders5

How do I clear/renew/empty/refresh a 2D JButton Array? I've tried a lot of things, but all that is happening is the new 2D array, just adds onto the old one, which is not what I want. It won't even just overwrite the old array. So i am not sure what …

Software Development java
Member Avatar for aanders5
0
261
Member Avatar for MrEARTHSHAcKER

Hi, When writing a little code for showing ASCII characters in C++ and C, the only difference is when I do it in C++ I print until char ( or integer ) reaches value of 127, and in C I print until it reaches 255. Why it's like that? Thanks!

Software Development c c# c++
Member Avatar for MrEARTHSHAcKER
0
176
Member Avatar for HoneyBadger

Guys I'm looking for a clean way of splitting a string into a list: I have this: [CODE]myString = 'blue, red, pink, purple'[/CODE] and I want this: [CODE]myString = ['blue', 'red', 'pink', 'purple'][/CODE] How do I do that?

Software Development python
Member Avatar for HoneyBadger
0
158
Member Avatar for sj5536

how do i add multiple pane in frame dynamically that is in my frame there is one text box which take value from user when user click on ok button i have to add that much panel in jframe how do i do that ?

Software Development java
Member Avatar for Punit.Shah
0
5K
Member Avatar for layneb131

Im trying to write a program that inputs a single letter and prints out the corresponding digit on the telephone. Im having trouble finding out a way in which you can group the variables that have the same digit, but im not sure how. You guys have any suggestions? P.S. …

Software Development python smartphone
Member Avatar for woooee
0
490
Member Avatar for Snow_Fox

So, I'm doing a program that is suppose to convert a sentence into pig latin. I figured I would make a function which would handle the individual words, then I'd work on breaking up the sentence into individual words. I keep getting the error that my String Subscript is out …

Software Development c++
Member Avatar for Snow_Fox
0
1K
Member Avatar for ohblahitsme

So I have a function called start() and it has multiple if statements and I want all of them to run. [code=python] def start(): print """You have just woken up from a very long nap. You find yourself in a dimly lit cave. There is a patch of light in …

Software Development gaming programming-construct python
Member Avatar for woooee
0
288
Member Avatar for nickecarlo

I can't figure out why I get the NullPointerException on Line 223. Would appreciate any help whatsoever. Sorry about the spacing below. Some of the code appears messy. Toggle Plain Text and it should look better. [CODE]/* Section 1: Import Statements. Imports the Scanner class and the IO Package. */ …

Software Development java
Member Avatar for nickecarlo
0
219
Member Avatar for jazzermonty

Hi folks So I'm developing a small game for a homework question. I have 3 classes. Apart from the main class, my drawing class draws on screen the objects for my game, like so.. [CODE] public void bat(Graphics g) { //draw the bat g.setColor(Color.ORANGE); g.fillRect(batX, batY, breadth, batLength); g.getClipBounds(); } …

Software Development java
Member Avatar for jazzermonty
0
99
Member Avatar for nine9hours

I made the following program, but now i am getting an error. I searched for error almost 3 hours but worthless. I want to discuss the problem with you people. I am getting the error: [B] expected class-name before '{' token[/B] #ifndef ASKDIALOG_H #define ASKDIALOG_H #include <QDialog> #include "umerwindow.h" namespace …

Software Development c++ qt
Member Avatar for ravenous
0
256
Member Avatar for faraz ahmad

Hello All, i have written a program to read data of Persons from a file and fill the data into a dynamically created array of Persons. i am geting error in line 28 plz help the 1.txt file can be assumed as:(first line is the no of persons, then names …

Software Development c++
Member Avatar for ravenous
0
324
Member Avatar for dineshswamy

[CODE] a = input("enter the string") print "%s dinesh" %l m=re.match(r'(.*)(\.*)',l,re.I) print m.group() print m.group(2) [/CODE] i m getting the following error ,when i give input [CODE] Traceback (most recent call last): File "regularexp.py", line 1, in <module> a = input("enter the string") File "<string>", line 1, in <module> NameError: …

Software Development python
Member Avatar for dineshswamy
0
135
Member Avatar for adil_bashir

can anyone tell me how to get out of the error Connection refused: connect thanks in advance

Software Development java
Member Avatar for adil_bashir
0
58
Member Avatar for TIM_M_91

Hi Guys well what I am trying to do is set a background image for my program where my labels, buttons , and text areas sit in front of the background. Everything I try I try I cannot get it to work. My jframe layout is below so any help …

Software Development gui html-css image java
Member Avatar for TIM_M_91
0
197
Member Avatar for kahheng93

hi guys,i was trying to make user able to make selection again when they make an invalid input, but when i run this code,it just doesnt work that way,it goes printing the same line like crazy...did i do something wrong? [CODE] int main (void) { //Local Declarations int menu; //Statements …

Software Development c
Member Avatar for kahheng93
0
149
Member Avatar for desup

Hi, I am new to java and I need to work with arrays. I have found some tutorials, but everywhere was something like [CODE] int[] anArray; // allocates memory for 10 integers anArray = new int[10]; [/CODE] But what if I dont know how long the array will be? When …

Software Development java motherboards-cpu-ram
Member Avatar for desup
0
155
Member Avatar for caltech

int findLowest(int arr[]) Is passed the five accident totals as an array of ints. It determines which is the smallest and returns the subscript for that array element. The main function declares two arrays, a string array containing the names of the boroughs and an int array which will hold …

Software Development c++
Member Avatar for caltech
0
243
Member Avatar for carolinatech

hey everyone, I'm trying to perform a program that will perform a leap year method and also have it to loop. here's what i have so far: import java.util.Scanner; public class LeapYear { //Create a Scanner object for keyboard input. static Scanner keyboard = new Scanner(System.in); //Set variables public static …

Software Development java
Member Avatar for zeroliken
0
286
Member Avatar for Nikhar

While it is true that the inorder traversal of a binary search tree produces a sorted output, is the converse also true, i.e., if the inorder traversal of a binary tree is sorted, then is it necessarily a binary search tree?

Software Development c
Member Avatar for deceptikon
0
112
Member Avatar for eranga246

[CODE]#include<stdio.h> #include<conio.h> void main(){ char x; int result,a,b; printf("type the first number\n"); scanf("%d",&a); printf("enter the operand\n"); scanf("%d",&x); printf("type the second number\n"); scanf("%d",&b); switch(x){ case '+': result=a+b; printf("value is:%d",result); break; case '-': result=a-b; printf("value is:%d",result); break; case '*': result=a*b; printf("value is:%d",result); break; case '/': result=a/b; printf("value is:%d",result); break; case '%': result=a%b; …

Software Development c
Member Avatar for deceptikon
0
109
Member Avatar for Farhan_B

Hey people hope you are well Could You please help me. I am designing a system which when users login i want the system recoginse who is a admin and a user ( option of deleting only to admin) Using mysql and vb.net Thank you in advance

Software Development vb.net visual-basic
Member Avatar for kingsonprisonic
0
2K
Member Avatar for techyworld

Can someone help me on how to draw a dynamic pie chart in java? I don't want to use jfreechart. I want to use jtable or other methods if available(but simple one) I have one but it is static.i need to write it upon user input.how can i do it? …

Software Development java
Member Avatar for JamesCherrill
0
364
Member Avatar for KRUX17

Hello, I would like to know how you can keep running a function over and over again, so that it can keep adding the stored value. For example If Bob uses a program to purchase a ticket, lets say that Bob purchases 5 tickets out of 55 tickets (There's only …

Software Development c++
Member Avatar for irre
0
212
Member Avatar for timothy0726

myqry = "UPDATE tblReceive SET " myqry = myqry + " ProductName = '" & txtProd.Text & "'," myqry = myqry + "' Quantity= " & txtQuan.Text & "'," myqry = myqry + " Quantity Unit= '" & ComboBox3.SelectedItem & "'," myqry = myqry + " Category = '" & …

Software Development listview vb.net
Member Avatar for kingsonprisonic
0
301
Member Avatar for virendra_sharma

HI , I want to import emails from my Gmail account to my application, can anybody please help me out with code , links or procedure for to implement this . Thanks in Advance :) :) :) :)

Software Development
Member Avatar for Mitja Bonca
0
132
Member Avatar for artemix22

hi everyone.. can anyone help me please.. i have a datagridview with 4 columns (id, name, ticket_number, destination), i just want that datagridview on column "ticket_number" to display ticket_number from mysql database and another 3 columns for user input. thanks in advance..

Software Development mysql vb.net
Member Avatar for artemix22
0
165
Member Avatar for radiat

Hi, how could i check is a number an int or a float?

Software Development c++
Member Avatar for dragon8001
0
4K
Member Avatar for Kathyrine

I wanna convert an integer to a character then i will store it later to the index of a c-string...... something like... int res=123 then it will be putted in.... var[0] = 123 where in var is a cstring, and here 123 is now a char type..... here is what …

Software Development c c# c++
Member Avatar for Software guy
0
203
Member Avatar for jdm

I'm writing a tcp server and client program in C on linux. It compiles and works under linux, but when I try to compile it using terminal under mac I get errors. If somebody knows why I would appreciate telling me. Any way I have most of the program done, …

Software Development c client-server data-structure legal queue unix
Member Avatar for savoie
0
220
Member Avatar for mehnihma

I am trying to cast combo box to string but I have problems with it. I get NullPointerException? [CODE] fontStyle = (String)combo.getSelectedItem(); size = (String)comboSize.getSelectedItem(); if (fontStyle.equals("Regular") && size.equals("10")) { Font font = new Font(Font.SANS_SERIF, Font.PLAIN, 10); text.setFont(font); } [/CODE]

Software Development java
Member Avatar for stultuske
0
144
Member Avatar for sharvil_maniyar

run: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.sun.java.swing.plaf.nimbus.NimbusStyle.init(NimbusStyle.java:418) at com.sun.java.swing.plaf.nimbus.NimbusStyle.validate(NimbusStyle.java:359) at com.sun.java.swing.plaf.nimbus.NimbusStyle.getValues(NimbusStyle.java:927) at com.sun.java.swing.plaf.nimbus.NimbusStyle.getInsets(NimbusStyle.java:605) at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:896) at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:275) at javax.swing.plaf.synth.SynthLabelUI.updateStyle(SynthLabelUI.java:53) at javax.swing.plaf.synth.SynthLabelUI.propertyChange(SynthLabelUI.java:232) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at java.awt.Component.firePropertyChange(Component.java:8128) at java.awt.Component.setName(Component.java:935) at javax.swing.plaf.synth.SynthComboBoxUI$SynthComboBoxRenderer.getListCellRendererComponent(SynthComboBoxUI.java:409) at javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(BasicComboBoxUI.java:1334) at javax.swing.plaf.basic.BasicComboBoxUI.getMinimumSize(BasicComboBoxUI.java:903) at javax.swing.plaf.basic.BasicComboBoxUI.getPreferredSize(BasicComboBoxUI.java:892) at javax.swing.JComponent.getPreferredSize(JComponent.java:1634) at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedPreferredSize(GroupLayout.java:2944) at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedMinimumSize(GroupLayout.java:2930) at javax.swing.GroupLayout$ComponentSpring.calculateMinimumSize(GroupLayout.java:2897) at javax.swing.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1315) at javax.swing.GroupLayout$ComponentSpring.calculatePreferredSize(GroupLayout.java:2904) …

Software Development java java-swing
Member Avatar for JamesCherrill
0
810
Member Avatar for ujjwale

Guys can any one help me in JAVA? how does it help in making softwares?

Software Development java
Member Avatar for stultuske
0
128
Member Avatar for ndraycott

Hi I am trying to pass the datatable of a search query to another page and bind it to a listbox. The problem is the the listbox just displays system.data.datarowview and no results. I have listed the code below. Thanks First page SQL and session store: [CODE]Protected Sub btnSearch_Click(sender As …

Software Development session vb.net
Member Avatar for Phasma
0
117
Member Avatar for MozammilK

Hi, i have the following code in Java as you can see there are a lot of code repetition. I want to know how i can loop this part of code instead of writing it each time? [CODE] g.setColor( Color.black ); g.fillArc( 110, 80, 300, 300, 0, valint[0] ); g.drawString("BMW", …

Software Development image java
Member Avatar for stultuske
0
134
Member Avatar for Lle26

This is my first time to do visual basic program Please help me about this problem... When I run the program with maximum attempt of 3 with correct username and password, Illegal user will pop up,,,i really dont know what to do..illegal user must be pop up when i already …

Software Development open-source vb.net visual-basic
Member Avatar for makdu
0
529
Member Avatar for jonnyboy12

Hello all. i might have posted about this recently but, i have done much research and refined my research and am close to a solution. I am trying to use the click of a ahref link with a variable tacked on the end, to send a message to one of …

Software Development c++ html-css web-server
Member Avatar for jmichae3
0
188
Member Avatar for priyamtheone

How can I detect the click event of the close (X) button at the top right corner of the control box of a form/window? Please note, I don't want to know about CloseReason, FormClosing, FormClosed or stuffs like these, unless they are inevitable. I exactly want to detect if the …

Software Development asp.net vb.net visual-studio
Member Avatar for makdu
0
562
Member Avatar for Buffalo101

Hi, I'm trying to create a thread for running some tasks. I copied the code from an old console application (which compiles fine), but can't figure out why it's not working now. I have searched for the error code and came across this suggestion: "Are you passing the name of …

Software Development c c# c++ queue visual-studio
Member Avatar for jmichae3
0
691
Member Avatar for riahc3

What is the best way to start/stop/restart Apache Tomcat using Java code? If it cant be platform dependent (or complicated or I have to do a "IF" for each), then only for Windows. Thanks

Software Development apache java
Member Avatar for RicardoE
0
254
Member Avatar for Gnawk

Hi the project i have is Write a program that displays diamonds as text using a character provided by the user. For example, a diamond of height 6 constructed from asterisks will display as follows: __* _*** ***** ***** _*** __* (I cant make it line up perfectly... ) after …

Software Development java
Member Avatar for Gnawk
0
335
Member Avatar for vuquanghoang

I do the program to practice what I have learned in a class at my university(convert input of infix form to post fix one), but my program doesn't run correctly. Please help my to find out my bug. == IntoPost class /* * To change this template, choose Tools | …

Software Development java
Member Avatar for vuquanghoang
0
202
Member Avatar for nickecarlo

I have the following piece of code. I do not understand why its not working. I'd really appreciate help on this. [CODE]import java.util.Scanner; import java.io.*; class ReadFiles { String [] codes = new String[99]; int i = 0; private Scanner readCodes; public void openCodesFile() { try { readCodes = new …

Software Development java
Member Avatar for nickecarlo
0
10K
Member Avatar for amir84

hi im amir im a noob in c# and need some help i coding a net based app and i need to ping to website if ok run app else close app the bug is when im online show ok message but when im offline app runnig and show error …

Software Development
Member Avatar for Momerath
0
171

The End.