What you could do is make the class "inherit" the interface and then you inherit the class. If it is an abstract class I would imagine (because I've not tried it) that you could delay the implementation of the interface until it got to the class that inherits the abstract class.
Using an interface, you can only "force" a class to inherit only other interfaces.
If you want to force a class to inherit some other class, you can create, as others have said, an abstract class thats derives from the class you want to force inheritance. Keep in mind, though, that in c#, unlike interfaces, a class cannot directly inherit from multiple classe.
Without knowing anything other then your method names, did you include your access database file with your project? Did you hardcode the path to your access file, if so is that path still valid under vista?
I am using Mysql as my database.
i insert the date in the format DateTime.Now.ToString("dd/MM/yyyy") but the strange thing is its gets entered in dd-MM-yyyy format.
EVen if i manaually entered the date in database in dd/MM/yyyy and retrive the value from database , its get the format as dd-MM-yyyy.
where is the prob???
There is no problem. Databases don't store the date in a specific format - Don't know about MySql, but SQL Server and Sybase store it as a number, its up to your code to display it how you want. There will be a default format from the database (usually defined at server level) and its up to you to format it how you want.
Bob Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
Thks for ur reply, but it didn't solved my prob.
Interesting thing is date format dd/MM/yyyy in getting inserted correctly on my PC.
but when i deployed at client location its gets entered as dd-MM-yyyy format
coloum Type is varchar 50.
i search google for Open Source DotNet Based Desktop Sharing apps but did not find anything like that so please if anyone knows that there is such open source dotnet based Desktop Sharing apps then please inform me.....i will be highly obliged.
i search google for Open Source DotNet Based Sql Database Synchronization apps but did not find anything like that so please if anyone knows that there is such open source dotnet based apps then please inform me.....i will be highly obliged.
Well, you could create a BItmap from test2.jpg, and assign it to a picture box ?
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
sorry sorry that's not what i want....i want to show display privew of web cam befor i take the photos. that mean once i connceted to device i need to start show webcam video on picture box.that's what i want.
i have a excel document saved with temp.xls name.
i wanted to open this xls file as a new xls doucment,
not with the name temp.xls doc, and if we close the doc,
then documnent should ask the user to save file else
give me suggestion to solve this problem.
thanks in advance.
Your question is very hard to understand. You want to have a file called temp.xls, but don't want to open it as such? Create a copy of it and open it. If you don't want it to be overwritten, make it read-only.