43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Abel21

Why an array of text boxes cannot be created in C# the same way as in VB.Net? In VB.Net I can do this, ant it works.

Software Development
Member Avatar for Abel21
0
198
Member Avatar for adil.ghori

Hello Everyone ! I want to Create a program that will calculate and print to the screen a sales receipt. The user will enter in the number of sales items, the price for each item and the sales tax percentage. Can Anyone Help me Out? Thank You

Software Development c++
Member Avatar for lindajane
0
250
Member Avatar for Violet_82

Chaps, today I was reading about exception handling and although the book explains them in sufficient details there is something that I really struggle to understand. Ok, here's the example they analyze: // Fig. 11.2: DivideByZeroWithExceptionHandling.java // Handling ArithmeticExceptions and InputMismatchExceptions. import java.util.InputMismatchException; import java.util.Scanner; public class DivideByZeroWithExceptionHandling { // …

Software Development java
Member Avatar for Violet_82
0
398
Member Avatar for CPT

currently I have a class function: class MyClass{ static int E(int A,int B, int C){ //function code } }; //and I call it like this : MyClass::E(1,2,3); //what I would like to do is call it in this way: E(1,2,3); //my current macro definition is this #define E(a,b,c) Myclass::E((a),(b),(c)) how …

Software Development c++
Member Avatar for JasonHippy
0
313
Member Avatar for cleve23

Hi I just started to learn Java and when i was reading through the tutorial for building a simple GUI. It says that parseDouble method is not localizable. I don't understand what it is refering to as this method is not localizable. Please explain to me.THANKS!!!!!!!!!!!! :D Code int tempFahr …

Software Development gui java
Member Avatar for JamesCherrill
0
200
Member Avatar for CoilFyzx

Hello good day. I am designing two JTables; one on top of the other. The first one has nine columns. And the second one has 8 columns (The first column spans the first columns of the topmost table). What I wish to do now is to make the bottom table …

Software Development java
Member Avatar for JamesCherrill
0
478
Member Avatar for saurabh.mehta.33234

#include<stdio.h> void main() { int n=5; if(n==5?printf("Hallo"):printf("Hai"),printf("Bye")); } The output of the above code is HalloBye..But I am not able to debug it..I know that ternary has precedence over comma operator but i am stuck at which operand will go with which operator..Can someone please help

Software Development c
Member Avatar for Moschops
-1
238
Member Avatar for Labdabeta

Hello. I am wondering how EOFs are indicated to either the cstdio functions or the fstream functions. Mainly I am wondering how it differentiates it from data. For example, if EOF is a 2-byte code wouldn't this break the system by inserting a 'false' eof flag: for (int i=0; i<256; …

Software Development c++
Member Avatar for Labdabeta
0
182
Member Avatar for bryann

I've built an application that displays the contents of an access database in a datagrid and also a form which allows a user to add a new record to the database. When I tried to run the exe in the bin folder on another computer it displays an error when …

Member Avatar for bryann
0
557
Member Avatar for iFrolox

Hello, Before anything, I want to say that I will keep looking around, but im leaving this thread here to possible get faster answers and solutions. Well, I'm trying to save multiple texts from textboxes and comboboxes, and after saving the information to a file an item will be added …

Software Development listview
Member Avatar for iFrolox
0
180
Member Avatar for JoeD1

Can some help me with my Default: It is printing the error message but at end of message is giving a decimal value for the char sign. How do I stop this from happening? #include <stdio.h> char sign; int x, y; int main() { printf("Choose:\n"); printf("a) Addition\n"); printf("b) Subtraction\n"); printf("c) …

Software Development c
Member Avatar for JoeD1
0
165
Member Avatar for abra_ka_dabra

I am trying to download a zip file from a server using the following code but it gives me a tmp.zip of size 1kB. What is the mistake in this program? try { URL url = new URL("http://www.nseindia.com/content/historical/DERIVATIVES/2013/JUN/fo18JUN2013bhav.csv.zip"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); InputStream in = connection.getInputStream(); FileOutputStream out …

Software Development java
Member Avatar for JamesCherrill
0
247
Member Avatar for christinetom

Hi everyone.. I have to ask this question even though it will look a little silly to some of you. If I have a plugin for some open source software then how to do Install it. I'm using FLTK and have found a pluging for it. Just the sourcecode and …

Software Development c++ open-source
Member Avatar for christinetom
0
128
Member Avatar for CPT

Currently I have something like this: class FileWritter{ ofstream file; public: FileWritter(string filename,A_Class a){//A_Class is class which has defined the >> and the << operators file.open(filename.c_str()); file<<a; } ~FileWritter(){ file.close(); } }; what I want is to have something like this: template <class AbstractClass> class FileWritter{ ofstream file; public: FileWritter(string …

Software Development c++
Member Avatar for mike_2000_17
0
518
Member Avatar for IsaacMessi10

Hey Guys! I've been working on a CLI. Basically I want to recreate the Command Prompt using more user friendly commands. The thing is, as I'm using a RTB the 'Return' Key won't produce a value but it will only skip a line. How can I fix this? Below is …

Software Development vb.net
Member Avatar for IsaacMessi10
0
1K
Member Avatar for london-G

Hello, I am using Netbeans with JDK7. I was wondering how can I check which compiler is Netbeans is using to compile the program? Thanks

Software Development java
Member Avatar for JamesCherrill
0
149
Member Avatar for mania_comp

Hi guys, I need your help here. I need to develop a form which scans students ID from a barcode and using that ID i need to further operations. For that I have downloaded [B]CODE 39 BARCODE font[/B]. Now what have to do further ?? Barcode scanner will be available …

Software Development vb.net
Member Avatar for Dina_Du
0
459
Member Avatar for Learner010

i want to traverse a checkedlistbox using for each loop for example :- if i want to see that a particular item name exist in checkedlistbox or not. so i think that i need to use for each loop but really don't know how to traverse checkedlistbox using for each …

Software Development vb.net
Member Avatar for GeekPlease
0
141
Member Avatar for eldiablo1121

I have to write a program that takes a two dimensional array of dice and sees the combinations the dice makes within 360000 rolls. I have my code to work, but what I'm completely stumped with is printing it in a matrix. I know you have to embedd 2 for …

Software Development c++
Member Avatar for eldiablo1121
0
1K
Member Avatar for Papa_Don

In trying to teach myself about the properties of the textbox, I'm wondering what the propert "Lines" is all about. The value in the property says "String[]Array". When I click this, a box comes up that asks "Enter the strings in the collections (one per line)". Can someone explain to …

Software Development vb.net
Member Avatar for Papa_Don
0
183
Member Avatar for Unused Mass

I have a datagridview that the user can change to various rows and columns (its a grid of squares) When the user presses a button, it generates a list of coordinates of all the squares that are black. That is obviously generated in order. I want it to be mixed …

Software Development vb.net
Member Avatar for tinstaafl
0
471
Member Avatar for pspwxp fan

The idea is to load an array of objects onto a JComboBox. I have a Class Tournament, which contains an array of Teams. I have serialized an intance 'a' of the Tournament class into a .dat file. try{ ObjectOutputStream oTourn = new ObjectOutputStream(new FileOutputStream(jTextField1.getText()+".dat")); oTourn.writeObject(a); } catch(Exception e){ JOptionPane.showMessageDialog(this, e.toString(), …

Software Development java
Member Avatar for pspwxp fan
0
849
Member Avatar for hackoman96

can someone please tell me how much time will take to learn java , i have already learnt c++ and looking forward to learning java

Software Development c++ java
Member Avatar for iamthwee
0
275
Member Avatar for Violet_82

Chaps, I have just read about java interfaces and there is a nice exercise in my book that I would like to attempt, so I was wondering if you could help me to identify the best way to go about it. Here's the exercise: "Create 3 small classes unrelated by …

Software Development java
Member Avatar for Violet_82
0
6K
Member Avatar for STP_Captain_Slo

Hi I have a set of Checkboxes each with a Textbox next it to. I have the following code, which is meant to loop through each CheckBoxe and if checked if gets the text contained in the textbox, these are linked through the tag of the checkbox, i have used …

Software Development vb.net
Member Avatar for rathideva
0
2K
Member Avatar for savedlema

Hi all! I'm stuck somewhere. I have a table for Inventory (which contains the available amount of each food component) What I want to do: If I select a certain food (say salad) I want to be able to deduct the components (amount) of 'salad' from the inventory table. Consider …

Software Development mysql vb.net
Member Avatar for tinstaafl
0
617
Member Avatar for seacase

I am trying to modify my shell sort algorithm to use Hibbard's increments rather than n/2. I know that Hibbard's increments are 2k - 1, but I can't figure out how to incorporate that into my algorithm. Any suggestions to help me move forward with this? I feel like I …

Software Development algorithm java shell-scripting
Member Avatar for Mohamed_22
0
4K
Member Avatar for Dili1234

I write count the letters in a list, > ERROR: countvowels/2: Arguments are not sufficiently instantiated I got this error" why is that? this is the coding I used countvowels([],0). countvowels([H|T],Count1):-Count is Count1 + 1,countvowels(T,Count),Count1>1.

Software Development
Member Avatar for Dili1234
0
2K
Member Avatar for pspwxp fan

I have a JTable with two columns in my JFrame. The number of rows this table has should equal a number input in a JForm in a previous JFrame. I cannot find any rowCount mutator function (Using Netbeans), and upon further inspection, the rowCount property in the GUI design view …

Software Development gui java
Member Avatar for JamesCherrill
0
3K
Member Avatar for Dili1234

I want to transate no to Letters ,and letters to no,as a Example when germantoenglish([e,t,th],Y).Y shoul be like below Y=[1,2,3] but I get answer as false............ trans(e,1). trans(t,2). trans(th,3). germantoenglish([S|H],[G|Ta]):-trans(H,Ta). englishtogerman([J|Ta],[L|H]):-trans(H,Ta). `

Software Development
Member Avatar for Dili1234
0
174
Member Avatar for VilePlecenta

This is strange, I looked it up and by default C# should pass parameters by value but I've always had them get passed by pointer. ie [ICODE] public class foo { public foo() { derp = 123456; } public int derp; } public static void dontcare(foo z) { z.derp = …

Software Development c c# c++
Member Avatar for zadkielmodelre
0
225
Member Avatar for cocopium

I have been trying VERY hard on this one and I cannot figure it out (I get the logic-- but not how to apply it in a COMPUTER). Here it is (please read the whole thing before answering): This is C programming (not C++) I need to design a program …

Software Development c
Member Avatar for cocopium
0
503
Member Avatar for jkvt

Hi, I have two LINQ queries that produce two different results, but the fields, while having different names, are essentially the same. I am trying to union them together (although concat in this case should produce the same results), but I am getting an error. My thought is that I …

Software Development asp.net
Member Avatar for jkvt
0
4K
Member Avatar for GeekPlease

Good day folks, I've been wondering how can I open an excel file in vb.net. Can somebody help me? I always get this error below: > The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) Thanks in advance

Software Development microsoft-office vb.net
Member Avatar for GeekPlease
0
661
Member Avatar for rje7

How to find the difference of two files and get a 3rd file with the newer information alone. for example: There are two files file1 and file2 **file1** apple mango pear **file2** apple mango pear cat and dog I need a file with **fileout** cat and dog how to achieve …

Software Development apple shell-scripting
Member Avatar for rje7
0
160
Member Avatar for Dili1234

Can anybody explain why this is not working.Can someone help me. fib(0, 0). fib(1, 1). fib(N, NF) :- N>=0, fib(N-1, AF), fib(N-2, BF), NF is AF + BF. .

Software Development
Member Avatar for Dili1234
0
220
Member Avatar for mesbahuk

In java this is how a DerivedClass can implement it's BaseClass's constructor. public DerivedClass extends BaseClass { //some properties public DerivedClass(param) { super(param); } } I have learnt C-Sharp's *base()* does the similar thing, but when I replace *super(param)* with *base(param)*, it does not gives what I'm expecting. How can …

Software Development c c# c++ java
Member Avatar for Ketsuekiame
0
271
Member Avatar for shadyreal

Is it possible to have a auto-tracking event or something similar to track the database when it changes? For an example: If the database gets a new insert value from another application that I currently have: then My other application will notice it and fetch that data instead of getting …

Software Development c c# c++ sql
Member Avatar for shadyreal
0
449
Member Avatar for ZeroZen

I'm having a heck of a time loading an image from the path where the program is being run. Dim image As New BitmapImage Dim imagePath As String = "keepass.png" image.BeginInit() image.UriSource = New Uri(imagePath, UriKind.Relative) image.EndInit() ProductImage.Source = image I can't seem to use a relative path to my …

Software Development image vb.net
Member Avatar for ZeroZen
0
726
Member Avatar for Kratoswoo

So I have this linq code and I am trying to get it to look at the datbase and what it is doing is pulling back the last record put into the database. My asp page refreshes and displays the new information that was updated. What I want is to …

Software Development asp.net seo
Member Avatar for Kratoswoo
0
226
Member Avatar for f_atencia

Not entirely sure what's happening. I've managed to narrow down the template where this error is occurring <xsl:template match="Application/Comment"> <xsl:copy> <xsl:choose> <xsl:when test="string($ImportXML/Application/Comment)"> <xsl:apply-templates select="$ImportXML/Application/Comment/text()"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="."/> </xsl:otherwise> </xsl:choose> </xsl:copy> </xsl:template> $ImportXML/Application/Comment = "test". Essentially, I'm trying to update my document so that the XPath Application/Comment is now …

Software Development xml
Member Avatar for Mike Askew
0
322
Member Avatar for m_ishwar

Guys! I would like to know if it was possible to create an assembler using python since it has excellent string handling features. Any Ideas how it could be done?

Software Development python
Member Avatar for m_ishwar
0
158
Member Avatar for mesbahuk

I have been working on a conversion project for last few days where I need to convert a Java library to C#. At one point I came to java's certain feature called [Exceptions Thrown by a Method](http://docs.oracle.com/javase/tutorial/essential/exceptions/declaring.html). Here is a little glimpse of it: public boolean isRequest() throws NullPointerException { …

Software Development c# java oracle
Member Avatar for Ketsuekiame
0
306
Member Avatar for farhaana.ahmed.58

i have a text document 'topics.txt': 1~cocoa 2~ 3~ 4~ 5~grain~wheat~corn~barley~oat~sorghum 6~veg-oil~linseed~lin-oil~soy-oil~sun-oil~soybean~oilseed~corn~sunseed~grain~sorghum~wheat 7~ 8~ 9~earn 10~acq and so on.. here the numbers correspond to the file names, i have about 20000 files. import os import re import sys sys.stdout=open('f1.txt','w') from collections import Counter from glob import glob def removegarbage(text): text=re.sub(r'\W+',' …

Software Development python
Member Avatar for chriswelborn
0
250
Member Avatar for ZER09

does any one experience this while using mdi the code is something like this using a as new form a.mdiparent = this a.showdialog() end using then when i tried to show the new form it will close automatically. why is that happening? thank you

Software Development vb.net
Member Avatar for ddanbe
0
96
Member Avatar for nathan.pavlovsky

Hello programmers! I am trying to return an array, made up of 7 members, all type ints via a pointer from a function. Here is a prototype of a function that does this: `int[7] colCountArray={0,0,0,0,0,0,0} //array saved in Board obj.` int* Board::accessColCount() { return &colCountArray; } However, my compiler dosnt …

Software Development c++
Member Avatar for rubberman
0
115
Member Avatar for wolf29

I have 2 functions, one of which works and one of which doesn't. I do not understand this, because the only difference is that the second function puts in just the name of the variable, where the 1st function puts in the value. There is only one line to build …

Software Development dataset github open-source os-x python sqlite
Member Avatar for wolf29
0
327
Member Avatar for GeekPlease

I have a datatable with nth column. Now, I want to change the index of some columns. Need help

Software Development vb.net
Member Avatar for GeekPlease
0
516
Member Avatar for abra_ka_dabra

Could you please explain me what is a BufferedStream (what is a buffer and how it should be used?)? I have used a code that uses bufferedstream to write to a .txt file. I got the code while googling but don't know the theory behind how it works... please explain.

Software Development java
Member Avatar for abra_ka_dabra
0
182
Member Avatar for Affable zaki

hello folks. i have saved the values of unique_ID.text textbox1.text textbox2.text textbox3.text textbox4.text textbox5.text textbox6.text in columns column_ID and column_1 to column_6 in a table table_1 in database db_1. Now I want to update some values. but for that i want to show the values of column_1 to column_6 in …

Software Development sql vb.net
Member Avatar for M.Waqas Aslam
0
390

The End.