|
I wrote one for .NET 1.1, but never checked if it works on .NET 2.0. Look in my list of articles.
|
|
|
|
|
thank you leppie
but i couldn't find out your post..could you please repost it or post the link for that
|
|
|
|
|
Hi,
I need to display the outlook items such as inbox,contacts, notes, calender for the current logged in user in my web application.
Can anyone give an idea how to acheive it.
Thanks in advance.
Cheers
Mani.
First have the WILL then u WILL
|
|
|
|
|
Hey guys,
im busy workin on a control, all it realy does is draw a time line and it has 6 masked text boxes aswell. the user must input 6 times and when the control's masked text boxes are filled in correctly i need it to fire an event so that a 2nd control can be given the values of this timeline control.
now i got the event working from within the control, my question is how do i give the form access to the event? maby im just missing something small, but to be honest delegates & events frighten me
public partial class TimeLine : UserControl
{
public delegate void myDelegate(object sender, EventArgs args);
public static event myDelegate dataCorrect;
public TimeLine()
{
InitializeComponent();
dataCorrect += new myDelegate(TimeLine_dataCorrect);
}
void TimeLine_dataCorrect(object sender, EventArgs args)
{
MessageBox.Show("YaY - Event Raised From Within Control");
}
further down in a common event handler (Text Changed) used by all 6 masked text boxes i do this
try
{
TimeSpan startTime = TimeSpan.Parse(mtxtStart.Text);
TimeSpan endTime = TimeSpan.Parse(mtxtEnd.Text);
dataCorrect(this, new EventArgs());
}
catch (FormatException)
{
}
thanx
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
HarveySaayman wrote: my question is how do i give the form access to the event?
As it is static (and I think that might be a mistake):
TimeLine.dataCorrect += new EventHandler(yourmethod);
|
|
|
|
|
thanx leppie, you were right
as soon as i removed the static it showed up in my intelisence
thanx again
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Hello everyone,
For a customized class, like I showed in my sample, what will Comparer<>.Default be returned? In my sample, there is System.ArgumentException.
class Program
{
class Foo
{
}
static void Main(string[] args)
{
IComparer<Foo> FooComparer = Comparer<Foo>.Default;
Foo f1 = new Foo();
Foo f2 = new Foo();
FooComparer.Compare(f1, f2);
return;
}
}
thanks in advance,
George
|
|
|
|
|
If you read the message on the exception, you'll probably find that it says that your object must implement IComparable.
Simon
|
|
|
|
|
Thanks Simon!
For built-in type like string and int, I think they implements IComparable already, but for a customized class like Foo in my sample, there is no default implementation for IComparable? Correct?
regards,
George
|
|
|
|
|
Yes, that is correct. You need to implement IComparable or create your own IComparer.
|
|
|
|
|
Thanks leppie,
I have did more study.
1.
I think Default.Compare method will convert current instance to IComparable and call IComparable.Compare?
2.
A customized class is not implementing IComparable as default?
regards,
George
|
|
|
|
|
I want to code project export databse out Excell file
thanks so much!
|
|
|
|
|
read this Click Click[^]
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Hi
I need 1 concrete codes.
Because I am research freshman about C# windown application
Help me
Thanks
|
|
|
|
|
like i said, read that article before you come here and act like anyone here HAS to give you code...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
Need 1 concrete codes.
Because I am research freshman about C#
|
|
|
|
|
Harvey, u should help. And if u can't, DON'T!
Thucnv,
From the enterprise manager you can use the export data utility to do that.
He who goes for revenge must first dig two graves.
|
|
|
|
|
you can send to me code project concrete 1 exercise yet
Help me ! URGENT
|
|
|
|
|
Thucnv,
Don't you know how to use the export data utility in SQL Server 2000 Enterprise Manager?
if it's from a web page you should read this.[^]
If from your application, can't put something up for you now. You'll have to google that.
Good luck.
He who goes for revenge must first dig two graves.
|
|
|
|
|
No, the idea is YOU write the code, and if it doesn't work someone helps sort the problem out. Many of the people who contribute on here are professional coders (some, not all!) and as such do NOT have the time or inclination to do students work for them.
So, get off your backside and write your own code and when it fails, post it with the error message.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Does anybody else get the idea that thucnv wants homework doing for him while he sleeps?
|
|
|
|
|
|
you could write your own control
i dont think there's a "family tree" control.
good luck
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)
|
|
|
|
|
If you want to show some data in tree view we can use ‘TreeView’ control and it should be enough to fulfill need.
In case if you need something different, please clarify what kind of interface is required.
-Ajay.
--------------------------------
www.componentone.com
--------------------------------
|
|
|
|
|
Hi,
Thanks for your response, I don't think that a treeview will work, cause see, unlike a treeview a family tree has 'branches' stretching left and right, thus a treeview will not work.
Ajay K. Singh wrote: please clarify what kind of interface is required
One that can slit out 'branches the left and right of the root item.
Makes sense ??
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|