As long as you can think logically, like to solve problem using computer, be it C# or other programming languages, go ahead and just do it. Along the way, you may find yourself needing a database or web site or some other technologies, then you can start to learn these stuffs when such needs arise. Read this: Start-Learning-Computer-Programming[^]
No knowledge is required; all of us, at some point, started from a beginning. Of course, however, any other programming languages you have learned may contribute to the speed, and ease, with which you are able to learn another language (or, they may not, if you have never understood the general principles involved in the structure of any programming language).
I'd recommend getting a good basic book on C#, and getting busy. There's a good on-line book, and source-code for the examples in the book, from Charles Petzold available for download here: [^].
Why not start right now ?
“The best hope is that one of these days the Ground will get disgusted enough just to walk away ~ leaving people with nothing more to stand ON than what they have so bloody well stood FOR up to now.” Kenneth Patchen, Poet
C# is pretty much standalone. Make sure to learn the quirks of the .Net framework as well when you move along. C# is (part of) .Net. In it's turn, .Net is part of windows so you'll need to know some details about that, when you get more experienced. Then you can step sideways and use ASP.Net eg. In that case you'll enter a whole new world of web browsers, scripting languages and all related technologies. (like JQuery and ajax)
Another step sideways is database programming with it's own details again and interaction with other systems which could reside on other machines not necessarily running windows or only accessible via less trivial protocols.
So basically the more complex you go, the more technology you're required to make your own.
That is also the reason why you would want to start with a book that explains on how to create a "Hello World" application in C# and move along from there.
However if you have NO previous programming experience then attempting to learn a programming language on your own can be frustrating. The internet is frustrating in such cases because using it requires the ability to describe the problem without knowing even basic terminology to explain the problem (which frustrates those attempting to help.)
If you have used any other programming language at least a little bit then you don't need to know anything to learn C#.
So. That what I suggest. Add some where on property name to exclude them...
You also can add some custom attribute to the properties you want to access and get only properties that have the specific attribute...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
I have created a setup for my windows application developed in C# and SQL Server 2008. I'm able to install the project in any machine having sql server. But the problem is when I use the application in another user account in the same machine it shows "Cannot open database "dbname" requested by login. The login failed. Login failed for the user"username".". I'm using windows authentication for SQL login kindly give solution.
I am creating a simple application which selects 50 random rows from the list of 500 rows. I am using a DataGridView to output the results. I would like to know if its possible to output/print those 50 rows line by line(5 lines every 3 second)? To be more clear, i want 5 row from the sql result to append to datagridview's list every 3 seconds with the list scrolling down. This way one can see what all names are being printed.
Please let me know if this would be possible to do and how.
Yes, you can...but it's not very nice.
You would need to add a Timer, then read all your lines into a collection of some form.
In the timer Tick event, you would remove an item from the collection, add it to the DataGridView and then scroll the DGV to ensure it is visible (using CurrentCell will do it).
Alternatively, you can do much the same without the timer by moving the code into a BackgroundWorker thread and using Invoke on the DGV to add the new row and ensure it's visible. You would then sleep the thread between updates.
It would probably annoy the heck out of me as a user though.
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
Last Visit: 31-Dec-99 19:00 Last Update: 5-Dec-23 19:00