8,298 Topics
![]() | |
how to save the state of radio buttons on application exit.how to get or set check state of radio buttons of a form,from another form.pleasssssssssssssssssssssssssssss help me with dis..its very urgent.i am new to c sharp.i will be really very grateful. :) thank you | |
[B]i am getting this error can some one give me some directions[/B] Error 1 'ShapesDemo.Rectangle' does not contain a constructor that takes 0 arguments [CODE]using System; namespace ShapesDemo { abstract class GeometricFigure { static void Main(string[] args) { Rectangle rectangle = new Rectangle(8,8); Square square = new Square(9,7); DisplayFigureResults(square); Triangle … | |
im trying to get this function to show the numbers that are not on the list in the input file, i've written this and it doesnt work, i know theres sometihng wrong with it but im not sure what it is? or how i can fix it to make it … | |
Hi Guys, I am trying to make a connection with Oracle 11g which is installed on a server 2008 BUT have problems with the ConnectionString. Could you please let me know how I set a correct connection String while I have parameters like these: Database name: GISData Server Name : … | |
I am making a C# program that talks to people using AIML, it is using networking so it can talk to multiple people at once. Here is my get message handler: [CODE] private void MessageRecieved(UserMessage message) { if (message.getMessageType() == Enumerations.UserMessageType.incomming_text_message) { conversationHTML += online[message.getUsername()].FriendlyName + " says: " + … | |
Hi all, Ive been trying to find a seek method for StreamReader. I want to be able to reverse the file buffer by a couple characters at a time. How I have everything set up. [CODE] private void SortThread() { string[] lines; string line, totalLine = null; char[] fileInput = … | |
Hi, I have a program which needs to accept a date, it can only accept under 30 days, and the entry has to be over 0 My problem is that it accepts anything, it doesnt make sense because i have used the exact layout on other bits of code which … | |
Hi, I have some basic knowledge in programming however it is not enough to solve the problem I faced currently. So I would like to ask for the pros for guild and help. I have attached the print screen of my program's GUI 1)From the GUI, the combobox next to … | |
receiving this error: error C2011: 'Placement' : 'class' type redefinition please help! this is due soon. | |
who can help?? I want display window form when user double click node in treeview. | |
I have a print button & when i click on that print button, i.e. [B]every time[/B] while printing, the printer opens the printer settings it takes paper size letter by default. I want to adjust that paper size to a defined size by code & it should print automatically. I … | |
i have a problem to do calculation part. i need to do 3 calculation part. Now my problem is , my answer for conf and lift loop many times. may i know how to correct it? below are my coding: [CODE] string b = txtTotalItems.Text; double e = Double.Parse(b); double … | |
i am trying to solve this problem i dont know which object i need to refer to in my main method [CODE]using System; namespace ShapesDemo { abstract class GeometricFigure { static void Main(string[] args) { } public int height; public int width; public readonly double area; public int height { … | |
Hey everyone, I have an Xml file in which I want to compare elements; [CODE] <Students> <Student id = "a"> <Name>*** </Name> <Age>17 </Age> </Student> </Students> <Students> <Student id = "b"> <Name>*** </Name> <Age>17</Age> </Student> </Students>[/CODE] if student "a" is of the same age as "b" I want to display … | |
hi, anyone know how to fix the inputs in a textbox must be a number ? | |
Hi. When I was looking at the header files of c library such as malloc.h, I saw that it defines some functions inside the struct (Function Pointer) and other functions outside, so my question is, why sometimes people defining function inside the struct and sometimes outside? Thanks -- Mark | |
Hi, i am confused about some text box problems, as below: [CODE] double v3; foreach (String cvt in sortList2.Keys) { if (!(sortList8.ContainsKey(cvt))) { sortList2.TryGetValue(cvt, out v3); sortList8.Add(cvt, v3); sortList8[cvt] = (v3 * 100 / textBox2.Lines.Length); } } [/CODE] In codes above, v3 is double typed values like 1,2,3,4..(not 1.1, 2.3..). … | |
When writing this: [CODE] #include <iostream> #include <iomanip> using namespace std; int main() { float number = 2.12345; cout <<fixed <<setprecision(3) <<number; return 0; } [/CODE] I get 2.123 If I then cout another float variable that I want all decimal numbers at, and not setprecision(3)...... How do I do … | |
Hello everyone, Is it possible to use controls of other applications using c#? I mean for example i run realplayer music player or any other application. Now is it possible to access file menu or edit menu or tools of these application using c#. i.e on a button click i … | |
who know code to link form when double click node in treeview? | |
I have a batch file that sets JAVA_HOME, PATH and CLASSPATH and calls a jar file. The last line in the batch file is "java -classpath test.jar test %1". When I run the batch file from the command line, using a paramater, the parameter displays in the console as expected. … | |
I design a treeview for link to each form in MDIparent form. I'm also design a form for permission. when administrator check checkbox, then user can login to this form else the node of treeview will enable=false. then user cannot go to this page. 1. I wan know how to … | |
Hi, I was wandering if someone could tell me how i would go about this, or at least point me in a direction? For a program that I need to develop, it need to perform a set of operations on a specific set of task. However each task is similar … | |
Dear All, Data comes to my serial port every 6 seconds. My application is capturing the data @ 1 data/6 seconds initially, properly and converting it into graphs. But as the time proceeds the capture rate becomes @ 2 data/12 seconds and again after some time @3 data/18 seconds. At … | |
I've got a small bit of code I need to convert to C#. However my experience with C# is very very limited and a simple python program like the one I'm trying to convert is beyond my experience in C#. If anyone knows of any converters or is willing to … | |
this program does not read display smallest and largest values in order [ICODE]#include<iostream> using namespace std; int main() { int sum; int product; double average; int x,y,z; int largest; int smallest; cout<<" Enter Three Integers of your Choice "<<endl; cout<<" *********************************** "<<endl; cin>> x >> y >> z; cout<<endl; smallest … | |
Can anyone please help me in finding out whether the below code causes memory leak or not. If it doesnt cause leak wat modification i can do to make it leak. Thank You Here is the code in FORM1 [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using … | |
Implement a class Person with two fields name and age, and a class Car with three fields: (1). the model, (2). a pointer to the owner (aPerson*), (3). a pointer to the driver (also a Person) Write a program that prompts the user to specify people and cars. Store them … | |
Calling “paint” should be by: [CODE]System.Diagnostics.Process.Start(@"C:\Windows\System32\mspaint.exe");[/CODE] Am I right? What’s the minimum code around it needed to make it work in a windows form application? | |
Hi I have a c# console app that calls some access 2007 queries. One of these queries throws an error "Undefined function 'MonthName' in expression". I understand that some functions that are available in VBA cant be called from c# and if i comment out the 'monthname' function the call … | |
hi, i have a question about string. [code] string a = "1 2 2 4 5"; string b = "2 5"; if (a.Substring(b)) // or need use contains? { Console.WriteLine("yes"); } else Console.WriteLine("No"); } [/code] I want to check that if "2 5" is in a, then it will print … | |
Below is my home work problem. I don't want the answer, I am just looking for an example of how I can count the occurance of each number in the array numbers and assign that value to the count array. Thanks for your help!!!!!! *---------------------------------------… * Sample Output: *** start … | |
[ICODE]please forward the function to calculate the smallest and largest without using (if,while else) statements Input three different integers: 13 27 14 Sum Average Product Smallest Largest 54 18 4914 13 #include<iostream> using namespace std; int main() { int x,y,z; cin>>x>>y>>z; cout<<"the sum is ="<<x+y+z<<endl; cout<<" average is ="<<(x+y+z)/3<<endl; cout<<" … | |
I am currently working on a program that takes one measurement of a circle and then gives the rest although i came across a problem while trying to make it loop back if you input an invalid number and my compiler keeps saying i have an error with were my … | |
Howzit, I need some advice on how to go about doing this little side project. Theres a website that uses xml feeds to populate the whole page (i dont care if thats good or bad), I can access these feeds when I'm logged in, but as soon as I'm logged … | |
For an exercise we are supposed to: Write a C++ program that uses three user-defined functions (counting main () as one) and produces the following output: Three blind mice Three blind mice See how they run See how they run One function, called two times, should produce the first two … | |
i have 1 2 : 3 , now i have to remove the ":" , after that need split it . after split, my expected output is shown below: 1 2 3 1 2 3 may i know how to remove the ":" and split it? hope anyone can help … | |
Dears, I have a problem with belows code: [CODE]mySearcher.Filter = "(&(objectClass=user) (|(cn=" + objectName + ")(sAMAccountName=" + objectName + ")))";[/CODE] i receive errors: NEWLINE IS CONSTANT. Can you tell me whats wrong with that code? THX in advance! | |
hey, i have 2 listboxs (listbox1 and listbox2), both the listboxs contains output as following: listbox1 1 2 1 4 1 5 1 2 4 2 4 5 listbox2 1 2 2 4 5 1 3 4 5 I wants to compare the 2 listboxs, for each line of listbox1, … | |
Hey, was wandering if somebody could help we with some classes and objects, I haven't done c# in a while and i can't remember. Could someone tell me what String falls under in c#, ie allowing one to write somthing like [CODE] static void Main(string[] args) { string s = … | |
Okay here's what I have so far... The error I receieve is below... The HCP Header File [CODE] #ifndef HEALTHCAREPROVIDER_H #define HEALTHCAREPROVIDER_H #include "stdafx.h" #include <string> #include <iostream> using namespace std; class HealthCareProvider { protected: string fullName; string profession; int yearsExperience; string companyType; string apptAvail; double bill; double fee; public: … | |
Hi all, I'm having an issue with updating an XML that already exists. I have no problem creating an XML but when it comes appending to the end an existing xml nothing happens. I dont get any error messages so I'm not sure what I'm missing, the first part where … | |
[CODE] using system; public class Hello{ public static void main(){ console.WriteLine("Hello C# World :)"); } } [/CODE] This is code I just wrote and ran it as hello.cs ..... I got this error. [CODE] C:\learncs\csc/nologo/out:hello.exe hello.cs 'csc' is not recognized as an internal or external command, operable program or batch … | |
Most people at my college say that Java is easier than C#. Is it true ? On the internet mostly I see are Java apps. !!! Could anyone anyone tell me that what are the applications of C#, 'cause I am planning to a project on this language. Thanx | |
i need to add a column in gridview.. the column should contain image of the person..and the name of the image is to be taken from database. eg: table:tbl_Details columns: Picture:ee.jpg Name:abcd Age:20 Address:"abc street" the picture ee.jpg is saved in a folder "Images" in the Website. could someone help … | |
Hi, I am new to C# and Forms/GUIs. Basically I am trying to pass a value in a textBox to my programs program.cs file where I can apply my programs logic, but I'm stuck with how to do this. To get started all I am making is a form which … | |
Need a little help, I'm trying to run a program that asks the user to enter an integer between 1-50. If given a number between 1 and 50 then echo number then add all integer between 1 and integer entered if user enter an integer not between 1 and 50 … | |
[B]i have developed a c# project now i have to make it an Exe so that i can install it on any system and run it... the bin which contains the exe only runs in the system which has .net installed and does not executes where there is no .net.... … |
The End.