Answer Questions
trerick Generic comparison to null broken in July CTP
Everyone knows that one cannot ordinarily use ==/!= on generic types because these operators might be undefined. However, up to Whidbey June CTP it was possible to write (x == null) or (x != null) when x was a generic type. After all, the documentation explicitly states that null comparisons are possible (and will return false if typeof(x) is a value type). Now I've installed the July CTP, and suddenly compilation gives an error on such null com ...Show All
mmssi Capturing KeyPress "Always" !!
Greetings... My Form needs to capture the KeyPress and KeyUp events. I did set the KeyPreview property to true and it works almost all the time ! When the application starts, it doesn't work... I fist need to touch something (i.e. give the focus to a control) so that the key press and up events could be treated properly. How can i go around this Thanks ! Acoquinar Having the same issue with VB.NET: Platform ...Show All
OlgaD windows forms + popup +variable value
Looking for some help, if you have the time (anyone) it'd be great. Here's the deal. I've got a windows form...dropdown list of states. If Florida is selected, I want a pop-up window to ask for a $$ amount. Then that value in the pop-up has to be stored in a variable so I can do some math on it before displaying it in a summary box. Any idea how to do a windows pop-up, grab a value entered, and then display in a text box with something like ...Show All
Amadelle MF_ProtectedPlayback Sample doesn't work for Video on Vista Beta 2:
1. Installed Vista Beta 2; 2. Installed Vista Beta 2 SDK; 3. Build MF_ProtectedPlayback Sample from provided samples; When starting both Release and/or Debug versions of MF_ProtectedPlayback Sample with both Adminitrative and not-Administrative priv. as well as with DRM and not-DRM Video content => getting complain in the form of 3 Message Boxes: "Windows -- Bad Image: X is either not designed to run on Windows or it contains ...Show All
amr_sawy Persistant Presentation Layer...
I am interested in designing a presentation layer such as the one in VS 2005 IDE! Could anyone suggest some online reading material where I can learn the fundamentals of managing this idea -LeRoi, This one is going to be even trickier than the designer. I'll try my best here (from a really high level design): 1. First of all, you'd have to subclass a splitter panel and make it splittable at run-time dyna ...Show All
Woserbop Adding Windows Media Player
I was looking in the References and seen i can add a Windows Media Player...So i was woundering what is needed to add it to my Project Other than the References right click on the solution in your treeview and select "Add existing project" Got it Thxs.... This is my First Time adding a Project into another Project..What Code do i need to put in to Reference my ot ...Show All
Nicolai Sorensen Referencing Value Variables
I want to do something where I can take any variable, reference type (no problem) or value, and have a reference to the data, rather than just the data (in the case of value variables). Example: //create three objects for reference object obj1, obj2, obj3; //create two ...Show All
d1mann Intellisense showing private members out of context
Is there a way to tell VS 2005 to not show private members in the intellisense list when working outside of a class I declare fields as: public string Name { get { return this._name; } set { this._name = value; } } private string _name; However when I instatiate the class and start using it, _name is listed in the intellisense list, why it does this I do not know, It just adds t ...Show All
Evg In C#, when I insert a record into Access tabel, why will it cause error if the length of string inserted extend exceed the
I define a field "myField" in the tabel "AccessTable", the length of "myField" is 3 when I insert a string with the length 7, it will cause error, why myCommand.CommandText="Insert into AccessTable (myField) values ('123457')"; //cause error!!! myCommand.CommandText="Insert into AccessTable (myField) values ('12')"; //OK When I do the same thing using Pascal in Delphi, if the length of string exceed the length of a fiel ...Show All
Manivannan.D.Sekaran !!! IF MICROSOFT HEAR US!!!
I just saw another thread with "Can i make a app that doesnt use the .NET. The framework is too big 23 MB".. SO... Can Microsoft create a .Net Framework just for c# not for asp or j# or visual basic providing only the neccesary dlls Please!!!! Yeah, I agree, I sure as hell wish they would have. I love Microsoft, but this does seem to be a small oversight in my opinion. ya guess your right.. but h ...Show All
CSharpIsBFlat Generic Collections with Events?
Hi, I am trying to make a tabbed control of my own. It's for a text editor and since the default one doesn't have the close button or a nice litle overflow menu like mine does now, I needed to make my own. I have an implementation now, but I am not very happy with it. What I would love to be able to do is have something like the default TabbedControl, where you can do mTabControl.TabPages.Add(key, tabpage); I am trying to use Generics so I d ...Show All
Sean0890 Getting the environmental variables
hai, Is there any possible ways to get the value of the environmental variables. I set one variable "set SING=Y" in the command prompt. how to get that value in the c# program. thanks in advance, singam it is located in System namespace see http://msdn2.microsoft.com/en-US/library/system.environment.aspx hope this helps thanks, can you give me the namespace for that class(Environment) ...Show All
Apsis Accessing a Windows Integrated SSL secure website using HTTPWebRequest and HTTPWebResponse
I am trying to access a web site that using Integrated Windows Authentication ONLY and SSL. Does anyone have an an example or a resource that details how to deal with the SSL when opening an HTTP request. You can check: www.mentalis.org, they have a free SSL implementation in C#. There is not SSL implemenation in .NET 1.x as far as i know. In .NET 2.x you can use the Secure Sockets. ...Show All
Andy Tarpey Loading html into an object
I need a way to convert a full web page I have in a string variable into an object like the IE Dom so I can get values out of cells in the tables on the web page. I am using VS 2005 for Software Testers (VSST). What I am testing is dynamic and I can't get away with direct record and playback. (As if anyone ever can) What I need to do is post information to the web server and then get out of the response some key information that needs to be u ...Show All
Koltron com addin help?
I am currently developing a com addin for outlook and this is specific to only office xp but i want to target it for all versions of office. Can we develop a com addin for outlook that works for all versions of Office.If this is possible plese give me some details of how to do this. Regards mohsin ...Show All
