Active Solution Platforms In Vs 2010 - "Any Cpu"

Sep 17, 2010

I see two options in my "Active solution platforms":

.NET

Any cpu

What's the difference? Which one would I want to use for debugging? I see folks used to ask about "Mixed platforms" vs "any cpu", but I don't have "Mixed platforms," I guess it was removed in 2010.

Would "Any cpu" be compiled to binary, while .NET be compiled to MSIL?

View 3 Replies


ADVERTISEMENT

Why Does Changing Solution Platforms Stop Partial Classes From Being Seen

Nov 18, 2010

There is an older version of the software which works fine on all of our deployment platforms, but the version I am trying to push out is working fine on 32-bit desktop installations, but is crashing-and-burning when it attempts to access Crystal Reports and Informix installed DLLs on a 64-bit machine, running terminal server sessions (yeah, I know, could I change anything more about the deployment platform?)One of the suggested avenues of investigation was changing the solution platform from "Any CPU" to x86.On attempting to do this, Visual Studio seems to stop being able to connect the partial classes constructed by XAML objects, with objects declaring that they have no "InitializeComponent" methods, and then failing on down the line until I reach the maximum number of errors.

Oddly, changing the solution platform, and then rebuilding in Expression Blend compiles just fine. Changing the platform back to AnyCPU makes the problem disappear. All projects have compile and debug configurations set to Active. I can't see any reason why simply changing the targeted platform would stop the XAML from generating partial classes Okay, it seems to be that there are some external DLLs to the project, and that those are the cause of what I'd call the first-level compilation failure, as they don't seem to contain any classes once the target platform has switched.In VS2008, this causes the cascading failure of absolutely nothing working at all, as described above, but at one point I somehow managed to import the project to VS2010 with only those errors in place (missing classes, etc.), without the rest of the project imploding.I'm now working on reconstructing those classes from those DLLs, and hopefully will be able to get together a project that will compile on multiple target platforms by the end of the day.

View 2 Replies

Asynchronous Web Services Between Different Platforms

Oct 12, 2010

I am writing web services with VB.NET (2.0). The client side will use different technologies such as Java and Siebel. So, if I write asynchronous web services, is it possible for different platforms to consume them? I know it is quite easy with a consumer having .NET platform, but not sure for different platforms. Is it enough for them to have asynchronous ability, or should it be a similar platform?

View 3 Replies

.net - Fork A VS 2010 VB Solution?

Jun 13, 2011

I've written a bare-bones ap in Visual Studio 2010, Express version. It does what I need and several others are using it successfully. I'd like to add features to it, but I don't want to foreclose the ability to make corrections to the present version.

How do I make a fork in the application for this purpose? Google has been no help in this case, and I've tried several incarnations of copy and change names etc etc.

View 2 Replies

VS 2010 Looking For A More Elegant Solution

Jun 21, 2011

I am creating a card game and although I have a solution to my question it feels very forced and awkward.
What I want to be able to do is to iterate through a collection but not necessarily start at the begnining or stop at the end.

Some details/examples. Imagine a game (I'll mentally use Spades) with 4 players.

Player 1 Deals cards to all 4 players which makes Player 2 the first to bid. The rub is that after player 4 bids, player 1 should then get his turn to bid.

Player 1 <-- Dealer
Player 2 <-- First to bid
Player 3
Player 4


I can't just iterate over the collection because a For each p as Player in Players would never make it back to player 1 to allow him to bid. As I said, I can make it work with some nested loops but I'm hoping someone might have a better solution. It certainly feels like there must be one. I run into more of the same as the deal moves around the table and as tricks are taken. If a more detailed example is needed, feel free to let me know.

View 4 Replies

VS 2010 Add A New Project To The Existing Solution?

Oct 16, 2010

is this possible? can not find how to add a new project to the existing solution. or, this feature does not exist in vb express?

View 2 Replies

VS 2010 Adding C# Project To Solution

Nov 9, 2011

I've added a C# project to my VB.NET solution and I'm trying to access all of the classes and namespaces within that C# project.However, I'm not having any luck. I've never had to do this before, so I'm a bit lost.After adding the project, I tried importing the namespace from it. When I do, I just get the green squiggly telling me that the namespace doesn't have any public members or couldn't be found.Since it does have public members, I'm assuming it's the latter issue.So is there anything I need to do in order to access besides just adding it?

View 2 Replies

Adding A Data Source To A .NET 2010 Solution?

Oct 5, 2011

I am wondering if anyone else has experienced any issues with adding a data source to a VB.NET 2010 solution using the 'Add New Data Source' wizard. I am getting a very odd behavior when i add the data source, I see a .xsd file is added in my solution explorer but I do not get a data source listed in the data source view. In short, it will add a dataset to the project but will not add an entry in the project data sources. I realize I can code to get the same results but purely out of convenience I would much prefer to just use the wizard and the corresponding table adapters it generates as I always did.

By the way, a google search shows that many people had similar issues in the 2005 version but their issues involved trying to use special characters in the project path (i.e. 'C:My ProjectsR & DMy Tool. I do not use any special characters in my project paths and yet am still experiencing this issue.

View 5 Replies

Create Blank Solution VB 2010 Express?

May 5, 2012

I've got a chapter I'm supposed to be working through and cannot access the template for a blank solution. My instructions are as follows:From the "File" menu, select "New", select "Project", select "Other Project Types", select "Visual Studio Solutions", and select "Blank Solution."

I can see File, I then see "New Project", but not just "Project". I click on this and my only choices are :
Windows Form Application WPF Application Console Application Class Library WPF Browser Application

I've tried searching the installed templates for "Blank Solution", "Solution", "New Solution" and have no results. I've looked around for a couple hours hoping for a way around this and no luck so far.

View 16 Replies

2010 [Regex] Reading Visual Studio Solution File?

Sep 1, 2010

I need to read a Visual Studio Solution file (.SLN files) to figure out which projects belong to this solution.By opening a SLN file in notepad, one can see that the projects are stored like this:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RadioGadget", "RadioGadgetRadioGadget.csproj", "{AE664C6C-000B-44D9-BAD8-0200D6ABE90D}"

[code].....

excluding the ... part obviously (which is just some guid I don't care about). Then I need it to match the rest too, and more importantly, I only need it to return the filename that I've underlined in the example. When I simply use 'm.Value' as I am now I think I will get the entire matched string back, right? That gets me nowhere as I'd still need to parse the filename out of that manually... Bit pointless to use regex then...

View 1 Replies

Visual Studio 2010 - Fork / Copy A Solution Using VS2010

Jun 26, 2011

Is there a straightforward way to make a copy of a VB.NET solution and continue the project in another direction? I'd think this is a common problem but haven't been able to find an easy solution. Copying the files and renaming seems messy to me. Does the VS IDE provide anything like this? Update: It's a small project on my home computer so I'm currently not using source control. I wasn't expecting to need to fork or anything. Is there a way I can do this without setting up git or similar?

View 2 Replies

VS 2010 Module With Multiple Classes Shows As A Windows Form In Solution Explorer

Mar 29, 2012

I am having this strange thing happen where I have a Module that contains multiple classes in my project. In the Solution Explorer, the module shows up as a Windows Form and if I double click on it to open it, it tries to open the Form Designer. What could be causing VS to think that it is a Windows Form instead of a module?

[Code]...

View 3 Replies

IDE :: Active Tab In VB 2010 Ultimate?

Jun 14, 2010

i have tabcontrol1 and has 7 tabs and 1 button i want that button to recognize the active tab and do something.. else if anothor tab is active do something else... and so on i searched the net but i couldnt find what i am looking for

View 4 Replies

VS 2010 : Setting An Active Window?

Feb 6, 2012

How would I go about setting an active window? I've researched and I can use "SetForeGroundWindow". I have tried, but I still can't get it to work.

View 9 Replies

VS 2010 Active Windows In StatusStrip

Jun 16, 2011

I'm making MDI application and I want to know how can I show opened windows in StatusStrip?! Or I should show this somewhere else?

View 6 Replies

VS 2010 List Active Users Of Database?

Jun 21, 2011

I'd like for my application to have a listbox displaying all users currently connected to my access database stored on a server. Also, it would be nice at startup for a message box to pop up saying something like "Other employees are currently using this application. To view active users go to..."

View 3 Replies

VS 2010 Open Active Excel Workbook?

Aug 8, 2010

I am finally switching from VB6 to VB Net and am rewriting a technical application that calculates the heat transfer performance of automotive radiators, heater cores, evaporators, condensers, etc.The user can calculate a heat exchanger and save the results to an Excel spreadsheet. After a series of calculations he can then plot curves of performance.

He can also click on a previous calculation in Excel and import it into the VB routine. The user may have a number of workbooks open when he does this.My problem is I need to open the Excel workbook that is the active workbook. I have been able to select the active worksheet but have been forced to specify the index of the workbook. I have not been able to get the workbook I want.. The code I used is the following,

Dim oExcel As Object = GetObject(, "Excel.Application")
Dim oBook As Object = oExcel.Workbooks(1)
Dim oSheet As Object = oBook.activesheet

How do I get the active workbook instead of Workbooks(1) with an index of 1?

View 1 Replies

VS 2010 Screenshot Of Active Window Area

Jan 16, 2012

Is it possible to have VB.NET take a screenshot of a specific area in a program?

View 13 Replies

VS 2010 Get Control Collection From Mdi Active Child Form?

Feb 23, 2010

After getting the current mdi active child form, how can I get it's control collection so I can access their data?

View 8 Replies

VS 2005 Get The Active Control Of The Active Form?

Mar 30, 2009

I want to get the active control (control which has the focus or where the cursor is on) each time the cursor moves to another control or each time a control receives a focus.

View 5 Replies

VS 2010 Keeping Track Of 'Active' Tabpage With Multiple TabControls?

Aug 11, 2010

I am building a sort of 'lightweight' Visual Studio, and I'm trying to implement the feature where you can drag tabs to different 'tab groups', viewing multiple tabs side by side.

I got nearly everything working, I show a ContextMenuStrip when you rightclick the tab headers, with the option of creating a new (horizontal or vertical) Tab Group. When that happens, a new TabControl is added dynamically and the selected tab is moved there. You can drag the tabs around inside a TabControl and even from one to another.

The problem now is keeping track of the 'active' tab. Since I have multiple TabControls (not just two, there can be as many as you want theoretically), their SelectedTab properties are basically useless. How am I to determine which TabControl the user is currently working in? Obviously I will always have multiple selected tabs, but only one active tab, in which the user is currently typing, editing, whatever.I need to know the active tab for obvious reasons: many menu and toolbar items act on the active tab for example. A short explanation of my controls:I have one TabGroupContainer control, which inherits UserControl. I have a TabGroup control, which inherits TabControl.I have a Tab control, which inherits TabPage.

The TabGroupContainer holds a collection of TabGroups (to which I dynamically add/remove TabGroups when required). Now I want the TabGroupContainer control to have the ActiveTab property which returns the one and only active tab (out of possibly many selected tabs).The only logical way is to keep track of the tab that was selected last, for every TabGroup.

At the moment, I am doing this:

- In the TabGroup (TabControl) class, I shadow the SelectedTab property (and return a Tab instead of a TabPage). More importantly, in the property setter, I raise a SelectedTabChanged event:

vb.net
Public Shadows Property SelectedTab As Tab
Get
Return DirectCast(MyBase.SelectedTab, Tab)

[code]....

However, it still doesn't work. I soon figured out why: I am checking that the previously SelectedTab is not the same as the new value in the property setter of the (shadowed) SelectedTab property. I don't raise the event when they were the same, and in this case they were the same (as there is only one tab in the TabGroup!).So, I took that check out, and now it seems to work when I click in the text editor.

So one problem remains: the active tab is not changed when you click on the tab header (and not on the text editor). I am clueless as to how I should handle this... I am once again sure there is a simple fix, but I cannot see it. I can click the tab header, and I'm sure behind the hood it responds to this click, but it never raises it SelectedIndexChanged event because the index didn't change but was set to the same value it already had. I cannot override the SelectedIndex property (so I could skip this check and raise the event anyway even if the value didn't change), and the OnSelectedIndexChanged method is not called, so I cannot use that either...

View 6 Replies

Reseting A Users Password Via Active Directory Using Visual Basic 2010?

Jan 4, 2010

im writing a little app to enable authorised staff to reset student passwords but having a few issues. . I am no expert and am now stuck The following code does not seem to error but also does not reset the password! Private Sub bt_pwd_reset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_pwd_reset.Click

[Code]...

View 1 Replies

VS 2010 Background Worker Cross Thread Operation On Active MDI Child

Dec 11, 2011

how to put this on a background worker without getting cross thread errors??? trying to upload a childform object values to an access db.I don't work in IT,Our company's LAN so slow that it takes around 3~5 seconds trying to update/insert values in access using the code below so putting it on a background worker i think makes the app immediately usable once save/upload's called unless otherwise somebody could suggest a faster way to speed things up.[code]

View 2 Replies

Opening A Solution File It Was Saying "The Selected Fiel Is Not A Valid Solution File"?

Mar 27, 2012

Till yesterday I was working fine with my Project.I din install anything new, am not trying to open my solution file with a different version also.Today when i tried opening my solution, it was saying

"The Selected Fiel is not a valid solution file"

"The Operation could not be completed.Unspecified Error"

Microsoft Visual Studio Solution File, Format Version 10.00

# Visual Studio 2008

Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "??E", "..Setup2Setup2.vdproj", "{600F8FB2-B9A9-4138-B7E7-FE7B39815CC1}"

EndProject[code].....

View 6 Replies

Get Query Active Directory With The Pc Name And Return It's Path In The Active Directory Tree

May 9, 2006

I'm a developer for a College we have an active directory.I need to query Active Directory with the Pc name and return it's path in the Active Directory tree.

View 3 Replies

FlashWindowEx Doesn't Work While The Application Is Active But Does When Another Application Is Active

Apr 2, 2010

I have a standard Visual Studio 2008 VB.Net WinForm application, running on Vista Business. One of the forms has a timer that passes Me.Handle to FlashWindowEx. This works as intended as long as none of the windows that belong to this application are the Foreground window. If this program is running and another application's window is the Foreground window, then it flashes as intended. If, however, any of this application's windows are the Foreground window, then it doesn't flash.

[Code]...

View 2 Replies

Write Text From A Parent Form To The Active Mdi Child Form VB 2010

Jan 28, 2012

It has to be a simple line of code but I do not know how to construct it. Using VB 2010 Express, I have a MDI parent form and many child forms. I want the parent form to determine what child form is active and load data into the RichTextBox1 on the child form. Each Child form has a RichTextBox1. The parent form gets its data by loading a file.

I am close to a solution but just can't get there. You will see in the code below, if I make a direct reference to a specific child form, it works great. What I want to do is to use the Active Form function to determine which form to write to. I have looked at the MS tutorial which gets me close.

Private
Sub OpenToolStripMenuItem_Click(ByVal sender
As System.Object,

[Code].....

View 6 Replies

VS 2010 Retrieve Currently Active Application Window From Another Application Just Starting Up

May 26, 2011

I am in need of a small application, that will allways be topmost and will send keystrokes to the last active application (typically notepad or an explorer window). My problem is retrieving the current active form (or application), when my application is started up. Every search seems to return old and rather complex solutions using Win32 library functions, but I was kinda hoping, that .Net allowed for a neater and more simple solution.I need a code example or link on how to retrieve the currently active application window from another application just starting up.

View 2 Replies

.Net Solution With C# And VB Projects

Aug 30, 2011

I have a .Net solution with 5 projects in c# and one in visual basic. I want to know whether there would be a gain of performance to convert my visual basic project to C# in the day to day while I compile my solution.

View 3 Replies

Add WCF Web API With ASP.NET MVC 3 To Existing Solution?

Dec 1, 2011

Im trying to implement this code: url... and want to add it to my existing VB.NET solution.But when I look at the source code I see a code behind file for global.asax (Global.asax.cs) file with a namespace defined in it?!?Now in my existing VB.NET solution I DONT have a code behind file. Here's what my global.asax looks like: [code]When I add the namespace code as in the sample code I get: 'Namespace' statements can occur only at file or namespace level.How can I implement the sample code correctly in my current solution?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved