4,439 Posted Topics

Member Avatar for Walther1366

How would you figure out what year 89 stands for? 89 BC? 1689? 3089? Well the method that does the string conversion can't either. So the best the method can come up with is is to use two zeros. Hence 0089 if you initialise the year of a date with …

Member Avatar for Walther1366
0
180
Member Avatar for varunme

Hi, varunne, welcome at Daniweb :) [url=http://www.daniweb.com/software-development/csharp/code/270748]This snippet[/url] may give you an idea.

Member Avatar for ddanbe
0
195
Member Avatar for saneeha.nust

You don't have to use [B]DateTime.Now.ToShortDateString().ToString();[/B] use [B]DateTime.Now.ToShortDateString();[/B] And for your problem use :[B] DateTime.Now.ToString("dd-MM-yyyy");[/B]

Member Avatar for saneeha.nust
0
232
Member Avatar for Ungodlyrich

You want to print a table with the powers of 2 and you want your integers to be signed and unsigned. You're making it to complicated I think, use [B]\t[/B] to separate your output. Or use something like printf("|%d |%u |",x,y);

Member Avatar for newlearnerIV
0
9K
Member Avatar for suneye

Can something like [url=http://stackoverflow.com/questions/6173946/how-to-add-datagridview-elments-into-a-table-in-sql-server-database]this[/url] do the trick?

Member Avatar for suneye
0
148
Member Avatar for suneye
Member Avatar for apals

Maybe you can find some ideas here: [url]http://www.daniweb.com/software-development/csharp/code/217185[/url]

Member Avatar for apals
0
243
Member Avatar for tontano

Hi tontano, welcome :) You could probably use some ideas from [url=http://www.daniweb.com/software-development/csharp/code/217265as]this snippet[/url] as well.

Member Avatar for ddanbe
0
654
Member Avatar for Falcon25

[url]http://msdn.microsoft.com/en-us/library/2a723cdk.aspx[/url] [url]http://msdn.microsoft.com/en-us/library/6373h346.aspx[/url]

Member Avatar for Falcon25
0
148
Member Avatar for Andy90

You could store your settings in the application resources and read them back in. You could do some Serialization. One question : check your if statement. What if all 3 checkboxes are checked? If that is not the behaviour you want, use radiobuttons instead.

Member Avatar for Andy90
0
180
Member Avatar for student_learner

Search for fuzzy logic in C# on the web. Example: [url]http://www.codeproject.com/Articles/4667/Fuzzy-Logic-Dot-Net[/url]

Member Avatar for skatamatic
0
368
Member Avatar for mani-hellboy

I have a copy of [B]Pro LINQ: Language Integrated Query in C# 2008 by Joseph C. Rattz, Jr.[/B] You also have [B]LINQ Pocket Reference (Pocket Reference (O'Reilly)) [/B]

Member Avatar for thines01
-1
227
Member Avatar for Skeldave

db is a variable, not a type. You can have a Table of DataClassesDataContext, not a Table of db.

Member Avatar for ddanbe
0
150
Member Avatar for frogboy77

If you say a post is good or bad, you always have to why. The poster of the post can probably find ways to improve himself with the comments given.

Member Avatar for zeroliken
0
104
Member Avatar for ddanbe

While surfing the web I got to this site: [url]http://en.wikipedia.org/wiki/Fourier_series[/url] “Hey, I why not write something like this in C#!” The rather scary looking formulas did not withhold me to start coding (see below Fig. 1 and Fig. 2) The formula from Fig. 2 is hidden under one of the …

Member Avatar for skatamatic
0
3K
Member Avatar for Amiet Mhaske

You can read this on Google:[url]http://books.google.be/books/about/C_network_programming.html?id=mHT-_P_jKQcC&redir_esc=y[/url] but I still think it is better to buy one and have it handy at your side.

Member Avatar for syd919
0
168
Member Avatar for surajrai

[QUOTE]System.Object ToString() method defined as abstract method [/QUOTE] Incorrect information, read this:[url]http://msdn.microsoft.com/en-us/library/system.object.tostring.aspx[/url]

Member Avatar for darkagn
0
548
Member Avatar for codechrysalis

On line 16 userTotal should start with being 0, not 1. On line 17 Percentage will always equal 100. Can you use arrays?

Member Avatar for codechrysalis
0
239
Member Avatar for Kalle21

Maybe this might also help:[url]http://www.daniweb.com/software-development/csharp/code/371819[/url]

Member Avatar for ddanbe
0
100
Member Avatar for Twistar

Perhaps this will help you out: [CODE=C#]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Enumtest { class Program { public enum KortVerdi { To = 2, Tre = 3, Fire = 4, Fem = 5, Seks = 6, Sju = 7, Åtte = 8, Ni = 9, Ti = …

Member Avatar for Twistar
0
282
Member Avatar for jackbauer24

[B]return [/B]may be used in void methods, but may as well be omitted. [CODE=C#]public void TestMethod() { MessageBox.Show("This is a void method that shows a message and returns nothing"); return; // may be omitted } // use: TestMethod();// will show a message[/CODE]

Member Avatar for EBS.VivekGupta
0
196
Member Avatar for andur92

The methods you mention are or can come from the StreamReader class. Look them up to see what they do on MSDN [url=http://msdn.microsoft.com/en-us/library/system.io.streamreader.aspx]here[/url]

Member Avatar for kamilacbe
0
189
Member Avatar for wissam.ashkar

Send an email to Telerik with your question. I believe they are in a better position to answer it.

Member Avatar for mani-hellboy
0
133
Member Avatar for Johan__

Your code seems to be all messed up. You got to use an Array or better a List to store your inputted numbers Write an input loop for that. Then loop trough your array or list and sum all the numbers.

Member Avatar for mani-hellboy
0
94
Member Avatar for Lowchernhwee

Why do you use CreatGraphics on line 56 of your code? The PaintEventArgs parameter of your paint handler gives you one for free! It is called [B]e.Graphics[/B].

Member Avatar for skatamatic
0
2K
Member Avatar for creative_m

On a screen the x coordinate moves from left to right. The y coordinate moves from top to bottom, so you could say it is rotated by 180°

Member Avatar for ddanbe
0
144
Member Avatar for ocamsrazor

Seems to me like you are an absolute novice. Can you do the following: Start a forms app. In the designer put a button and a label on the form. Let the label show "Hello world!" after a click on the button. Success!

Member Avatar for lxXTaCoXxl
0
378
Member Avatar for lxXTaCoXxl

Other MSDN items that may clarify some things: [url]http://msdn.microsoft.com/en-us/library/ms173149(v=VS.80).aspx[/url] [url]http://msdn.microsoft.com/en-us/library/ms173156(v=vs.80).aspx[/url] [url]http://msdn.microsoft.com/en-us/library/cc713620.aspx[/url]

Member Avatar for lxXTaCoXxl
0
249
Member Avatar for galhajaj

When you use the short version[CODE=C#] public int MyVar { get; set; }[/CODE] The C# compiler is smart enough to work this syntax out to the full version. With a sectretly generated field variable. You use it for simple properties like [B]color [/B]etc. You just have to set or get …

Member Avatar for ddanbe
0
217
Member Avatar for vimit

What is the size of your exe file? What are your compter specs? How many other apps are up and running?

Member Avatar for vimit
0
238
Member Avatar for srm2010

When printing , somehow you get something like System.Drawing.Printing.PrintPageEventArgs e This e parameter has a Graphics object. Draw lines in it and draw the text of your TextBoxes in it. It is just like drawing in a form, but instead the drawing will appear on printer paper. Success :)

Member Avatar for kvprajapati
0
82
Member Avatar for abelLazm

Hmmm, I wonder ... So if I have a textfile consisting of 26 characters, the alphabet for example, I could reduce its size by 97% of 26, being 25.22??? So I could zip all the information of the alphabet in less than 1 char?

Member Avatar for skatamatic
0
872
Member Avatar for galhajaj

In such situations you better handle it completely programaticaly. The same situationarrises if you want to handle 100 or more buttons via the designer... See how 1 Panel is handled in code (designer.cs file etc.) Copy that code and make an array or List of Panels and set all the …

Member Avatar for ddanbe
0
137
Member Avatar for dr_iton

To avoid validation and problems with it, it is better to use a DateTimePicker on a form, to fill in a date.

Member Avatar for dr_iton
0
163
Member Avatar for ddanbe
Member Avatar for ddanbe
0
1K
Member Avatar for shaun.b
Member Avatar for behemothdave

Here are two snippets, I posted here, that may be adapted to your specific needs. [url]http://www.daniweb.com/software-development/csharp/code/217265[/url] [url]http://www.daniweb.com/software-development/csharp/code/217310[/url]

Member Avatar for behemothdave
0
199
Member Avatar for daitkarsachin

Hi Sachin, welcome on DaniWeb. Be it Java or C#, do it in the language you feel most comfortable with. For me this would be C# :) Google speech or voice recognition: lots of things out there.

Member Avatar for manjumysore.k
0
245
Member Avatar for Qusto
Member Avatar for MastAvalons
1
122
Member Avatar for jemz

You could use any texteditor like Word or WordPad. But I think most people use Visual Studio. I do. :)

Member Avatar for jemz
0
132
Member Avatar for Ehtesham Siddiq

The code editor in Visual Studio is a marvelous thing, but it is not a text processor like Word.

Member Avatar for lxXTaCoXxl
0
483
Member Avatar for sling blade

This is how I defined the multiply operator in my complex struct: [CODE=C#] /// <summary> /// Complex multiplication operator facilitates multiplication of two complex numbers. /// Note that overriding this operator automatically overrides the *= operator as well. /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <returns></returns> public static …

Member Avatar for ddanbe
0
198
Member Avatar for sat21091

Your abc click handler would loo something like [CODE=C#]private void abc_Click(object sender, EventArgs e) { //code here }[/CODE] Now sender.Name will give you something like "bij"(so extract the i and j from there), you could also use the Location property in this case or the Tag property, to do what …

Member Avatar for skatamatic
0
200
Member Avatar for lxXTaCoXxl
Member Avatar for ddanbe
0
514
Member Avatar for superjj

Daniweb has a search function, I typed [B]C# sending data between forms[/B] clicked the serch button and got lots of answers. You will surely find what you are looking for.

Member Avatar for Philippe.Lahaie
0
301
Member Avatar for Dorayaki

Daniweb has a search function, I typed [B]C# sending data between forms[/B] clicked the serch button and got lots of answers. You will surely find what you are looking for.

Member Avatar for Dorayaki
0
184
Member Avatar for seriousgeek

This seems rather simple. C is written in an English like syntax. If you want to talk and write C code, use the syntax etc. Chinese is written in a Chinese like syntax. If you want to talk and write Chinese, use the syntax etc. Never heard of a person …

Member Avatar for amaithianantham
0
423
Member Avatar for deucalion0

If you are more used to Pascal type programing languages you could speak of procedures or subroutines. Meaning functionality done without returning a value. A function normally always returns a value. So in C-like languages [B]void [/B]is used to handle this. ArrayList is a list of any object you like. …

Member Avatar for deucalion0
0
142
Member Avatar for Momerath

THanks for the info Momerath, but if there were any upgrades to C#, would they not have mentioned it separately?

Member Avatar for Pjieter
1
336
Member Avatar for ddanbe

When you want to draw something on a form you need a Graphics object. But a Graphics constructor isn’t public and if that is not enough the Graphics class is also sealed! This means you can’t create a Graphics object via the new keyword nor can you derive from the …

Member Avatar for skatamatic
0
4K

The End.