I am writing a windows forms UserControl and want to show a tree of properties for it in the designer. I have seen some controls that do this. For one control example, the "Appearance" property is a node that opens up to a set of properties, and also contains an "Options" node that opens to show even more properties. So far all I can get...
There is Microsoft names of assemblies guideline but personally I don't like lengthy names in solution tree. When there are dozen of lengthy names it's hard to pick the project you want.
Do you keep project name same as assembly name or short it somehow?
For example if there is MyCompany.MyProject.Dal.dll assembly maybe it's more use...
Hi,
Is it possible to write a Windows app that can capture packets on the PC such that this application can be installed/run as non-admin? If yes, what would be the approach, e.g. which language, which API/Library to use etc (e.g. would it be with the Windows Sockets 2 (Winsock) library?)
I've looked at Network Monitor API's however t...
I'm moving one of my macros over to become a VS2010 extension. I have the line from the macro...
Dim items As EnvDTE.UIHierarchyItems = DTE.ToolWindows.SolutionExplorer.UIHierarchyItems
I've managed to get DTE - DTE dte = GetService(typeof(SDTE)) as DTE;
but it does contain a ToolWindows Property.
I tried using dte.Windows to get th...
all of we know the .net api is wrapper for win32 api
now how can i find which .net function map in which win32 function
i seen this list http://msdn.microsoft.com/en-us/library/aa302340.aspx
but i need to know other function
if i need any tool?
...
Hi,
I'm sure most people who use the entity framework sometimes need an entity only for some business operations without it actually ever getting persisted to the database. For example, an online shop checkout wizard where you want to fill the customer and address info, but only persist it once the customer is at the end of the wizard a...
I have installed .net framework on my PC but many applications are not running says .net framework not installed yet the required versions is installed
...
i want to display text from textfile in text box . how can i do this .. in C#
Actually i m making text to speech converter in C# .. SO i want to open text file and want show text of that file in my textbox ..
here is my code
private void button2_Click(object sender, EventArgs e)
{
OpenFileDialog O = new OpenFileDialo...
I'm rendering text onto an image using the System.Drawing.Graphics class, and the DrawString() method.
I need to generate the text for this image in a very specific way so that it exactly - pixel for pixel - matches an existing image.
The problem is that the text generated by DrawString() has a different kerning to the text in the exis...
I got two objects from the same class and I need to compare them field by field. The problem is that they have close to hundred fields and it would be helluva work to write that by hand.
Do you know any way to do that the easier way? Reflections in Java could be a solution, but yet it seems to me like a hack. And I seek a C# solution af...
In my aspx I have this line:
<link href="<%= Request.ApplicationPath %>/css/ma/screen-ma.css" rel="Stylesheet"type="text/css" media="screen" />
which renders as:
<link href="/XFormPortal/css/ma/screen-ma.css" rel="Stylesheet"type="text/css" media="screen" />
That seems correct, right?
Then i change a single characte...
Say I have this class:
[AttributeUsage(AttributeTargets.Method)]
public class MyAttribute : Attribute
{
public MyAttribute()
{
// Do stuff
}
~MyAttribute()
{
// When is this called? When the function ends? Whenever the GC feels like?
}
}
...
Hello,
I'm using NotifyIcon (System tray icon) in my WinForms application. I also have a ContextMenuStrip assigned to it. When user right clicks on NotifyIcon this ContextMenuStrip pops up.
These are the only events that NotifyIcon has.
Click
DoubleClick
MouseClick
MouseDoubleClick
MouseDown
MouseMove
MouseUp
Th...
I have a simple application that contains one button to be clicked in order to start logging, and basically I log messages to database. The application is already set up to log messages to a database. So, I tried to run my application in my machine but with two different browsers, for example( google chrome and Internet Explorer) at the ...
I'm using the following code to initialise an XmlDocument
XmlDocument moDocument = new XmlDocument();
moDocument.AppendChild(moDocument.CreateXmlDeclaration("1.0", "UTF-8", null));
moDocument.AppendChild(moDocument.CreateElement("kml", "http://www.opengis.net/kml/2.2"));
Later in the process I write some values to it using the followi...
Hi,
I am trying to create a custom ASP.NET MVC site that can show the RemoteApp's published through Remote Desktop Services at one of our servers.
I am parsing the XML from the /rdweb/feed/webfeed.aspx feed and downloading the RDP files.
However, when I access this webfeed.aspx, I have to provide network credentials for it, which means...
What is the best, efficient and fastest way to expose an existing (class) library (which primarily defines CRUD operations ) as a service (WCF Service or WCF Data Service), so that it can be used with Silverlight or Ajax. Are there tools (code generators, RAD tools), which can support this ?
Thanks in advance for your help and hints.
...
I have the same question that Dragos asked here
"...Hi! I'm developing an application which hosts an web browser control.
I'm getting access to it through IWebBrowser2 interface. Is there any
way to have access programatically to the responses header..."
The solution (from 2003) seems to be using an passthrough Asynchronous Pluggable...
I'm using the excellent DuplexHttpBinding. I now want to extend it so that I can use transport security with message credentials. I have some normal BasicHttpBindings set up in this mode like so:
<basicHttpBinding>
<binding name="BasicHttpBinding_Custom">
<security mode="TransportWithMessageCredential">
<message client...
How Excel can be used for generating End user customisable reports. Data needs to be fetched from oracle / SQL server database based on some query and reports needs to be generated in Excel.
I want to design a solution for end user (who has knowledge of Excel & database query writing) for Report generation as per his changing requireme...