I'm trying to align a Label and a NumericUpDown by their text baselines. I'm doing it in code, rather than the designer. How do I get the position of the text baseline?
...
I am doing some tuning in a very large application. Is there a way to measure number of events fired in an application? For example using something in System.Diagnostics?
Adding code inside events is NOT an acceptable solution due to the size of the application.
There are profiling tools, but the fast and simple approach for me would b...
Like in Eclipse, when we say Ctrl + Left/Right arrow, the cursor moves between the words in a method when they are capitalized. I would like to do the same in visual studio express. Is it possible?
currently when I say Ctrl + Left/Right, the cursor moves to the end considering the whole function name as a single word.
...
I currently use a VMware virtual machine (Windows XP) to debug my .NET WinForms applications under 120dpi. Very annoying.
Does anybody know a way that gives me similar results under my 96dpi working environment? That is, can 120dpi mode be activated for a single process, or is there a switch in Windows Forms?
...
In order to automate some tasks I'm looking for a library which can let me read and manipulate (add/rename/remove sections,...) a PE header from a .NET application.
If possible, I'd rather use something that can be redistributed without source code and I'm open to commercial solutions as long as they're royalty-free and don't require lic...
Using .NET how do you explain events to a beginner?
Most of the introduction books I've looked at talk about a WinForms app, double click the button in designer and viola you have an event.
I don't like it since it doesn't explain anything about what's happening behind the scenes or the more complicated things like chaining events.
I...
We are looking at switching from using WCF for our service layer in applications to REST.
So far we are assuming that the way to do this is to use the WCF REST Starter Kit. However this is still in Preview 2 and hasn't been updated since March 2009.
Is this project dead in the water?
If so, what alternatives do we have for creating .N...
Hi I need implement context help inside my .NET application.
I have .chm file and I'm looking for possibility to open it in standard viewer and hightlight required topic of TOC (or Index entry)
Any idea how to archive that ?
EDIT:
Maybe MS application used to open CHM file has some command line parameters which allows archive that? ...
Ok so this is driving me mad. how can this code possibly not work?
open System.Collections.Generic
type testing (a:int)=
let test = [Empty]
member p.GetHashCode =
fun () -> printfn "called hash";0
override p.Equals(other:obj) =
printfn "called equals"
true
interface IEquatable<testing> with
...
When an application's main Form - the one passed to Application.Run() - has
this.ShowInTaskBar = false;
then, an instance of Process representing that application has a MainWindowHandle of 0, meaning that Process.CloseMainWindow() does not work.
How can I get around this? I need to cleanly close down the Form via the Process instance...
Hi,
Can anyone tell me how can I display an image next to the cursor like Vista (When dragging a file to folder it shows a "Copy to..." tooltip)?
...
Hi, I want the asp application to create a folder that has access only to the account the application was running with (i.e. asp account?)
I actually wanna use this one, but I don't know how to use the "Computer\CurrentAccount" dynamically.
I want to get the current working account.
Thanks.
...
I am trying to connect to an MX-One pbx with telnet.
The strange thing is that when I am using hyperterminal I can connect and I get the login: promt in return. It just works as does the DOS telnet app.
But when I try the login with our C# application (which is used against the Aastra MD110 pbx, to collect the same data with the same f...
I have a control which contains a NumericUpDown. The updown is only shown when the container has focus, so the container has to be selectable (or else it could never receive focus). I want the control to behave as a single entity with regards to tab order; that is, when the user tabs to the control, it shows the updown and the updown i...
I can use System.Net.IPAddress to represent a single IP Address, but what can I use to represent an entire subnet, including the network address and the subnet mask?
EDIT: add missing "and its" between subnet and mask.
...
I have a WinForms app, and I can't seem to access the text of a ToolStripStatusLabel through UIAutomation. Microsoft implies that the support for StatusStrips (and presumably items within them) is limited, but this seems like a basic enough use case that it should work.
The control shows up with ControlType.Edit in UISpy, and appears to...
Hi
I'm reading about the CallContext class (http://msdn.microsoft.com/en-us/library/system.runtime.remoting.messaging.callcontext.aspx). The documentation says something about "logical threads" and "Thread Local Storage".
What's a logical thread, I didn't know that there existed multiple kinds of threads?
What's a Thread Local Storag...
Given this example data (in .NET classes where Po, Sku, Qty are properties):
PO, Sku, Qty
1,ABC,1
1,DEF,2
1,GHI,1
1,QWE,1
1,ASD,1
1,ZXC,5
1,ERT,1
2,QWE,1
2,ASD,11
2,ZXC,1
3,ERT,1
3,DFG,1
3,DFH,1
3,CVB,4
3,VBN,1
3,NMY,1
I need to transform it into a fixed column format, with a max of 5 SKUs per line (repeating the PO if needed for > 5)...
I have an application that sends a report path and parameter collection to a Microsoft Reporting Services server. One of these reports is very long running and when users try to generate reports within a few seconds of one another, one will receive a duplicate of the report requested by the second user.
This doesn't happen as a glitch,...
Example Schema:
<complexType name="Dog">...</complexType>
<complexType name="Cat">...</complexType>
<complexType name="ArrayOfDog">
<sequence>
<element name="Dog" type="tns:Dog minOccurs="0" maxOccurs="unbounded" />
</sequence>
</complexType>
<complexType name="Foo">
<sequence>
<element name="Bar" type="str...