Forum: C# Sep 5th, 2009 |
| Replies: 3 Views: 690 |
Forum: C# Sep 5th, 2009 |
| Replies: 3 Views: 690 I want get a root of number in C#
what library i must to insert and what command solve it |
Forum: C# May 30th, 2009 |
| Replies: 1 Views: 372 Hi I wrote such code it works mostly perfect(you may use it)
but I don"t know how to add attributes to some TAGs for example I want to change Expire date to attribute of buyer
I want you... |
Forum: C# May 30th, 2009 |
| Replies: 2 Views: 271 |
Forum: C# May 30th, 2009 |
| Replies: 2 Views: 271 Need you help.
I want to use List and I don"t know how I make definition and fill it
Thanks
Sergey |
Forum: C# Jan 19th, 2009 |
| Replies: 3 Views: 302 I want to build one Form that is a Parent window
and two windows for child windows
but my problem is this a code .I glad to see your suggest for this problem
Sergey |
Forum: C# Dec 28th, 2008 |
| Replies: 3 Views: 585 I already find how to do it
:) |
Forum: C# Dec 28th, 2008 |
| Replies: 3 Views: 585 Hi, and happy hollidays to everyone, I start working with WinForms about a week and wonder how could I add a picture like a background to m Form. What kind of files C# can get(*.jpg,*.gif)
thanks... |
Forum: C# Dec 4th, 2008 |
| Replies: 2 Views: 340 [QUOTE=LizR;750021]String builder can have advantages when buidling up output. So instead of a ton of
s += titletext;
s += "\r\n--------";
etc
you can just do
sb.append(newtext);... |
Forum: C# Dec 4th, 2008 |
| Replies: 2 Views: 340 I discovered that there is a such class like StringBuilder
but I don't find any thing that convince me to use it.
Explain me it's advantage and disadvantage and if you gave some examples I like to... |
Forum: C# Nov 2nd, 2008 |
| Replies: 2 Views: 366 I have some code bellow and I get an exception what wrong with this code, I'm just started to study with section of OOP so maybe I made a stupid mistake :
static void Main(string[] args)
{... |
Forum: C# Oct 21st, 2008 |
| Replies: 5 Views: 1,809 thanks I think I get a last solution is a best one start with form-application |
Forum: C# Oct 21st, 2008 |
| Replies: 5 Views: 1,809 I couldn't find any information about that everyone do such things in WinForms
but it's really intresting me |
Forum: C# Oct 21st, 2008 |
| Replies: 5 Views: 1,809 I made project in Console are the any way change font style in it(and there is can I change size too?
Thanks Sergey |
Forum: C# Oct 20th, 2008 |
| Replies: 2 Views: 850 Thanks a lot LizR it's open me a door for a lot of options |
Forum: C# Oct 20th, 2008 |
| Replies: 2 Views: 850 I want use this option do I must know how to add DLL files ?
Thanks Sergey:idea: |
Forum: C# Oct 20th, 2008 |
| Replies: 13 Views: 900 There are a half a true in your words
but like you know there are no such books that have explanation about each keyword
(and I have not just one book) and explanation there forward mostly for... |
Forum: C# Oct 20th, 2008 |
| Replies: 13 Views: 900 "ithen you need to read more"
it's what I already done and after that I ask for help here
if I not mistaken it's purpose of this forum |
Forum: C# Oct 20th, 2008 |
| Replies: 13 Views: 900 yes i mde so and now it brought to me other
question and useful instruments
I discover that class can be abstract and
override
override I understood that one method use Parents same method... |
Forum: C# Oct 20th, 2008 |
| Replies: 13 Views: 900 No I know that C# work not like C++,
My class reach from one and his Parent byself child from another one,
II don't know why I can't see methods of my sealed class if methods are public ? |
Forum: C# Oct 20th, 2008 |
| Replies: 13 Views: 900 Thanks to all,
Yes I tried now to build one that reached from
two others and in Main() I get that it doesn't know about any method in it so I can use it |
Forum: C# Oct 20th, 2008 |
| Replies: 13 Views: 900 I asked in my studies build a "sealed " class and I don't really understand it's differents from regular class and what different in syntax it has
Thanks Sergey |
Forum: C# Oct 20th, 2008 |
| Replies: 4 Views: 479 |
Forum: C# Oct 19th, 2008 |
| Replies: 4 Views: 479 It's O.K. this thing I understand I mean syntax of building Constructors and call for Metgods of parents, I tried a couple things and here what I got :
public Name_of Chuld (type_of_variable ... |
Forum: C# Oct 19th, 2008 |
| Replies: 4 Views: 479 I built two different classes and I want that one class get inherit from another ,
but when I build Constructions Compiler throw me an Error.
I get to conclusion that i must use base function
so... |
Forum: C# Oct 19th, 2008 |
| Replies: 6 Views: 3,783 double num;
num = 2.89;
num = Math.Truncate(num);
Console.WriteLine(num);
I made simple tried and result I get 2 and not 3 like I wanted you gave me a... |
Forum: C# Oct 16th, 2008 |
| Replies: 3 Views: 664 Thanks I will try it.
Sergey |
Forum: C# Oct 16th, 2008 |
| Replies: 3 Views: 2,126 I advice you wrote initalization of random number out of class it helps not repeats same numbers (little bit)
static Random rand = new Random();
in that way you declare it
and use it in... |
Forum: C# Oct 16th, 2008 |
| Replies: 2 Views: 616 my english I know that not so perfect, I already wrote a lot of comments that you already know what i want to do, All i asked is this code wroten in right way or not and if you can suggest other... |
Forum: C# Oct 16th, 2008 |
| Replies: 2 Views: 616 Hi, again about DateTime method I get to some conclusionns and build a class of my problem that solve the last expired day of some product I get a day od today and number of month when product can... |
Forum: C# Oct 16th, 2008 |
| Replies: 1 Views: 518 I have a problem to solve . i have a product that has a date of published and i know what day is today by using DateTime s = DateTime.Now; how can i get a number from user to
get the day of... |
Forum: C# Oct 16th, 2008 |
| Replies: 4 Views: 831 I want just to prevent of entering wrong data from user of my program
I mean :
int num;
num="ssss";
this cause encapsulation and I want to prevent it
If somebody can put some code here... |
Forum: C# Oct 16th, 2008 |
| Replies: 3 Views: 664 I have some code bellow
enum Part ( center,north,south);
......
how can i to prevent from an user to enter a data out of range of this enum group.
I mean if he/she type 3 or 4
Thanks Sergey |
Forum: C# Oct 16th, 2008 |
| Replies: 6 Views: 3,783 I found a way with :
Math.Round(decimal type variable)
it works perfect with decimal variables do you know the same way what work with double ? |
Forum: C# Oct 16th, 2008 |
| Replies: 4 Views: 831 it's hard to understand it,
I don't know what to fill to Catch() parentness
and do i must use throw; |
Forum: C# Oct 16th, 2008 |
| Replies: 6 Views: 3,783 |
Forum: C# Oct 16th, 2008 |
| Replies: 4 Views: 831 i want some encapsulation problem
int num;
num=int.parse(Console.Readline());
here i have a problem if user enter a string i get encapsulation how can i solve it in easiest way
my friends... |
Forum: C# Oct 16th, 2008 |
| Replies: 6 Views: 3,783 I want to round number
for example number 2.8 to 3
and 2.4 to 2.5
how I made so in C#
I heard something about Math.Round function but it doesn't work properly
Thanks Sergey |