microsoft.public.dotnet.languages.csharp Archive - September 2004
Post a message to this list
Messages
Page: 1234567891011121314151617
Guys from MS - please read (11 replies)
microsoft.public.dotnet.languages.csharp
There are some thinks You must work on: Windows forms DataBinding. Lets take a closer look at f.e. TextBox.DataBindings.Add("text",someDataRowView,"someColumn"); 1) If I want to set new text to this control I simple make statement: this.TextBox.Text "some text"; The problem is that although Text property of TextBox displays "some text" it doesn't update bound column value. I must enter TextBox man...
Font Serialization (3 replies)
microsoft.public.dotnet.languages.csharp
According to the documentation, System.Drawing.Font implements ISerializable, and yet, when I try to serialize a Font, I get a "there was an error reflecting blah blah class." Anyone know what's up with this? Cromas
Solution to ListView flicker (6 replies)
microsoft.public.dotnet.languages.csharp
The flicker in the .Net ListView control was driving me crazy. For every update to the control, the entire background was redrawn. There are many threads in this newsgroup about this issue (applies to TreeView as well), but so far none of the solutions have worked for me. This is what I came up with instead. It works beautifully and I haven't come across any drawbacks (no pun intended) yet. The so...
System.NullReference exception (6 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hello, I am facing a very strange problem in my application. I have a form on which I select a path. I open the FolderBrowserDialog for path selection. Once the path is selected I press a button "Search" for searching documents on that path. This search process runs in a separate thread so that I can search for multiple paths simultaneously. I face problem here. After starting the search for one p...
How do I read user's regional settings ? (6 replies, VIP)
microsoft.public.dotnet.languages.csharp
I want to know the decimal separator and the group separator character that the user has set in Regional Settings in Control Panel. I tryied to use System.Globalization.NumberFormatInfo.CurrentInfo like that: NumberFormatInfo numInfo System.Globalization.NumberFormatInfo.CurrentInfo; string ds numInfo.CurrencyDecimalSeparator; string gs numInfo.CurrencyGroupSeparator; These properties do not conta...
Equivalent of ListView custom draw in C# (4 replies)
microsoft.public.dotnet.languages.csharp
I know how to make the selection bar be drawn across the entire ListView in C . I also have done sub item background color changes using custom draw. Is there an easy way of doing this in C#? Does ListView toss some kind of ItemPaint event? I'm an MSDN subscriber, but this is not my real e mail, Joe Schmoe
Custom save file dialog (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
Does anyone know how to create a custom save/open file dialog? What I need is to place a textfield on the dialog but it is not possible by inheritance since the SaveFileDialog/OpenFileDialog API classes are sealed. Has anyone done this/knows how to do this? I would be very grateful for some help or directions. /Bjorn
Performance difference (2 replies)
microsoft.public.dotnet.languages.csharp
Is there any performance difference between a public method and a private method? Or the difference is just the scope? Thanks Aaron
Will Garbage Collection in .Net to collect COM memory. (4 replies, VIP)
microsoft.public.dotnet.languages.csharp
Dear Group Gurus, If I use a COM class in my C# code, will the memory used by COM object be garbage collected, or do I have to manually collect it. Thanks, John
Setting unique key in DataTable (2 replies)
microsoft.public.dotnet.languages.csharp
Hi All, Iam using datatable in my C# application. My problem with the datatable is that when i tried to bind the same column name to a datatable it is throwing error that the names already exists in the datatable.Is there any way to set unique key to the datatable so that it can accept same column name. Thanks, Venu.
overloading the ctor question (8 replies, VIP)
microsoft.public.dotnet.languages.csharp
Here should be an easy question. I want to overload the ctor of the class with 2 versions, one takes 3 input parameters and the other takes 2, if I call the "2" version I want to simply call the 3 version but pass in a private variable for the missing parameter. But at compile time, I get "An object reference is required for the nonstatic field, method, or property ..." public class TestExample { ...
.ascx and Session (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi All, How apply Session[""] to .ascx files? Thx.
What is changing my registry? (4 replies)
microsoft.public.dotnet.languages.csharp
Is it possible with C# to find out which program is changing certain keys in the registry? I've already searched for "registry watchers" code examples or downloads, but they seem to only take before & after snapshots of the registry to show you what keys/values changed, and not "who" changed them. Any suggestions?
iframe (2 replies)
microsoft.public.dotnet.languages.csharp
I have iframe in webform and I load a page into iframe, then when I click on button on this page I want go back on the previous page, which was in iframe before. How can I do it?
Mutable struct (9 replies, VIP)
microsoft.public.dotnet.languages.csharp
What is a mutable struct? regards Kjetil Kristoffer Solberg
Reflector how can you secure your effort? (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
With the reflector tool .exe, .dll can be decompile? how can we secure our work?
copy/paste from VS looks bad (3 replies)
microsoft.public.dotnet.languages.csharp
This may not be the right forum, but it's a problem I chiefly come across when trying to post here. When I do a copy/paste from VS, the text always looks really weird (and even if I'm in an editor that's supposed to be doing plain text, it looks like it's in a different font and of course you can't change the font in a plain text editor.) Then when it gets converted to actual plain text, there is ...
type difference (3 replies)
microsoft.public.dotnet.languages.csharp
Hi, I am tryind to delete from a table using a Stored Procedure, but I don't know how to do the following: The DELETE STATEMENT must be: DELETE FROM MESSAGES WHERE MSSGID IN (@MSGIDS) The problem is that @MSGIDS always is something like this: 1,3,5,7,11,12. It's VARCHAR parameter. The problem is that MSSGID is the Primary key and it is INT. How could be solved this problem? Thank you in advance! V...
How to find ancestor class method definition in Visual Studio (2 replies)
microsoft.public.dotnet.languages.csharp
Is there a quick and easy way in Visual Studio 2003 to get the method declaration from the ancestor so I can override/extend it? I know that if I am in another method or the constructor and type base. then the popup list shows all the events/method/properties... I can cut and paste from the ancestor code but there must be a better way. thx
Constructor calling a constructor (5 replies)
microsoft.public.dotnet.languages.csharp
How do you go about calling a constructor in the same class from another constructor? (see below) Roger ie. public class1() { Does some general initialization } public class1(string Thing1) { /// Call class1() for general initialization /// set a property to Thing1 }
Properties : set different from get (3 replies)
microsoft.public.dotnet.languages.csharp
Hi, In a property : is it possible to define the get part as public, and the set part as protected for example. In general : to define get and set with different accesibillity. Thnx Chris ********************************************************************** Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Test if font is installed? (3 replies)
microsoft.public.dotnet.languages.csharp
How can i test if a certain font is installed? Thanks.
How can I use System.Security.Cryptography (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, I need encrypt string with using one key. Write please short example, how can I do it? Thanks Lubos
Sharing code between Smart Device Project and desktop project (8 replies, VIP)
microsoft.public.dotnet.languages.csharp
I'd like to have a set of more or less common code which I want to use for both desktop and smart device projects. I have two questions: 1. How can I set up conditional compile directives for those parts of the code which are different on desktop and smart device projects 2. How can I actually share the same .cs source code files between the two projects. If I try to open a smart device project an...
managed extensions for orbic. (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi all, I'm looking for creating managed extensions, to interface between .Net and orbix 3.x or 6.1. can anyone please help me in finding out the information for creating managed extensions to translate .Net objects(strings mainly) to com objects(bstr / combstr). Thanking you all in advance. Jay
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification