blah blah blah is here! blah blah » Close

0
votes
1 answers

Problem In Returning Value in C# [Method]

I'm creating a game in which I've used Random number system and user number to match.. simple logic this is.. here, i've to give +5 marks to the user if he/she is right.. in txtPoint else, if wrong then -1 from the score. I've made this ...

0
votes
1 answers

WPF C# method hiding

I have a custom window that inherits from Window (obvisouly). I specifically want ShowDialog to be called and Show to be hidden so it can't be called. This is how I have it setup [code]class CustomWindow : Window { new private v ...

0
votes
1 answers

Method to compact

q12
349

I have this method and I want to make it shorter. :) I can do it off course but I want to see how you do it. Compact ifs; and others if they are necessary. thank you. [code] void changeOriginalName() { // int ...

1
votes
1 answers

Interaction between classes - static method?

Hello all! Im writing a win32 program in C# where the user may do some change in configuration of the program wich is then saved to a file. He can do this from a windows form within some class wich is not the main class. I then want the ...

-1
votes
1 answers

C# calling method problem

Hi everybody. I have 3 classes namely SchoolCls, PrincipalCls, TeachersCls in a Class Library called CLsLib. School [code]namespace ClsLib.Ed { public class SchoolCls { public int subtract(int firstNum, int secNu ...

Feedback