4,439 Posted Topics

Member Avatar for alex.alekan

I usually rather use a DataGridView instead of a TextBox. I use this class (can be extended if you like) to handle stuff in with Excel in C#. // **************************************************** // // Class to manipulate and work with Excel files in C# // DM 2.2.2009 // // **************************************************** using System; …

Member Avatar for ddanbe
0
469
Member Avatar for LoveAntwinette

Instead of using a list, use a Label. Append your result string to the Text property of the Label.

Member Avatar for Reverend Jim
0
414
Member Avatar for marczai.yan

Well? What are you waiting for to start working out and start coding your homework assignment? If you encounter problems, feel free to post them here. Success!

Member Avatar for ddanbe
-1
103
Member Avatar for BibhutiAlmighty
Member Avatar for chen.vang.3

Hi chen.vang.3 and Serena_1, welcome at DaniWeb :) @chen.vang.3 if you make an effort to browse my snippets, you might find something of your liking. :)

Member Avatar for ddanbe
0
227
Member Avatar for Ihteshamullhaq

If you got your custormerID, construct your file path with it. `string path = @"c:\MyPictFolder\custormerID.jpg";` Now open the picture. Have a look at FileStream, to see how to do that if you would have trouble with it.

Member Avatar for ddanbe
0
98
Member Avatar for Glaven

Hi Maven, welcome to DaniWeb :) Set your variable `smallest` to an arbitrarily large number, bigger than any number in your data set. Test `smallest` with every element of your array in your two loops on line 31. If you find an element smaller than `smallest` set smallest equal to …

Member Avatar for Glaven
0
622
Member Avatar for Zyxl

Hi Zyxl, welcome at DaniWeb :) You cannot learn a language from a book alone. You learn the most by doing a project. But if you just start a new language, don't directly start with trying to write the next fancy 3D rendering program in it. Start small, to get …

Member Avatar for Zyxl
0
748
Member Avatar for chalobe.lefa
Member Avatar for badmofo

raw scetch of how I should start to do it: revprint(int n) { if n==0 return cout<<n%10 revprint(n/10) }

Member Avatar for Ali_40
0
876
Member Avatar for lilita

> if the path is valid or not With Regex you could test if a pathstring is valid or not. I'm certain there are many examples of this to be found on the web.

Member Avatar for ddanbe
0
140
Member Avatar for BibhutiAlmighty

Iterate through whole your original string(the one to find). If char by user is equal, change the '_' in that position in the string on the screen. Should work for any number of chars. Happy computing :)

Member Avatar for ddanbe
0
165
Member Avatar for mattster
Member Avatar for shahera.arafat

Simply said: return is needed to tell your program to return to the place where it was, before this function was called. But I agree with deceptikon, that a closing brace could do this trick equaly well. It depend on the compiler designers I guess.

Member Avatar for mike_2000_17
0
195
Member Avatar for jjones0150

Why not use a [DateTimePicker control](http://www.c-sharpcorner.com/uploadfile/mahesh/C-Sharp-datetimepicker-control/) directly on your form? Much less validation to do. Just put a label `Arrival date:` and next to it a DateTimePicker etc. And remember that within a period of 5 years, ther is at least one leap year. The [TimeSpan](http://msdn.microsoft.com/en-us/library/system.timespan(v=vs.110).aspx) structure will help you …

Member Avatar for castajiz_2
0
197
Member Avatar for Mz.AvIuM
Member Avatar for Santanu.Das
1
197
Member Avatar for rayhaneh
Member Avatar for Lerner
0
179
Member Avatar for RikTelner

"Facsimile" is derived from Latin and it just means: "Made in the same way." It is usualy used for a remake of an old book. This word is then mostly written on the first or last page of the book. Personally I would not put time and effort in a …

Member Avatar for deceptikon
0
230
Member Avatar for ddanbe

Well, start a new forms application from VS. In design mode, drop a DataGridView and a Button on the form and fill in the code. The button clickhandler will add an extra totals row to the datagrid. Here it will keep adding and totaling, which is of course meaningless, but …

Member Avatar for ddanbe
0
2K
Member Avatar for kareem.keko.35

Hi kareem.keko.35 welcome at DaniWeb. If you used a lot of loops, you must have a lot of code. Post the parts of it you have trouble with. We are just waiting here to help you out.

Member Avatar for ddanbe
0
78
Member Avatar for kidkardel

MSDN is a great place to look for info. Have a look [here](http://msdn.microsoft.com/en-us/library/system.windows.forms.keyeventargs.keycode(v=vs.110).aspx).

Member Avatar for ddanbe
0
199
Member Avatar for Jack_9

In C#, a literal like `279.99` is considered of type `double`. C# is very strict about typing(I like that btw.), so a `float` is not a `double`. The error message is very clear on how to remedy this. Instead of using the concatenation operator in your WriteLines I would use …

Member Avatar for Jack_9
0
286
Member Avatar for CrypticXH4XOOR

There is no "best" language just learn a language you feel comfortable in. For me this is now Visual Studio with C# and Python, but I started with FORTRAN, BASIC, Pascal, Modula-2 etc.

Member Avatar for Tcll
0
569
Member Avatar for Hassan_9

> form4.report2.show() > but the error is in the fastreport itself thank you Could you please be a little more cryptic? Your statement was too easy to understand...

Member Avatar for Hassan_9
0
401
Member Avatar for jjones0150
Member Avatar for ddanbe
-3
180
Member Avatar for sudharsanravij

Welcome to DaniWeb, sudharsanravij :) Could you explain, what exactly do you mean by *property file*?

Member Avatar for ddanbe
0
55
Member Avatar for kidkardel

foreach (DataGridViewRow row in dataGridViewX1.Rows) { if (row.Cells[1].Value.ToString().Equals(MyTextBoxText)) { //do whatever } } Something like this perhaps?

Member Avatar for ddanbe
0
365
Member Avatar for lithium112
Member Avatar for RikTelner

The compiler has not the faintest idea what `ux.name` means, hence your error in the code. Try something like this: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication5 { public class Myux_class { public Myux_class() //default constructor { } string name; string email; int age; //.... …

Member Avatar for ddanbe
0
230
Member Avatar for kidkardel
Member Avatar for albertjohns1
Member Avatar for jackstone444
0
402
Member Avatar for RikTelner

When you type in code, it hapens often as you type that error messages are generated. The compiler compiles while you are typing. Most of those errors disapear as your coding becomes completed. Errors that stay often dissapear also by building your solution. The errors that stay after this action …

Member Avatar for RikTelner
0
182
Member Avatar for Deep Modi

Why don't you start with [WPF](https://www.google.be/webhp?sourceid=chrome-instant&rlz=1C1LDJZ_enBE500BE501&ion=1&espv=2&ie=UTF-8#q=wpf%20vb%20net%20tutorial)? Windows Presentation Foundation.

Member Avatar for Deep Modi
0
1K
Member Avatar for brent.lewis.39

Hi Brent welcome! Working with GetEnumerator and MoveNext is a bit old style I guess. The 2013 C# compiler is smart enough to figure that out for you. Use something like this:(just a pseudocode) foreach (string s in itemstoremove) { mylistBox.Items.Remove(s); } Your method is also doing a lot of …

Member Avatar for ddanbe
0
115
Member Avatar for Papa_Don

Check for something like this: Dim Name As Process() = Process.GetProcessesByName("myProccess") Now check if the array Name contains something. If it does your process is running and doesn't have to be started again.

Member Avatar for Papa_Don
0
365
Member Avatar for Mauricio_3

Hi Mauricio 3, welcome at DaniWeb. Are you in an infinite loop? Do you clear your variables after calculation? You question is not very clear. Please provide some extra info.

Member Avatar for qumar.farooq.3
0
169
Member Avatar for jmichae3

*... Imagine no possessions I wonder if you can...* I'm with John. All the code I ever posted here belongs to anyone and no one. Earn money with it if you can, but don't sue me for it, if it hurts. It is not my "possession". BTW half of it …

Member Avatar for Dani
0
378
Member Avatar for VIeditorlover

Way back in the previous century there was a saying that code that was TOP SECRET so that nobody could view it, was mostly code that was so badly written that it was a shame to show it to other people...

Member Avatar for JOSheaIV
1
1K
Member Avatar for david.1982

You could type in a key and xor it with a username password. You could look at this snippet for encryption [url]http://www.daniweb.com/code/snippet1009.html[/url]

Member Avatar for JOSheaIV
0
556
Member Avatar for CodeAssasian

Google is your friend:[example](http://www.codeproject.com/Articles/690207/Csharp-Project-on-Database-for-Beginners)

Member Avatar for JOSheaIV
0
175
Member Avatar for Joshua_9
Member Avatar for ddanbe

Mine is: > *procrastination* Don't ask me why. I guess it's the succession of vowels o a i e u

Member Avatar for bumsfeld
0
1K
Member Avatar for Alexandra Nichole
Member Avatar for Schol-R-LEA
0
94
Member Avatar for Diellza S.

Why can't you? Just set a breakpoint on the line where you want debugging to start.

Member Avatar for deceptikon
0
239
Member Avatar for Joshua_9

If you would show us your code on how you did the mean calculation, that would help us alot to provide you an answer to your question.

Member Avatar for David W
0
541
Member Avatar for kxjakkk

I tried this code: int determinedaycode(int year) { int d1, d2, d3; d1 = year / 4; d2 = year / 100; d3 = year / 400; return 1 + (year + d1 + d2 + d3 + 1) % 7; } Seems to work, I only cannot garantee this …

Member Avatar for ddanbe
0
349
Member Avatar for ddanbe

Maybe a bit silly question, but in one of my projects I needed an enum and I suddenly wondered what would be the best place for it to write it in a file. Should it be in a .cs file of his own or could I place it in the …

Member Avatar for RichardGalaviz
0
593
Member Avatar for lian_1

> Our professors told us that he have > given us everything we need but we don't have any > idea. Why not ask your professors what it is they haven't told you to solve your assignment?

Member Avatar for deceptikon
-1
105
Member Avatar for JOSheaIV

If you're designing a game or something like that you can let all your beasts loose regarding design. It does not matter that much. It is something totaly different if you want to produce a "business sort of application". Design is indeed an art on it's own. @Ange1ofD4rkness: had similar …

Member Avatar for ddanbe
0
170
Member Avatar for William_14

Radiobuttons are definitly the way to go here. If you ever see a vintage transitor radio, you could select a channel by pushing a button, whichwould cause one of the other buttons to deselect automaticaly. Did you ever wonder why those little round things were called RADIObuttons?

Member Avatar for William_14
0
2K

The End.