8,298 Topics

Member Avatar for
Member Avatar for ahmed_one

I need some help to make a order form in C#. My development environment is: Microsoft Visual Studio 2010 Ultimate SQL Server Express Edition 2005 Programming Language C# Sample Database = NorthWind (Tables Orders and OrderDetails) I've create a form for order entry, which contain a textbox for OrderID, a …

Member Avatar for ahmed_one
0
2K
Member Avatar for kubiak

Hi, i have csharp server(console application) and java client. I need to get a java client ipaddress, can someone tell me what is the function in csharp? I am new in csharp. I was searching on web and nothing help me.

Member Avatar for darkagn
0
174
Member Avatar for tony75

Hi double[] MyArray = new double[10]; I have 10 numbers and I get average of them. But how can print out how many of the numbers that are smaller than average, and how many of the numbers that are larger than average?

Member Avatar for tony75
0
1K
Member Avatar for mIND.dEcEpToR

this is a very very basic question but while coding i got stuck. in c++ we use the statement: if (back_tracking(0, y + 1)) to check some condition but while coding in c# it says cannot convert implicitely int to bool! anybody kindly tell me whats the workaround in c#

Member Avatar for Momerath
0
156
Member Avatar for Nina 4 Ever

i need to perform port forwarding in a desktop application written in C#. i used this code : using System; using System.Threading; using NATUPNPLib; namespace iSpyApplication { public static class NATControl { public static UPnPNAT NAT = new UPnPNAT(); private static IStaticPortMappingCollection _mappings; public static IStaticPortMappingCollection Mappings { get { …

Member Avatar for TnTinMN
0
1K
Member Avatar for chocolatesky

Hello, I have a homework assignment due for my Intro to Programming class, I have no idea what I am doing and wanted some help. I complete it in RAPTOR and generated the C++ code from there, but my professor doesnt want us to do it like that, he wants …

Member Avatar for chocolatesky
0
139
Member Avatar for tony75

Hi I would like to write program that calculate the sum of all integers from a minimum number up to the maximum number.by using the following formula? sum = 1/2 * number of integer * (minimum numbers + maximum number) How can I do it?

Member Avatar for rotten69
0
544
Member Avatar for mIND.dEcEpToR

this is how my data in txt file: 1--2--3-- 3-4-4-5-- -7-3-4--- 7--5--3-6 --7---4-- 3-2--4-5- ------3-- 2-6--7--- 4---4--3- is my c# code to do file reading with the display too: public void populate_grid_by_file() { int counter = 0; string line; // Read the file and display it line by line. System.IO.StreamReader …

Member Avatar for tinstaafl
0
207
Member Avatar for nivarshn

I am using Visual studio 2005(.NET framework 2.0) .My project is window application and using c# language. We are having word templates created in office 2003, 2007 and 2010. I want to search text (string) in word template (.dot/.doc/.docx).This text is exist in two places in word doc : 1) …

Member Avatar for NanaYee
0
1K
Member Avatar for archana.khare.395

I want to work on excel file in C#. But it is giving error - Old format or Invalid library Exception from Hresult 0x80028018

Member Avatar for Majestics
0
79
Member Avatar for adrian.mcguinness

I have a gridview which totals up the quantity of items the buyer has added to basket. I have added a delete button and this button is meant to reduce the quantity by one when clicked. removing the latest record from the database. I keep getting a the following: > …

Member Avatar for adrian.mcguinness
0
1K
Member Avatar for muzamilsw10

Hello Everyone, I am new in visual studio and trying to learn it. I am exploring a scenario but couldn't find how to do that in visual studio 2012 using windows 8. The Scenario is: I have three buttons named as Bob, Jolly, Elas. When user clicks on a button …

Member Avatar for pritaeas
0
354
Member Avatar for Darth Vader

Hello, I have just bought a "USB Network server": http://www.conrad-uk.com/ce/en/product/992249/LOGILINK-4-port-USB-network-server I have attached a harddrive to the USB Network server and the USB Network server is connected to the router. I use 2 computers that needs to use the harddrive at the very same time. However the software that connects …

Member Avatar for Darth Vader
0
1K
Member Avatar for myfit

Hey everybody, I have a project(network programming) about simple application of load balancing in win form c#, so who have a simple, example or can guide about it, please help me, I'm very hurry, thank for help very much.

Member Avatar for caKus
0
85
Member Avatar for saurabh.mehta.33234

Why is it compulsory and necessary to initialize static variables during compile time only?

Member Avatar for marc.punzirudu
0
202
Member Avatar for That.T3rr11

I need help converting this python code to c# could someone help me please? #!/usr/bin/env python # encoding: utf-8 import sys, getopt import os, urllib, urllib2, re, string, math help_message = ''' ''' no_param = ''' ''' verbose = False fakeMode = False curPath = os.getcwd() + "/" # Should …

Member Avatar for deceptikon
0
516
Member Avatar for PrincessLyka

#include <iostream> #include <cmath> #include <stdio.h> using namespace std; int main () { int n, x=0, ans; int b=0; do { x++; cout << "\nINPUT NUMBER: "; cin >> n; if(b<n) { b=n; } } while (x<=10); cout << "\n"; cout << "\nHIGHEST: " << b; system ("PAUSE"); return 0; …

Member Avatar for deceptikon
0
126
Member Avatar for FakeTales

I have a client , middleware and server . The concept is a client sends a number this passes through the middleware to the server. The server checks the number against the number generated on the server side , if the client guesses the number correctly a message is then …

0
101
Member Avatar for Shatrughan2010

Hello Friends, I want to write plug in in c++. I am using windows 2008 in which i choose project of Extensibility type and use C++ Atl language.I didnt find any link in the net regarding this.only theoretical help is given there. Please help me with some example so that …

Member Avatar for mike_2000_17
0
121
Member Avatar for nekoleon64

My name is Leonard E. Norwood Jr. I'm just practicing a simple bubblesort program but this time using classes and pointers with operators >> and << and also an overloaded operator =. I'm merely trying to sort a list of numbers from lowest to highest. And the purpose of the …

Member Avatar for nekoleon64
0
249
Member Avatar for kubiak

Hi, I have problem with my connection to the database generate from entity data model of Ado.Net Entity framework. I work in Console Application. My code looks like that: public static void Main(string[] args) { string connectionString = "Data Source=(localdb)\v11.0;Initial Catalog=BarDatabase;Integrated Security=True"; using(SqlConnection con = new SqlConnection(connectionString)) { string queryStatement …

Member Avatar for grarhakim
0
253
Member Avatar for SpyrosMet

Hello everyone. I have a problem trying to develop a windows phone app as a university project. Part of it is to use google APIs. So I'm trying to make a test web request.My code is as follows: string api_request = "https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true&key=AIzaSyDpXZSLtOeGLJcYwKKJs2yAAEdfLST0ZXs"; HttpWebRequest google_request = (HttpWebRequest)WebRequest.Create(api_request); HttpWebResponse google_response_file = (HttpWebResponse)google_response.GetResponse(); …

Member Avatar for SpyrosMet
0
379
Member Avatar for Mirfath

Hi! I am designing a form which contains a datagridview which can display all customer orders. I also have a button inside the datagridview so that if a user clicks the button it will open another form which contains the items which the customer ordered in a datagridview. I am …

Member Avatar for pritesh2010
0
1K
Member Avatar for howard.teoh.7

Actually, i want connect a database is in another computer, may i know how to connect the database over LAN to retreive the database on another computer, and what step i need to do?

Member Avatar for BobS0327
0
109
Member Avatar for ralph1992

I have attached a quick class model of what I am trying to achieve (Also, sorry for the mass of code but I figured I'd post everything I have thus far in case anyone saw other improvements I could make). I can give a customer an 'Account' but I want …

Member Avatar for phorce
0
8K
Member Avatar for john.knapp

I clicked through the tweets on [this post](http://www.daniweb.com/software-development/vbnet/threads/441223/how-to-make-short-code-in-vb.net "How to make short code in VB.Net") and found the post had been tweeted by the C# tweeter, although it was in the VB.Net forum... Feature? ![DaniwebTweet](/attachments/small/3/DaniwebTweet.jpg "align-left")

Member Avatar for Dani
0
156
Member Avatar for DestinyChanger

Hi, I'm working on a robotic project in university and searching for a good robot programming language. If C++ can help PLEASE give me some advise that how can i start robot programming in C++.

Member Avatar for saly305
0
2K
Member Avatar for brand.lock

First off thanks for looking at this I have looked all over (both here and on the net) and tried several things trying to get this to work. I am using Visual Studio 2012 with DirectX (June 2010) SDK. I am attempting to write a fuctuin for sprite colission detection. …

0
76
Member Avatar for Jake.20

Good evening guys, i just wanna ask some advice on how will i update the time in DateTime that is displayed on my web page? Thank you in advance

Member Avatar for JorgeM
0
76
Member Avatar for StNtMaN

**C++ Code:** #include <iostream> using namespace std; int sum(int n) { if (n <= 0) return 0; else return n + sum(n-1); } int main() { cout << "Range num? "; int num; cin >> num; cout << sum(num) << endl; return 0; } **My Pep/8 try at it:** br …

0
68
Member Avatar for gtsiga
Member Avatar for caKus
0
218
Member Avatar for Jbvo

I am trying to read each word from a file and put it in a pointer then send it to a vector. Here is what I have so far. I am having a hard time sending the data to a function where I will add it to a vector. Here …

Member Avatar for Mephesh
0
155
Member Avatar for AbaianitCristian

I'm calling a c++ project from c# , the process is like this , i enter some numbers in a textbox and when i push a button it calls a c++.exe program and run it with the numbers i've inserted in texbox ,after this return the result in another textbox. …

Member Avatar for BobS0327
0
205
Member Avatar for saarthak pande
Member Avatar for DanteX

> Hello Can Someone please help me with this problem. This is what i have sofar but i am not sure whats missing or how to end it please help. A solid steel column of circular cross section is needed to support a load of 65,000 lb. The ends of …

Member Avatar for Schol-R-LEA
0
173
Member Avatar for Echo89

Well, I have just made this funtion that will split an array using a delimiter. I'm new to C++ so I will take any suggestions you have. Anyhow, good luck! Enjoy!

Member Avatar for Echo89
0
991
Member Avatar for Akintunde Dare
Member Avatar for Ranger86

Hello I'm new to C++ and am trying my best to learn the language. Could someone please let me know why my program is not working. I have a feeling that I'm not passing values to and from functions. The program compiles and runs, but it just gives me a …

Member Avatar for VernonDozier
0
321
Member Avatar for dot_binary

I'm using winapi function GetTickCount() with delta time and I'm calculating the displacement of an object on screen like this: number_Of_Pixels_To_Move_On_Screen = (speed*delta_Time)/number_Of_Pixels_Per_Milllisecond but I get uneven movement.Sometimes it moves a litle faster ,sometimes slower . Can someone tell me how to get the object to move at a constant …

Member Avatar for mrnutty
0
171
Member Avatar for awslc

Hello guys, I (attempted to) incorporate the alpha-beta pruning functionality with Negamax in C# and was wondering if you could review my included code for any obvious errors? Negamax Function: public int NegaMax(int[,] board, int depth, int alpha, int beta) { Interlocked.Increment(ref _negaMaxCtr); if (depth == 0) { Interlocked.Increment(ref _zeroCtr); …

0
269
Member Avatar for UrFace

Write a C# program that searches a file for a string. Pass the string and the file name as program arguments.

Member Avatar for Momerath
-2
40
Member Avatar for celina1234

I am very new to programming language and need help urgently. I am running a program which gives me one output file for every 5 min simulation. i have to copy and rename the output file in each step so that they can be used in another program . Any …

Member Avatar for Adak
0
304
Member Avatar for Jmerced

Hello guys, I wonder if some of you can help me out with this. Im working on an application in VWD 2010 with C#. I wonder how can I save like 8 multiline textboxes into a Database. Where every single line of this textboxes is a new row in the …

Member Avatar for AleMonteiro
0
37
Member Avatar for SCass2010

Hi everyone, Currently for a university project I am building a server that can send notifications to a mobile device. Part of the project involves building a front end where I can configure everything for the server - updates to send, rules and so on. On the front end I …

Member Avatar for nmaillet
0
259
Member Avatar for ppotter3

Hello! How is everyone? I know this program is somewhat simple, but I am working on learning classes, and I am trying to implement this in my code. I pretty sure my mathematics done in the program are correct, or at least on the write track. Here's what I am …

Member Avatar for magadascar
0
2K
Member Avatar for Programmer629

Hey Everybody! I'm totally new to this and ligit just signed up here. This is also my first post. I want to create the card game war as my first project in C#. I have Visual Studio.Net 2010 and am a total noob. plz make instructions simple. thx!

Member Avatar for Programmer629
0
459
Member Avatar for XEN0

Rewrote this a few times heres the meat and potatoes. Has a few issues such as flashing when moving in different directions quickly. Thinking of trying to clamp a few values to try to stop the diagonal movement,flashing and smoothing out the sprite. Something along these lines might update this …

Member Avatar for XEN0
0
269
Member Avatar for semicolon

Hi can i apply this in a windows form C#? ![BubbleImage](/attachments/large/3/BubbleImage.png "BubbleImage") this is an html5 is there any in C# windows form

Member Avatar for gtsiga
0
826
Member Avatar for riahc3

Hey I want to Load/read/write a big file (ISO) in C#. Ive tried various combinations (FileStream, BinaryStream, etc) but all of them give me a "OutOfMemory" exception. What is the best way to load a big file into C# to work with it? Ill be using the DiscUtils library if …

Member Avatar for BobS0327
0
403
Member Avatar for jonny93

What is the best way to practice C++ coding on Windows 7, and at the very least free? I want to get better at programming, but I don't have a compiler.

Member Avatar for mike_2000_17
0
904

The End.