|
Look at the members of the Graphics class, i think DrawArc() is what you will want.
Then handle or override the OnPaint event for the control you want to draw on. That will expose a Graphics instane within the event args that you can draw to. Remember that OnPaint is called when the control needs repainting so you may want to use the Invalidate() method of the control to force a redraw as and when you need to
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hello
I want to export my grid to a excel file what I can do. But what I need to do is each time I export my grid it will create a new sheet in the same excel file.
Now How can I do that..??
Any help would be appreciated ....
Thanking in Advance
Johnny
|
|
|
|
|
There is a section on this page specifically for exporting to .xls files with other configurable settings...
http://msdn.microsoft.com/en-us/library/ms227794.aspx
|
|
|
|
|
|
Hello experts.
Want to create an installer from binaries.
But want to disallow any re-installation of the software.
How to achieve this?
Thanks in advance.
Regards,
// By Bhavik Shah
|
|
|
|
|
That's not supported by most installers, so you're probably going to have to build this yourself. That may be hard or easy, depending on the software that you're using to create the installation routine.
First you'd have to check for any sign whether your software has been installed previously. You can leave a marker in the registry, but there is no guarantee that the user doesn't wipe your marker and reinstalls anyway.
On install, you'd have to check whether the marker is present on the system. If it is, abort the installation and give a nice message detailing what happened, and why you're refusing the reinstall.
Out of curiousity, why don't you want them to reinstall your product?
I are troll
|
|
|
|
|
hi all, am developing a shared addin(to excel) using visual studio in c#.net, an addin. However, my addin acts like an automation addin too and the udfs i defined in MyAddin.Connect.cs are working fine in my m/c.But, the problem is, when I installed my project by running the MyAddinSetup.exe in another machine, though all the registry entries(HKCR, HKLM) are being made, the addin is not listed in the 'Tools-->Addins-->Automation'list! and am not able to use my udfs defined in MyAddin.Connect.cs.
Kindly help me in this regard. I should be able to use my udfs in the test machine. Is there a problem with the installation or am I missing any registry entries?!
Regards.
|
|
|
|
|
Make right entries exist in registry key below
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Addins\"
Check examples of other add-ins installed on the PC.
Regards,
// By Bhavik Shah
|
|
|
|
|
hey,
the entries are made perfectly fine.. my project is an excel addin(thus, entries are made in hklm\software\microsoft\office\excel\addins\) not a visual studio addin. Basically, my Connect.cs also defines some UDFs and also adds a command bar to the excel. The commandbar is being displayed properly in the test machine but the automation part i.e., the UDFs are not being recognized. What could be the reason for the automation part of my addin not to work when the com part is working fine?!
Regards
|
|
|
|
|
How to change the text color of individual cell of DataGrid control in C#
thanks
|
|
|
|
|
see sample:
dataGridView1.Rows[0].Cells[0].Style.ForeColor = Color.White;
|
|
|
|
|
I am using DataGrid class not DataGridView class.
thanks
|
|
|
|
|
Then ask the question in the ASP forum!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Dear sir,
i have two list box, i want to copy item from one list box to another through drag and drop. how can i do this?? could u help me??
and one more problem is there...
i have one multiline text box in which items go dynamically. but the scroll position is always up.
yogesh
|
|
|
|
|
yogesh_softworld123 wrote: how can i do this??
with actual code. I'm sure there are samples on the web.
yogesh_softworld123 wrote: i have one multiline text box in which items go dynamically. but the scroll position is always up.
I don't understand the question. You can set the scroll pos in code if you want to.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi yogesh....
Have a look at the following article published in the codeproject....
for List Box Drag and Drop....
<a href="http://www.codeproject.com/KB/dotnet/csdragndrop01.aspx">Drag and Drop between list boxes - Beginner's Tutorial</a>[<a href="http://www.codeproject.com/KB/dotnet/csdragndrop01.aspx" target="_blank" title="New Window">^</a>]
for scroll position problem....
http://www.codeproject.com/KB/cpp/scrollbar_position.aspx
Please do search for the articles related to your requirement and if you dont find any then post your questions...
Have a Happy Coding.....
|
|
|
|
|
Aren't you such a nice fell, and fairly new to CP as well. Have 5 brownie points. You may want to use the link button when posting as they are then well formatted and look prettier scrolling[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Hi All,
I am working newly on Crystal Reports with C# for a Desktop Application and its my first experience for both the reports and desktop application.
I created a simple pie generating report.Everything is working fine.
The only problem I feel is everything with designing of reports can be done on design time only...is it so or am I wrong..?
1] Also I wanted to change the Label generated and place my own.Right now the label displayed on Pie is something like "Distinct.Count.TrialTable"
i.e. the formula I use for generating the Pie. Can I change it ..if so how..?
2] Also I want to display the charttype based on user selection...like if user wants pie, it should be pie or if user wants bar ..it should display bar...as we do it in Chart Expert ..wherein we select the chart type.
Can this be done dynamically ..like if I take a dropdown list and allow user to select the type of graph...the same should be dynamically selected and displayed..how to achieve this..is there any provision for this...or will I have to go by making different report files and calling the same on user selection..? How should I go about it..??
Hope I am clear with my question..!
Jimish
|
|
|
|
|
Have you tried asking this question in Crystal support forums. I know it is a negative response but the deveolpment experience with CR is so bad that most of us have moved to another reporting platform.
You will almost certainly not get a positive response from a general development forum (CP) for a 3rd party product (Crystal), especially when the product is such a POS.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
can u suggest what other reporting platforms can I use..??
Jimish
|
|
|
|
|
We use sql server reporting services and I beleive DevExpress have a good report tool. SSRS comes with SQL Server but you can embed a report in your app without installing the full reporting services.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Crystal Report is a component Which is used to Create Report and Print. You Can draw Crystal Report At run Time as per your requirement.
Best Regard
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
Hi Anubhava..
I understand it...but can u post any link showing run time usage of Cryatl Report Component..!!
Jimish
|
|
|
|