8,298 Topics
![]() | |
Heya guys, I have a very small snippet that drives me crazy right now. [CODE=csharp] int arg1; int expr1 = arg1 = 16; [/CODE] That silly online translators giving me the following output [CODE=vb] Dim arg1 As Integer Dim expr1 As Integer = InlineAssignHelper(arg1, 16) [/CODE] Great but what should … | |
So I have this code so far to parse some values from many XML files. What I can't figure out is how to declare the folder that i need it to open. I need the code to open up a folder on my c:\ that has lots of xml files … | |
Hi, I am a newbie to C# and OOP.. I need some advice regarding my requirement.. 1st Part: There are persons who use mobiles, of many subscribers and also have many numbers in each subscribers. If we consider the XML tags it would be [CODE]<Persons> <PersonName1>XXX</PersonName1><Subscriber1><SubscriberName>ABC</SubscriberName> <Numbers><one>123456</one><two>123456</two>....<twenty>20</twenty></Numbers></Subscriber1><Subscriber2><SubscriberName>ABC</SubscriberName> <Numbers><one>123456</one><tow>123456</two>....<twenty>20</twenty></Numbers><Subscriber2> </Persons>[/CODE] Like … | |
I use the app.config file to store some values (Security key). These settings are used at runtime now i am making the exe of my project. but i will get an error showing security key doesn't found. I am adding app.config file in application folder is it correct? Can anybody … | |
i want to create a code using array in which i can store the month name by a button named ADD and use other to view month name . my code was following but the problem is it is holding last value only not all values [code] using System; using … | |
![]() | So I have a class file. Inside the class is a void which is started in the Program.cs. I used 'LavaSurvival.Init("properties/lava.properties")' in the Program.cs. I'm only pretty new to coding, so it's probably something I didn't know XD. The problem is that I continue to get this error: Type: IndexOutOfRangeException … |
hello all, i got project on online examination i want to fetch data dynamically from database. it must be like that once student loged in. he must gives answer for 1st Q. to go next Q. when they click on any of the buttons. next Q. must be fetch dynamically … | |
i have to use FLV file in my project so how to implement FLV files in windows form c#??? | |
Hi i need to create about 100 files in a numbered sequence like : file1.txt,file2.txt,file3.txt . so how can i create these files using c#. | |
Hi I am engineering student, currently working in image processing. I have big issue in understanding few basic concepts in programming. To be frank I am beginner, so my question will look silly, so please tolerate with me and if anyone can help me it would be much use full … | |
I'm used to c++ along with an open database (switched from mysql to postgres not too awful long ago.) A new job I'm looking at taking focuses heavily on .net along with SQL Server. As such, I've been looking into the .net framework and what I can't seem to figure … | |
i have tried to write a code, but i have a problem with the play() module where the message "one Row Completed" is not being displayed. Please help me with this:icon_confused: [CODE=c++]#include<iostream.h> #include<conio.h> #include<stdlib.h> class bingo { public:int a[5][5]; void input(); void check(); void play(); void comp(); }; void bingo::input()//input … | |
Hello! any expert can help me. Please. I'm design a form with click Search button to search date and display data in datagridview. but when I set my access database OTDate column as Date, It will cause data mismatch problem. however, set OTDate column as Text is fine. But it … | |
my project is on education with fun so i want to add sound API for alphabets for example:if alphabet a is pressed then in picturebox image of apple is diplayed and we can hear a sound that is "a for apple"....how to do so???? | |
I'm using Visual C# Express 2010, on Windows XP SP3. I took pain to define the var collBlock in the class directly, however, when I try to use it, it works once and then NOT. Google searched all and tried a lot of solution. Error stil comes up. The code … | |
i want to draw a line in windows form in c# with d help of mouse....by clicking on button line should b displayed on panel or form.....nd d first line should nt b disappeared..... plz rply soon..... | |
hi i got a problem when try to use pointer and struct..somehow ive manage to compile my coding but the main prob is that the output is not what ive keyed in.. [CODE]#include <iostream> #include <conio> #include <string> #include <stdlib> void printtable(); void input(); void calculate (); void scorecard(); void … | |
Ok so i have this little problem, i have to find all the elements in an array that are duplicates ex:{1,1,1,2,2,3,4,5,6} 1 repeats it self 3 times and 2 two times things like that this is what i have so far... [CODE] static void Main(string[] args) { int contador = … | |
Hi so i'm working on a project in c#. I have hundreds of xml files and I need to extract 6 values from each of the xml files and somehow display them on an excel datasheet. Here is an example of the xml file: [code] <XAxisCalib> <Max>288.93</Max> <Min>-48.08</Min> <MaxS>200</MaxS> <DfTHt>0</DfTHt> … | |
I'm having trouble with my C++ assignment because when I run the program I can't type more than one word on the "Enter your street name" line or it won't work. My teacher said something about "getline" but he really lost me. Here is what I have. Please help! [code] … | |
![]() | Hello, i have made an attempt at this to show im not lazy, but this currently doesnt work, it would mean the world to me if someone could help me finish this code asap, thanks again. [QUOTE][B]NOTE:[/B] Im trying to make this into a DLL for one of my projects[/QUOTE] … |
Hello community, I am pretty new to c# and i have decided to use COSMOS to build a basic operating system, However, all my code compiles correctly but there is one problem, when i type shutdown, the system hangs, it does not shutdown and the white cursor continues flashing but … | |
I am attempting to use a WebBrowser control in C# to display a webpage. I would like my C# application to know when a Javascript function is called within the loaded webpage. Is there anyway to do this? I can't seem to find an event handler for it. | |
Am new to socket programming.Can you please help me with this issue I need to connect two computers which is already under some network using C#. After it gets connected I need to know the details of the "Task Manager" of the connected computer - (If any pogram/file is running … | |
I'm new here, but it looks like an awesome place to get some help. My assignment is to write a recursive function that determines the value of a unit of Pascal's triangle given the row and column, then use that to display the triangle with n number of rows. It's … | |
sir i have one json i want deserlize this json how will i do iam try out but "Type 'System.String' is not supported for deserialization of an array." error coming here is my code : in cs file [code] using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using … | |
Alright back with the same but different example problem but this time I think it requires some "formating" and knowledge of "escape characters". As a novice programmer this is the caliber of trouble I am going through lol. Does this need knowledge of escape characters as well ? ("\t") would … | |
Hello everyone, I'm not a very advanced programmer and here is my problem: I'm trying to write a hangman game and I want to use online dictionaries as database. I created a windows form application to do that. Is there a better option to achieve my aim? I could find … | |
Please, please please someone help me. This might sound a little pathetic but I cannot figure this out for the life of me, it compiles just fine but i get the complete wrong output. Here is all the code I have. The problem: Write an application a that calculate the … | |
I recently wanted to get involved in C++0x (Native, OS independent thread support?! Heck yes I want that!), and it seemed as though my compiler supports it. So, I added it in Code::Blocks, under Settings >> Compiler and debugger.. >> Global Compiler Settings >> checked "Have g++ follow the comming … | |
I have a WPF C# program where I attempt to delete certain characters from a text box at TextChanged event. Say, for instance, the dollar sign. Here is the code I use. [CODE] private void txtData_TextChanged(object sender, TextChangedEventArgs e) { string data = txtData.Text; foreach( char c in txtData.Text.ToCharArray() ) … | |
Hi Guys, I want to set background image for the MDI form at the runtime (form load) i tried this, [CODE] this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\Images\\OTS_mockup_slice.jpeg"); [/CODE] but its not working.... any idea Thanks in advance. | |
Hi All, First time asking so go easy :-) I am doing c++ a few weeks now, i am doing questions in Project Euler to hopefully improve my coding, But as you will prob see below i am still very new and "Nieve"... Question is: The prime factors of 13195 … | |
Hey does anyone know where i can find a list of projects like for school? | |
Hi every1 I'm working on my first visual studio and c# app ..... I wanna deploy my winform app (which contains sql database) and sql server express as one bundle... 1. I did a backup for my database . how to insert it into my app ? and what do … | |
[CODE] cout<<"What HTH level are you (1,2,3): "; cin>>hthLevel; switch(hthLevel){ case 1:out<<"Hand to hand level= 1"<<endl;break; case 2:out<<"Hand to hand level= 2"<<endl;break; case 3:out<<"Hand to hand level= 3"<<endl;break; default: cout<<endl<<"Incorrect"; }[/CODE] Need to know how to loop this so if 1,2 or 3 is entered it continues but if an … | |
Hi I'm new to this forum and I am looking for a little help. I was wondering if someone could provide some code that allows someone to enter a message into a comment box, hit submit, and then that message is sent to an email account. I also have two … | |
Sir, I want to click "Google Search" button of google.com in Internet Explorer api through C# code.Is it possible? | |
I have been looking at tutorials in regards to isNullOrWhiteSpace to validate user input of a string. but i am unsure how to initialise the method. This is just a code snippet and all i am trying to do is place this in a loop to ensure if user presses … | |
Hi, i was working on an application which is quite similar to winRAR or other compression software. at the moment i facing prob with the progress bar. my idea was that whenever i click on the button to compress the progress bar will load and ended when the compression complete. … | |
I have made a following program that will convert lower case letters in to upper case and upper case letters will remain same and that will be done Realtime (as character is typed). [CODE]#include<stdio.h> #include<conio.h> void main(void) { char ch; printf("Type a sentence: "); while (ch!='\r') { ch=getch(); if (ch … | |
[code] <%@Language=VBScript %> <!-- #include file = "connectOracle.asp" --> <%if trim(session("UserName"))<>"" then%> <% Response.Buffer = true SET con = server.CreateObject("adodb.connection") con.open "DSN=VTSDSN;UID=vtsplop;PWD=vts@123" set rs = server.CreateObject("adodb.recordset") set rsdest=server.CreateObject("adodb.recordset") rs.ActiveConnection = con Set ORACON = server.CreateObject("adodb.connection") ORACON.Open "Provider=MSDAORA.1;User ID=SAPVTS;password=VTSSAP;Data Source=prd;Persist Security Info=False" tdate = date() fdate = date()-1 VEHMOV=trim(request("VEHMOV")) trans_code = … | |
hi all can u suggest to me some of books for learning C# and cover every simple word in that language and easy to understand and can make me professional in it thanks in advance :) | |
just asking for assistance with the menu items as they are set to uppercase M, R, C, X in the case statements how can this be modified to accept 'm' or 'M' as valid input. [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace PracticalTest5 { class … | |
What polar coordinates are is explained [url=http://en.wikipedia.org/wiki/Polar_coordinate_system]here[/url]. I wanted to draw some polar functions myself, so I changed my [url=http://www.daniweb.com/software-development/csharp/code/217204]plotting class [/url] a bit and added a polar struct to a new project.. Just posted code for the Plot class and the polar point structure here. You can find an … | |
can one give me a link or code for forum. i am doing a project and i want to add a forum in my website so user can interact with other i want a perfect c#.net code and back end is sql server 2005 can any one help me pls? | |
hi this is my first qery here.i joined a software company.my stream is .net i am from a maths background,id dontknow any thing at allabout c and c++.i joined a crsh course in c and completed nearly 60%.what topics should i stress in c and c++ so that i can … | |
Hey Guys, I was just making a program with music running in the background and whenever I tried to run the .exe file of the program, the music wouldn't play. Extra Info: I'm running Windows 7 and Visual Studio 2010 Express. Here's my code if you need it...(beware: it is … |
The End.