8,298 Topics

Member Avatar for
Member Avatar for zifina

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

Member Avatar for zifina
0
237
Member Avatar for shyla

[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 …

Member Avatar for ddanbe
0
200
Member Avatar for salty11

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 …

Member Avatar for salty11
0
180
Member Avatar for Behseini

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 : …

Member Avatar for kvprajapati
0
664
Member Avatar for scriptkiddy

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: " + …

Member Avatar for scriptkiddy
0
718
Member Avatar for VilePlecenta

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 = …

Member Avatar for Momerath
0
7K
Member Avatar for Awilson089

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 …

Member Avatar for Awilson089
0
103
Member Avatar for kent5244

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 …

Member Avatar for kent5244
0
2K
Member Avatar for Cece Skies

receiving this error: error C2011: 'Placement' : 'class' type redefinition please help! this is due soon.

Member Avatar for Fbody
0
31
Member Avatar for lianpiau
Member Avatar for lianpiau
0
420
Member Avatar for parth09
0
55
Member Avatar for @VaishaliR

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 …

Member Avatar for abelLazm
0
74
Member Avatar for ashley11

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 …

Member Avatar for Saikalyankumar
0
149
Member Avatar for shyla

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 { …

Member Avatar for shyla
0
258
Member Avatar for shack99

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 …

Member Avatar for shack99
0
701
Member Avatar for leo88
Member Avatar for leo88
0
182
Member Avatar for markfw

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

Member Avatar for rubberman
0
86
Member Avatar for leo88

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..). …

0
53
Member Avatar for sha11e

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 …

Member Avatar for sha11e
0
3K
Member Avatar for manugm_1987

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 …

Member Avatar for Momerath
0
123
Member Avatar for lianpiau
0
63
Member Avatar for C#mark

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. …

Member Avatar for C#mark
0
2K
Member Avatar for lianpiau

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 …

Member Avatar for abelLazm
0
169
Member Avatar for CrazyProgrammer

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 …

Member Avatar for Momerath
0
169
Member Avatar for C#ENTHU

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 …

Member Avatar for C#ENTHU
0
310
Member Avatar for izabwlla

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 …

Member Avatar for vegaseat
-1
839
Member Avatar for taumang

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 …

Member Avatar for gl7
0
3K
Member Avatar for manugm_1987

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 …

Member Avatar for Momerath
0
189
Member Avatar for AliRaiz

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 …

Member Avatar for mike_2000_17
0
521
Member Avatar for ispiro

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?

Member Avatar for Creelers
0
91
Member Avatar for jlivvers

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 …

Member Avatar for jlivvers
0
260
Member Avatar for leo88

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 …

Member Avatar for leo88
0
338
Member Avatar for Ksadler818

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 …

Member Avatar for WaltP
0
195
Member Avatar for taumang

[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<<" …

Member Avatar for madifemo
-1
235
Member Avatar for gladtoplay5

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 …

Member Avatar for Fbody
0
341
Member Avatar for phoenix911

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 …

Member Avatar for phoenix911
0
241
Member Avatar for gladtoplay5

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 …

Member Avatar for gladtoplay5
0
281
Member Avatar for ashley11

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 …

Member Avatar for CsharpChico
0
576
Member Avatar for VasquezPL

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!

Member Avatar for VasquezPL
0
112
Member Avatar for leo88

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, …

Member Avatar for leo88
0
160
Member Avatar for CrazyProgrammer

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 = …

Member Avatar for CrazyProgrammer
0
158
Member Avatar for Climber Ty

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: …

Member Avatar for Climber Ty
0
158
Member Avatar for brandonm

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 …

Member Avatar for brandonm
0
159
Member Avatar for apanimesh061

[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 …

Member Avatar for ddanbe
0
183
Member Avatar for apanimesh061

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

Member Avatar for ddanbe
0
92
Member Avatar for bhavyajyothinat

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 …

Member Avatar for abelLazm
0
2K
Member Avatar for Rakesh Mall
Member Avatar for Carrots

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 …

Member Avatar for Carrots
0
2K
Member Avatar for helpplease234

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 …

Member Avatar for Fbody
0
301
Member Avatar for shameemmMbstu

[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.... …

Member Avatar for Momerath
0
2K

The End.