I'm a C#/Windows Forms programmer with more than 5 years experience. I've been investigating WPF using the MVVM (Model-View-ViewModel) design pattern. I have searched the Internet for tutorials. I have even watched the entirety of Jason Dolinger's awesome video. Although I have found many, I have not found one that takes me from start to...
Is it possible to leave a Menu open after a selection/check of certain menu items in Compact Framework? I found an answer to this but it doesn't work for Compact Framework.
I want to check a menu item but have it stay open after I check the item.
...
I'm asking this question despite having read similar but not exactly what I want at http://stackoverflow.com/questions/495051/c-naming-convention-for-enum-and-matching-property
I found I have a tendency to name enums in plural and then 'use' them as singular, example:
public enum EntityTypes {
Type1, Type2
}
public class SomeClass {...
I'm new to .net remoting,i done few sample applications on .net remoting.i can easily
get a file from the server through the remote object but i dont know how to send a file to the server side ,if it is possible through a interface means how to design it.give me some suggestions and links ,it will be useful for me to drive in the right d...
Is there a proper way to break from a foreach such that the IEnumerable<> knows that I'm done and it should clean up.
Consider the following code:
private static IEnumerable<Person> getPeople()
{
using (SqlConnection sqlConnection = new SqlConnection("..."))
{
try
{
sqlCon...
Some of exceptions thrown like this:
throw new Exception( errMsg );
... doest reallly stops my application!
My expectation is when I'm throwing any ex. - app shall stop immediately.
But I noticed my app throwing one ex. after another (especially when binding) instead of terminating same time
EDIT_1:
I dont have try-catch block when ...
Can any one please suggest me the best approach to connect to mainframe from .net.
I have to develop an web application, in which i have to follow NIEM standards for data exchange between two end clients. the interface i have to develop will be on .net. i don't have any knowledge on mainframe, i have come across that there are ODBC con...
Hello everyone,
I am using VSTS 2008 + C# + .Net 3.5 + Silverlight 3.0. I host a WCF service in IIS 7.0. My question is, besides using https + basicHttpBinding, are there any other security solutions? I want to find a security solution which does not need certificate on server side. I am not sure whether message security works without c...
Hi All,
I am novice to .NET framework and started working on developing a web application, it would be great if I can find answers to couple of my novice queries listed below (I really appreciate your response).
Where we can find best practices related to design, coding, testing and deployment of .NET (ASP.NET/C#)? - I have googled an...
In my parentpage I have dropdownlist, multiview and button. Multiview has a user control.
On click of the button i pass the selected value from dropdown to the user control and call the databind method to populate the user control with corresponding data.
User control has gridview which is populated using objectDataSource. I'm using t...
If I am using .Net and SQL Server 2008, what is the best way for me to store a color in the database, should I use ToString or convert it to an integer, or something else?
Edit:
All I want from the colour is to be able to retrieve it and draw something on the screen in the specified colour. I don't need to be able to query against it.
...
I'm writing a windows mobile application which will be running on a PDA, not a smartphone. It will also be used in an area with spotty wifi reception, so I need to be able to sync the data on the application when it is connected to another computer. What APIs or frameworks should I look into to perform this? I've looked at RDA and Syn...
I am looking at adding logic to a library I am working on that would require the need for a Dynamic Proxy. I would like to get some advice from user's who have used these two library's in a production environment. Does one out perform the other, were there any shortcoming's which made you have to switch to the other, etc. Basically te...
I am writing a system in C# .net (2.0). It has a pluggable module sort of architecture. Assemblies can be added to the system without rebuilding the base modules. To make a connection to the new module, I wish to attempt to call a static method in some other module by name. I do not want the called module to be referenced in any mann...
I am using a webbrowser control to login to a website.
WbBrowser.Navigate("http://www.foo.com/login.php")
Once the page is loaded I login using the following code
While WbBrowser.ReadyState <> WebBrowserReadyState.Complete
Application.DoEvents()
End While
WbBrowser.Document.GetElementById("user_login").SetAttribu...
By default, double-clicking a ListViewItem toggles its Checked state. I only want the Checked state to be changed by clicking an the item's checkbox or pressing the space bar while an item is highlighted. Is this easy to do?
...
Valid ones should contain at least one number or letter (from 6 to 15 chars long) in any order. e.x.
11111a
111a11
a11111
I found similar posts within SO but they seem to be out of order...
...
I've recently read about the boost::statechart library (finite state machines) and I loved the concept.
Does C# have a similar mechanism ? Or can it be implemented using a specific design pattern?
...
What is the total number of classes in .NET? The number that
is in the downloaded runtime for .NET 2.0, .NET 3.0 and .NET
3.5 SP1.
We are writing a scientific paper about an application that
is based on .NET and currently state that there are more
than 6000 classes. But I am not sure if this is the correct
number.
For instance this pag...
I am using the following code to save an object and all its properties to a db. It saves me from having to create a save method in every business object. The code in my base class is:
public void Save()
{
List<SqlParameter> Params = new List<SqlParameter>();
foreach (PropertyInfo Property in this.GetType().GetP...