4,588 Topics

Member Avatar for
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
195
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
653
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
716
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 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 lianpiau
Member Avatar for lianpiau
0
416
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
146
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
256
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
691
Member Avatar for leo88
Member Avatar for leo88
0
178
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 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
121
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
166
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
300
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
836
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
184
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
87
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
254
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
335
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
237
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
573
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
109
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
157
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
156
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
181
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
89

The End.