.net

Trouble with changing text on a textbox in vb

Hello I am having a problem changing the text color of a textbox in vb I know that changing is like this Textbox.ForeColor = Color.Red when I do this it doesn't change anything still gives me the same black color . Also can it be because it in read only or is there some wrong with visual studio or My project Edit: I am using VB 9 or ...

What are the good certifications for .NET developers?

Some of my students want to gain certification in the .NET area. What are the other certification options other than MS certifications, that have value in the open market? This can be in both web application development or Windows application development or any other related with .NET. ...

Is possible to encrypt with private key using .net RSACryptoServiceProvider?

I kown RSACryptoServiceProvider can encrypted with the public key,then it can be decrypted with the private key. Is possible to encrypt with private key and decrypted with the public key using RSACryptoServiceProvider ? ...

How to create a dump of the current ASP.NET managed process for debugging?

I'm attempting to debug an ASP.NET application. It's particularly difficult as the bug only occurs in the released code deployed to production. It cannot be reproduced in the development or test environments. I'd like to investigate further by creating a dump file at a particular line in the code where the problem is happening. However ...

how to extract maximum date from web page in dot net window application

hi In my application I want to extract the latest date shown in web page. I am using System.Xml.Linq.XDocument class to extract content. But I am not able to extract pubdate of feed. Here is my code but its giving exception. System.Xml.Linq.XDocument feeddata = System.Xml.Linq.XDocument.Load( "http://feeds2.feedburner.com/pla...

How to return a paged list from a property of a Domain Object using NHibernate and a Repository Pattern

Hi, From the text "The Repository" pattern is a Mediator between the Domain and Data Mapper layers. Cool. So for example, maybe there is a Repository interface and Base Domain Object like so public interface Repository<DomainT> where DomainT : DomainObject{ DomainT Get(Object id); } Then a concrete implementation would be publ...

showing popup in c# .net

I want to show a stylish pop up in c# window application if certain condition satisfy.just like in gtalk .actually Iam showing rss feed web page and for every new feed i want to show pop up with some music for notification . So jow can i add audio in this application and play the same on timer tick for certain condition . ...

Where to find the nifty Textbox with the grayed out instruction?

While logging in to msn-messenger you have these nifty textboxes that show you what to type (username, password) in gray text. Once you start typing it disappears. This surely is not hard to implement using a user control in WPF, but is this control/behaviour already available? ...

Is there a set type in .NET 2.0?

Possible Duplicate: Is there a Set data structure in .Net? Duplicate: this is a duplicate of "Is there a “Set” data structure in .Net?". Please close it as a duplicate and address any further answers to the earlier question. Is there a generic collection analogous to the STL set<T> template in the .NET framework? If not, how w...

Image Property Tag Constant

I'd like to use the image property tag constants defined in GDI+ from .NET. I wonder whether these constant values (e.g. PropertyTagGpsVer constant) are exposed in any of the Base Class Library? I have tried looking around System.Drawing.Imaging namespace to no avail. ...

Http session issue

Hello everyone, I met with strange session issue. I have developed a web site which uses session to track user specific information to determine whether a specific user has permission to access some part of the web site. I am using VSTS 2008 + .Net 3.5 + C# to develop ASP.Net web site. In my design, when I access http://mysite/sitemana...

Looking for tutorial to call WCF service from Java

I have some Java code and I want to call a WCF service which I developed by using VSTS 2008 + C# + .Net 3.5 and using basic Http Binding. Any reference samples or tutorials are appreciated? ...

Auto-converting numbers to comma-fied versions

Given the following text /feeds/tag/remote-desktop 1320 17007 22449240 /feeds/tag/terminal-server 1328 15805 20989040 /foo/23211/test 1490 11341 16898090 Let's say we want to convert those numbers to their comma-fied forms, ...

Is there a better alternative to Console.ReadKey()?

Most programming books will tell you to use Console.ReadKey() to pause the console, but is there a better alternative? Console.WriteLine("Press any key to continue."); Console.ReadKey(); ...

.Net - X509Certificate2 vs X509Certificate

What is the difference between the two? ...

http meta refresh issue

Hello everyone, I am using http meta refresh to reflesh current page to keep session live. I am using VSTS 2008 + C# + .Net 3.5 and developing ASP.Net application. My question is, is it possible to send from client (browser) side If-Not-Modified-Since request header to server side and check if at server side responses 304 Not-Modified ...

What is the best WPF Graphing control?

Our latest project is using WPF for a rich client and we need a graphing tool that makes the best looking graphs that also has the ability to do the following with the graph: Line Graphs with the ability to add data points Hot spots on the graph that allows for interaction Ability to add new data on the fly and have the graph auto ref...

Multiple endpoints under IIS

I have been trying to add a new endpoint in a service hosted under IIS but haven't been able to figure it out for the past day or so. This is my understanding: you can have multiple endpoints under IIS as long as they have unique addresses. you could assign a base address but it will be overridden by the virtual directory setup in IIS...

C# StructLayout.Explicit Question

I'm trying to understand why the second example below works with no issues, but the first example gives me the exception below. It seems to me that both examples should give an exception based on the description. Can anyone enlighten me? Unhandled Exception: System.TypeLoadException: Could not load type 'StructTest.OuterType' fro...

How do I detect if both left and right buttons are pushed?

I would like have three mouse actions over a control: left, right and BOTH. I've got the left and right and am currently using the middle button for the third, but am curious how I could use the left and right buttons being pressed together, for those situations where the user has a mouse without a middle button. This would be handle...