8,298 Topics

Member Avatar for
Member Avatar for DanielaCrisan

[code] private void button1_Click(object sender, EventArgs e) { n = Convert.ToInt32(textBox1.Text); for (; i < n; i = i + 2) { textBox2.Text = textBox2.Text + " " + Convert.ToString(i); ; } } [/code] I an mentioning that i,n=0; is located in the declarations zone of InitializeComponent(); I get the …

Member Avatar for Diamonddrake
0
151
Member Avatar for ellaine101591

We have an assignment to convert infix to postfix. And I have made this initial code. When this program is executed, I'd type any word that is not an operator or '(' or ')'. For example my input is "asd" my output should be "asd" also. But in this code …

Member Avatar for emilo35
0
233
Member Avatar for DrueY

Hi there, Could someone give me a simple of example of how to write code in a c++ class library file? I made this to include through a reference in a c# app file. This is what Ive tried but Ive gotten all sorts of build errors: [CODE]// CClass.h #pragma …

Member Avatar for Banfa
0
265
Member Avatar for S2009

Hi I am creating a windows application. I have a button as backup. When the user clicks this button,he/she should be able to take backup of the database. I am a beginner. I dont have any idea about how to do this task. Can anybody tell me how to do …

Member Avatar for Ivan_86
0
12K
Member Avatar for DrueY

Hi everyone, Im working on a C# project, a program that helps facilitate writing code in C++. Im using Visual C# Express, and possible will use Visual Studio 2008. Im just in the design process, however, and the when I choose the build option and the "program demo" screen appears …

Member Avatar for kvprajapati
0
141
Member Avatar for MTW1989

[CODE]include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; void printintromessage (); void getUserInput (char& Y); void printplayerinfo (const int& numofgamesinseries, const int& numofplayersonteam, int& i, int& j); int main(int argc, char *argv[]) { const int numofgamesinseries = 3; const int numofplayersonteam = 4; int i,j, score[numofgamesinseries][numofplayerson… char …

Member Avatar for MTW1989
0
196
Member Avatar for rajeshswain

Hello, I am creating a windows application to draw 3d cubes. I am preferring to give all the details of the cube in the code itself i.e. dimensions, colour etc.. Suppose there will be two cubes, say with different dimensions and we provide the details with the manner that is …

Member Avatar for superbokey
0
561
Member Avatar for VIeditorlover

First of all - no [URL="http://msdn.microsoft.com/en-us/library/ms996492.aspx"]http://msdn.microsoft.com/en-us/library/ms996492.aspx[/URL] or derivative work - I don't want hear os class Rtf...Ex anymore! Thank you. What I am looking for is any (including api calls, com calls etc.) way how to print rtf document from dist on default printer programmatically. Thank you for any reasonable …

Member Avatar for kvprajapati
0
101
Member Avatar for forhacksf

I want to create a link to a web page into an about box and i want it to open it with the default browser.I googled it and found nothing that helps...pls a little help

Member Avatar for forhacksf
0
114
Member Avatar for forhacksf

I have to clone the calc.exe from winxp and i'm stuck.I'm new in c#. The problem is that I don't know how to get the next number when i press " + ",I take the first number from the textbox but after that I don't know how to read the …

Member Avatar for Geekitygeek
0
248
Member Avatar for thuyson

i want to print textbox contents at a coordinate in C# when user click a button on form.But i don't know code,please help me! Thank you so much!

Member Avatar for thuyson
0
192
Member Avatar for tonyrockcakes

hello i'm using C++ for the first time on my course after a year of c#. We are suppose to make a client and server using pre existing code. One file was server one was of a client. There must be 3 classes a common class/ base class and a …

Member Avatar for tonyrockcakes
0
231
Member Avatar for kavithaje

i need help to create website for online test using asp.net with c# coding.. it shld consists of question with multiple answer choices

Member Avatar for _V_
0
1K
Member Avatar for venkat arun

Hello, I have made a program in C++ for which I am making the GUI in C#. I want to run the C++ program as a process from C#. The program loads and runs fine, but due to some reason it is not able to access the files. When I …

Member Avatar for venkat arun
0
303
Member Avatar for nrsh_ram

hi to all.... actually i m facing a problem..i had convert the vb to c# code using [url]http://www.carlosag.net/Tools/CodeTranslator/[/url] wen i try run it ..i get the error... here i copied the small part of VB code...that i face the error [CODE] Private Sub GenerateImage() ' Create a Bitmap Object Dim …

Member Avatar for Renukavani
0
124
Member Avatar for hondros

Okay, as the name implies, I would like to change an integer (ascii code number), such as 65, to a string, '65', then back to integer, 65. Now, the reason for doing so, is because I'm working with ascii code, and want to return a string of a fixed length. …

Member Avatar for venkat arun
0
410
Member Avatar for mastermosley

My datagrid column, ID, Name, Member Number and there are about 50 entries into it. It reads an xml database and adds rows at runtime. When i click on the row to sort you can see the arrow up or down, and most of them sort but there will be …

Member Avatar for JerryShaw
0
109
Member Avatar for adil30000mir
Member Avatar for hery

this is my code: [code] sdsNamaSales.SelectCommand = "SELECT ID, NAMA FROM REF_SALES_OFFICER WHERE" + " SOF_TYPE = '" + ddlJenisSales.SelectedValue + "' AND KOT_ID = '" + ddlKota.SelectedValue + "'"; // insert nama sales manual ddlNamaSales.Items.Clear(); ddlNamaSales.DataSource = sdsNamaSales; ddlNamaSales.DataTextField = "NAMA"; ddlNamaSales.DataValueField = "ID"; ddlNamaSales.DataBind(); ddlNamaSales.Items.Insert(0, new ListItem("--PILIH--", "--PILIH--")); …

Member Avatar for kvprajapati
0
166
Member Avatar for nats01282

I have been told that C++ and C# are very simular, as i am learning C++ and ust downloading XNA which use's C# I just wanted to know if C++ and C# are similar (exept the fact they both begin with the letter C )

Member Avatar for venkat arun
0
160
Member Avatar for iamai

Hello once again, i convert this class [CODE] public class Position { #region initialization // position stuff decimal latitude_fractional=0; string latitude_sexagesimal=""; decimal latitude_decimal=0; decimal latitude_decimal_mem=0; CardinalDirection latitude_direction=CardinalDirection.North; decimal longitude_fractional=0; string longitude_sexagesimal=""; decimal longitude_decimal=0; decimal longitude_decimal_mem=0; CardinalDirection longitude_direction=CardinalDirection.West; decimal altitudemax=0; decimal altitude=0; decimal geoidseparation=0; DateTime sattime=DateTime.MinValue; DateTime satdate=DateTime.MinValue; #endregion #region properties …

Member Avatar for Oxiegen
0
115
Member Avatar for ejazmusavi

Hi Experts! I am working on drawing in C#. I have a problem in this program; when I draw a new object on mouse event and paint event the previous drawn object disappears. My code is as follows. [CODE] private void picMain_MouseDown(object sender, MouseEventArgs e) { MouseDownPoint = e.Location; mouseMovePoint …

Member Avatar for Diamonddrake
0
578
Member Avatar for zendet

Hey guys, i need some help with a hangman project for school. The outline is: make program that plays the game of hangman, read the word to be guessed into a string variable. ( The programmer must make about 10-20 words to have one randomly picked each time a game …

Member Avatar for WaltP
0
456
Member Avatar for anik biswas

hi, I cannot figure out the programme code for the following problem: Write aq programe code for printing all the combinations of the numbers 1,2&3. I would be gratefull if you can help me out with this. Thank you.

Member Avatar for Adak
0
89
Member Avatar for ejazmusavi

Hi Experts! Plz can any help me to do flood fill in c#. I am trying to do this for 8 days but still nothing.............. plz thnx in advance

Member Avatar for Geekitygeek
0
190
Member Avatar for RobBobSmith

Hi everyone: I am a c++ newbie. I have created a matrix class based on dynamic arrays. My goal is to use it for creating 2D matrices that I can then use to solve heat/fluid transport problems. When instantiated, I need each matrix to be initialized with zeroes only. I …

Member Avatar for Lerner
0
152
Member Avatar for aianne

Hi! I need help to my c++ program. I created a program that is much like the "Who wants to be a Millionaire" television show. It has questions and the right answers and three lifelines. How can I possibly do eliminate a lifeline after being used.? this is the program …

Member Avatar for aianne
-1
165
Member Avatar for khevz09

What Should i use to make a game like this?.... How do i accept the right words coming from the users?? can u give me some advice because i really need it ...... Thxxx

Member Avatar for WaltP
0
111
Member Avatar for pilsdumps

Hi, Just learning WPF and I wondered if there's an easy way to amend a controls control template with c# code? To explain - I'm using two 'types' of validation - one to ensure the data conforms to the requirements of an underlying table, and another to ensure the data …

Member Avatar for pilsdumps
0
547
Member Avatar for makachuki

hi , I wish to create buttons(kinda array of buttons) on a form everytime the form loads. I am not getting the code/syntaxes for the same. Its like that the no buttons and there attribute on the form changes dynamically according to the DB . Please some1 help me with …

Member Avatar for ddanbe
0
299
Member Avatar for mj89

Hi, I have created a simple login page in c#, the code compiles and runs however it does not execute correctly as when i give the correct input for username and password. it just skips and does the action for the code within the 'else' statement. What am i doing …

Member Avatar for mj89
0
91
Member Avatar for miraclebos

Hey Narue! I need ur help on a upper-lower case switch problem.. Read the contents of a text file (using ifstream class).. and create a new file or edit the same one (using ofstream class) to switch the case of each char (upper to lower & vice versa).. Thanks a …

Member Avatar for miraclebos
0
167
Member Avatar for jemscomput

16 bit ms dos subsystem Turbo c IDE The NTVDM CPU has encountered an illegal instruction cs:0000 ip:0075 op:f0 00 f0 3705.Choose close to terminate the application.

Member Avatar for jwenting
0
111
Member Avatar for mrnobody

Hi, I'm doing a code in MFC to retrieve DateTime from SQL 2005 and then after do datetime manipulation on it. In the SQL table, the date field is 3/16/2010 2:28:20 PM (obtained by using getdate()). I then retrieve the date from RecordSet and stored into _variant_t. To confirm that …

0
66
Member Avatar for thedonflo

I need help writing this program and it has to have user input. It has to be C++ language 1) Write a program that displays the following diamond shape. You may use output statements that display either a single asterisk (*) or a single blank. Maximize your use of repetition …

Member Avatar for Lerner
0
115
Member Avatar for eternaloptimist

/*could someone show me how to create a text file named names.dat with names in a directory with an executable file? i want this program to find a name after i enter it. here r the names that i want to put into names.dat.:*/ "Collins, Bill", "Smith, Bart", "Allen, Jim", …

Member Avatar for Lerner
0
141
Member Avatar for eternaloptimist

i need a function to line up the info with these columns.: Name Test 1 Test 2 Test 3 Average here is the code that i have so far.: [CODE]#include <iostream> #include <iomanip> using namespace std; void arrSelectSort(float *, int); void showArrPtr(float *, int); void showAverage(float, int); int main() { …

Member Avatar for Fbody
-2
1K
Member Avatar for BradenMurphy

Hi, I was hoping someone knew a good 2d graphical library for .NET that can: -draw objects (lines, bmps, shapes etc) -these objects can be moved around and resized -this component allows for zooming in on objects -the library must be open source -I am willing to pay for it …

Member Avatar for ddanbe
0
110
Member Avatar for johndoe444

I noticed something interesting today. When I run the executable directly it gives no hint where the segmentation fault happened. But if I run it from gdb it gives the line number where the seg fault happened. So I was wondering whether there is any similar utility which I can …

Member Avatar for Salem
0
95
Member Avatar for aianne

Hi! I need help to my c++ program. I created a program that is much like the "Who wants to be a Millionaire" television show. It has questions and the right answers and three lifelines. How can I possibly do eliminate a lifeline after being used.? this is the program …

Member Avatar for WaltP
0
223
Member Avatar for pepsy11

Hello.. I am making a program where i use an sql database to storage user information, but i cant figure out how to add a new record that actually stays in the database, i have found some different codes but they only add the record "locally", so when i close …

Member Avatar for amitshrivas
0
562
Member Avatar for nirvana74v

Hi I am getting weird error with oracle connectivity. Immediately after the open() call, the connection shows as closed. I am not able to figure out whats going wrong. The same code works if executed differently. Line: This piece of code throws error [CODE=syntax] bool objState = false; if (Program.orConn …

Member Avatar for nirvana74v
0
428
Member Avatar for keerpitis

Hello!I have to check one txt file for simetrical words(like 1221 or abccba) and put these simetrical words into other file.End of word is ().,!? or space I have figured out how to find out if string is simetrical. [CODE] int main() { char s[100]; gets(s); int len=strlen(s); bool b=true; …

Member Avatar for abhimanipal
0
83
Member Avatar for Gnawk

C++ program that will implement the popular numerical procedure called Thomas Algorithm. this is my final project in the lab which i have no idea how to start off... and i am really bad at c++ because this was my first ever programming class i ever took in my life... …

Member Avatar for WaltP
-1
1K
Member Avatar for crioll

Hi. I create the table (MS SQL 2008) IdUrovniaKatHerakl - HierarchyId (not null primary key), KatName nvarchar(max) not null, LevelKat as RowId.GetLevel() KatId - int KatOpisanie nvarchar(max) How can I using C# in Visual Studio 2010 (RC) insert new data into this table? I do this: create DataSet and Create …

Member Avatar for crioll
0
595
Member Avatar for sumit_coder

Hi friends I am building a C# windows application and I am using axWindowsMediaPlayer to play a URL. I am using player.Ctlcontrols.pause() to pause the player on the click of a button,also I have made sure that the video is being played when I try to pause it but this …

0
109
Member Avatar for jhooles

[QUOTE=Gockelhahn;617499]I am trying to integrate a matlab figure into a "Visual C#" application. So far I am able to exchange numeric values between matlab and c# and to plot figures. The problem is that the figure is not integrated in the overall application (a new window is opened). Is there …

0
37
Member Avatar for hery

hello all, i want to question how to i get value query sql in asp.net c# example: this is my sample code: [CODE] string no_hp = ""; string queryNoHP = "SELECT NO_HP FROM REF_OWNER WHERE ID = '" + ID.Text + "'"; [/CODE] i want to how to get value …

Member Avatar for amitshrivas
0
146
Member Avatar for baogeliao

Hi guys, i need some help in doing C# regarding Aforge. i am new in this. thanks:)

0
49
Member Avatar for kdcorp87

my job is 1.maximize 2.smoothing when i just write maximize part and ran it work fine for 550-600 pixel and when i just write smoothing part and ran it work fine for 5500-6000 pixel. but when i attached both code failed at maximizing point. i want to know why and …

0
67

The End.