|
First off, I would say decide which version you want to start learning, either v3.0 or v3.5.
The .NET Framework v3.0 is out now while v3.5 won't be released until the end of this year (or possibly the beginning of next year). That being said, both v3.0 and v3.5 have the v2.0 runtime (CLR) at their core. The differences are in the extra "bits" that have been added.
The .NET Framework v3.0 added WPF, WCF, WF, and CardSpace to the v2.0 Framework while v3.5 adds LINQ and some other bits to the v3.0 Framework.
By learning what is available in v3.5 of the Framework, you will also be learning what is in v3.0 of the Framework.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Well, 3.0 is big - WPF, WCF, WF and CardSpace. It's probably worth just picking one of the components initially and spending some time on that. For example, for now I'm tackling WF and I've looked a little at WCF. But I've yet to look at WPF or CradSpace. But I'd say WPF and WCF have more of the mindshare at the moment, in terms of what businesses are looking at. Though only a handful of got that far yet.
If you wish to look at WF, this is a good reference:
http://msdn2.microsoft.com/en-us/netframework/aa663322.aspx
I've looked at the first two articles there and built and run the application for the first.
The MSDN nuggets on WF are worth perusing.
MSDN WF Nuggets[^]
However, note that they're listed in reverse chronological order. You should start from p6.
Finally, the book Pro WF[^] by Bruce Bukovics is very accessible with lots of runnable sample apps.
Kevin
|
|
|
|
|
Thanks I will look at that. Thanks again for answering.
Regards
|
|
|
|
|
Hi,
I would like too know, from where i will be able to download the Interop.MSXML2.dll. i have to refer that in my project. i have tried the following link, http://download.microsoft.com/download/7/a/7/7a72ca2e-39cc-4600-ab36-bf3fea876a65/msxml3.msi[^]
but after installing that msi i didn't find the required dll in my machine.
pls guide me,
Thanks in advance
sebastian
|
|
|
|
|
|
I have a panel in design time.I am adding textbox into the panel at run time,first textbox added automatically.when focus left from first textbox,then a new textbox added to the panel.i have changed the autoscroll property to true,but when scrollbar cames at that time the textboxes are taking places automatically.
|
|
|
|
|
Dillipb wrote: but when scrollbar cames at that time the textboxes are taking places automatically
Not very clear with this. Better post your code
|
|
|
|
|
|
Is there a way to determine whether or not a network connection is active?
Basically i have a windows service, and i need it to fire an event whenever a packet is received or sent...(aka when the network is active?) anyone have any ideas?
xblindsidex@optonline.net
|
|
|
|
|
There is not event for this. You'll need to write your own component using a packet capture library and create and fire this event yourself.
But, you have another problem. You can't fire an event on every packet and expect some piece of code to be able to handle it. Packets can be transfered at a rate faster than your other process can process the events.
What did you plan on doing with this?
|
|
|
|
|
Well i figured out how to do it sort of...Usign a byte count, when the byte count goes up, i know there has been some net activity.
Thanks for the reply,
my next problem is that I cannot find a way to determine what URL's a person has browsed to...is there anyway to do this?
I am trying to create a logger that will log the internet activity usage of a computer...anybody have any ideas?
|
|
|
|
|
Use a proxy server. It has all the capabilities to do this, plus logging.
You're going about it the hard way, by far.
There is no API that will tell you every instance of every browsers URL history.
|
|
|
|
|
I want to use the class BackgroundWorker in a project I'm working on but I want to eliminate the need for the client to cast the arguments in some of the methods and events. So I want to derive a class from BackgroundWorker. I'm not sure how to implement this and I want to ask for some advice.
I know that I need to modify the following:
RunWorkerAsync
DoWork:
DoWorkEventArgs
RunWorkerCompleted
RunWorkerCompletedEventArgs
I understand that I can cast any reference object and pass it into RunWorkerAsync and then unbox it inside the the thread from DoWorkEventArgs.Argument since it returns an object but I want to hide that from the user. Instead, I want the custom class available in the Argument property. I want to be able to do the same thing for the RunWorkerCompleted event. I want RunWorkerCompletedEventArgs.Argument to return the custom class.
I know I will need to derive new EventArg classes but how do I get the data to/from the thread? Should I override the OnDoWork and OnRunWorkerCompleted methods to handle all of the casting in the background or do I create new event handlers, events and helper functions or is the solution a combination of the two? Any help will be appreciated.
Thanks
Steve
|
|
|
|
|
sro116 wrote: I want to use the class BackgroundWorker in a project I'm working on but I want to eliminate the need for the client to cast the arguments in some of the methods and events.
Why do you want to do this? When you say "client" I assume you mean the developer who is using your class. If so, where is the benefit in deriving your own class?
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hi
I am creating a subtree of XmlElement and XmlText which later are to be inserted into another document. However, it seems that XmlElement only can be created from an existing XmlDocument so I am in trouble. Is there any "workaround" for this so that the XmlElement and XmlText can be created "standalone" without any XmlDocument?
|
|
|
|
|
No, but the XmlDocument doesn't have to be anything special, I've used something like:
class x
{
private static readonly doc = new XmlDocument() ;
...
void somemethod()
{
XmlElement e = doc.CreateElement ( ... ) ;
...
}
}
|
|
|
|
|
Hi all,
I have some problem with hosting an WCF-Service.
I have build my interface and my service.
And then I want to instantiate my ServiceHost with the type of my interface.
But I get an error:
"ServiceHost supports only Class-Service-Types".
When instantiate my ServiceHost with the type of my class, it have no problem.
MSDN-Documentation says:
ServiceHost (Type, Uri[]):
Initializes a new instance of the ServiceHost class with the type of service and its base addresses specified.
Is it not possible to use the type of an interface?
Or have I make an other error?
Thanks in advance for your helpings!
Martin
=== MY SAMPLE FOR BETTER UNDERSTANDING ============
// MY INTERFACE
[ServiceContract()]
public interface IAddressService {
[OperationContract]
Address GetAddress (Int32 index);
}
// MY IMPLEMENTATION OF THE INTERFACE
[ServiceBehavior()]
public class AddressService : IAddressService {
...
}
// MY SERVICE-HOST
static void Main(string[] args) {
// THIS PRODUCES AN ERROR
ServiceHost host = new ServiceHost(typeof (IAddressService));
// this makes no problem
// ServiceHost host = new ServiceHost(typeof(AddressService));
host.Open();
...
host.Close();
}
|
|
|
|
|
Hi,
I want get the actual quota's assigned to a user account.
The code is as follows.
public class QuotaInformation
{
public String DiskSpaceUsed;
public String Limit;
public String QuotaVolume;
public String User;
}
.
.
.
void GetQuotaInformation()
{
ManagementObjectSearcher searcher = new ManagementObjectSearcher(ManagementPath.DefaultPath.Path,
"SELECT DiskSpaceUsed, Limit, QuotaVolume, User FROM Win32_DiskQuota");
foreach (ManagementObject queryObj in searcher.Get())
{
Console.WriteLine("Disk Space Used: " + queryObj["DiskSpaceUsed"].ToString());
Console.WriteLine("Limit: " + queryObj["Limit"].ToString());
Console.WriteLine("QuotaVolume:" + queryObj["QuotaVolume"].ToString());
Console.WriteLine("User: " + queryObj["User"].ToString());
QuotaInformation quotaInfo = new QuotaInformation();
quotaInfo.DiskSpaceUsed = queryObj["DiskSpaceUsed"].ToString();
quotaInfo.Limit = queryObj["Limit"].ToString();
quotaInfo.QuotaVolume = queryObj["QuotaVolume"].ToString();
quotaInfo.User = queryObj["User"].ToString();
}
}
when i used the code in the windows application. it works. it gets the actual quota
inforamation for each user account on my computer.
However, i used the code in the windows service. it gets quota information only for
Asministrater. not for the other users (for example, dad, mam, and grampa).
How I can get the quota information for all the users on my computer.
Thanks for reading.
-- modified at 4:23 Thursday 21st June, 2007
|
|
|
|
|
As default a service runs under the 'Local System' account. This account is restricted for security reasons.
Using the Services snapin for the MMC you can change the account the services runs under which should allow you more control.
|
|
|
|
|
Hi, originSH.
Thank for reply.
I have changed the account the services runs to my account (Administrator). but no luck.
goblins
|
|
|
|
|
First, the quota service has to be turned on. Then, by deault, there are no quotas. They have to be setup first.
|
|
|
|
|
Hi, Dave.
I set up the quota service in the first place. there are entries, Bob, Alice, Administrators, LOCAL SERVICE, etc.
Thanks.
|
|
|
|
|
Hi,
I have a MDI app. On one of the forms I have a control, that uses Ctrl + Shift + F4 and Ctrl + Shift + F6 as a shortcut. The problem is, that the control never gets the keys, because they are used for closing the form and switching MDI forms. Is there a way to disable this function, so they get to the control?
Thanks for reading ...
|
|
|
|
|
Have a look at Control.IsInputKey
|
|
|
|
|
Thanks for directions, but doesn't work
|
|
|
|