4,439 Posted Topics
Re: A Form application has a property ShowInTaskBar which you can set to False. | |
| |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: What do you expect to happen, except an Invalidate of a pictureBox? | |
Re: 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. | |
Re: 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! | |
Re: 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. | |
Re: 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. | |
Re: Used Google with this search string [COLOR="Green"]use C# to make dll[/COLOR] Think you will find what you need there. | |
Re: 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 … | |
Re: Since when is a card number an integer? What would you calculate with it? Leave it as a string. | |
Re: 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? | |
Re: 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] | |
Re: Use [url=http://msdn.microsoft.com/en-us/library/cwbe712d.aspx]this MSDN link[/url] to print the Text property of your Labels. | |
Re: This is an overview of date-time formats: [url]http://www.csharp-examples.net/string-format-datetime/[/url] | |
Re: Did you set the DropDownStyle property correctly? [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.comboboxstyle(v=VS.90).aspx[/url] | |
Re: Nope! [CODE=C#]DGV.TopLeftHeaderCell.Value = "MyTitle"; DGV.TopLeftHeaderCell.Style.BackColor = Color.AliceBlue; //etc[/CODE] | |
Re: Just use DrawString and draw the Text of the Label and the TextBox with a calculated position under the DataGridView. | |
Re: 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. | |
Re: 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] | |
Re: Change [B]private string[] myWords = new string[4]; [/B]on line 9 into [B]private List<string> myWords = new List<string>();[/B] | |
Re: Try to rework this snippet: [url]http://www.daniweb.com/software-development/csharp/code/217204[/url] | |
Re: Perhaps MS sees no point in it doing so. [url]http://www.microsoft.com/maps/[/url] | |
Re: Let the user input his string, then use the ToCharArray method of the string class. | |
Re: Set the SmootingMode of the Graphics object to AntiAlias or HighQuality. Like so: [B]g.SmootingMode = System.Drawing.Drawing2D.SmootingMode.HighQuality;[/B] | |
Re: 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, … | |
Re: 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. | |
Re: Perhaps this can serve as a guidance: [url]http://msdn.microsoft.com/en-us/library/ms379571(v=vs.80).aspx[/url] | |
Re: 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. | |
Re: 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 … | |
Re: Implement a column of type Image [url]http://msdn.microsoft.com/en-us/library/bxt3k60s.aspx[/url] | |
Re: Update a static int in the form class via your Click event handler. | |
Re: [url]http://www.daniweb.com/software-development/csharp/threads/195009[/url] | |
Re: Perhaps [url=http://www.pdfprogrammingtutorial.com/build-your-own-asp-net-website-using-c.html]this site[/url] is something for you. | |
Re: 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] | |
Re: Unless you already own a copy [url=http://www.worldscibooks.com/compsci/6725.html]this book[/url] might be of interest. | |
Re: Use a counter and write a newline after every 5 counts. | |
Re: Use the Parent control property: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.control.parent(VS.80).aspx[/url] | |
Re: 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. | |
Re: Why do yuo have an array for 5 doubles and 10 textboxes? | |
Re: 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. | |
Re: readonly fields: [url]http://www.dotnetperls.com/public-static-readonly[/url] | |
Re: Search Google. I found [url=http://ondotnet.com/pub/a/dotnet/2002/06/24/printing.html]this[/url] among many others. | |
Re: He, is this all about illegal downloads, or am I dreaming this up? |
The End.