No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
35 Posted Topics
Are you trying to overload your constructor logic with public int AA(int a, int b)? If so you do not need the int as this specifies a return type. However, if you are not trying to overload the contstructor you need to return an integer from that method. alternativly change …
Hi there, I am having some syntax and logical implementation problems with a really very simple requirment and I am hopeing someone can help point me in the right direction. The problem I am having concrens trignometric functions in 3d space and what I am trying to do is find …
Ok I am no way near as experianced as yourselves with Java, however somthing I am interested in is the dynamic creation of the JTextFields that you are performing. I have done this before in c# and do not see where you are naming the control. In C# each control …
The problem as i see it is that just before the else selection statment for envelop == 3 you have closed the previouse else if block but then got string answer;, try commenting it out and see if the error disapears, if so you need to look at where that …
Sorry to ask this but did you also add a refrence in the project as well as in eclips?
Hi, I have a problem, I have written a class, inside another class. No problem with that, but I have now come to develop a unit test for the outer class. The JUnit must be able to test the methods of the inner class as well as all other class …
Hi there, am only learning java, but I notice you have not imported the libraries, java.awt.event. I thought this was where the refrence to the action listner was held. If not please can you tell me how you got round it.
Hi there, please can some help with this very simple regex. I am coming from c# and trying to get up to speed quickly, so have been trying to create samples for my refrence, however can not get this to work [code] String aString = "0123"; Pattern intPattern = Pattern.compile("^[0-9]{3}"); …
Hi I am a little confused about interfaces. Can an abstract class inherit an interface, so that interface can be used in conjunction of a class derived from the adstract? eg A is an interface, B is an abstarcat class, C & D inherit from B but have different proerties. …
Hi I am slightly confused about interfaces for an inheritance structure. Firstly can anyone explain there purpose, secondly can anyone demonstrate there use. I have created an application that uses reflection to dynamically instantiate classes and invoke methods within those classes. During research for this app I cam accross interfaces …
Hi I am currently writing a PAYE system for a HND project, some of you reading this may have already helped with some of the questions I have posted, and I thank you for the help. However, I have stumbled upon an error that I can not understand. I suppose …
Hi, I have a question a bout a data bound data grid. The grid has 5 columns, the first of which is read only. I thought that setting the column to read only would prevent the user from being able to alter the cell value. However, it apears that I …
Hi, I have a small problem, I am trying to insert a new row into a batabase table using linq to sql. I have Microsoft publication on Linq but it was based on the beta of Linq and does not match the current version completly. I have a class P11Entry …
Hi I am woundering if anyone can help me please. I have a form that has been created during runtime. I can get the name of one control in the collection and want to access a number of other controls that relate to this, they all have a common denominator, …
Hi there, I have a question about Linq and casting from a var data type to list of a specific class. A.)Is it possible, I thought that as Linq was IEnum that it would be simple to cast from the var type to a specific type, but have tried <> …
Hi, I am hoping that someone can help. I am trying to validate and compaire date entries made by a user. The dates represent contract start and end dates. This has a one to many relation ship with a client table. A client can have one or more contracts. However …
Hi i am having alot of trouble understanding how I can triger an event when a bool value changes. I have a very vague understanding that i require a delegate to handle the event ???? and I need to add the event to the event listner with += ???? I …
HI, I am trying to construct a regEx pattern to match a UK tax code. The pattern i have created is "^(/BR{1}/|/D0{1}/|/NT{1}/)|^(([Kk]{1}[1-9]{1}[0-9]{2,3})|([1-9]{1}[0-9]{2,3}[LPTYlpty]{1}))" I thought this would match the codes as BR or D0 or NT or K followed by 3 or 4 digits or 3 or 4 digits followed by …
Hi there, I am hoping someone will be able to help me, I have a datagridview control bound to a linq data source on a parent page. The dataview has a select button col. When the user clicks the button I want to open a new page that will be …
Hi, I'm hopeing someone will be willing to help me with somthing that is probably quite simple. I'm trying to bind a combobox to a data table, however it is supposed to be a foriegn key field, as such I need the items list to be populated from a different …
Hi there, you raise an interesting topic. I am relatively new to programming, as such I see a direct correlation between logical problem solving games and programming. Chess for example has a limited number of opening moves, and how the game evolves depends on the events triggered by the players. …
Hi I am having a slight problem with dynamically listing the methods of a selected class. The code I have written is: [code] private void ListMethods(ClassA aClass, ComboBox cmbMethods) { Type type = typeof(Application35.ClassA); foreach(MethodInfo aMethod in type.GetMethods()) { cmbMethods.Items.Add(aMethod.ToString()); } cmbMethod.Visible = true; } [/code] There are a number …
Hi, I have I am trying to create a program for my lecturer, who has asked me to create an application containing a number of different class that all inherit from an abstract class. This has been completed and encapsulated, however in writting the application that utilises these classes I …
Hi, I hope some one can help me out. I am having difficulty returning the point location of an image control in a wpf app. The image is a child element of a canvas. The properties canvas.left and canvas.top have been set at design time. However I need to pick …
Hi I'm hoping someone can help, I am trying to populate an array with image boxes (or whatever the wpf equivalent is referred to as), but I can not figure out how to define the array to be able to access the properties of the controls. Previously, I have done …
Hi please can someone help? I have been pulling my hair out for days trying to understand how to open a XML data store in an application. I don't understand the basic principles, as i have opened it int a dataset using readXml, but then been unable to access any …
Hi all, I am trying to create an xml file and schema that can be oppened by a .net app. However when the app trys to read from the data set, nothing is being held. I think this may be due to an error in the creation of the xml …
Hi I am hopeing someone can help me with extracting and formating the time from an sql server datetime field. I have tried a number of different methods, all of which have returned a runtime error of 800a000d. The following are two methods that I have tried, yet I think …
Hi, I am hoping someone will kindly help me out. I am new to ASP and need to create a connection to an SQL server 2005 database. I have failed misserably at web so far and is my worst subject on the course that i am doing. I understand that …
Hi, i am having a bit of trouble condensing some basic drag and drop code and i am hoping that someone can help me. to reduce code i have created a subroutine to handle the proces, however i still have a large number of event handlers calling this process. I …
Hi all, I am hoping that someone will be able to point me in the correct direction. I am trying to print an error log (simple txt file) from a c# console application. I have created the txt file and can access and display the information caontained within it. However …
Hi i am having difficulty passing the contence of a struct to a class. I have constructed the class without any errors. However when i try to pass the struct with just its name i get a not declaired compiling error. I have no idea how i can do this …
Hi I am experimenting with VBScript and SQL and am unsure if the following code will actually work. I do not have access to IIS at present so I am unable to test it. I would be greatfull if anyone could just take a brief look at the code to …
Hi just a quick question regarding compatibility to other non MS OS. Is there a intermediate language compiler for other platforms such as Linux?
Hi, I am currently studying programing, and have become some what stumped with Visual studio 2003. I have written a number of application using the console, however currently i am trying to clear of text that has already been written to the console.....but can not find any command or code …
The End.
FallenPaladin