64,152 Solved Topics
Remove Filter ![]() | |
Hello, I'm pretty new to Python, and I've been making simple projects to practice in. The issue I've run into though is I'm creating a GUI (Using Tkinter with Python 2.6) to take a text input and bring out "Name". What I want to do though is keep that "Name" … | |
Hello, How to force **window.onbeforeunload** to act only on pertular action or url? I have a form which has data. if it navigates to another page then `window.onbeforeunload= function() { return "please save data"; };` is working. But after submission of that page, it navigates to another page on that … | |
I'm having a problem with making .js files for my javascript project using visual studio2013. Where should i save made file to make it work with my project? | |
I have run into a basic problem. I have a very simple form that asks the user their name and then they click the submit button and an alert is shown with their name in it. When the button is clicked nothing happens. I have called the function in the … | |
Hi, I am trying to make my "Save All" button to save whatever is selected from the option menu or dropdown to that particular file. So if I have "animation" selected from the option menu it saves to the animation file 'ji.txt','r+'. Or if I have "compositing" selected from the … | |
Hi - I've done a bit of VB.net programming but am still learning .. I want to create a .net DLL which I will call from another application (NS Teststand). When I call the Dll - 1. I will need to pass a string to it, 2. It must show … | |
Me as one of the users in Dani web and a person who has interest in Java, I've tried to solve if not all, most of the begginers problems. I've even tried to solve some myself afterwards however, now I ran out of ideas. I would also like to move … | |
Hi, I am extremely new to python, and I am completely stuck regarding filtering the contents of a list. I have a list of the first thirty elements, and i have been told to identify any beginning with the letter 's' and any that are four letters long. I have … | |
well guys, i wanted to try somethng fun in java, so i made a simple form type navigation program.. i can compile this file, bt i cant run it..NOTE: i have no issues in my java software.. import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.util.regex.*; public class Nav2 extends JFrame … | |
Hello Community, I have spent almost an hour looking for a solution to combine several pictures side-by-side but can't seem to find anything. I want to be able to get a dozen pictures (.png) and place them to the right of the previous picture then combine them as one (.png) … | |
length should be [2-10], should accept [a-zA-z0-9],accept one space in between characters. eg: timesheet 2 shanti chakra shantichakra shantichakra2 ![]() | |
I am trying to insert some values into a database and I have the following SQL: insertString = "INSERT INTO SocialHistory (ExamID, Occupation, SafetyYN, ComputerYN, ComputerHrs) Values('" & CurrentExamID.ToString & "', (SELECT Occupation, SafetyYN, ComputerYN, ComputerHrs FROM SocialHistory WHERE ExamID = '" & LastExamID & "'))" When I execute the … | |
My girlfriend, as confused as she is when I talk about programming, wants me to program her something. She's away on vacation to Australia right now. Of course, I told her I would program something for her in time for when she gets back. But the part that I'm stuck … | |
Write a code snippet to declare and accept an integer and calculate the cube value of the integer. The integer should be passed by reference to a function cube(). The function would calculate the result of cubing the integer. The function prototype to be used is: void cube (int *p); … | |
I know that with Array Lists you can hold different types. Can you acomplish the same thing with arrays for example an array containing both ints and strings? | |
I am trying to make a timer that refreshes every 5 seconds. Here is my code: using System; using System.Collections.Generic; using System.Windows.Forms; using System.Diagnostics; using System.Timers; namespace rpanel_server { public partial class MainForm : Form { public MainForm() { InitializeComponent(); Timer MyTimer = new Timer(); MyTimer.Interval = (4000); MyTimer.Tick += … | |
Dear members please help me in understanding the control flow in the following code, thanks #include <iostream> class constructs #include <iostream> class constructs { char inp; public: void acceptCharacter() { cout<<"Enter a character: "; cin>>inp; if(inp>='A') //ASCII value of A = 65 if(intp<='Z') //ASCII value of Z = 90 cout<<endl<<"Uppercase"; … | |
I tried inserting as serialize to multiple selected but when i want to retrieve those multi selected in the select box is not working echo "<td class='tbl1' width='15%'>Format</td><td class='tbl1'><select name='format[]' multiple='multiple' class='textbox'>\n"; $sel = ($_POST['format'] == $data['format'] ? " selected='selected'" : ""); echo "<option value='".$data['format']."'$sel>".$data['format']."</option>\n"; echo "</select></td>\n"; echo "</tr>\n<tr>\n"; ![]() | |
Can abyone tell me what type of variable is a standard Form1? It's just a curiosity and not a real part of a project. here is the standard code visual studio starts with in my version 2010 when creating a new forms application with a couple of lines added/amended.. namespace … | |
Hi All, I'm trying to display a postal area on Google Maps API within it's boundaries. I want to do this dynamically so that everytime someone changes the text in a text field (entering a postcode or part of), it checks the postcode and calculates the boundaries then displays them. … | |
Hello guys,how are you? well im in a bit of trouble,so i want some help. I´m developing a site in VB.NET that in the beginning the user must login to access other pages.This part is ok,the user logins successfully and goes to members area.In this area,i would like to show … | |
Hi all, I started to look into event handlers, and there is something I would like to ask, sorry if this is a silly one. I can see that different Java components generate different events when the user interacts with them, but when it comes down to 1)which interface the … | |
hi, here is my problem- i am creating a table dynamically using java script- the number of cells in a row is constant and the data is accepted from the user from x text boxes(based on number of cells). now, i want to insert a button in the x+1th cell … | |
Hi all, I have employee class which I have 100 variables with getters and setters. now I am passing employee object to processing method. Now I want to read all values in processing method. Should I want to use getter for all member? Is there any way to achieve this. … | |
| |
hi, im trying to insert data using Checklist and it is only inserting one even if i selected all che checkboxes, please help.hr is my Code protected void Button1_Click(object sender, EventArgs e) { //C:\Documents and Settings\PraiseM\My Documents\Visual Studio 2008\Projects\MiniProjectAcc\MiniProjectAcc\Employee.accdb OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Documents and Settings\PraiseM\My … | |
I have a console application with two classes: - **MyIntList** Which initilzes the array and handles the input and outputs. - **Program** This has the Main() method which handles the users input and sends them too the handlers in **MyIntList**. The problem I am having is that when the array … | |
Hello, I have been working on this application for a bit and I feel like I am close but apparently I am not close enough. **Challenge:** I need to be able to have the user input an address and click "Create Map". In the map that’s displayed, the user’s entry … | |
Following a tutorial [here](http://www.joecolantonio.com/2012/07/31/getting-started-using-selenium-2-0-webdriver-for-ie-in-visual-studio-c/). Code is as follows... using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenQA.Selenium; using OpenQA.Selenium.IE; using OpenQA.Selenium.Support.UI; namespace mySelenium { class Program { static void Main(string[] args) { IWebDriver driver = new InternetExplorerDriver(@"C:\Downloads\selenium"); driver.Navigate().GoToUrl("https://www.google.co.uk/"); } } } When I run the code all seems to … | |
i am using asp.net datalist to retrieve text from database field, when i put an integer value like 10 in where clause of select statement then it retrieves data from databse on next page but when i used variable (which is used to store value sent via query string) then … | |
This is the code void CreateGUI() { try { //myPicture = ImageIO.read(new File("Companylogo_FINAL.jpg")); myPicture = ImageIO.read(new File("Companylogo_FINAL.jpg")); //myPicture = ImageIO.read(getClass().getResource("Companylogo_FINAL.jpg")); /*java.net.URL u = getClass().getResource("/resources/Companylogo_FINAL.jpg"); System.out.println(u); myPicture = ImageIO.read(u);*/ /*try {*/ //myPicture = ImageIO.read(new File("Companylogo_FINAL.jpg")); /*} catch (IOException e) { }*/ ImageIcon img = new ImageIcon(myPicture); //frame.setIconImage(img.getImage()); } catch (IOException e1) … | |
Here is the error I'm getting Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null! And here is the code try { //myPicture = ImageIO.read(new File("Companylogo_FINAL.jpg")); myPicture = ImageIO.read(getClass().getResource("/resources/Companylogo_FINAL.jpg")); ImageIcon img = new ImageIcon(myPicture); frame.setIconImage(img.getImage()); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } JLabel lbl = new … | |
if a program throw 2 exceptions can we handled it by user defined exception.for example import java.util.*; class WrongException extends Exception{ public WrongException(String s){ super(s); } } public class UserDefinedException2{ public static void main(String s[]){ int a,b; a=b=0; Scanner ob=new Scanner(System.in); System.out.print("Enter your age = "); a=ob.nextInt(); try { if(a<=0) … | |
I'm trying to modify this code: class Tree: def __init__(self, cargo, left=None, right=None): self.cargo = cargo self.left = left self.right = right def __str__(self): return str(self.cargo) def print_tree_inorder(tree): if tree is None: return print_tree_inorder(tree.left) print(tree.cargo, end=" ") print_tree_inorder(tree.right) So that it adds parentheses around every operator and pair of operands. … | |
Hi everybody. I hope nobody is working too hard. I am trying to figure out a way to use the peek() method of the stringstream class but looking more than one place forward. For example, if I use stringstream.peek() it will let me know the value one value ahead of … | |
Hi guys, I had a test the other day and missed a question out because it confused the hell out of me. I dont know if it was a badly written question or just me. Heres the program below: public static class Mailing { public static void SendTestEmail() { List<Person> … | |
Is there a way to get all contacts id's from outlook 2013 or 2007 to datagridview or combobox.collection list. Thanks | |
Thanks for your patience, i'm still trying to learn I've gotten most of my stuff on my website to work, but i'm trying to do one more thing I have a WORKING insertion script for a mysql database using a php page that forces the CharName in the database to … | |
Hello. Well, im a little confused as to what exactly the terms Data Abstraction and Data Encapsulation mean: This is what i read: [B]Data Abstraction[/B]:data abstraction is a process of representing the essential features without including implementation details. [B]Data Encapsulation:[/B]: Data encapsulation, also known as data hiding, is the mechanism … | |
Hello, I am a bit new to vb.net. I was learning Database in vb.net . I have created a MS Access file. But when I Started my Visual Basic (vb.net 2008 Proffestional) and then I Clicked the Option Add New Data Type (In Data), nothing came. Can someone help me … | |
Following exceptions are `Checked Exception` or `Unchecked Exception` ArrayStoreException IllegalArgumentException | |
I have a button on this tabpage which, when a user clicks, clears all of the fields. However, I have set one textbox to a read-only textbox which has a counter in it. How can I programmatically clear all of the other fields, minus this textbox. (There are other textboxes … | |
So I recently accepted the challange of programming a simple top down style rpg in a week. Progress was going well until I decided to add a custom GUI. Its all very simple for the moment, but I have run into a little bit of a pickle... I have a … | |
exception is a run time error,then why exceptions are again classified into compile time exception and run time exception,in that case it should be run time exceptions only.please give explanation with suitable real time example | |
Hi! Have anybody seen Scot Meyers' video on Universal references? In order for a reference to be "universal" two requirements should be fulfilled : 1)variable should have double ampersand after it's type : sometype&& 2) the type should be deduced . The second point is somewhat confusing to me: despite … | |
> This compiles but does not show me any results? Why #include <iostream> #include <cmath> using namespace std; void dist(int x1, int x2, int y1, int y2) { double r1 , r2 , d ; r1 = sqrt((x1*x1) + (y1*y1)); r2 = sqrt((x2*x2) + (y2*y2)); d = sqrt((x2 - x1)*(x2 … | |
i have a table fieldname like companyname and Created Date shown in below image. in that i want to display data's date wise ASC or DESC, like that if i click companyname the data's will show ASC and again if click will show DESC order format. and here i added … | |
![]() | hello,i have no idea where i will put the passwod_verify function and what i must code the verify exactly in order to get the plain txt password be compared with the hashed version ? my code is below and part of my database also. <?php require_once('Connections/bankusers.php'); ?> <?php session_start(); ?> … ![]() |
void init1() { static int yrs = 1; cout << "The value of yrs is " << yrs << endl; yrs = yrs + 2; return; } void init2() { static int yrs; yrs = 1; cout << "The value of yrs is " << yrs << endl; yrs = … |
The End.