132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for while(!success)

Hi guys, I'm hoping you can help me find a more elegant solution to my query inside a foreach loop. Here is the loop in question: foreach (DataRow row in dt_blah.Rows) { SqlCommand sc = con.CreateCommand(); sc.CommandType = CommandType.Text; sc.CommandText = "select blah blah blah .. where S = @s1 …

Software Development programming-construct sql
Member Avatar for AleMonteiro
0
1K
Member Avatar for masterfact18

i would like to know hot to put a limited input in a textbox.. situation is like this i put a textbox in a form then what i would like to happen is to accept only 2 number and will not accept the following number that is being pressed...please help... …

Software Development visual-basic
Member Avatar for masterfact18
0
136
Member Avatar for toldav

Help, I'm trying to get which object has the greater area of the 3 triangles. Also want to print out the info for each triangle object by calling toString(). If any one would check my work I have done if for any change I need it. Thank you. // testerTriangle …

Software Development java
Member Avatar for stultuske
0
189
Member Avatar for Navlag

1. What happens when you add an element to a vector that is already at capacity? Does std::vector have a "capacity"? 2. In C++ and OOP in general, what do you call a design where a Person class inherits from Head, Arm, Body, Leg classes instead of the other way …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
215
Member Avatar for CHOCHOCHO

These are the errors that i am getting J:Project 2Binary.cpp: In constructor `binary::binary()': J:Project 2Binary.cpp:37: error: no match for 'operator=' in '((binary*)this)->binary::head_ptr = 0' J:Project 2Binary.cpp:6: note: candidates are: nodeType& nodeType::operator=(const nodeType&) J:Project 2Binary.cpp: In copy constructor `binary::binary(const binary&)': J:Project 2Binary.cpp:43: error: invalid initialization of reference of type 'nodeType*&' from …

Software Development c++ linked-list
Member Avatar for CHOCHOCHO
0
376
Member Avatar for murnesty

I have develop a functor array without class but fail to write a functor relate to class. Here is the code without class int returnOne (void) { int a = 0; a++; return 10; } int returnTwo (void) { int a = 0; a++; return 20; } typedef int (*functor2) …

Software Development c++
Member Avatar for mrnutty
0
258
Member Avatar for ahmzy

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using System.IO; namespace Enrolement { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { /* This part of my code imports the …

Member Avatar for ahmzy
0
1K
Member Avatar for jovstudios

Hello Guys I Have A Question.. I have a Table for My Daily Reports.. But I dont know to Show the Daily, Weekly, Monthly and Annual Reports. What Should I do?

Software Development visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for danimischiu

Hy all, I'm developing a windowsforms app and I'm trying to use threads. public void Thread1(DataTable dt2,DataTable dt,int x,int y) { string cui = ""; string cod_asis = ""; for (int i = x; i < y; i++)//dt.Rows.Count { var currentRow = dt.Rows[i]; cui = currentRow["cui"].ToString().Trim(); cod_asis = currentRow["cod_asis"].ToString().Trim(); cui …

Software Development
Member Avatar for danimischiu
0
1K
Member Avatar for pearl.kumar1

Hi to all, What is the use of <configuration> <system.windows.forms jitDebugging="true" /> </configuration> ?

Software Development vb.net
Member Avatar for pearl.kumar1
0
88
Member Avatar for pritaeas

I have a project that contains regular resources in `Properties\Resources.resx`. Next to that, I have a folder named `Scripts` containing files, marked as "Embedded Resource". When I do: var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); I get a list of resources, containing both. What I would like to have is a list of …

Software Development assembly
Member Avatar for Ketsuekiame
0
1K
Member Avatar for sundog1

Hi Guys, OK, i've been through nearly all the properties possible in VS2010 to try and find how to do this most basic of tasks. Look at Screenshot 25... This is how it shows at the moment. Now look at Screenshot 26... This is How I WANT it too look …

Software Development
Member Avatar for Mike Askew
0
251
Member Avatar for Galbatorix

hello guys, i have an sql statement that is supposed to be returning data from two tables that i have joined. Here is the code below: sql = "SELECT rooms.roomID, rooms.roomNumber, rooms.roomStatus, " & _ "roomType.roomType, roomType.adultRate, roomType.childrenRate, roomType.roomTypeID FROM rooms " & _ "JOIN roomType on rooms.roomType = roomType.roomTypeID" …

Software Development dataset vb.net visual-studio
Member Avatar for Galbatorix
0
805
Member Avatar for thetechie

i am new in Java. i would like to know how to find the nth root of any positive number using recursion. Is there any way i can do this without using math.pow()?

Software Development java
Member Avatar for JamesCherrill
0
211
Member Avatar for l.worboyz

I am trying to use a simple println(...) statement to display the value of a variable from a separate class. The two separate classes are linked. AbacusModel class has an array 'peg_array' which stores the number of counters present in each of the elements of the array. AbacusModel has a …

Software Development display java
Member Avatar for l.worboyz
0
267
Member Avatar for sundog1

Hi Guys, I have a Dataset which has been populated correctly now (after a bit of a blonde moment earlier). I've decided to go for a ComboBox Drop-Down option which currently is showing the "companyname" Column of the DataSet. However, How do I go about Getting Text boxes to To …

Software Development dataset
Member Avatar for sundog1
0
156
Member Avatar for jalpesh_007

i have problem when i am accessing package of different directory. can we access a package in a single java file that are lies in two different drive/directories? Eg. My one package p1 is in d:/ having class abc.java My another package p2 is in e:/ having class pqr.java can …

Software Development java
Member Avatar for sepp2k
0
355
Member Avatar for teena carmel

how to install jdbc driver for mysql java connector

Software Development java mysql
Member Avatar for jalpesh_007
0
208
Member Avatar for jalpesh_007

I have two question in my mind. can we create java file having two classes and both have main methods? is it possible or not? why? if possible then we have to save it with which class name? and one more question is: `BufferedReader br = new InputStreamReader(new FileInputStream(new File("abc.txt")));` …

Software Development java
Member Avatar for JamesCherrill
0
148
Member Avatar for kumar_g

Hello Friends I am VB.NET Programmer and currently working on a project where i have to search from combobox. I am retreving the data from database(MS ACCESS) and loading it in combobox at form load event I have set the following properties in combobox for search : 1. AutoCompleteMode TO …

Software Development seo vb.net
Member Avatar for QVeen72
0
1K
Member Avatar for kimangel

Hi experts, I have listview table but when I click or double click the row the data could be changed or edited? How could I disable it but still able to select every row? Many thanks! Kimangel

Software Development listview visual-basic
Member Avatar for kimangel
0
3K
Member Avatar for Nagarajan M

I have .exe file called Myapp.exe.. Now i want to convert .exe to jar file.. That jar file should work in non java system also? I dont have any idea to implement it.. Can anyone plz suggest me how to do it? Thanks in advance..

Software Development ide java
Member Avatar for stultuske
0
3K
Member Avatar for adikimicky

Hi everyone, I have made a desktop application in NetBeans IDE 7.3. In the dist folder ,there is my project's executable jar file. But by double clicking it is not opening. Can anybody make suggestions about it, Thanks in advance

Software Development ide java
Member Avatar for ghincelino
0
255
Member Avatar for joshl_1995

Hello Community, I'm trying to dynamically add a menuitem to my context menu and add a click handler but for some reason it won't add the handler what did a do wrong? Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click For Each Line In RichTextBox1.Lines Dim NewItem As …

Software Development vb.net
Member Avatar for ghincelino
0
269
Member Avatar for Papa_Don

Here we go again. I've installed SQL Server 2008. I can't seem to find my database I've created (and there are two tables so far) that were created through Visual Studio 2010 Express (I'm coding in VB). If it helps, I've determined that the database is a ".Net Framework Data …

Software Development sql vb.net visual-studio
Member Avatar for Papa_Don
0
205
Member Avatar for ImZick

Hello I'm having Trouble here in my ms chart. ![6c6bbe39010ff302ee66367ce9439bba](/attachments/large/4/6c6bbe39010ff302ee66367ce9439bba.jpg "6c6bbe39010ff302ee66367ce9439bba") as you can see the chart in the right side the secondary axis i want it to be fixed in the line of the primary axis in the left side Public Sub Chart_BU_GP_vs_Target() With Chart_EBU_GP_vs_Target .Series.Clear() .Legends.Clear() .ChartAreas("ChartArea1").AxisX.MinorTickMark.Enabled = …

Software Development microsoft vb.net
Member Avatar for TnTinMN
0
3K
Member Avatar for amola.sam

system.net.sockets.socketexception(0x80004005) no connection could be made because the target machine actively refused it 192.168.1.7:1024 i need to know what is the problem and how can solve i try to ping that 192.168.1.7 (this access point take ip through tcp/ ip module )and that replay no problem using System; using System.Collections.Generic; …

Software Development
Member Avatar for gusano79
0
3K
Member Avatar for thunderjuice

Hello, I am new in trying to figure out how to use two classes together. One class is called circle, and is supposed to hold attributes of radius and area. It is also supposed to have the methods of print and computeArea. public class Circle { //global data private double …

Software Development java
Member Avatar for thunderjuice
0
267
Member Avatar for shaun.b

I am about to deploy my application and have came into a bit of trouble. I have the connection string for the database held in the application.settings and need a way to check if the database exists when the program first starts up, and if it doesn't, i need the …

Software Development c# mysql
Member Avatar for AleMonteiro
0
616
Member Avatar for hxc210

Hi there I have a C++ code and I need to write it in C to do the simulation. Can anyone help? Thank you so much. and for random.hpp I will replace that with random.c (a random number generator in c) #include <cmath> #include <cstdlib> #include <fstream> #include <iostream> #include …

Software Development c++
Member Avatar for mike_2000_17
0
378
Member Avatar for StefanRafa0

hello i have problem with sending emails i have good SMTP and port but the message cant be sendend gives me this error: Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1 and here is the code: final String username = "stefanrafaa@gmail.com"; …

Software Development java session
Member Avatar for StefanRafa0
0
332
Member Avatar for evilguyme

Hey guys i have a .exe file called game.exe and its only 1.4MB big. i want to increase the file size to around 7MB and i have not got the source just the executable program. is it possible to do this? thanks

Software Development
Member Avatar for evilguyme
0
868
Member Avatar for wlhj1

I am working with a tabbed form. On the first tab I have a datagridview with customers in it and a searching textbox. I have that working. On the second tab I am placing another datagridview with customer transactions and other data. The customer transaction table has a CustomerID Column …

Software Development vb.net
Member Avatar for wlhj1
0
292
Member Avatar for Papa_Don

Hi group, After reviewing notes, I think I understand how to write the code to save data in the SQL Server. With that said, I want to understand the best way to arrange the data and upload it. My project is creating an order. I'll have the usual part number, …

Software Development sql vb.net
Member Avatar for Papa_Don
0
136
Member Avatar for Aaron_JY

I was wondering if it was possible to create a temporary variable in C# that will be destroyed at the end of the function so I can use that variable name elsewhere in another function. Can anybody help me out?

Software Development
Member Avatar for sepp2k
0
113
Member Avatar for XerX

Hi, I am having a problem overriding methods in a subclass when they contain private methods from the master class. The is the master: package blabla; public class Person { private String firstName; private String secondName; private String familyName; public Person() { firstName = ""; secondName = ""; familyName = …

Software Development java
Member Avatar for JamesCherrill
0
244
Member Avatar for UKnod

I have a warning that I can;t get rid of: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. I am pretty sure it is becasue I have not dimentioned the variable but how do you dimention an IO.memorystream. …

Software Development microsoft-access vb.net
Member Avatar for UKnod
0
286
Member Avatar for officallysabbir

I have the following code which is in a class called customerModel. How do I call this method to another method inside another class called customerController? I am abit new to this and have been trying for ages but have had no luck. Please help thank you. public class customerModel{ …

Software Development gui java java-swing sql
Member Avatar for JamesCherrill
0
480
Member Avatar for jeremywduncan

I am trying this example from Byte of Python, Chapter 10. I can't seem to get this zip to work. I am not sure if the syntax for windows is written correctly or not. I have tried running from interpreter and as a script and both return Backup FAILED. Anyone …

Software Development python unix
Member Avatar for jeremywduncan
0
434
Member Avatar for tony75

**Reading two files?** I will be very grateful to get help about this script. Apython script which can be used to have a convenient format to print the bill in a store. Your script is reading two files: The first one is containing a list of lines and each line …

Software Development apple python
Member Avatar for tony75
0
345
Member Avatar for necrovore

Hello all, I am working on a project and i need to basically copy a directory and its files to another location. I have figured out that xcopy comes in handy for what i want to do.but somehow when incorporated into my C code, it does not work. The code …

Software Development c
Member Avatar for necrovore
0
267
Member Avatar for sundog1

Hi Guys... Putting together a Tiny little app which shows VPN Details for use 'In-House' but for some strange reason my DataSet won't fill? Can anyone spot the mistake? :S private void Form1_Load(object sender, EventArgs e) { //XML Load of Document. This loads the XML Document and the value of …

Software Development dataset microsoft-access open-source
Member Avatar for sundog1
0
362
Member Avatar for jovstudios

Hello Guys, I hav a Code For My Report in Daily .I don't know why there is nothing show the records. even though the Error not Popup. This is My code guys. Help Me Guys Dim rsReport1 As New ADODB.Recordset rsReport1.Open "Select purchase_date, BarCode, Price, ProductName, Quantity, TotalPrice From Dailyrecord …

Software Development visual-basic
Member Avatar for jovstudios
0
184
Member Avatar for jkulp4

Hi All, I am hoping someone can help me with this and/or point me in the right direction. I am developing a quiz application and have run into a problem when the question being pulled from the database is a true/false question it produces an error, straight multiple choice questions …

Software Development dataset vb.net
Member Avatar for QVeen72
0
345
Member Avatar for Şerif Burçin

i installed codeblocks on windows8 but when i compile one of c program error message mingw32-g++.exe: Internal error: Aborted (program collect2) the same problem happened on devc either what will l do

Software Development c++
Member Avatar for burcinerek
0
876
Member Avatar for saurabh.mehta.33234

Why does the following line of code generate error as " pasting / and / doesnot generate a valid preprocessing token"? Can someone please help #define comment /##/ int main() { comment printf("hello"); return 0; }

Software Development c
Member Avatar for deceptikon
0
165
Member Avatar for alex910TN

Hey guys, I have a silly issue that is bothering me. I am trying to read an unknown amount of lines from an input file and basically stop when I reach the EOF. I probably does'nt matter but the assignment is to create a simple lexical analyzer/scanner for a mini-subset …

Software Development c data-structure file-system pascal
Member Avatar for deceptikon
0
6K
Member Avatar for wschamps42

How many bytes of memory is allocated when you declare: double* p1[10];

Software Development c++ motherboards-cpu-ram
Member Avatar for Banfa
0
155
Member Avatar for Murphyv10

Hey Lads, I Have a problem involving my save method , basically i want it to actually save a file which is of type JTable UnFortunetly its not , a Push in the right direction would be great. save.addMouseListener(new MouseAdapter(){ public void mouseClicked(MouseEvent e){ JFileChooser fc = new JFileChooser(); int …

Software Development java java-swing
Member Avatar for JamesCherrill
0
1K
Member Avatar for chdboy

Hi, I have a form in which there are 11 textboxes and two button controls(Just example) ,I want the tab key control to be in the textbox1 when the form loads ,and then If I press Tab Key from keyboard then it will be on second number textbox and so …

Software Development vb.net
Member Avatar for chdboy
0
213

The End.