I have an array of objects that I'm trying to add to the Items collection of a combo box control using the AddRange method. The method takes an object[] but when I pass it the name of the array which has been intialized with some values, it complains:
The best overloaded method match for 'System.Windows.Forms.ComboBox.ObjectCollection....
Hi All,
I've just finished planning for a web-dev app, and I need to build in a browser control to preview pages in. But, I won't use I.E. I want to use WebKit (this is for personal use), and I have searched all over google (and webkit's site) but am somewhat confused as to what I need to download in order to use the webkit rendering en...
I remember I had some app the launched other applications and placed them in tabs in it's form without the titlebars.
I wonder how can that be done?
Preferably with C# but if it's not possible/too hard within .NET C++ is fine too.
Thanks.
...
2 parts of the question
I want to Develop Software for Windows (especially 7)
What Language and knowledge Do i Need to know ?
What Software should i use to develop them ?
Please answer the question w.r.t both stand alone binaries and perhaps the .NET arena too.
Does one need to code really deep or are there softwares that enable me ...
Hello,
I wondered if/how I can override the default [Authorize] behavior in ASP.NET MVC. I know that I can create a new Action Filter, make my own attribute and so forth; I am merely interested if I can simply change the [Authorize] behavior and replace its workings with my own code?
Edit: Guys and Girls. I appreciate your input but as...
Microsoft should have implemented something snappy for INotifyPropertyChanged, like in the automatic properties, just specify {get;set;notify;}
I think it makes a lot of sense to do it. Or are there any complications to do it?
Can we ourselves implement something like 'notify' in our properties. Is there a graceful solution for impleme...
Is it possible to restart IIS7 using C#? If so, how?
...
Hello,
I'd like to output (programmatically - C#) a list of all classes in my assembly.
Any hints or sample code how to do this? Reflection?
...
Hello,
I'm looking to test system responsiveness etc. on a few machines under certain CPU usage conditions. Unfortunately I can only create ~100% usage (infinite loop) or not enough CPU usage (I'm using C#).
Is there any way, in rough approximation, as other tasks are running on the system as well, to create CPU usage artificially at 2...
If LINQ-to-SQL overcomes the object-relational impedance mismatch of a .NET application talking to a SQL Server database...
If I want to build a .NET MVC UI, where my model queries a Documentum CMS database...
Is there a LINQ to DQL (Documentum Query Language) library ? ...
... that will help me overcome the object-relational impedan...
Hi,
I'd like to know if there's any way to force the System.Net.Dns class to resolve hostnames using a set of custom DNS servers instead of using the ones that are associated with the main network connection.
I suspect that this is only possible using a custom library like DnDns (http://dndns.codeplex.com), but I was hoping this could ...
Behold the code below:
<Grid>
<TextBox>BOX</TextBox>
<TextBlock>block</TextBlock>
</Grid>
The words block and BOX are written over eacht other and no keyboard input is possible in the textbox.
Now consider this:
<Grid>
<TextBlock>block<TextBlock/>
<TextBox>BOX<TextBox/>
</Grid>
The TextBox covers th...
How to Free a Port in .NET used by TCPListener....
after a TCPListener has recieved a required thing from
...
On large-scale Java/.Net Enterprise projects, does every developer need to have all the components/libraries/dependencies in their classpath/local development environment, in order to make it build?
Or are they divided up into smaller sections can be built in isolation (so that they don't need to reference all the dependencies)?
In o...
Any cheatsheet available for Collection and Generics in C# 3.0 or 3.5 ?
...
Hi
I am integrating an app with a service (iContact), that describes its API as "rest-like". I post XML, and everything works fine... Until I send special characters like æøå - then I get a "bad request" error from the server.
<contacts>
<contact>
<firstname>Søren</firstname>
<lastname>ÆbleTårn</lastname>
</contact>
</conta...
I was reading Jon Skeet's refcard on C#. He stated:
"Events are closely related to delegates but they are not the same thing."
So from my understanding, when events are raised, handlers (delegates) execute the code.
I have the following doubts:
(1) When we declare an event , will it be registered in any "REGISTERS?" or "System Re...
Currently, I am trying to fill an SQLite database with tens of thousands of text data using this this method:
SQLiteConnection = new SQLiteConnection(cntnStr);
connection.Open();
foreach(Page p in pages)
{
using (SQLiteCommand command = new SQLiteCommand(String.Format("Insert Into Pages (ID, Data, Name) Values ({0}, '{1}', '{2}')"...
It is true in .NET that all types inherit from System.Object.
What I find paradoxical, is a few methods on System.Object - namely
public virtual string ToString();
public virtual bool Equals(object objA, object objB);
System.String is inherited from System.Object:
[Serializable]
public class String : Object { /*...*/ }
System.Boo...
I have a simple app written using SQL Server, Entity Framework, C# and WCF. When I wanted to share this app with my friends, I realised they didn't use SQL Server on their machine. I could go for SQL Server Express edition, as the usage of my app is personal and non-commercial.
I found MySQL as a popular alternative to SQL Server.
...