8,298 Topics
![]() | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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! | |
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 … | |
i need help to create website for online test using asp.net with c# coding.. it shld consists of question with multiple answer choices | |
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 … | |
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 … | |
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. … | |
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 … | |
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--")); … | |
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 ) | |
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 … | |
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 … | |
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 … | |
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. | |
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 | |
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 … | |
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 … | |
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 | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
/*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", … | |
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() { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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... … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … |
The End.