4,439 Posted Topics
Re: The Forms ControlCollection has a Remove method. If you need the controls later just call the Add method again. Perhaps you can do something with the Visible property of the Label and TextBox controls? | |
Re: What do you understand by a "week name" "week1" "week one" "the first week" etc. Please explain. | |
Re: You can't. If you set the height of the font property, the textbox will adjust its height accordingly. | |
Re: Learn WPF.(Windows Presentation Foundation) If you master that you'd be amazed by the things you can do with it! | |
Re: @jay_el_em Yes I mind. Post YOUR code and YOUR problem in a different thread. We all be glad to help:) | |
Re: Which game have you tried for yourself to make? And what problems did you encounter? | |
Re: If you look in the C# code snippet section, you can find this snippet: [url]http://www.daniweb.com/code/snippet217265.html[/url] Same code I used in the zip file of a previous thread I sent you. Success. | |
Re: The cin "analog" in C# is Console.ReadLine. But as you are using textboxes in a FormsApplication, you cannot use that, you have to write a ConsoleApplication. | |
Re: This is but a suggestion: You could perhaps first split your string and for every splitted string see if it is a prefix( SAN ST SAINT etc.) Great possibility that the following string is a city name. If that doesn't work, look up for every splitted string in a huge … | |
Re: Although your idea is good, it is in general not a good idea to do it in a console app. Make the user input as short as possible here use [B]1[/B] or [B]a[/B] for newZ etc. Make a menu: type 1 for this 2 for that etc. If I as … | |
Re: [B]firstname [/B]and [B]lastname [/B]must be of type [B]string[/B], not of type [B]array of string.[/B] Now you are reding in 10 first and 10 lastnames. | |
Re: [CODE=c#]private void button1_Click(object sender, EventArgs e) { string S = string.Empty; if (this.textBox1.Text != "")//minimal error detection { int n = int.Parse(this.textBox1.Text); int f = 1; S = this.textBox1.Text + "! = "; for (int i = 1; i <= n; i++) { f *= i; S += i.ToString() + … | |
Re: Strings can only be compared this way with the != and == operators. If you want to use greater than or less than, use the string Compare method. | |
Re: Do not see what the problems are. A percentage is what it says 1/100 of the value. For Sqrt use Math.Sqrt function. The decimal type is not the right type for doing this type of thing, use the double type. Decimal has 10^24 as maxvalue double has 10^308 as maximum. … | |
Re: This may help? [url]http://stackoverflow.com/questions/918353/c-alpha-blend-transparent-picturebox[/url] | |
Re: Why are you whining, you accomplished quite a lot of things. You even got to the desktop of the laptop in the car! So the rest can pose little problems I guess. As for me, I don't know any other suitable method. | |
Re: Try this, no index needed here: [CODE=c#]string[] Arow = { "model1", "candidate1"}; dataGridView1.Rows.Add(Arow);[/CODE] | |
Re: You may also like to read this: [url]http://msdn.microsoft.com/en-us/library/1t3y8s4s(v=VS.80).aspx[/url] | |
Re: Make one version. Store all your label names, button captions, dialoges, questions etc. in a resource in as many languages as you like. Then when the user has choosen a language, set all of your UI elements and variables accordingly. Serialization is perhaps another possibility. Success! | |
Re: Don't give up searching too rapidly. This took me I guess 2 minutes: [url]http://www.codeproject.com/KB/database/simpledbreadwrite.aspx[/url] It should not be too confusing. | |
Re: Now, that it is not of my bussiness, but why would you like to install a program that is already running? An installer will take care of all the chores needed to be done, I suppose. Or do I not understand your English very well? | |
Re: Could you explain what a Z is? Your code seems a direct translation from C++. | |
Re: You can use this, but then you can only select time timePicker.Format = DateTimePickerFormat.Time; | |
Re: Snow White and the seven dwarfs? Your perception of number systems seems a bit(no pun) out of perception. Binary has the digits 0 and 1 Decimal has the digits 0,1,2,...9 Now perhaps figure it out for what I would call the "septimal" number system. Analogy with decimal and hexadecimal. Or … | |
Re: Your getCharValue function only tests for lowercase letters(see alphabet variable) Is that disired? Normally names start with uppercase letter. You can use the ToUpper or ToLower methods to correct that. | |
Re: To avoid too many MessageBoxes have a look at this: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider.aspx[/url] | |
Re: Hi Amitair, welcome to daniweb! Use the Seek method for that. Look [url=http://dotnetperls.com/seek]here[/url] for an example. | |
![]() | Re: I did some very simple things in this snippet, [url]http://www.daniweb.com/code/snippet335171.html[/url] it may help See here for how to get to selected cells: [url]http://msdn.microsoft.com/en-us/library/x8x9zk5a.aspx[/url] |
Re: Although I personally don't like it, maybe the MonthCalendar control is something for you. If you set its calendardimensions property to 4;3 you can show a calendar for a whole year. Have a look: [url]http://msdn.microsoft.com/en-us/library/bb760913(VS.85).aspx[/url] | |
Re: Perhaps you could make use of the fact that in the periodic table only 13 elements have 1 letter al the rest have two or three(rare). Could you elaborate on the fact you use two textboxes? | |
Re: @revjim44 I would like to add to this solved question that you don't have to feel stupid. You posed a decent question and you learned something from Momerath, who was way ahead before me to give you the answer :D | |
Re: Seen this post before. It makes no sense to post a million lines of code and than stating there is an error in it. If you would have posted code with proper code tags, they would have line numbers. So I have only this, to copy and paste a part … | |
Re: Always found [url=http://www.csharpkey.com/csharp/index.htm]this site[/url] good as a starter. Do some googling, you will find others. | |
Re: Read this: [url]http://www.vcskicks.com/data-between-forms.php[/url] Many info can be found in the C# snippets section. Search and thou shalt find! | |
Re: Have a look at this snippet: [url]http://www.daniweb.com/code/snippet217265.html[/url] On the line where I test for numeric input you could probably perform some search action. Success! | |
Re: In your method ClearTextBoxes (Line 32) you walk through the Controls of your form and test if they are a TextBox (Line 38) so there is no need to cast to a TextBox on line 41. InitializeComponent(); is from a partial class component is Visual Studio a part you are … | |
Re: Use Form.ShowDialog() instead of From.Show() to get the modaldialog effect of the MessageBox. | |
Re: What do you mean by [B]hide a calendar[/B]? If I'm not very wrong, DateTimePicker is a calendar, or do you mean the MonthCalendar control? | |
Re: Hi, PhilHernandez, welcome here! Is this meant to be a code snippet? | |
Re: Do you mean a mirror table, like some sort of backup? | |
Re: @Rynkadink Oh yes, you are definitely right, one could take up a course in nitting for example. | |
Re: Perhaps this thread [url]http://www.daniweb.com/forums/thread335414.html[/url] and what adatapost says in it can help you? | |
Re: This is becoming very philosophical.:-/ Who created me and where is my place in the order of things... Do not know if this is possible at all, but [url=http://msdn.microsoft.com/en-us/library/f7ykdhsy.aspx]reflection[/url] can perhaps help? | |
Re: [url]http://answers.yahoo.com/question/index?qid=20080521100946AA0iZ1B[/url] | |
Re: This should be in the form of a snippet or tutorial! | |
Re: Hi Dasharnb777, welcome! Your code draws sin(x) not sin(x)/x. Remember, to avoid divide by zero. Did you have a look at this snippet? [url]http://www.daniweb.com/code/snippet217204.html[/url] | |
Re: If you are not yet into WPF, like me. You could use the Image and ImageList properties of a Button, to simulate a 3D effect. See [url=http://windowsclient.net/learn/video.aspx?v=30436]this video.[/url] Or you could derive from the button class, and play around with some color gradients, like I did here: [CODE=c#]using System; using … | |
Re: To find an extra use for the bitwise complement operator? | |
Re: Do you know the concept of google? Do you know the concept of a sentence with a verb in it? |
The End.