43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sonia sardana

hey I faced the interview Question - Name Textbox EMail Textbox Mobile Textbox Button-ADD First he told me to add the three textboxes values into the listbox. Its simple--I have done it. Listbox1.items.add(me.textbox1.text & " " & me.textbox2.text & " " & me.textbox3.text) Then he told me that draw one …

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for noamjob

Hi, I want to perform a search with Python in this site: [url]http://www.draftexpress.com/search.php[/url] I want to search for a player who's first name is "james". The problem: The page with the result's url is: [url]http://www.draftexpress.com/search.php#results[/url] Obviously, when opening this page directly, I don't get the page with the results for …

Software Development python
Member Avatar for rmhapp
0
472
Member Avatar for Sahil89

Hi, I am using DispatcherTimer in my WPF application, following is the link from where I learned it http://msdn.microsoft.com/en-us/library/System.Windows.Threading.DispatcherTimer.aspx#Y1710 Now problem is I cant make it available outside the procedure, and declaring it globally throws error. Is there any way to make it global? Or any other way to use …

Software Development vb.net
Member Avatar for afnan123456
0
336
Member Avatar for bdheeraj

hello everyone i created a python file DailyExpensessave.py when i need to import this in another python program i was getting this error > Traceback (most recent call last): > File "C:\Python32\DailyExpensessave", line 1, in <module> > from DailyExpenses import * > ImportError: No module named DailyExpenses Both the python …

Software Development python
Member Avatar for sneekula
0
580
Member Avatar for Bchandaria

error is coming while linking the file error is undefined symbol _clearviewport in module ... i have used graphics.h library function dos.h and also stdlib.h can any one help me out to identify this problem?

Software Development c image
Member Avatar for deceptikon
0
139
Member Avatar for giancan

Dear friends, is there a way to execute a dos command in a frame inside a wx.window GUI (and not in the usual external window)? Thanks

Software Development gui python
Member Avatar for sneekula
0
1K
Member Avatar for rishif2

how to make a mdiform fixed size(can't be resized or maximize) as there is no property like border style in mdi.

Software Development visual-basic
Member Avatar for AndreRet
0
140
Member Avatar for zachattack05

I am considering an option for users that will allow them to write their own account numbers or create their own algorythm for creating custom account numbers for customers, but also want an option that will auto-generate them if the user doesn't care by using the identity property in SQL. …

Software Development sql
Member Avatar for reshea1950
0
151
Member Avatar for ThatBitchYeah

#include<stdio.h> #include<stdlib.h> struct complex { int real,imag; }; int main() { int choice; struct complex x, y, z; { printf("Press 1 to add two complex numbers.\n"); printf("Press 2 to subtract two complex numbers.\n"); printf("Press 3 to multiply two complex numbers.\n"); printf("Press 4 to divide two complex numbers.\n"); printf("Enter your choice\n"); …

Software Development c
Member Avatar for veducator
0
445
Member Avatar for techxaidz

PROBEMS: > The Library class would include data members such as ID, Date of acquisition, description, number of copies, title and **instance methods such addItem() and retrieveItem()** also accessor and mutator methods are needed to accecss data members. > User arrays to store library holdings. So here's my questions: **What …

Software Development java
Member Avatar for stultuske
0
530
Member Avatar for AquaNut

Hi Everyone, I am trying to read in a block of xml using the following code, but it always jumps over the foreach loop: XDocument doc = XDocument.Load(sourceFile); XElement root = XElement.Load(sourceFile); var DataRecords = doc.Elements("DATA_RECORD"); foreach (var dr in DataRecords) { //build up the values we're interested in string …

Software Development c c# c++ xml
Member Avatar for nmaillet
0
358
Member Avatar for chdboy

I'm making a payroll software ,I have made two forms 1.Employer Form 2.Employees form I think now that I have confused ,because now I cannot diffrenciate between who works for who any sugesstions how can I improve on design ,or something that can solve the confusion (Problem) I also have …

Software Development vb.net
Member Avatar for chdboy
0
104
Member Avatar for andika.kurniawan.121

I download open source from sourceforge.net, But I doesn't see .sln. So I can't see source code.

Software Development open-source
Member Avatar for Ancient Dragon
0
356
Member Avatar for welshly_2010

having a little trouble trying to convert this pseudo code into python, could any help receiveFile () { lastblock := 0 newblock := 0 ; repeat repeat event := getFrameFromUDP(m) ; case event of data : newblock := getBlockNoFromFrame(m) ; transmitAckOverUDP(newblock) | timeout: transmitAckOverUDP(lastblock) esac until newblock==lastblock+1 ; lastblock = …

Software Development java python
Member Avatar for vegaseat
0
7K
Member Avatar for krystosan

I have implemented a toolbar that has several QPushButtons inside QVBoxLayout, however I have implemented it in `toolbar_UI.py` from PySide import QtCore,QtGui class ToolBarUI(QtGui.QWidget): def __init__(self,*args,**kwargs): super(ToolBarUI,self).__init__(*args,**kwargs) self.floatingToolBar() def sizeHint(self): return QtCore.QSize(65,45) def buttons(self): self.emlSel = QtGui.QAction("Email Selected", self) self.emlScn = QtGui.QAction("Email this Scene", self) self.emlBufr = QtGui.QAction("Email Current Frame …

Software Development python
Member Avatar for vegaseat
0
201
Member Avatar for trishtren

Hello, Iv recently just started using javafx and i am struggling finding a way to access data from a controller class, at the moment i can do it using method.invoke, however it seems like more of a hack than a legitimate clean option of accessing data from a controller class. …

Software Development java oracle
0
76
Member Avatar for clouds_n_things

So, I wrote an address book and I'm nearly done, but Im having a little trouble using the picle module to back up the input data to a file for later retrieval. Here is what I have so far: (Im working on a solution while I type this) from tkinter …

Software Development python storage tkinter
Member Avatar for clouds_n_things
0
322
Member Avatar for WDrago

All, I am using lock() to try and sync threads writing to the same file, but my threads are still stepping on one another. Can anyone tell me why this doesn't work and how to fix it? Here is some sample code. In the real program the writes are very …

Software Development
Member Avatar for WDrago
0
6K
Member Avatar for amrita111

Why cant we use static and final keyword for constructor?

Software Development java
Member Avatar for amrita111
0
140
Member Avatar for angel06

Hello I'm currently working with my Java program here is my code: import java.util.Scanner; public class StringAct{ public static void main(String[]args){ Scanner inp=new Scanner(System.in); System.out.print("Enter string: "); String a= inp.nextLine(); if(a=="angel"){ System.out.print("Valid"); } else{ System.out.print("Not Valid"); } } } this program asks the user to enter a string, the string …

Software Development java
Member Avatar for angel06
0
144
Member Avatar for fheppell

I need to build a gift voucher section of my python cash register software Here's the code I have so far elif payment == '3': print "Scan or enter gift card" cardno = raw_input('Card Number: ') try: with open(cardno, '.txt') as f: pass value = f.readline() except IOError as e: …

Software Development python
Member Avatar for Lucaci Andrew
0
162
Member Avatar for shermags

Hi, I am new with the WPF Browser Application in VB.Net. I would like to know if how can I execute a windows form or a page. I had tried to this code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click Dim Form As New Window1 …

Software Development vb.net visual-studio
Member Avatar for shermags
0
124
Member Avatar for RobRTaylor

I'm trying to delete an old desktop shortcut on program startup. Only this code isn't working. ' Get rid of the updater icon on the desktop. Dim DeleteShortcut As String DeleteShortcut = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\Sample Shortcut.lnk" If System.IO.File.Exists(DeleteShortcut) = True Then System.IO.File.Delete(DeleteShortcut) End If Looks pretty straight forward- but just …

Software Development vb.net
Member Avatar for RobRTaylor
0
1K
Member Avatar for jim.keele.7

Hi there everyone, I am a novice at java and this one has me stumped. This is the beginning of a tax calculator but I am getting irregular output from the getIncome() method. It starts fine, letting the user enter income figures, but on the third income entry or so, …

Software Development java
Member Avatar for jim.keele.7
0
140
Member Avatar for alpzee

I am a newcommer to java programming. i wrote this which compiles without error. when i put an int value like "5" it runs without any problem but when i puts a double value like "5.1" i get error. What is the problem? package javaapplication1; import java.util.Scanner; // Scanner is …

Software Development java
Member Avatar for alpzee
0
166
Member Avatar for Fame95

I am doing a syntax highlighter (which is my first c# project) and I have some performance problems. Every time I have to color a word, I stop the repaint, color the word, enable repaint and invalidate the richtextbox. This is the richtextbox class: namespace test { class rtb:RichTextBox { …

Software Development
Member Avatar for Fame95
0
2K
Member Avatar for rev_ollie

Hi, I am coding some python to work with some wireless serial devices. I have 2 devices reading temperatures and other environmental data over an Xbee which then writes the data over serial. The data looks like this when read in Hex: *7e001090007d33a200408b2e0c2db7010016005763* The important character is the 7e at …

Software Development python
Member Avatar for rev_ollie
0
4K
Member Avatar for romz

hi everyone. I want to delay the click event in a vsFlexgrid so that the double click event will run 1st. I used a timer for the delay in the click event and managed to get the value of the double click speed in the windows library for the timer …

Software Development visual-basic
Member Avatar for romz
0
1K
Member Avatar for harinath_2007

I was working on a project on netbeans and came across a problem with netbeans. The netbeans was showing the error repeatedly as "duplicate class". eventhough there is no duplicate class in the project. After so much frustation , i realized that this is netbeans bug. After doing some search …

Software Development java java-netbeans
0
244
Member Avatar for lewashby

In the following script I can't get the variable STARTPOINT to increment by 3 each time through the loop. I con't get it because the variable NUMBEROFGROUPS is incrementing by -1 each time and both increment lines look identical to me. #!/bin/bash set -x leading_zeros() { local NUM=${1} local NUMBEROFDIGITS=${2} …

Software Development shell-scripting
Member Avatar for rch1231
0
167
Member Avatar for Rahul47

hie people, could anyone tell me what's wrong with following code: Dim cmd As New SqlCommand("SELECT * FROM Security_Ques WHERE Username = " + txtUsername.Text + " and Ques_Index = " + cmbSecurity_Ques.SelectedIndex + " and Answer = " + txtSecurity_Answer.Text + "", con) because it is raising an exception …

Software Development vb.net
Member Avatar for Rahul47
0
400
Member Avatar for Rahul47

Hey people, here is a question that is troubling me from quite a long time. I want to diable the (x) button on form_load event, to prevent user from directly closing the application. How may I achieve this ?

Software Development vb.net
Member Avatar for Rahul47
0
800
Member Avatar for clouds_n_things

Hello everyone! I am tring to use Tkinter from terminal (I'm on a mac) and I keep raising AttributeErrors on both Python 2.7 and Python 3. For 2.7 I input: >>> from Tkinter import * >>>win = Tk() >>>f = Frame(win) >>b1 = Button(f, "One") and I raise the AttributeError: …

Software Development python tkinter
Member Avatar for clouds_n_things
0
3K
Member Avatar for shermags

Hi, I'm new here!!! I just want to ask if is it possible to add a property within a property at VB.Net. Sample Public Class Form1 Private xproperties As PreferenceProperties Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load xproperties = New PreferenceProperties PropertyGrid1.SelectedObject = xproperties End …

Software Development vb.net
Member Avatar for shermags
1
277
Member Avatar for ambageo

Hi! I am supposed to write a programm for making a window.First of all, I must make a window with some given default values. Below is the code that I have been given as a template public class Window { private String name; private int height; private int width; private …

Software Development java oop
Member Avatar for ambageo
0
214
Member Avatar for MasterHacker110

I have made this RSA encryption program but it crashes when it is finished decrypting the line. What is wrong and how can I fix it? #include <iostream> #include <string> #include <cmath> using namespace std; bool IsPrime(int p); int main() { int p, q; int n, phi; int e, d; …

Software Development c++ encryption
Member Avatar for Moschops
0
301
Member Avatar for pmec

Hi there guys i've got a script that's suppose to find the average of two times as strings. The times are in minutes:seconds:milliseconds i'm doing ok in printing the right minutes and seconds my problem is with the milliseconds. **Example if i have 00:02:20 and 00:04:40 the average will be …

Software Development python
Member Avatar for ZZucker
0
5K
Member Avatar for sciwizeh

Hello, In trying to port some Java code to C++ I'm disliking the std::stream's lack of copy constructors. I know exactly what the problem is, but I don't know what I can do about it. I have a dangling reference to a stream as a member variable of a class. …

Software Development c++ file-stream
Member Avatar for vijayan121
0
2K
Member Avatar for MasterHacker110

Say I have this class #include <iostream> using namespace std; class Test { int x; public: int GetMax(int a, int b); }; int Test::GetMax(int a, int b) { x = a > b ? a : b; return x; } int main() { // Pointer to class Test *t; int …

Software Development c++
Member Avatar for Moschops
0
155
Member Avatar for 2mhzbrain

Please show me what is the correct code to compare the DateAdded (2012-12-26 00:00:00 - its format inside MySQL) and DTPicker (01-01-2000 default format from user input) Sub FilteredQuery() cnDDR.Open "Driver={Mysql ODBC 3.51 Driver}; server=x; port=3307; database=x; user=x; password=x; OPTION= 1 + 2 + 8 + 32 + 2048 + …

Software Development mysql visual-basic
Member Avatar for AndreRet
0
438
Member Avatar for VIPER5646

Hi I'm trying to Select Data from an Access DB. I wrote this query to Select all Invoices that were Invoiced between two dates. I get the following error Syntax error (missing operator) in query expression 'Invoiced >=02/01/13 AND <= 05/01/13' "SELECT * FROM invoiced_filter WHERE Invoiced > " & …

Software Development sql vb.net
Member Avatar for VIPER5646
0
253
Member Avatar for UKnod

Although the program still run fine I am getting a little tired of the warning on my program that I can't get rid of. First one is with a process: Dim NewProcess As Process = New Process If Attachment2TextBox.Text <> "" Then NewProcess.Start(Attachment2TextBox.Text) Here is the warning: Warning 5 Access …

Software Development vb.net
Member Avatar for UKnod
0
1K
Member Avatar for Mr.M

I want to call the button events. here is the similarity of what I want. NB the following code is not working it just the sample to show what I want the code to look like. if Button1.Clicked = True Then ' Do my thing End If So my problem …

Software Development vb.net
Member Avatar for tinstaafl
0
1K
Member Avatar for Suzie999

I'm having a bit of a problem and I cannot figure it out. It seems as though code will only write to one keyname I have an inifile [section] key1= key2= key3= And my code Class I'm using from http://www.codeproject.com/Articles/10809/A-Small-Class-to-Read-INI-File stringstream ss (stringstream::in | stringstream::out); CIniWriter MyIniTest(".\\test.ini"); char out[20] = …

Software Development c++ visual-studio
Member Avatar for Suzie999
0
163
Member Avatar for chophouse

My Python environment: Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:57:17) [MSC v.1600 64 bit (AMD64)] on win32 I have a script that has been running for months. It's a cron job and suddenly it started throwing this error: *pymysql.err.Error: (<class 'TypeError'>, TypeError("'int' does not support the buffer interface",))* I don't …

Software Development mysql python user-interface
Member Avatar for chophouse
0
631
Member Avatar for ambageo

Hi! I'm having a project where I must give 2 integers and divide them. I must use the NumberFormatException to make sure that those two numbers are only integers( and display a message when they aren't) and the ArithmeticException to make sure that the can be divided (and display amessage …

Software Development java
Member Avatar for ambageo
0
125
Member Avatar for rishif2

Hello experts i am using following code in order to truncate a ms access table Dim con As New ADODB.Connection Dim rec As New ADODB.Recordset con.Provider = "Microsoft.Jet.OLEDB.4.0" con.Open App.Path & "\db.mdb" Dim query As String query = "truncate table tbl" rec.Open query, con, 2, 3 con.close but its producing …

Software Development microsoft-access visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for monching

Greetings! How to remove the **X** button in the upper right corner of VB forms?

Software Development vb.net
Member Avatar for Ancient Dragon
0
141
Member Avatar for dashing.adamhughes

Hi all, I have a class with a variety of methods, for example: class Foo(obj): def meth_a: ... def meth_b: ... In reality, Foo may have 50 or more methods. And for various reasons, I cannot subclass Foo. I'm using Foo in a composition class with some added functionality. Let's …

Software Development python
Member Avatar for dashing.adamhughes
0
359
Member Avatar for Hendo

Hello all, Okay, I've been beating my head for a couple of days over this one and I'm running out of time. I'm writing an app that reads an XML file, then uses the data in the XML file as variable values. Here's a sample XML file: <!--Test.xml--> <Test> <turn>right</turn> …

Software Development app-store visual-studio xml
Member Avatar for Hendo
0
180

The End.