|
Why u make that simple thing as complex, if you dont want to use database just use XML
<Student>
<roll>1</roll>
<Name>Abhijit</Name>
<Class>Microsoft</Class>
</student>
Use XMLReader and Write Object to Read and Write.
It's Very Simple,
U can Create and Delete The XML File RunTime Also... So, No Overhead !!!
Best Regards
-----------------
Abhijit Jana
View My CodeProject Articles
"Success is Journey it's not a destination"
|
|
|
|
|
|
just try it and let me know when done
|
|
|
|
|
Sure Will do so ......thanks again
C#
|
|
|
|
|
How to Include and call IOfficeAntiVirus in my program for call Antivirus software?
use C#.
|
|
|
|
|
I am not very clear about your requirement, however if you just want to run some external Anti-Virus application using code, you may do so using System.Diagnostics.Process.Start () method.
Such as –
System.Diagnostics.Process.Start("c:\\antivirus.exe");
I case if you want to pass some parameter to this application, such as some file name which needs to be scanned, you may do so by passing file name as an argument in this function.
I hope this helps .
-Dave.
Dave Traister,
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
There's an abstrat class in .NET
public abstract class CollectionBase : IList, ICollection, IEnumerable{...}
However, No definition or declaration of IList 's functions are found in CollectionBase .
How could this ever happen? If it's an abstract class, it's allowed to not implement its interface?
Thanks everybody
|
|
|
|
|
Yes, only concrete classes must.
|
|
|
|
|
Thanks, but why won't the following code compile?
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
<br />
namespace ConsoleApplication1<br />
{<br />
interface A{<br />
void A();<br />
}<br />
abstract class B : A<br />
{<br />
}<br />
<br />
}<br />
I got an error!
The compiler says I should implement A.A() in abstract class B.
|
|
|
|
|
That's exactly the same concept - you're not declaring a concrete class anywhere.
If you add
class C : B
{
} then you'll get a compiler error.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
In my previous example, the abstract B results in an error if it doesn't contain method A.A() .
So I guess it is necessary to implement an interface even in an abstract class
|
|
|
|
|
My earlier answer wasn't quite as correct as I would have preferred.
You need the abstract stub, but it's still not an implementation.
|
|
|
|
|
I built a small little application that every time a certain extension is clicked on, this application opens the file. On my website when you click on certain links it returns this file extension and in IE & Firefox they both prompt me on what to do with the file. I would like them to not prompt me and just open the file in the default application that is assigned to that extension in windows.
Can someone help me figure this out?
|
|
|
|
|
Brad Wick wrote: I would like them to not prompt me and just open the file in the default application that is assigned to that extension in windows.
Then tell Windows what you want it to do with them.
|
|
|
|
|
I did. If I have a file on my desktop and I double click on it, it opens my application and displays the contents of the file. When IE locates this extension, then it asks me if I want to Open, Save or Cancel. I want it to always just open this type of file.
|
|
|
|
|
Then I don't know; it works for me.
|
|
|
|
|
I designed a test.rpt file in VS2005, the test.rpt contains a picturebox on the PageHeader, Now I want to know how to unload a image file to this picturebox in C#2005? (Pls pay attention to the pictureBox is in the PageHeader section)
Thanks all in advance!
|
|
|
|
|
Dear all, who can me help on it?
thanks!
|
|
|
|
|
Hi,
I have created a file association in my C# program, but it just opens my program and doesnt actually load the file. What should I do?
Thanks,
|
|
|
|
|
your app will get launched and the file will be in the CommandLine arguments.
Use one of:
- the args parameter of static Main
- Environment.GetCommandLineArgs()
and add code to open the file.
BTW: if you select multiple files in Win Explorer and double-click one of them, they
will all appear (in random order) as command line args.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Luc Pattyn :tank so much
it was very good.
|
|
|
|
|
Hi,
This is pretty complex for me. I have 2 tables city_master(cityid,cityname) and zone_master(zoneid,zonename). I have bound the data to 2 separate dropdown lists. Now I want to insert the values selected from these 2 lists into another table city_zone(cityid,zoneid). How is this possible?
Can someone help me asap?? plsssssssssss
Regards,
Anuradha
|
|
|
|
|
This is basic SQL, which bit is confusing you ? I recommend buying a book on SQL if the SQL is the issue, or just read one of the many articles online, b/c what you're asking for is basic SQL. If some other aspect is the issue, what is it ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I myself am surprised what the error could be, as I know this is basic SQL. I have tried to trace it with Response objects, but no clue. It just says foreign key constraint conflicts.
regards,
Anuradha
|
|
|
|
|
Hello, all. I've come to codeproject once again to discuss a custom form, but I understand the concept much more. But, I just can't get the algorithm to make the form stay at the mouse's location while moving, you know, while clicking and holding the top bar. It's probably really sime, but here's what I have so far. If anyone could assist, it would be greatly appreciated. Thanks in advance!
*assuming FormBar is the bar at the top of the form you can move round with.
* there are probably a LOT of beginner errors in here; if you try to correct me (you will), please help me understand.
public bool Moving = false;<br />
public Point xy;<br />
<br />
private void FormBar_MouseDown(object sender, MouseEventArgs e)<br />
{<br />
Moving = true;<br />
xy = MousePosition;<br />
}<br />
<br />
private void FormBar_MouseMove(object sender, MouseEventArgs e)<br />
{<br />
int x1, y1, x, y, x2, y2;<br />
x1 = this.Location.X;<br />
y1 = this.Location.Y;<br />
x = MousePosition.X;<br />
y = MousePosition.Y;<br />
x2 = xy.X;<br />
y2 = xy.Y;<br />
<br />
if (Moving == true)<br />
{<br />
this.Location = new System.Drawing.Point(x - (x2 - 50), y - (y2 - 50));<br />
}<br />
}<br />
<br />
private void FormBar_MouseUp(object sender, MouseEventArgs e)<br />
{<br />
Moving = false;<br />
}<br />
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
this.Close();<br />
}
The most knowledge doesn't mean the most wise...
|
|
|
|