|
but can this save method made automaticaly in the c# application or into a buffer without putting data into ma disk
best regards
dghdfghdfghdfghdgh
|
|
|
|
|
There are several controls on codeproject that allow to display word files. Use search to find them.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Hi,
Please can anyone got answer of the following issue:
I have developed a Web Part in SharePoint using C#.Net. A TreeView control I have created which is pointing to some directories. Created an event of the TreeView (SelectedNodeChanged) Which is not firing all the time. Sometime it fires and sometime its not. I cant figure out the reason of such abnormal behavior. Find the attached code. Please help.
--------------------------------------------------------------------
CreateChildControl
{
Some More Codes here.....
TreeViewReportListTree.SelectedNodeChanged += new EventHandler(TreeViewReportListTree_SelectedNodeChanged);
Controls.Add(TreeViewReportListTree);
Some more codes here.....
}
----------------------------------------------------------------------
|
|
|
|
|
click Export.
Click Export to a file, and then click Next.
Click Comma Separated Values (Windows), and then click Next.
In the folder list, click the Contacts folder, and then click Next.
Browse to the folder where you want to save the contacts as a .csv file.
Type a name for the exported file, and then click OK.
Click Next.
Click Finish.
|
|
|
|
|
|
i am exporting the gridview data to excel in c#.Along with this , i am sending the heading also .so far , it is working very fine.
Problem is , the heading is comming in the first cell , I mean , i need to merge the first row .Can u help me ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
|
|
|
|
|
Hello
Does anybody no when serializing a class how to correctly add attributes the the parent element.
E.g.
<Root SchemaVersion="1.0">
<child>
</child>
</Root>
For the life of me I cannot get the SchemaVersion="1.0" to appear. Any help would be greatly appreciated.
Many thanks.
|
|
|
|
|
have you tried marking a property called "SchemaVersion" in your object with the XmlAttribute attribute?
|
|
|
|
|
I have a datagridview in my form. I have a Clear button and I would like the datagridview to clear its contents when I click the button. I have tried datagridview1.Rows.Clear() but nothing happend. I have also set the datagrids source to null but still nothing. Any help will be appreciated
|
|
|
|
|
Hi,
IMO there are two ways:
- when bound to a datasource, clear the datasource
- or clear the binding, then do Rows.Clear()
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Luc Pattyn wrote: Hi,
IMO there are two ways:
- when bound to a datasource, clear the datasource
- or clear the binding, then do Rows.Clear()
Luc Pattyn [Forum Guidelines] [My Articles]
Thanks Luc! After clearing the datasource I then used the Rows.Clear(0) : and it works 100%
|
|
|
|
|
Hi, i have a math question. Can i find the roots of inequalities in C# - is there any algorithm. For example the equation is
x^4 + 3*x^2 + 8 > 0 or sin(2*x) + cos(3*x) < 1
...
How can i find with a program the roots of these inequalities?
I need to know this because i am writing a program which draws math graphs. It can draw inequalities (for example sin(2*x) < cos(x) ) and mark the intervals at which inequality has roots (where sine is smaller than cosine from the example). The hard part is that i can't find the points where the inequalities intersect - i can't find the bounds of the intervals where the solutions are.
Still learning...
|
|
|
|
|
Hi,
you can solve a small fraction of all possible equations analytically; e.g. your first
example is a quadratic equation, where x^2 is the unknown. Since the discriminant is
negative, it will have four complex solutions, no real ones.
Your second example can be transformed into a pair of equations in s and c, where
s=sin(x) and c=cos(x), the second equation being s*s + c*c = 1
For plotting purposes you don't really need an analytic solution; you can just somehow
define the range that interests you, and calculate the function for several values inside
that range.
And you can always try and solve an equation of the form f(x)=0 by an iterative
approach, see e.g. Newton-Raphson algorithm.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
you could try using the api for something like matlab, but I suspect MatLab is very expensive, I've only every used a copy in a university computing lab.
Otherwise You'll need to write code to solve general cases of each equation or an algebra module to rearrange the equations into a general case.
As Luc has already said something like Newton Raphson might be a good idea but you need to have a rough idea of where the roots are inorder to find all of them
HTH
Russell
|
|
|
|
|
Clicking on the Export button will show a window in which to set the name of the exporting file. The Field delimiter will also need to be specified (the column separator character) and you will also be able to specify whether First row contains field names. Finally, you’ll be able to select the fields to be exported and, after clicking on the Next button, exporting process will start.
|
|
|
|
|
Smells like an assignment. Anyway, Google is your friend as well as codeproject.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Hi, my whole question is in the subject... In regular desktop framework i can just construct my own cursor. but when working with CF i noticed that it's impossible, because no constructor is exposed. Nonetheless there are programs which can do this. How? I have no clue. Perhaps you can help me thanks guys
|
|
|
|
|
Hi All,
I am new with VS 2008 and WPF application. so i am making a WPF Application but now i have to add "tab bar" like office 2007 instead of menues.
can anyone please tell me how to add tab bar on main window of WPF application.
Thanks
Bankey
|
|
|
|
|
|
Hi,
Can anyone of you, tell me how to call c++ functions from c# program?
I have a C++ dll, in which i have some functions, now i want to call them from my c# code. Please tell me how can i do this. If possible provide me sample code n all.
Thank you in advance
Bye,
sree
sree
|
|
|
|
|
You need to write a wrapper for C++ dll in C#. Use DllImport[^] attribute.
|
|
|
|
|
Hi Navaneeth,
I have tried it, but i ended with an exception " unable to find an entry point named function-name in dll".Can u provide some more detailed information regarding this.
sree
|
|
|
|
|
The C++ function name will be mangled, see here[^].
Alternatively you could wrap the DLL in a inprocess COM object and use COM Interop to use it.
If you want to avoid issues with the Name Mangling (which is non-standard accross compilers) then you need to write a C DLL, rather than a C one.
regards,
|
|
|
|
|
Hey Guys,
I just got the scariest Exception I've ever seen!
It reads... AccessViolationException Was Unhanded, Attempted To Read Or Write Protected Memory. This is often an indication that other memory is corrupt.
In Visual Studio It points out Application.Run(new frmMain()); As the culprit
I have no idea why this happens, it seems random because i call only one method and it works most of the time. Even when i do get the Exception the program got around to logging data in my database (thhis is the 2nd last step of the process I'm coding) So im thinking it might be where i call These methods...
cmd.Dispose();
newSqlConn.Close();
newSqlConn.Dispose();
But i might be wrong, i still need a way to replicate the damn error so that i can step though the code and see exactly where it breaks.
So my question is this, have any of you ever come across this error? Why does it happen and where do u think i should start looking to fix it?
thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
I've come across it when painting to picture boxes containing a bitmap. I was attempting to write colour to a segment of the box but I forgot to convert the bmp back from monochrome after some processing I did, also attempting to point at a segment outside of the bounds of the bmp caused this (but that was more obvious to spot). Other than that, I haven't come across it before.
He who makes a beast out of himself gets rid of the pain of being a man
|
|
|
|