Hi,
I have created a Windows Form Application using Visual C# 2008 Express Edition with target as .NET 2.0. Now I need to build this project for .NET 1.1. The problem I am facing is that the designer classes are not supported in .NET 1.1. They use the partial keyword which is not supported in .NET 1.1. What steps do I need to follow to ...
Hi All
I have an application where I'm displaying UserControls in a GroupBox. To display the controls, I'm binding to a property in the ViewModel of the main form, which returns a ViewModel to be displayed. I've got DataTemplates set up so that the form automatically knows which UserControl/View to use to display each ViewModel.
When...
I'm getting a crash while trying to debug a asp .net application via webdev from Visual Studio 2008. Normally, the usual way of troubleshooting this issue is to narrow down the code change that would lead to the crash. This is usually time consuming. Fortunately, this only happens once in a blue moon.
I'm wondering if there is a faster ...
What are the best practices in using Lucene.Net? or where can I find a good lucene.net usage sample?
...
This question is a follow-up to the one at http://stackoverflow.com/questions/895342/can-i-use-a-language-other-than-vbscript-to-programmatically-execute-qtp-tests. I have a C# (.Net 2.0) program which creates an instance of QuickTest.Application and launches QuickTest Professional (version 10.0). All my development testing worked well.
...
There have been substantial features and improvements in C# with each new release of the .NET framework, and in the upgrade from .NET1.0 to .NET2.0, Managed C++ was replaced with C++/CLI, which was a great improvement.
Have there been any improvements in C++/CLI since .NET2.0?
...
Edit 1
I believe my problem stems from the following. The function that fills the dropdown portion sets the Display Member to the CountyName. Then when I try and set the SelectedText or EditValue, as has been suggested, that function only returns the CountyID which it try's to match to something in the DropDown list DisplayMember. I ...
Can anyone think of a reason not use the ASP.NET membership providers in a winforms
application?
Has anyone have experience doing this?
...
Is there a tool to convert a VB.NET 2005 project to a C# 2008 project. I am trying to convert our project to VS 2008 and mostly port all the vb.NET code in some projects to C# 3.0/3.5.
...
This is a very short question and I fear the answer is short too.
Is there any way of doing anything along the lines of
Func<DataContext, string, bool, IEnumerable<X> fnMyQuery = CompiledQuery.Compile<DataContext, string, bool IList<X>(
(db, sortColumn, sortDesc) => (
(!sortDesc)?
db.OrderBy(x => DynamicRes...
I have some Java user interface controls that I want to host in my .NET application as I can't afford to rewrite them. How can I do that? Do I need to wrap them up in COM? How do I do that? I want the component to sit on a form with other components written in .NET.
...
My intent is that the form be sized large enough to show the entire "buttonOK", but not much larger. What actually happens is that the resized form ends up to small to even show the button at all.
public MyFormDlg()
{
InitializeComponent();
this.Height = this.buttonOK.Bounds.Bottom + SomePadding;
...
Do you consider .NET to have multiple inheritance? Why?
Yes, I know that by definition is doesn't, but I have had more than one person argue that since you can inherit more than one interface than it does. I know this is a very subjective question (hence the tag), but I was hoping to get some more views on this.
Edit I am not asking if...
I had the "pleasure" to be taught Eiffel at college by none other than Bertrand Meyer himself and just read that .NET 4.0 will include design by contract.
Can anyone with some insight elaborate on how powerful this will be compared to Eiffel's existing feature set?
Will contracts for interfaces be supported?
...
Hello everybody,
I need an advice for a project I am about to begin.
In few words, my application has to go to a certain soccer website, download the HTML and extract the necessary data.
This is what I have done so far:
:: 1) Go to a certain soccer website (ex. http://www.livescore.com/default.dll?page=england) and download the HTML ...
I have a .NET byte[] that is loaded from a file that I happen to known contains UTF-8. In some debugging code, I need to convert it to a string. Is there a one liner that will do this?
Under the covers it should be just an allocation and a memcopy so even if it is not implemented, it should be possible.
...
Hi!
Is there a way to disable all but the first x items of a WPF ComboBox by accessing its items' properties via an Index?
edit:
ComboBoxItem DiffieHellmanItem = (ComboBoxItem)comboboxName.ItemContainerGenerator.ContainerFromIndex(i));
works
...
We have a .NET project that uses WMI and are interested in porting it to the Mono framework.
It appears Mono does not support WMI.
Are there any libraries that can add WMI support?
Basically we would want to access a Windows server using WMI from a Linux/OS X box.
...
What is the easiest way to tell if .NET compiled code is using p/invoke?
...
I have been using Asynchronous operations in my WinForms client since the beginning, but only for some operations. When the ExecuteReader or the ExecuteNonQuery completes, the callback delegate fires and everything works just fine.
I've basically got two issues:
1) What is the best structure for dealing with this in a real-life system...