4,439 Posted Topics

Member Avatar for zinnqu
Member Avatar for lxXTaCoXxl
Member Avatar for lxXTaCoXxl
0
80
Member Avatar for Helpmeicantcode
Member Avatar for Mitja Bonca
0
139
Member Avatar for cooldj

Don't panic! You are on a right track. Read your assignment carefully. Example: Create a RaceCar object on line 12 of your code write: [COLOR="Green"]RaceCar myCar = new RaceCar();[/COLOR] You should remove line 89 etc. out of the constructor and use them in Main. Not every racecar will be named …

Member Avatar for cooldj
0
148
Member Avatar for galhajaj

You could set the tab order or you could fill in a Tag field. Perhaps you could assign a number to each Square? You could extract a number from the Name? Many possibilities. Remember the formula is i*8+j. Have a look at the last post in this thread: [url]http://www.daniweb.com/software-development/csharp/threads/363377[/url]

Member Avatar for galhajaj
0
151
Member Avatar for kimkim0513

It still does! Put sqrt(n) in a variable and test the variable in the for loop. That way you avoid the overhead of calling the sqrt function too much.

Member Avatar for TrustyTony
0
251
Member Avatar for Azurit
Member Avatar for Azurit
0
233
Member Avatar for Youg

Your comment in your code is a bit unclear. But everytime you click your next-button you should call [B]generator.Next(3, 15); [/B]two times and convert to a string and fill the text of the labels with what will be a random number between 3 and 14 in this case.

Member Avatar for Youg
0
727
Member Avatar for Youg

Hi Youg, welcome :) The simplest way to add an int to a string goes something like this: [B]MyString + MyInt.ToString();[/B] In the code snippet section here you will find different topics that handle your first question. Happy searching and happy computing!

Member Avatar for Youg
0
201
Member Avatar for xanawa
Member Avatar for xanawa

Starting with Vista the property CalendarForeColor does not always seem to work, look here: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker.calendarforecolor.aspx[/url] I guess it's the same for the MonthBackColor.

Member Avatar for xanawa
0
288
Member Avatar for computerbear

I think, what I can make up out of your question is: Set the Text property of your TextBox in the Click event handler of your "Press me" button.

Member Avatar for computerbear
0
2K
Member Avatar for abelLazm

Used Google with this search string [COLOR="Green"]use C# to make dll[/COLOR] Think you will find what you need there.

Member Avatar for abelLazm
0
298
Member Avatar for jmurph333

Why not use a simple timer? [CODE=C#]namespace WindowsFormsApplication1 { public partial class Form1 : Form { Timer myTimer = new System.Windows.Forms.Timer(); public Form1() { InitializeComponent(); button1.BackColor = Color.DimGray; myTimer.Interval = 1000; // Tick every sec myTimer.Enabled = false; myTimer.Tick += new EventHandler(TheTimerTicked); } void TheTimerTicked(object sender, EventArgs e) { button1.BackColor …

Member Avatar for jmurph333
0
130
Member Avatar for johnt68

Since when is a card number an integer? What would you calculate with it? Leave it as a string.

Member Avatar for johnt68
0
140
Member Avatar for vincezed

Save does normally what it says: [B]save[/B]. It's like you would say to an iDoor (a smartDoor :) ) Door [B]Open[/B] and the door closes... That would be rather weird don't you think?

Member Avatar for vincezed
0
127
Member Avatar for virendra_sharma

The sort method code may be different depending on the class were it belongs to. I don't know and I really don't care very much, as long as it does the job! Also have a look at this excellent snippet : [url]http://www.daniweb.com/software-development/csharp/code/351309[/url]

Member Avatar for virendra_sharma
0
176
Member Avatar for abelLazm
Member Avatar for missc

Use [url=http://msdn.microsoft.com/en-us/library/cwbe712d.aspx]this MSDN link[/url] to print the Text property of your Labels.

Member Avatar for missc
0
112
Member Avatar for xanawa

This is an overview of date-time formats: [url]http://www.csharp-examples.net/string-format-datetime/[/url]

Member Avatar for xanawa
0
216
Member Avatar for c#Programmer

Did you set the DropDownStyle property correctly? [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.comboboxstyle(v=VS.90).aspx[/url]

Member Avatar for Mitja Bonca
0
170
Member Avatar for xanawa

Nope! [CODE=C#]DGV.TopLeftHeaderCell.Value = "MyTitle"; DGV.TopLeftHeaderCell.Style.BackColor = Color.AliceBlue; //etc[/CODE]

Member Avatar for xanawa
0
138
Member Avatar for xanawa

Just use DrawString and draw the Text of the Label and the TextBox with a calculated position under the DataGridView.

Member Avatar for xanawa
0
178
Member Avatar for moose333

You could use the modulo operator (%) to extract a particular column. Like [B]i % 6[/B] would give you columns from 0 to 5. Also consider using a list of Point structures to store your coordinates.

Member Avatar for ddanbe
0
697
Member Avatar for judithSampathwa

You could write your data to a text file and read that back in to excel or google and find something like this: [url]http://www.codeproject.com/KB/cs/WriteDataToExcel.aspx[/url]

Member Avatar for arjunpk
0
351
Member Avatar for spunkywacko

Change [B]private string[] myWords = new string[4]; [/B]on line 9 into [B]private List<string> myWords = new List<string>();[/B]

Member Avatar for spunkywacko
0
96
Member Avatar for moose333

Try to rework this snippet: [url]http://www.daniweb.com/software-development/csharp/code/217204[/url]

Member Avatar for moose333
0
863
Member Avatar for guilt99

Perhaps MS sees no point in it doing so. [url]http://www.microsoft.com/maps/[/url]

Member Avatar for ddanbe
0
174
Member Avatar for david59

Let the user input his string, then use the ToCharArray method of the string class.

Member Avatar for ddanbe
0
113
Member Avatar for unclepauly

Set the SmootingMode of the Graphics object to AntiAlias or HighQuality. Like so: [B]g.SmootingMode = System.Drawing.Drawing2D.SmootingMode.HighQuality;[/B]

Member Avatar for jayantpaliwal
0
710
Member Avatar for VibhorG

Hi VibhorG, welcome to DANIWEB! If you occasionally want to draw a math formula you can use the Paint or OnPaint of the form for instance to draw whatever you want. Else, it is perhaps better to use a tool for it. This site uses TeX to do such things, …

Member Avatar for ddanbe
0
172
Member Avatar for Joey_Brown

Here is how you could move a rectangle: [url]http://www.daniweb.com/software-development/csharp/code/217413[/url] For a start event you would need a Timer. Don't know how you want to move your button, but the Location property might give you a hint.

Member Avatar for ddanbe
0
110
Member Avatar for c0ld sn1ff3r

Perhaps this can serve as a guidance: [url]http://msdn.microsoft.com/en-us/library/ms379571(v=vs.80).aspx[/url]

Member Avatar for ddanbe
0
759
Member Avatar for guilt99

Hi, guilt99! Welcome here! :) It is of little use to try to produce the most beautifull graph in the world, if you are not sure about the data! Unless you work in the advertising bussiness or something, where a flashy graph is often more important than the data.

Member Avatar for ddanbe
0
202
Member Avatar for ChrisHunter

Try this method: [url]http://msdn.microsoft.com/en-us/library/21kdfbzs.aspx[/url] Now it all boils down calculating a new RectangleF below the one you already have, if you want a newline. Remember to take the page rectangle into account when you do a newline at the bottom of the print page! EDIT: Oh and on line 9 …

Member Avatar for ChrisHunter
0
160
Member Avatar for xanawa

Implement a column of type Image [url]http://msdn.microsoft.com/en-us/library/bxt3k60s.aspx[/url]

Member Avatar for Mitja Bonca
0
1K
Member Avatar for kirtee2209
Member Avatar for xanawa

[url]http://www.daniweb.com/software-development/csharp/threads/195009[/url]

Member Avatar for xanawa
0
105
Member Avatar for rithish

Perhaps [url=http://www.pdfprogrammingtutorial.com/build-your-own-asp-net-website-using-c.html]this site[/url] is something for you.

Member Avatar for RunTimeError
0
167
Member Avatar for mrnutty
Member Avatar for ctrl-alt-del

Look up [B]Region [/B]and [B]Path [/B]in MSDN. And to answer your second question : look for extension methods [url]http://msdn.microsoft.com/en-us/library/bb383977.aspx[/url] EDIT: For Region I meant something like this : [url]http://msdn.microsoft.com/en-us/library/system.drawing.region.aspx[/url]

Member Avatar for Romil797
0
172
Member Avatar for DaveTran

Unless you already own a copy [url=http://www.worldscibooks.com/compsci/6725.html]this book[/url] might be of interest.

Member Avatar for ddanbe
0
138
Member Avatar for Mark_48
Member Avatar for abelLazm
1
699
Member Avatar for Munnazz

Use the Parent control property: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.control.parent(VS.80).aspx[/url]

Member Avatar for Munnazz
0
117
Member Avatar for zachattack05

There are no strict rules, but more conventions. You can follow them or not. The only convention that is followed, with as far as I know, no exception, is that the name of an interface class starts with a capital I.

Member Avatar for zachattack05
0
107
Member Avatar for shyla
Member Avatar for ddanbe
0
166
Member Avatar for Usmaan

Hi Usmaan! Thanks, we are here to help, if we can :) Personally, I would not store a high score etc. in a text file, but rather in a resource of the game. In that way they can never get separated.

Member Avatar for ddanbe
0
169
Member Avatar for zachattack05
Member Avatar for zachattack05
0
88
Member Avatar for kool.net

Search Google. I found [url=http://ondotnet.com/pub/a/dotnet/2002/06/24/printing.html]this[/url] among many others.

Member Avatar for ChrisHunter
0
409
Member Avatar for norn

He, is this all about illegal downloads, or am I dreaming this up?

Member Avatar for norn
0
99

The End.