|
send me your mail, i cannot send the file to the forum!
|
|
|
|
|
Ex.NightWolf wrote: send me your mail, i cannot send the file to the forum!
Why not create a quick article so other users of CP can take a look at how you did it? Just a suggestion...
|
|
|
|
|
don't worry' I will do it in my free time,
|
|
|
|
|
|
I want to store and retrieve data from xml or csv files in a C# application. I want to bind this data to a drop down menu. What is the procedure to generate checkboxes dynamically. I have to generate checkboxes as per the entries available against the user selected in drop down menu. Suppose there are four entries (aa, ab, ac, ad) against a user x in csv file. So in case if someone selects user x, it should show four check boxes with text aa, ab, ac, ad.
|
|
|
|
|
1. Read the values from xml/csv file into a dataset.
2. Bind ComboBox with this dataset.
|
|
|
|
|
What is the difference between normal project and setup project?
|
|
|
|
|
hi,
the normal project is the application that you develop and the setup project will help you in deploying you application by creating an installation program for your application.
doesn't the name say it all??
regards
|
|
|
|
|
softwareitprofessional wrote: What is the difference between normal project and setup project?
What's a normal project. If I go into Visual Studio I get the option of dozens of different project types.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
Try to create them and you will see what they do. I think generally the projects are described quite well, so you do not need much guessing for that.
|
|
|
|
|
Are you replying to me or the OP. If it is to me then I don't understand your statement.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
i have developed a C# code and have converted it into a setup format with the help of "PUBLISH" option in VC#....so that this can be hencefort used at any system.
the thing i also need to place a "help file" (which would guide the users about the application ) in the same folder as of the location where the setup file would store that application.
kindly guide me as to how should i proceed??
thanks.
|
|
|
|
|
Add the help file/ Read Me file in the solution itself.
|
|
|
|
|
in the solution u mean by right clicking in the solution xplorer.....am i correct???
i ahve done that...bt even thats not working...is it possible that i am using VC#2005 xpress edition as a result f which it is nt attaching the read me file???
|
|
|
|
|
before publishing, you can choose the files to publish and even to add other files. search for this option in the project properties!
Good Luck!
|
|
|
|
|
Can any one tell me how to deploy and configure a C# application on user's computer.
|
|
|
|
|
Create a Setup project and add the project output. You'll have to write an custom Installer assembly and add it to the custom actions if you want to confugure it during the installation.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
* Reading: Developer Day 5
Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton
My website
|
|
|
|
|
hi
i want to extend the standard DataGridView in vs 2005 mySelf, and i want to add footer to DataGridView,this is my code to override paint method :
public partial class ExGridView : DataGridView<br />
{<br />
private int _footerHeight;<br />
public ExGridView()<br />
{<br />
InitializeComponent();<br />
_footerHeight = 20;<br />
}<br />
<br />
public int FooterHeight<br />
{<br />
get<br />
{<br />
return _footerHeight;<br />
}<br />
set<br />
{<br />
if (_footerHeight != value)<br />
{<br />
_footerHeight = value;<br />
Invalidate();<br />
}<br />
}<br />
}<br />
<br />
protected override void OnPaint(PaintEventArgs e)<br />
{<br />
base.OnPaint(e);<br />
Rectangle rOrginal = this.ClientRectangle;<br />
Rectangle rFooter = new Rectangle(0, this.Height, this.Width, _footerHeight);<br />
e.ClipRectangle.Offset(0, _footerHeight);<br />
e.Graphics.DrawRectangle(Pens.Black, rFooter);<br />
e.Graphics.DrawString("Test", this.Font, Brushes.Black, new PointF((float)rFooter.X + 10, (float)rFooter.Y + 5)); <br />
}<br />
} but when compile my app and add myControl (ExGridView) to my form, nothing occured, where does problem and how to solve it ?
|
|
|
|
|
Hi,
seems rFooter is outside the ClientRectangle, so it gets clipped completely.
remedy: give top part of ClientRectangle to base.OnPaint, keep bottom part for your
owner-drawn footer.
|
|
|
|
|
thanks Luc Pattyn
can u say me how to solve my problem and extending clip of DataGridView to contain rFooter Rectangle by code? (because i'm beginner)
thanks
|
|
|
|
|
You can not extend the ClientSize of the DGV.
As I said before, you must split the available ClientSize in two parts;
one part for the DGV and one for your footer.
So that means you must create a new PaintEventArgs with a reduced clip rectangle, and
pass that to base.OnPaint().
|
|
|
|
|
I am working on a project, which uses the Interop.Excel type from the namespace Microsoft.Office
But I get the following error.
Error The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference?) I have installed Microsoft office 2003 on my machine. I've got this project copied from another machine to my laptop, but it works fine there. What could be the problem?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
This may be a silly question but have you checked that your references are correct in the VS project on your laptop?
Are the files you are referencing against on the laptop?
That would be my first port of call.
Stu Richardson
|
|
|
|
|
You have to download and install PIAs (Primary Interop Assemblies) for your version of MS Office from Microsoft's site.
|
|
|
|
|
Thank you. That helped me. Sorry for the delayed reply.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|