|
I want my derived classes both to have the functionality from the System.Windows.Forms.UserControl and have to implement the methods and properties described in my IGroup interface.
|
|
|
|
|
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.
|
|
|
|
|
Yeah, that will probably be my solution. I now use an abstract class instead of the interface!
|
|
|
|
|
Hi,
I keep getting the following problem only on Vista. My application is working fine on XP. Need your expertise to advise me on what went wrong.
//Code fragement
GetRecords() //from Access Database
ComputeValuesforRecords() //I am modifying the record values in dataset
DisplayRecords() //I am showing them in Grid
---
This code fragement always shows an error message "There is no row at position 0' when ComputeValuesforRecords() is called. This happens only on Vista. I am not sure why this is happening. Any clues?
Thanks
|
|
|
|
|
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?
|
|
|
|
|
EliottA wrote: is that path still valid under vista?
And do you have the necessary access permissions?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I want to access HTML code of sites like www.yahoo.com through C# application to collect some info ! how can i do this?!
thanks
|
|
|
|
|
|
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 think it's a localization problem.
Save the date in MySql Date format, not in string.
|
|
|
|
|
strings wrote: coloum Type is varchar 50
There is your problem
strings wrote: 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
When displaying a date (and inserting it into db in a varchar column) without specific formating it will display the way the date settings are set in Windows.
First of all you should use a date column type.
Then you can either instruct your client on how to change his OS settings (not recommended)
or do a format of the date.
|
|
|
|
|
strings wrote: coloum Type is varchar 50.
If you had said that in the first place it would have been obvious, its a localisation issue nothing to do with sql. Use a proper datatype and your problem will be solved.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
|
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.
tbhattacharjee
|
|
|
|
|
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.
tbhattacharjee
|
|
|
|
|
i can connect to webcam....
how can i show preview of webcam in picturebox...???
private void btnDecode_Click_1(object sender, EventArgs e)
{
try
{
DeviceManager manager = new DeviceManagerClass();
Device d = null;
foreach (DeviceInfo info in manager.DeviceInfos)
{
d = info.Connect();
}
Item item = d.ExecuteCommand(CommandID.wiaCommandTakePicture);
foreach (string format in item.Formats)
{
WIA.ImageFile imagefile = item.Transfer(format) as WIA.ImageFile;
imagefile.SaveFile("d:\\test2.JPG");
A S E L A
|
|
|
|
|
Well, you could create a BItmap from test2.jpg, and assign it to a picture box ?
Christian Graus
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.
A S E L A
|
|
|
|
|
Hi,
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
where.
give me suggestion to solve this problem.
thanks in advance.
modified on Thursday, June 18, 2009 2:08 AM
|
|
|
|
|
|
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.
Cheers,
Vikram. Recent activities:
TV series: Friends, season 8
Books: Freakonomics, by Steven Levitt and Stephen J Dubner. Carpe Diem.
|
|
|
|
|
tnanks for reply, actuly i saved an excel file into temp folder,
and if we open this file and then close it from upper left corner 'X'(close) button then excel document do not ask to save
the file, untill i don't do any modification in file.
so what i want, if i launch temp
file and then user try to close the file then document should ask
the user to save the file, if user want to save the file then it should ask for the filepath where he want to save, instead of using temp file path, beacuse i am using it for temprary purpose.
|
|
|
|
|
I need a DFT library for C#. I tried this http://www.exocortex.org/dsp[^]
But it did not work the way I wanted to.
Do you know of any other librarys in C# that is available either free of cost or for money?
Thanks
|
|
|
|