|
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.
Best of luck.
|
|
|
|
|
Nothing.
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#.
|
|
|
|
|
How can i implement intellisensefeature inside my richtexbox, inside windows form?
Regards
|
|
|
|
|
|
I have a class
public class t1
{
public string Name { get; set; }
public string rr { get; set; }
public string ss { get; set; }
public string yy { get; set; }
}
i am concatenating values of a class like this
var yy = string.Join("", typeof(t1).GetProperties().Select(x => x.GetValue(ttt)));
i want to remove some of the properties from concatenating how can it be achieved
I know that in select i can write x.property name etc.. but how can I do it in one line
|
|
|
|
|
You may add some where to your select?
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
then it is same as mentioning like this
var yy = t1.Name + t1.rr
i want to avoid that
|
|
|
|
|
I didn't get you...
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 a need to concat some property values of a class let's say
public class t1
{
public string Name { get; set; }
public string rr { get; set; }
public string ss { get; set; }
public string yy { get; set; }
}
easy way is
var yy = string.Join("", typeof(t1).GetProperties().Select(x => x.GetValue(ttt)));
but then it will have all the properties
i want a way in which i can specify the properties which i want to exclude from concatenating.
one way is i mention all the properties which i want to concat like this
var yy = t1.Name + t1.rr;
but then this is old fashioned and i have a class which has 70+ properties so it is laborious
i want a shortcut.
Hopr i make myself clear
|
|
|
|
|
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)
|
|
|
|
|
not sure what you mean
can you write a line for the snippet
|
|
|
|
|
var oProperties = typeof(t1).GetProperties().Where(oProp => Attribute.IsDefined(oProp, typeof(MyAttribute)));
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
Hi,
I am looking for a solution where I can drag an email from Microsoft Outlook (running exchange) onto a Windows Forms application and have the email saved into an .eml file.
I have searched for a solution to this but came up empty handed. I have also checked Microsoft white papers and nada.
Please assist if you can

|
|
|
|
|
|
I found that article previously but how would I save the message into a .eml file so that users can open the .eml file at a later stage if they wanted to?
|
|
|
|
|
Oh great! That project saves it to a *.msg file which can be opened later on, what a difference!
|
|
|
|
|
Thank you very much for your help
|
|
|
|
|
Hi,
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.
Thanks & Regards
Manoj Kumar
|
|
|
|
|
manumaxma wrote: when I use the application in another user account That user would need access to the database; start here[^].
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hi,
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.
Any help would be appreciated.
Thanks,
Sukriti
|
|
|
|
|
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 – ∞)
|
|
|
|
|