|
I have been looking for a plugin that generates webpages or help documents based on your content. I have found nDoc which really isn't supported anything as it doesn't even support v2.0, and SandCastle which only seems to have a plugin for Visual Studio 2005.
Well is there anything for Visual Studio 2008? I'm not having any luck finding some. I've been really bad at commenting stuff and I've read now on proper ways to do it lol.
So now I'm going back and doing it (I know, I know)
|
|
|
|
|
Any automatically generated comment is obviously useless, it represents what a piece of code could work out about your code by reading it. A human should be able to do the same. A good comment will describe something NOT clear from the code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
And if you don't have the code...?
|
|
|
|
|
Why do you need documentation for code that doesn't exist ?
|
|
|
|
|
Because you got a DLL before the code disappeared.
|
|
|
|
|
I am commenting the code like I should be now. The problem is I am the only one that can program here. We don't really have a programming position. So if I leave they are screwed unless they happen to get a network admin that can write C# as well.
I am just trying to make it that much easier for them and was thinking a help file could help them edit small things if they need to in the future.
|
|
|
|
|
I was just running into the same thing today. Building help files that is, I commented my code properly the first time. Sandcastle with the Sandcastle Help File Builder[^] worked perfectly.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Perfect! That one looks great. I didn't find that version of Sandcastle.. didn't come with a GUI the one I downloaded.
Thanks Mark
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:03am.
|
|
|
|
|
The files seem to be missing from that webpage
|
|
|
|
|
Hi!
I have a question. I have a DataGridView that displays some records and beside it I have another DataGridView.
How can I double click on a record in DataGridView1 so that the record appears in DataGridView2? It's basically an assignment function where I double click the records I need and they are displayd in the second gridview.
I know that I have to execute the code in the double click event of the datagridview but I have no idea how to add the selected record to datagridview2
Thank you in Advance!!
Illegal Operation
|
|
|
|
|
You'd have to read the data from the record, put it into an acceptable data source, like a list, and apply it to the second view.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Why? What are you trying to accomplish? Are you copying data?
Anyway, I very rarely use a DataGridView, they're generally not very appropriate for production applications (they're really only good for making quick-and-dirty prototypes and demoes).
|
|
|
|
|
PIEBALDconsult wrote: they're generally not very appropriate for production applications
It's the first time I here this, why do you find it inappropriate for production applications?
|
|
|
|
|
There's usually a better way to present the data; very few applications (pretty much just spreadsheets) work well as a grid.
|
|
|
|
|
Ok, it's from a functional level, not because the control is 'bad'.
|
|
|
|
|
|
Are you using "data bound" grids or "unbound" grids?
If you're using "unbound" grids, then retrieve the selected DataGridViewRow(s) and copy them to the second grid.
If you're using "bound" grids, you should be using a typed dataset with 2 tables of the same type, and using the methods of the typed tables to retrieve the selected row(s) and adding them to the second table.
(see the grid's .SelectedRows and row .Selected properties for starters).
|
|
|
|
|
look into the datagridviews.Rows.Add function. I think it even takes a DataGridViewRow object. extract that object from your first datagridview and your done.
hope this helps.
|
|
|
|
|
I can't understand how I can make double buffering work in my project. I read many of forums, but no one solution make it work.
I draw on child class of pictureBox - DBPictureBox(my class). When mouse moving on that DBPictureBox it was redrawing. That's all.
Below i post to show how it is works:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
pixel = true;
Graphics graph = pictureBox1.CreateGraphics();
master = new WishMaster();
Size size = new Size(pictureBox1.Size.Width - 1, pictureBox1.Size.Height - 1);
plane = new CellPlane(size, graph);
dots = new Point[0];
tableLayoutPanel1.BringToFront();
}
protected override void OnPaint(PaintEventArgs e)
{
plane.drawplane(10);
if(dots.Length != 0)
plane.drawline(dots, pixel, 0);
plane.drawpointer(pointer);
}
protected void PlaneMouseMove(object sender, MouseEventArgs e)
{
pointer = e.Location;
toolStripStatusLabel2.Text = pointer.X.ToString();
toolStripStatusLabel3.Text = pointer.Y.ToString();
Invalidate();
}
}
drawplane - is function of my class that drawing cell table. If it necessary i can post it.
DBPictureBox is:
class DBPictureBox : PictureBox
{
public DBPictureBox()
{
DoubleBuffered = true;
}
}
But DBPictureBox flickering yet.
modified on Wednesday, November 11, 2009 7:37 PM
|
|
|
|
|
DerDevil wrote: Graphics graph = pictureBox1.CreateGraphics();
Why do you do this ? If you're drawing on that graphics object, then your call to double buffering is useless and never does a thing.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Why not?
class DBPictureBox : PictureBox
{
public DBPictureBox()
{
DoubleBuffered = true;
}
}
Is this doesn't mean that DBPictureBox must to use DoubleBuffered. And if it useless, what i must to do?
|
|
|
|
|
Try this in the constructor:
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
modified on Thursday, November 12, 2009 4:50 AM
|
|
|
|
|
It didn't solve a problem.
|
|
|
|
|
I am new to C# programing and I would like learn.I am using Visual Stuido 10 beta right now, and the only other programming I have done is in Html, PHP, and Java script.I've been doing some reading and been through the "hello world" Windows form app. Yeah I know, I am a master already right....
Anyway's I need some advice/help, just to get me going in the right direction. I have set up a game plan and a list of what I would like the program to be able to do. The idea is, a advanced media suite.Here are the fuctions I would like to incoperate into the project.
1)Video/DvD Player - Able to play video from the dvd drive and be able to play most popular video file types.
2)Audio player -able to play most audio file types like .wav, .mp3, and so on.
3)Picture Viewer/Slide show - Able to show most file types
4)Audio/Video/Picture burning - Able to burn the three media types to cd-r/dvd-r.
5)Video/Audio Conveter - Able to convert a wide range of file types to another
So, I was hoping to get this done by tomorrow. Joking
I know this might be a lot, and understand it might take take a good amount of time to complete. But is all of this realistic, or am I thinking of way to much for one person to be able to do in a life time? I would like to make most of them pretty advanced is possible. For exsample,
Video player fuctions:
Forward
Back
Next Chapter
Previous Chapter
Stop
Puase
Play
Volume
Mute
Full Screen
Captions
ext...
I would like to focus on the Media Player part first. I am pretty sure I found a few tutorials that will help me with the basic fuctions. I would like to steer clear of using fuctions of Windows Media Player. Once I can get down a good working Media player, I would like to release it as a open source beta project, releasing the other fuctions over a period of time as a new "Release". So any tips or links to useful information would be pretty cool.
Oh, and if I get stuck and need some guidence, Is it ok just to post it in the form, instead of making a new topic?
|
|
|
|