visual-studio

VB.NET - Command Prompt Output Help

Hello everyone, I found this source code which is an application that will return a command prompt result with the given command. However, the string of the result is not being correctly outputed sometimes. You guys can try for yourself: Download Here In the application, there is a "while" loop going on which looks at the StandardOutpu...

How to solve problem " mt.exe : general error c101008d" ?

Hi, I often have this problem even when I build a new C++ project and try to build a release file. I use Visual studio 2008. One thing that may cause this problem is my code is saved on the server disk, not on local hard disk. mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "..\Release\PG...

How to upload msaccess database single table to server database

How to upload msaccess database single table to server database ...

How to take whole Html /xhtml file in single string to write ?

I am new in c# , i just want to know is it possible to take whole html document in a single string. i even want to write it in another file. Thanx in advance. ...

I am not able to Disable CheckBox in GridView

I am not able to Disable CheckBox in GridView , whats the problem with my code ? can somebody please take a look at my code and suggest something. foreach (GridViewRow row in GridView1.Rows) { CheckBox ch = (CheckBox)row.FindControl("CheckBox1"); if (ch.Checked) { String ExamineeId ...

Replacing td tags with td and attributes

My Problem is for particular case occuring in my project. in my Html document, i want to replace <td> with <td class=”right”> for all tds except first one in a <tr> tag. (if there is <tr> inside a <tr> tag then that also needs to be handled). if input is like <tr> <td>1</td> <td>2</td> <td>3</td> <tr> output should be like ...

WPF: Set text-Label's transparency?

I have an ordinary Label and want to make it half-transparent. How to do this? Code is just: <Label FlowDirection="RightToLeft" FontSize="40" Padding="0" FontFamily="Arial" FontWeight="Bold""> X </Label> ...

WPF - How to add effects (like Shadow) to a Label

I have a Label and want to add Shadow to it. It seems like I can't apply the DropShadowBitmapEffect to it. What else can I do? ...

Visual Studio Unit Test: why test run inconclusive whereas testing same float values ?

I'm learning VS Unit test and tried this: [TestMethod()] public void calcTest() { double expected = 1.234F; // TODO: Initialize to an appropriate value double actual; actual = 1.234F; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method.");...

VC++ projects keep being out of date

I have a solution which contains both C# and C++/CLI projects. My problem is that the C++ projects are always out of date, and the IDE keeps asking if I want to build them. There are some custom build steps, which copy some files here and there, and I suspect that might cause the issue (?). I'd be fine with disabling up-to-date check f...

Own event for custom UserControl in XAML!

I want to create an own event (which I'll fire via code) for a CustomControl via XAML. This would allow me to add a trigger for an animation which I create in XAML. ...

How can I debug into an unmanaged BCL (InternalCall) method?

I want to debug into the implementation of a [MethodImpl(MethodImplOptions.InternalCall)] BCL method, which is presumably implemented in C++. (In this particular case, I'm looking at System.String.nativeCompareOrdinal.) This is mainly because I'm nosy and want to know how it's implemented. However, the Visual Studio debugger is refusing...

How to circumvent sender's write-protection in events?

I have a ColorAnimation inside a Storyboard. After that Storyboard finishes I want to change a property of the ColorAnimation within it. Sadly all sender's attributes seem to be write-protected, so how can I circumvent it? Here is the code: storyboard.Completed += new EventHandler(storyboard_Completed); void storyboard_Completed(ob...

How to run Coded UI Tests without Visual Studio 2010 Premium

Hi, I want to ask you if it is possible to build and run coded ui tests without Visual Studio 2010 Premium installed? Or can I just install Visual Studio 2010 Premium and use it command line without licensing? I know it works, but is the license ok with that? ...

How do i attach property to a custom event?

I have a custom event and want to attach a property (a string would be fine) to it. What do I need to change in my code: public static readonly RoutedEvent ModelClickEvent = EventManager.RegisterRoutedEvent( "ModelClick", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InfoBox)); // Provide CLR accessors for ...

MSBUILD : error MSB1008: Only one project can be specified. Switch: Education

Why am I getting the following Build error? C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe C:\Code\EduBenesysNET\EduBenesysNET\EduBenesysNET.vbproj /t:publish /p:Configuration=Release /p:Platform=AnyCPU /v:detailed /p:PublishDir="\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\" /p:InstallUrl="https://www.bene...

How can the Visual Studio 2008 Build Command Line be seen?

When I am in Visual Studio I hit the F5 to do a build. Is there a way to see the MSBUILD command line being executed? Inside of Visual Build Pro the build fails but when run from Visual Studio 2008 (hitting the F5) it succeeds. Here is the command line used inside of Visual Build Pro: C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild...

Visual C++ won't create the dll file and stops at the *.lib

I inherited a dll project (Visual C++ 2002) and I'm having a lot of trouble to compile it. Even though the *.def file is in the current dir, VC will only create a lib file, instead of the dll. Anybody knows what might be going on? ...

Is it possible to set preprocessor macro in sln file and not in a project? (VS2008 c++)

I am maintaining a large codebase and some vcproj files are used in different solutions. Due to some horrendous configuration and dependencies it seems the best way to handle some build issues is to #ifdef the code but in order to do that I need to set a preprocessor definition at the solution file level and not at the vcproj level. Is...

Query all RDP sessions using .net

I am a lot of difficulty finding a way to query all RDP sessions using .net. Anyone know of a way to return this data without having to parse the results of a qwinsta.exe call? Currently i am using the qwinsta method, but this is returning some very unexpected results when querying different os installations (2003/2008/2008r2 etc.). ...