|
hi.......
u can use Crystal Report Item Here....
|
|
|
|
|
When typing in the method during writing the code, I noticed that Visual Studio display the description of the method on what it does. I know I found info somewhere in the past but can't find it!
How do I do that on my code so it would be easier for other developer to know what these methods are for. It'll be useful for the method overloading.
For example, when you type as follows:
MessageBox.Show(
you'll get the message saying from the tip as follows:
1 of 21 DialogResult MessageBox.Show (string text)
text: The text to display in the message box.
|
|
|
|
|
type '///' before the method and it will autotype a summary
i.e.
void DoStuff(string s)
{
}
|
|
|
|
|
THANKS! That's the answer I wanted! That's even better than the info I found in the past (manually doing the tips via xml).
Now I see why the sample codes elsewhere use /// stuff. I had no idea why coders use 3 slashes.
THANKS A HEAP! That's a new lesson I've learned today.
|
|
|
|
|
No Probs , took me a while before i learnt that too, is very useful thou
|
|
|
|
|
// Is standard single line comment
/// is standard single line xml comments
/*
* Is standard multiple line comments
*/
/**
* Is multiple line xml comments
*/
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego.
|
|
|
|
|
// Is a lazy-a$$ comment, only weak developers use it
/// Is a lazy-a$$ XML comment, only weak developers use it
/*
* Is a proper comment
*/
/**
* Is a proper XML comment
*/
|
|
|
|
|
It also gets used to provide the documentation you see in CHM files. If you have this before a method, choose the documentation options in your project you can produce a documentation file that you can use to create a help file from (using a utility like Sandcastle).
|
|
|
|
|
Cool - I didn't know that. Nice tip Pete
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Its a nice feature of .NET...
thnks sir.....
|
|
|
|
|
I am not sure if it's even possible to do this but I am trying to print out a list of various data but I don't want to put a datagridview in the form. So my question is this. Is there someway that I can build a string to skip to a certain point like something the tab might do so I could have what would look like columns?
|
|
|
|
|
Ignoring the fact that you haven't mentioned any details regarding how the string is to be processed (do you want to select specific parts of it?), I assume that the "certain point" that you want to skip would be likely to be different from string to string, so...
You could create an object that accepts a string in the constructor call, and then implement an override of the ToString() method that accepts an enum (again, one that you define) that can change the way the string is processed.
Or you could simply write a method that processes the string according to the enum value passed as a parameter.
It's almost impossible to provide relevant advice with so little to go on.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
honestly I don't really know.
First of all this is for my programming project for my .net course so that should tell you how new I am.
I basically have a list of books, but for each book there is a name, publisher, unit cost, copies ordered, and total cost. I must print the list out, but I want all the items to be lined up so it don't just look messy. I could go about it another way if you have a suggestion, I just don't know.
|
|
|
|
|
Create the string and use "\t" where you want the tabs.
Hope in one hand and poop in the other; see which fills up first. Hope and change were good slogans, now show us more than words.
|
|
|
|
|
Or you could use padding. For example you can define 200 characters for the title by padding all book titles during print out.
string sCurBookColumnValue = "MyBook".PadRight(200).
Do this for all values, this will format your string while writing it on the console.
|
|
|
|
|
Ahhh, so you need to parse the string, and then you want to make it pretty when you print by lining up columns of data...
I'm assuming that it's a console application (because making it pretty in a forms app would be much easier, and less work to boot).
You could brute-force it and use string.Format to pad each string, or you could read in the data, parse each string to find the longest name, publisher, etc., and then format with appropriate padding for each column. I think he first way would earn you a passing grade, and would take far less time, but the second way would teach you more (and be more fun besides).
Which path will you take?
My advice is to satisfy the minimum requirements by doing it the first way, but then do it the second way and if you finish it in time, hand the 2nd version in instead.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Looking for some ideas on a framework for managing a 2 dimensional(dynamic size) array of objects. Something like a grid where one can access by row and column
|
|
|
|
|
Would a System.Collections.Generic.Dictionary<tkey,> suffice?
I are troll
|
|
|
|
|
Maybe you could try a List of Lists?
then write a function for getting with row column parameters
|
|
|
|
|
List<object> objCols = new List<object>();
List<list> objRows = new List<list>();
object GetCell(int row, int col)
{
return objRows[row][col];
}
Not tested but something along those lines perhaps
BTW 'List' can be found in System.Collections.Generic
modified on Friday, January 30, 2009 9:44 AM
|
|
|
|
|
Yes this sort of makes sense. I'll have to play with it a bit
thanks.
dale
|
|
|
|
|
Use the Dictionary object.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi John, I'm not familiar with this Dictionary approach. Would you have a small snippet that might help.
|
|
|
|
|
I can't give you anything better than you'd find on google. Search on "C# Dictionary Collections". You'll get a gazillion examples.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|