132,728 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vehpurple

okay so i have Form2 which has a db table named Car using LINQ with four attributes(Make, Model, Year, Price). Now Form1 has 4 textboxs using ReadLines to acquire the make,model,year,price). How do i get them to insert into the table on Form2. thanks in advance for the help.

Software Development
Member Avatar for vehpurple
0
125
Member Avatar for rminator

In fact I had a logfile, that I decoded, by reading his contents byte after byte and save it in a Byte Array. And there after I converted my array of byte in hexadecimal value, and Save it in a stringbuilder. But now my problem is the following, how to …

Software Development
Member Avatar for oredigger
0
740
Member Avatar for Jazerix

Hey first of all, im sorry if the title is a little misleading Im creating a private program for myself and some friends, and i want to make a login form, but i was wondering what would be the best way to host the usernames and passwords? I used to …

Software Development
Member Avatar for jfarrugia
0
98
Member Avatar for jenny666

Hello im makin a program in C tht will query my database when i use the following code i get an error "segmentation fault" [code] //retreive configuration items from the mysql database mysql_query(conn, "SELECT callcost FROM imds.testset Where callcost BeTWEEN 900 and 1000;"); results = mysql_store_result(conn);[/code] even when i use …

Software Development c sql
Member Avatar for Salem
0
290
Member Avatar for FELIGO

Hello everyone Can anyone help me with codes to calculate sum of numbers in the diagonal of a 2 dimensional matrix array. Please help. (a b c d e f g h i j j k l m n o p q r s)

Software Development
Member Avatar for Mitja Bonca
0
108
Member Avatar for Jsplinter

Is there a more efficient way to do this? [CODE] vector<int> myvec; vector<int>::iterator it; /////// // Count # of iterations int i = 0; while ( it != myvec.end() ) { ++it; ++i; } [/CODE] Just seems expensive to me.

Software Development c++
Member Avatar for Narue
0
116
Member Avatar for Swoop_GB

Here's the problem. I'm designing a worksheet for very young children and what they need to do is type a number into a cell and then click a button to run the macro. However, in order to click this button they first must either press ENTER or TAB or click …

Software Development visual-basic
Member Avatar for Swoop_GB
0
508
Member Avatar for paulnamroud

Hello, I'm building a generic [B]Class Library[/B] that I will use it in all my projects. However, I want to know how can I access Resource file from a Class Library ? I will appreciate if you can send me a code sample! Thank you for your help Paul

Software Development
Member Avatar for paulnamroud
0
293
Member Avatar for niths

hello everybody, I am having problem with logout of a Users Account in Firefox because whenever the user presses the Back browser button, the personal page was displayed, showing their personal details. Is there a way to logout successfully in firefox and chrome i;e when user click back button after …

Software Development session
Member Avatar for jfarrugia
0
71
Member Avatar for iphathuy

[code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FileApp { class Program { static void Main(string[] args) { Console.WriteLine("***** Simple IO with the File Type ******"); string[] myTasks = { "asdf", "qwerty", "awdx", "1234" }; // Write out all data to file on C drive. File.WriteAllLines(@"C:\tasks.txt", …

Software Development
Member Avatar for iphathuy
0
180
Member Avatar for Knoxx

i am a new programmer trying to make a program, which askes the user for a string input and searchs for the string in an array, and prints "Found: ("string") and the position of the string in the array. this is what i have done soo far: [code]import java.util.Scanner; public …

Software Development java
Member Avatar for JamesCherrill
0
3K
Member Avatar for leetari

hi all, I have this minor problem which is making me go cranky at the mo.. Can't think straight, need some insights to what I can do... Below is the code which I am working on which takes the test sample values stored in my test 2D array subtracts the …

Software Development c++ programming-construct
Member Avatar for leetari
0
161
Member Avatar for anandunics

Hi ALL, I HAVE AN XSD FILE WITH NEEDS TO BE CONVERTED TO HTML FORM. WHAT ARE THE STEPS TO BE FOLLOWED ? PLEASE EXPLAIN... MAY BE XSD TO XML ? IF SO ? HOW ?

Software Development html-css xml
Member Avatar for mraheel
0
325
Member Avatar for vehpurple

okay so i have to make a windows form app in c# for a car catalog company as an assignment for school. i was about half way done, and i simply dont have time. i could email you my half done app if you would like. i have all the …

Software Development c c# c++
Member Avatar for vehpurple
0
2K
Member Avatar for tunlinaung

Hi.... I am a C# language beginner.Could someone explain me about CLS(Common Language Specification or Common Language Subset). I would like to know about CLS is used in which conditions and what is the job of CLS. Please help me... Thanks

Software Development
Member Avatar for tunlinaung
0
112
Member Avatar for anuj6928

hey acctually i want to retrive data from text file nd save it to sql database bt i just have to implement some conditions like if there are 3 entries exists in text file with the same ID but i just have to get only 2 of them so in …

Software Development dataset vb.net
Member Avatar for anuj6928
0
144
Member Avatar for hondros

Hey there. I've been programming in Python for about a month now. I've created simple programs for myself, such as games and e-mail applications. Still getting GUI down, I'll post if I need help there. Anyways, here's my problem: Running: Windows XP Python: Python 2.6 I installed the newest version …

Software Development gui python
Member Avatar for Eswarimallur
0
2K
Member Avatar for vanzhyme

when i run my project in java. i keep getting this stuff. No Console ..... I dont know how to get console in eclipse. here is my code. [code] import java.io.*; public class WordGame { public WordGame() { } public static void main (String args[]) { String WordGuess; WordJudge gm …

Software Development java
Member Avatar for JamesCherrill
0
439
Member Avatar for Arjun_Sarankulu

I have an application which use SqlBulkCopy to copy data from csv to respective table in SQlserver which works fine but the same i have to do to dump to oracle which cant be done by sqlbulkcopy class Is there any similar way to dump into Oracle table

Software Development oracle
Member Avatar for Arjun_Sarankulu
0
92
Member Avatar for novice20

Hi all, i have different modules developed so far, and a main script needs to call the modules based on user's choice. will doing like this work?? using raw_input(), i wait for user choice, and once a choice is made, corresponding module is called. if main.py, does an 'import xxx.py' …

Software Development python
Member Avatar for novice20
0
191
Member Avatar for Stefan_Lam88

Guys, Have a look... [CODE] File.Delete("C:\\hi.txt");[/CODE] This function is used for deleting a specific file right? But I m unable to delete it? Is there my little mistake?

Software Development
Member Avatar for Stefan_Lam88
0
169
Member Avatar for autorunman22

first of all, thanks for the suggestions lately where im asking to avoid flicking of the ball.. now its working smoothly :)) but i want now to add some more balls.. like 2 - 3 balls.. how can i do that ? i dont have an idea.. thanks guys..

Software Development java
Member Avatar for JamesCherrill
0
310
Member Avatar for sspweb

My application has 19 datagridviews In the Designer I added the datagridviews bound to my data table and set the columns I use the following to filter what information is to be shown on each. This is on a timer and runs several time a minute trying to keep it …

Software Development vb.net
Member Avatar for NETProgrammer
0
90
Member Avatar for mukthyar1255

Hi I am new to python programming,please explain me how to install external modules written by other python users,please mention names of such modules.. Thanks Mukthyar

Software Development python
Member Avatar for Gribouillis
0
84
Member Avatar for bbman

hey can anyone convert this c code into c# [CODE] #include<stdio.h> //Assume following return types while writing the code for this question. int output1; void GetBuildingCount(int marineCount,int marinePositions[][2]) { int x,y,i,j,temp; for(x=0; x<marineCount; x++) { for( y=0; y<marineCount-1; y++) { if(marinePositions[y][0]>marinePositions[y+1][0]) { temp = marinePositions[y+1][0]; marinePositions[y+1][0]=marinePositions[y][0]; marinePositions[y][0] = temp; } …

Software Development
Member Avatar for zmeditation1
0
103
Member Avatar for ScepterMT

When I began the programming for [snipped link], I quickly noticed that Asp.net does not support the MessageBox class that I was familiar with in windows forms. Since Asp.net runs on the server it doesn't have access to produce a modal dialog box on the client. However, by using a …

Member Avatar for zmeditation1
0
662
Member Avatar for drax12

hey, i am developing a booking system and i want to check whether user check in dates are within booked dates. for an example. user wants to book 12/03 to 14/03,but some body has already booked 10/03 to 15/03. For this scenario, we just cant check for 2 days,what i …

Software Development asp.net
Member Avatar for zmeditation1
0
100
Member Avatar for niths

hi all, In my page i need to get the system ip address. i used this code. [CODE] string myHost = System.Net.Dns.GetHostName(); string myIP = System.Net.Dns.GetHostByName(myHost).AddressList[0].ToString();[/CODE] this is working fine when i run application in local system. Now i hosted that application in server say(10.20.7.63). so now when i access …

Software Development dns
Member Avatar for zmeditation1
0
211
Member Avatar for Jazerix

Hey :) So i got a picture on a site, and it does not want me to download it from c# :( when i inspect the element in c# i get a link to the cache picture and not the picture on the site [CODE]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK8AAAAtCAIAAABXiKzxAAAPFUlEQVR4nO1caXBb13U+bwHew76TAiFxX63NEiNLihZqsWXLaWwpyXiR41g1nU7jcaedxtOZzqQzbtN/TdJkmqTjhYnjeGmd1EtiKYstyZQsWZRHtCiZ4i5xESiRWIgdeMB79/YHSJB47wIgJZpkLH6DGeIenHvvwb3nnfud8x5BjfT6WtzWZpcfprDcvG2bNCxjGVNY9oZlTGPZG8iIp7AvhhbbioUGu9gGLBUgjK/4UbdHar3q770UrbYxd1epbNrFNmthcVt7w40w6vZIZwcmOi9E+32SIAEAYDV+/iGtRkUttnWLgNvOG4YDUntfcOhyrN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G6uurJIAAJkdYml9j9u63TWHI19o3IssRZrWt7Caj2rMAFl1TP7sUeW9bMyqY3c/GuJWpAPMQmL0PMtex8PDqtg4PXhSrdJhamOBc9ZSLpVsTI22ZyUmWvtfoDdw7cfpgEcjlkTveQyZ7chkx7zu3ew4E3ebbnFXUpVrU6tquYsf7Tv9X+q1talVtVijo4O+pnNv8+5TMzUxzYhl9fFtDyCzA9y3MudNwrFaRBhYCrM8djamYuM0/xruaOBtVZJjtcjpyZ5R/4Aw/hkrJqdZwpL1hlmxyAWDKXS92D9gCl03Rj3qVFwlCimWS6o0QX2x37zKXXSHwOWg6YuIJKb9gPWQp9KsOo3Vp6bXWdhHiRuXHIUEAGr5V8AWoCmJcPbH2uFhtYmRAOCuv43Z66RFt0rZvE3/GXmBwbCw7dlY9zD3VS4a89KmsiX6owDL3rCAYCh9MdIXL1HSAF/4X/NYxpywtFjkMhYXyyxyuTndXD4pljGNZW9YxjT+H3MNlt1ZyI74AAAAAElFTkSuQmCC[/CODE] like this :( ive been …

Software Development
Member Avatar for zmeditation1
0
203
Member Avatar for c++_fem

Hi, Does anyone know how too solve this: I want to delete a row from database and I keep getting this error: [B]The ntext and image data types cannot be used in WHERE, HAVING, GROUP BY, ON, or IN clauses, except when these data types are used with the LIKE …

Software Development sql
Member Avatar for zmeditation1
0
140
Member Avatar for xpartmgr

OK, so I already program is C#, but I am taking a C++ class. I want to create a windows forms application and have other classmates create some classes that we can all put into the windows forms application to create a final project. Well the entire book only takes …

Software Development c++
Member Avatar for xpartmgr
0
87
Member Avatar for infiniteloop56

Hi I have a problem with some code. Basically what the program is supposed to do is to take in a minimum exponent and a maximum exponent and a base. Then its is suppose to create a table displaying the base to the power of the minimum exponent to the …

Software Development c++
Member Avatar for invisal
0
204
Member Avatar for bmanzana

when i run this code an icon for the image is created but when clicked it says that no preview is availeble any help would be grately apretiated. heres the code. [CODE]from Image import * import ImageDraw z=1 win=new('RGB', (400,400), 'rgb(255,255,255)') win.save('c:\\Documents and Settings\\bradley\\desktop\\python programs\\frac.png') while z < 100000: x=(z**+1) …

Software Development python
Member Avatar for bmanzana
0
119
Member Avatar for mohamedmo'men

I have counter increase by one every once (round in loop) when the counter equal 100 am need it to go back and count down from 100 to 0, how i can make counter count down again ? [CODE]int i = 0; if(i<=100) {i-- ;) // that false else {i++ …

Software Development java
Member Avatar for hfx642
0
88
Member Avatar for caswimmer2011

Hey, Is there any code that will hide the icons on my desktop? Thanks in advance

Software Development java java-netbeans
Member Avatar for hfx642
0
175
Member Avatar for vedro-compota

Hi ,programmers! Please tell me why it's possible to use such condition - [CODE][U]if (!fork ( ))[/U] return 1;[/CODE] as I know the fork() returns pid_t-type but at the same time "if" needs boolean.. big thanks in advance)

Software Development c
Member Avatar for vedro-compota
0
176
Member Avatar for thato21math

whats the advantage of implementing runnable over extending thread

Software Development java
Member Avatar for stultuske
0
118
Member Avatar for breatheasier

Hi, I was wondering what libraries there are out there to do some simple sound generation. For example sine waves, square waves etc.. I'm on Linux, so no Microsoft stuff please.

Software Development c
Member Avatar for jbennet
0
165
Member Avatar for yoni0505

Hi I have a problem with a code I made, some save editor for some game. The code suppose to write 2 bytes to a specific offset in some file. The file's short integers are saved as little endian. everything works fine, but when one of the integers equal 10, …

Software Development c++ ios
Member Avatar for yoni0505
0
207
Member Avatar for George91340

Hey everyone! Well I'm sooo close to getting the names to align BUT there is 1 slot that is skipped in the non-smoking section and a few in the smoking section and i can't figure out why. The Data needs to be displayed in a 10 row x 3 column …

Software Development c++
Member Avatar for pseudorandom21
0
240
Member Avatar for nocloud

I have a class that looks like this [CODE] //the mem_data class======================================// class mem_data { public: mem_data(int,int,std::string); ~mem_data(); private: std::vector<reader> mem_store; int complete; friend class model_base; }; [/CODE] Now, I would like to let the class model_base access mem_store My main code will contain the following: [CODE] mem_data test_data(20110601,10,"test_file.csv"); model_base …

Software Development c c# c++
Member Avatar for nocloud
0
954
Member Avatar for sumeetdesaeee

Hi.. I have a query regarding accessibility of top level class from member inner class. I have just read the reason why local or anonymous inner classes can access only final variables.The reason being JVM handles these two classes as entirely different classes and so, if value of variable in …

Software Development java
Member Avatar for sumeetdesaeee
0
139
Member Avatar for amalwit

[CODE]class A{ void method(){ System.out.println("Hello world"); } } class B{ void myMethod(){ A.method(); } }[/CODE] Can anyone tell me why I am getting this error.( non-static method method() cannot be referenced from a static context).Reffering context is not static.:?:

Software Development java
Member Avatar for amalwit
0
228
Member Avatar for ErickN

I read some of the threads on calculators, but couldn't find anything related with what I need. We have this swing calculator project, that uses buttons and/or a textbox for input, and a different textbox for output. I have done most of it, and is working ok. The problem I …

Software Development java java-swing
Member Avatar for NormR1
0
210
Member Avatar for bio-grad

I posted a similar thread back in Nov and got some great help. I'm modifying the code to be useful to not only compare multiple columns from two separate files, but also to classify each line from @hairpin to determine if the parameters fall within any of the ESThits, outside …

Software Development perl
Member Avatar for d5e5
0
234
Member Avatar for Saith

Please tell me how bad this code segment is. I figured I would share this horrible code. If it's not as horrible as I think it is, please let me know. Thanks! [CODE] /* Purpose: Create a function to check the input from user. Only valid integer should be returned. …

Software Development c++
Member Avatar for vijayan121
0
337
Member Avatar for djjavo

Hi Am new to this and was wondering if anyone knew a solution to this problem. I am wanting to get information from a text file into different arrays. My current text file has a new line for each driver but I would like it to look something like this: …

Software Development file-system vb.net
Member Avatar for djjavo
0
251
Member Avatar for Mike_11

Hi. I'm trying to make a simple question program, my first question doesn't work (if you enter the wrong answer/an answer that isn't an integer, you get stuck in an infinite loop). However, my second question works fine even though the code is quite similar. Sorry if I'm being a …

Software Development c++
Member Avatar for AKMafia001
0
407
Member Avatar for tunlinaung

It is OK, if you write like this below : [CODE] delegate void mydelegate(); public class testing { mydelegate d1; string str ; public void btnStart_Click(object sender, EventArgs e) // Click Event { ThreadStart ts = new ThreadStart(StartServer); Thread t = new Thread(ts); t.Start(); } public void StartServer() { str …

Software Development
Member Avatar for tunlinaung
0
293
Member Avatar for megha10

In the below snippet,Rewind() wraps up the file but still the no of records exceed the MAX value set. if(no_of_msg_records >= MAX) { rewind(fp_msg); no_of_msg_records=0; } ie the no_of_msg_records in the file exceeds MAX value.

Software Development c
Member Avatar for abhimanipal
0
88

The End.