Questions tagged [visual-studio-2010]

17326 questions
1

votes
1

answer
2.3k

Views

How to open field explorer in visual studio

I am working on Crystal Reports in VS 2010. I unexpectedly closed Field Explorer from left side of Visual Studio and now I don't know how to open it again. I searched it in Edit and View menu but didn't find it. Can you please guide me how to open field explorer in Visual studio.
1

votes
1

answer
6.6k

Views

Configuring IIS Express to use default ports for http and https for debugging

I have followed scot's article on how to enable default ports (80 and 443) for http and https respectively. I have followed each step to the letter and in the end IIS express sytem tray shows me that site is running on following urls Only thing i have done differently is to use netsh>advfirewall>fir...
1

votes
2

answer
209

Views

Replace all attributes in Visual Studio

I have many cs files, with the next annotation: [Js(Md.pr, imo = false, tr="csc")] where the tr value is changed between each cs file. I want to delete all these annotation automaticlly. So I try to use "replace all" in Visual studion, when I choose regular expressions function. So I wrote: find wh...
Tom Avni
1

votes
3

answer
532

Views

visual studio: tell in part of the code to don't exception-break when debugging

I am debugging exceptions in my code, and I my debugger is set to break when one comes out. I would like my debugging session to exception-break on a certain part of my code and not another, do you know il there is an argument (or other) I could write in my code to tell the debugger to don't excepti...
NicoC
1

votes
2

answer
684

Views

Where is the “per file” Custom Build Step in Visual Studio 2013?

I have converted my C++ project from Visual Studio 2010 to the 2013 Community edition. With previous versions I could always right click on a source file and edit a Custom Build step in the properties. Now I can't find the equivalent in VS2013. The converted project has a Custom Build Step and runs...
Gene Vincent
1

votes
4

answer
12.9k

Views

Exporting datasets into multiple excel sheets of one excel file

I need to export two dataset's values in two excel sheets of the same workbook. My Query is like: //Dataset One: DataSet ds1 = new DataSet(); SqlCommand commandOpen = new SqlCommand("storedproc1", conSql); commandOpen.CommandType = CommandType.StoredProcedure; var adaptOpen = new SqlDataAdapter(); a...
Sameep Baxi
1

votes
2

answer
1.9k

Views

How to make *.py files have the python icon in Win7?

Installed the IronPython tools for VS 2010 but it didn't associate the *.py files to VS, neither did it (obviously) change the *.py files' icon. How do I do that in Windows 7?
Shimmy
1

votes
3

answer
436

Views

serial data only works with messagebox

In my handler for receiving data over the serial port, when data is received I store it to a string and do a .contains search to determine if something needs to be done with the data. When the application is sitting idle and the (lets call it a modem) sends something like "Connected" it works fine....
eatumup
1

votes
1

answer
9.8k

Views

How do I configure to use System.Web.UI

I'm hoping to use something like the code put forward by MartinHN in the following post to create HTML formatted SMTP mail items: SO POST Having problems creating a reference to the correct assemblies so that I can use the namespace "System.Web.UI.WebControls". the reference I'm trying to add is "Sy...
whytheq
1

votes
1

answer
246

Views

Possible to get a stack trace to see what 'led up to' a particular breakpoint?

A bit more context: I have a method that is called, and the breakpoint is placed at the start of this method. Once the debugger hits this - how can I tell what other part of the code invoked the method? (i.e. right before it hit this breakpoint)
1

votes
2

answer
7.1k

Views

Is it possible to “debug” a release build of a C# app in VS 2010

I have an excel addin that works fine in debug and release mode when I build / run from VS2010. However, when I deploy it using a windows installer it doesn't operate properly. I'm not sure what the problem is or even if "debugging" the release code will help. Any tips on how I might find what the...
Pat Mustard
1

votes
2

answer
4k

Views

reading floating numbers from bin file continuosly and outputting in console window

I am making a code in visual c++ to read ( and see in console )the floating numbers from a bin file, The binary file contains around 2.5 million floating point numbers. int main(){ char* holder; ifstream fin; fin.open("male_16_down.bin",ios::binary|ios::in); if(!fin){ cout
sarath
1

votes
2

answer
2.8k

Views

Is it possible to install Signalr with vs2010

I am trying to install SignalR in my vs2010 project and I get the following error - Could not install package 'Microsoft.Owin.Security 2.0.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or...
Shai
1

votes
2

answer
844

Views

vector initialization in vs2010

#include #include #include using namespace std; class M { vector s; public: M(){ s = {"abc", "abc", "abc", "abc", "abc"}; } }; int main(){ return 0; } The code can be compiled in c9, but in vs2010, it can't be compiled successfully.why?
user2793559
1

votes
2

answer
323

Views

Friendly 'From' Name with asp.net Webmail helper

I am using the webmail helper in my ASP.NET razor webpages program. I am able to send emails perfectly. my question: Does the WebMail helper allow me to use a "Friendly" From name instead of only: [email protected]? for example: Webmail.From = Friendly name + email
Arvin
1

votes
5

answer
447

Views

Visual Studio 2010 runs awful - can't find solution

I have a problem with my Visual Studio 2010 Professional - I'm working on a project at work, and everything in VS runs slow (maybe except IntelliSense). I know that start-up times usually are quite bad, and I can live with that. But building a medium sized solution (7 projects, a few hundred files)...
Szymon Sajdak
1

votes
3

answer
2.5k

Views

Remove text in txt file between two markers in Visual Basic 2010

I'm making an application in Visual Basic 2010 that will allow me to easily create .dev web addresses for my XAMPP local hosted sites. So far, I've managed to add to the necessary files, but not remove. I need a way to remove all text between two markers in a txt file. For example: 120.0.0.1 loca...
Tam
1

votes
1

answer
97

Views

Can we directly work on Umbraco 4.9.0 Source file(from codeplex) to develop a website Which i opened it using visual studio 2010

I already have Umbraco 4.9.0 in my Server so i don't need the source to open installation page. I need to open my default page directly and launch my site. The problem doing that is every-time when i run the source. It goes too install umbraco i want it too directly open my default page.can it be do...
Karthikeyan.T
1

votes
2

answer
1.3k

Views

C# Passing method name to parameterizedthreadstart with variable

Okay guys, please don't shoot me down to hard for asking this. // using System.Threading; private void startThread() { Thread t = new Thread(ParameterizedThreadStart(setOutputBinaryWorker)); t.Start(); } This works fine due to the setOutputBinaryWorker being an actual, existing method. H...
Digitalis
1

votes
1

answer
948

Views

Calling a Method in another Form C#

I know that this a very common topic and I have been searching for some time for a solution. Again I am working on a CHIP8 emulator and I am trying to create a separate form to process the graphics. I now have two forms, Form1 and graphics. What I would like to do is call the "draw" method in graphi...
Bubo
1

votes
1

answer
215

Views

C input checking and previous output validation code

I have this following piece of code to check an input against a dictionary of common words and also check if input matches previous input stored in the passHistory file.My problem is that the strcmp method to compare strings in C doesn't seem to execute correctly in my code as it fails to show appro...
Brian J
1

votes
4

answer
4k

Views

WPF Listbox SelectedItems

how can I get the selected item's value of a list box? I tried something like this: foreach (var item in combo_course_op.SelectedItems) { string s = "select cid from tms_course where course_title = '" + item.ToString() + "'"; } but it doesnt works..it shows string s as "select cid from tms_course wh...
iJay
1

votes
5

answer
140

Views

C# arranging string variables in some container

I am new to C# i have these many string values in my code as string text1 = textbox1.text; string text2 = textbox2.text; string text3 = textbox3.text; string text4 = textbox4.text; and some bool values as well bool chk1 = checkBox1.Checked; bool chk2 = checkBox2.Checked; bool chk3 = checkBox3.Checke...
user1838130
1

votes
3

answer
756

Views

Resolving unresolved external symbol CSourceSeeking::CSourceSeeking(…) despite linking with the right library

Here is the error: Error 2 error LNK2019: unresolved external symbol "protected: __thiscall CSourceSeeking::CSourceSeeking(char const *,struct IUnknown *,long *,class CCritSec *)" (?? [email protected]@[email protected]@@[email protected]@@Z) referenced in function "public: __thiscall CPushP...
user71512
1

votes
2

answer
292

Views

C++ srand function looping

I have the following method as part of a password generating program to generate a random password which is then validated. My problem is that the srand function never meets the validation requirements and keeps looping back to create a new password. Im posting the code below to ask if anyone has a...
Brian J
1

votes
2

answer
2.1k

Views

display information about an object selected in a listbox in textboxes

I want to display the information about whichever flight is selected in the listbox in textboxes next to it. My problem is I can't get my curFlight variable to work right gives me InvalidCastException was unhandled error and says When casting froim a number, the value must be a number less than infi...
dsquaredtech
1

votes
1

answer
1.7k

Views

HTTP Error 401.0 when debugging ASP MVC project in Visual Studio 2010

I recently took over an ASP MVC project at work, and when trying to debug in Visual Studio 2010 I receive an HTTP Error 401.0. I'm completely new to using ASP MVC, so any help would be greatly appreciated. Thx! Detailed Error Information: Module ManagedPipelineHandler Notification ExecuteRequestHand...
NealR
1

votes
1

answer
1.1k

Views

Switch form full screen to windowed mode using Esc

I have done some digging and found some code that can run the application directly to full-screen mode during runtime, I was wondering if there is any way to switch back to windowed mode by pressing "Esc" ? Here is my code for full-screen mode: private void Window_Loaded(object sender, RoutedEventA...
EmilDo
1

votes
1

answer
89

Views

is it necessary to handle exceptions shown in the IntelliTrace

today when checking a breakpoint in visual studio 2010 , I saw that several exceptions had been thrown during execution of application . but none of them are related to my code and the application works as it should. is there any way to handle these and is it necessary to handle these exceptions or...
mohsen dorparasti
1

votes
2

answer
72

Views

How to Handle File Directories

I'm currently working on a project that works very closely with multiple executable files that I don't have any control over.. these executables all rely on its required files (some that my program creates and others by other executables that I dont have control over) being located within the same d...
Sayse
1

votes
2

answer
1.2k

Views

BackgroundWorker & Progressbar Issues c# Visual Studio 2010

Im trying to get my head around backgroundworker and the progressbar, so far i have got it to work but not exactly how i want it to work. Basically i am sorting/renaming folders and copying them to a different location, this works and the code is self explanatory, the output folders generated are as...
Rg786
1

votes
2

answer
230

Views

String in mulitple lines in visual studio

I how i make string in multiple lines in VS2010 and using C#. I have a HTML markup as a string and it is filling in a code behind(cs) as in the designer page(aspx). How to i make it in one line or which character i have to put at the end of line so that string will be concatenating next lines. Belo...
Rajaram Shelar
1

votes
1

answer
113

Views

app.config entries required in website

I have a Visual Stuido 2010 website project (not web application). I need to provide the ability to make a web service call, either ad-hoc from a website button or scheduled. So I create a c# library containing a WCF call to the target web service. I then add a reference to my library from the websi...
Rob Bowman
1

votes
3

answer
3.1k

Views

Copy Datatable to SqlServer New or Existing Table with BulkCopy

Is there a way to copy a in memory datatable (vb.net) and its columns(schema) into a sql server new or existing table? And if a column has been added to the temp table is there a way to BulkCopy the data adding the new column into existing sql server table?
TroySzat
1

votes
2

answer
2.1k

Views

Writing Unit Tests in visual studio 2010 for 'Rock, Paper and Scissors' game

I'm new to programming, OOP and Unit Test so please forgive me for my lack of knowledge. As part of my Rock, Paper and Scissors game I have a abstract superclass (Weapon) which has subclasses (Rock, Paper and Scissors) in VB.NET like: Public MustInherit Class Weapons Public MustOverride Function com...
AJsStack
1

votes
2

answer
3k

Views

ADOX can't be used in VS2010?

I want to use ADOX to create a database in VS2010 but on using 'ADOX.catalogClass' i get the unusual error: Interop type 'ADOX.CatalogClass' cannot be embedded. Use the applicable interface instead. Actually the specific line being marked as an error is: A...
mac007
1

votes
2

answer
673

Views

Issue in Parsing Json image in C#

net C#. I am trying to parse Json from a webservice. I have done it with text but having a problem with parsing image. Here is the Url from where I m getting Json http://collectionking.com/rest/view/items_in_collection.json?args=122 And this is My code to Parse it using (var wc = new WebClient())...
Burhan Mughal
1

votes
2

answer
711

Views

Automatically generate XML-Documentation

I'm not quite sure if this is possible, but I was wondering if Visual Studio 10 (2010) or 11 (2012) allows you to automatically generate an XML compliant documentation? For example, in visual studio, if you are using the programming language C#, when you create a method, and type 3 forward slashes /...
TheAJ
1

votes
1

answer
428

Views

Set up Visual Studio for using LINQ with Interbase

I've recently come into possession of an Interbase SQL database. The database itself is from 2006. From my own research I've determined that the Interbase database can be connected to in one of two ways, either ODBC or ADO.NET 2.0. I've managed to add an ODBC data connection in Visual Studio. My bo...
MiniRagnarok
1

votes
4

answer
937

Views

C# Multithreading - Why is 2 threads call the same function?

I have a C# code with 2 threads. It calls the print method, but It always have the same time .. why? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace MultiThreading { class Program { static void Main(string[] args) { Thread threa...
Billie

View additional questions