Good Day,
I am working with a WinForms application and I need to programatically determine the height of a ListView row.
I am able to determine the height of the text using Graphics.MeasureString, but there's some padding above and below the text.
I am not customizing each row, I just need the height. How would I go about doing tha...
Hi, I want to compile the beecrypt library under VS2008. But several of the below structures produce a syntax error (C2059 syntax error: '.'):
const hashFunction md5 = {
.name = "MD5",
.paramsize = sizeof(md5Param),
.blocksize = 64,
.digestsize = 16,
.reset = (hashFunctionReset) md5Reset,
.update = (hashFunctionUpdate) md5Update,
.diges...
If there is a URL in a source file comment, I can "CTRL + click to follow link." However, when I do this, the link opens inside Visual Studio. How can I make it open in my web browser--in my case, Google Chrome?
...
Hello. I have the following code on a control of my own:
MethodInvoker _mi;
public MethodInvoker MI { get { return _mi; } set { _mi = value; } }
I thought the IDE would recognize this delegate, and allow me to choose a suitable already implemented function or create a new one if I wanted, just like it does to events, although at least...
I am relatively new to VS and C# but have years of experience in Delphi.
One of the my favorite components when designing GUI in Delphi is ActionManager - centralized way to assign event handlers for actions as well as enabling/disabling them.
Surprisingly, I can't find anything like this in Visual Studio 2008 Professional.
I am sure t...
I liked the grid points and the visible separation of the header/body/footer of the report on the design surface or vs2005.
I hate the vs2008 report designer which is just a blank canvas with no grid lines/points and separation of header/body/footer...
...
Is there anything I can't do in 2005 that I can do in 2008? Is 2005 obsolete?
...
I'm interested in doing a bit of code-generation based on certain files being present in the .csproj. What extensibility methods are available to me that I could generate a .cs file that would be compiled along with my project?
Caveat: I immediately thought of using T4 templates for the task. However, this solution must be supportable...
I have a native C Dll that calls 'LoadLibrary' to load another Dll that has the /clr flag turned on. I then use 'GetProcAddress' to get a function and call it on dynamically loaded dll. I would like to step into the dynamic library in the debugger, but the symbols never load. Any idea?
And I should have said I'm using Visual Studio 2...
Hi guys
I'm pretty aware that Visual Studio 2010 works with C# 4.0. But now I was wandering if I'm able to test C# 4.0 features with Visual Studio 2008.
I did that one time, using C# 3.0 with Visual Studio 2005 hacking the app.config file.
Did anyone have any success using C# 4.0 in VS2008?
I've installed Net Framework 4.0 beta, rebo...
Edit: Creating a new module in the same VSMacros project fixed the problem.
The following macro only works if I open the Macro IDE from Visual Studio and run the macro from there.
It'd be much more useful if I could just right click the macro from the Macro Explorer from my Visual Studio instance.
I must be doing something obviously...
I have a really small app that I put together in VS 2008 Express to try out .NET development for the first time.
I want to send it to a couple of friends, however when I installed this on a second computer it went and downloaded the whole .NET 3.5 runtime, and I don't wish to force anyone to do this. My mistake as the default setting ta...
I have two projects in a Visual Studio solution. I need an application setting in one of them to be the version number of the other project's assembly.
I thought of adding to my project1's app.config something like:
<setting name="currentVersion" serializeAs="String">
<value>
!(bind.project2.Assembly.FileVersion)
</value>
</set...
For brevity purposes, this post relates to ambiguous references in a Silverlight Page.XAML.CS file, whose project contains a service reference to a WCF service and a MyClass.cs file added as a 'link'. The Solution contains the Silverlight Project and a Web Project that contains a WCF service and a MyClass.cs file (along with the aspx fil...
Is there any way to hack visual studio so that it displays the line numbers in smaller font size like the way Notepad++ does? I'm using Consolas at size 12 and the line numbers just look so ugly.
Thanks.
...
Is there a way in Visual Studio (any version) to embed the content of a file in another file upon compiling? For instance, if one wanted to embed an xml file in a vb code file how would it best be done?
...
I have a pretty complex UI with hundreds of control/label on it. I want to set tabstop value as false for each label as below
//in MyForm.designer.cs
Label myLabel;
private void InitializeComponent()
{
this.myLabel = new Label();
this.myLabel.TabIndex = 1;
...
}
// in MyForm.cs
this.myLabel.TabStop = false;
But it is not work...
I have a library project that has some content files (e.g., XML and schema files, image files, etc.) all with Build Action set to Content (copy always).
This library project lives in a Visual Studio solution that also has a test application (WPF) that references the library.
When I build the solution, all the content files from the dep...
Hello,
How can I use Opengl in PictureBox toolbox in Visual C++.I didn't come across any document on internet.Do you know any document,tutorial,code example etc. about this topic?
Could you help me please?
...
Dear ladies and sirs.
I am interesting in understanding the reasons for the following FCE, always happening once when I run the unit tests of our application.
Note, that I wish to understand the reasons and fix the root cause, if possible.
The line causing the FCE:
if (System.Windows.Application.Current != null)
Exception details:...