4,439 Posted Topics

Member Avatar for valter

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?

Member Avatar for Mitja Bonca
0
192
Member Avatar for Jessurider

What do you understand by a "week name" "week1" "week one" "the first week" etc. Please explain.

Member Avatar for Mitja Bonca
0
81
Member Avatar for AngelicOne

You can't. If you set the height of the font property, the textbox will adjust its height accordingly.

Member Avatar for AngelicOne
0
122
Member Avatar for yousafc#

Learn WPF.(Windows Presentation Foundation) If you master that you'd be amazed by the things you can do with it!

Member Avatar for ddanbe
0
48
Member Avatar for neptunethought

@jay_el_em Yes I mind. Post YOUR code and YOUR problem in a different thread. We all be glad to help:)

Member Avatar for Mitja Bonca
0
173
Member Avatar for yousafc#

Which game have you tried for yourself to make? And what problems did you encounter?

Member Avatar for yousafc#
-1
213
Member Avatar for yousafc#

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.

Member Avatar for ddanbe
0
33
Member Avatar for JokerDoom

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.

Member Avatar for ddanbe
0
204
Member Avatar for Diamonddrake

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 …

Member Avatar for Diamonddrake
0
120
Member Avatar for aaronmk2

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 …

Member Avatar for Mitja Bonca
0
118
Member Avatar for amiref

[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.

Member Avatar for Momerath
0
117
Member Avatar for raizor89

[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() + …

Member Avatar for ddanbe
0
1K
Member Avatar for yousafc#

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.

Member Avatar for ddanbe
0
90
Member Avatar for yousafc#

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. …

Member Avatar for yousafc#
-3
191
Member Avatar for KazenoZ

This may help? [url]http://stackoverflow.com/questions/918353/c-alpha-blend-transparent-picturebox[/url]

Member Avatar for KazenoZ
0
182
Member Avatar for Jessurider

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.

Member Avatar for kvprajapati
-1
104
Member Avatar for stefilina

Try this, no index needed here: [CODE=c#]string[] Arow = { "model1", "candidate1"}; dataGridView1.Rows.Add(Arow);[/CODE]

Member Avatar for Mitja Bonca
0
87
Member Avatar for AngelicOne

You may also like to read this: [url]http://msdn.microsoft.com/en-us/library/1t3y8s4s(v=VS.80).aspx[/url]

Member Avatar for Mitja Bonca
0
269
Member Avatar for Vardonir

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!

Member Avatar for ddanbe
0
98
Member Avatar for prayag.419

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.

Member Avatar for ddanbe
0
40
Member Avatar for john_zakaria

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?

Member Avatar for john_zakaria
0
145
Member Avatar for aaronmk2
Member Avatar for aaronmk2
0
95
Member Avatar for AngelicOne

You can use this, but then you can only select time timePicker.Format = DateTimePickerFormat.Time;

Member Avatar for AngelicOne
0
93
Member Avatar for Phil++

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 …

Member Avatar for Momerath
0
120
Member Avatar for thebigbroski

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.

Member Avatar for Mitja Bonca
0
505
Member Avatar for AngelicOne

To avoid too many MessageBoxes have a look at this: [url]http://msdn.microsoft.com/en-us/library/system.windows.forms.errorprovider.aspx[/url]

Member Avatar for AngelicOne
0
126
Member Avatar for Amitair

Hi Amitair, welcome to daniweb! Use the Seek method for that. Look [url=http://dotnetperls.com/seek]here[/url] for an example.

Member Avatar for Amitair
0
164
Member Avatar for cool_intentions

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]

Member Avatar for ddanbe
0
1K
Member Avatar for bords

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]

Member Avatar for Momerath
0
158
Member Avatar for srikanth2321

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?

Member Avatar for Momerath
0
221
Member Avatar for RavesCoder
Member Avatar for ddanbe
0
84
Member Avatar for revjim44

@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

Member Avatar for ddanbe
0
203
Member Avatar for carlitosway17

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 …

Member Avatar for carlitosway17
0
1K
Member Avatar for SubGrizzly

Always found [url=http://www.csharpkey.com/csharp/index.htm]this site[/url] good as a starter. Do some googling, you will find others.

Member Avatar for SubGrizzly
0
104
Member Avatar for ajinkya112

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!

Member Avatar for Mitja Bonca
0
189
Member Avatar for AngelicOne

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!

Member Avatar for ddanbe
0
61
Member Avatar for carlitosway17

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 …

Member Avatar for carlitosway17
0
2K
Member Avatar for abhi10kumar

Use Form.ShowDialog() instead of From.Show() to get the modaldialog effect of the MessageBox.

Member Avatar for ddanbe
0
118
Member Avatar for bhagawatshinde

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?

Member Avatar for bhagawatshinde
0
93
Member Avatar for PhilHernandez
Member Avatar for ajinkya112
Member Avatar for ayushi12

@Rynkadink Oh yes, you are definitely right, one could take up a course in nitting for example.

Member Avatar for ddanbe
0
97
Member Avatar for abhi10kumar

Perhaps this thread [url]http://www.daniweb.com/forums/thread335414.html[/url] and what adatapost says in it can help you?

Member Avatar for jay.gadhavi
0
181
Member Avatar for Diamonddrake

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?

Member Avatar for Diamonddrake
0
162
Member Avatar for Progr4mmer

[url]http://answers.yahoo.com/question/index?qid=20080521100946AA0iZ1B[/url]

Member Avatar for ddanbe
0
108
Member Avatar for Momerath
Member Avatar for Dasharnb777

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]

Member Avatar for Dasharnb777
0
253
Member Avatar for Jessurider

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 …

Member Avatar for ddanbe
0
156
Member Avatar for jonsca
Member Avatar for ddanbe
1
125
Member Avatar for m_priya

Do you know the concept of google? Do you know the concept of a sentence with a verb in it?

Member Avatar for ddanbe
-1
34

The End.