For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
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
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 18:00 Last Update: 11-Mar-14 15:25