visual-studio-2012

VB.Net Passing values to another form

夙愿已清 提交于 2019-12-17 10:06:27
问题 I would like to know how to pass a value from form1 to another form's public sub. The problem is that it says "it is not accesible in this context because it is 'Private'." I've tried changing Form 1 Private Sub to Public Sub but the same error remains. How should i make it work? Public Class Form1 Dim test(), text1 As String Const asd = "abcabc" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load text1 = Space(LOF(1)) test = Split(text1, asd

VB.Net Passing values to another form

試著忘記壹切 提交于 2019-12-17 10:05:04
问题 I would like to know how to pass a value from form1 to another form's public sub. The problem is that it says "it is not accesible in this context because it is 'Private'." I've tried changing Form 1 Private Sub to Public Sub but the same error remains. How should i make it work? Public Class Form1 Dim test(), text1 As String Const asd = "abcabc" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load text1 = Space(LOF(1)) test = Split(text1, asd

How to get total of top 10 sales in SSRS 2012

一笑奈何 提交于 2019-12-17 09:55:11
问题 I am taking Top 10 of Sales Volume grouped by Product categories in SSRS 2012. I need the total of these top 10 but it shows the complete total. I cant do it on dataset level as I need the complete dataset for other parts in the report. I tried the solution as given in MSDNlink but that didn't help either. Thanks in advance. 回答1: This sort of approach does actually work very well. You haven't given any idea of what your data/metadata is like, but the concepts can be explained with a simple

how to add files in web.config transformation process?

拟墨画扇 提交于 2019-12-17 08:52:45
问题 I am having a website developed in Visual Studio 2012. The web.config is currently containing following files in its transformation: - web.Debug.config - web.Release.config I have recently added a new build configuration (named as "Staging") in my project. How can I create a "web.Staging.config" transformation file? 回答1: There are two ways for the web.config transform files to be generated within VS: If you have a web application project, Right-click on web.config and choose Add Config

VS2012 return to a normal TFS checkin window?

房东的猫 提交于 2019-12-17 08:18:01
问题 VS2012 seems to remove the popup window for TFS check-ins that was in VS2010. It now seems to take over the team explorer tab in my sidebar, and buries the important things - like which files I've changed. Is there any way to return to a normal popup window for check-ins in VS2012? 回答1: Another method is to use the Productivity Power Tools. This extension adds Windows shell integration so you can perform most of your TFS commands directly from within Windows without even having Visual Studio

VS2012 return to a normal TFS checkin window?

ε祈祈猫儿з 提交于 2019-12-17 08:17:03
问题 VS2012 seems to remove the popup window for TFS check-ins that was in VS2010. It now seems to take over the team explorer tab in my sidebar, and buries the important things - like which files I've changed. Is there any way to return to a normal popup window for check-ins in VS2012? 回答1: Another method is to use the Productivity Power Tools. This extension adds Windows shell integration so you can perform most of your TFS commands directly from within Windows without even having Visual Studio

Initializer list not working with vector in Visual Studio 2012? [duplicate]

梦想与她 提交于 2019-12-17 07:43:06
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: C++11 features in Visual Studio 2012 So I was reading up on C++11 initializer lists today via Wikipedia and saw that C++11 supports the following syntax for the standard containers: std::vector<std::string> v = { "xyzzy", "plugh", "abracadabra" }; std::vector<std::string> v({ "xyzzy", "plugh", "abracadabra" }); std::vector<std::string> v{ "xyzzy", "plugh", "abracadabra" }; When I try the following in Visual

ASP.NET MVC 4 + Ninject MVC 3 = No parameterless constructor defined for this object

折月煮酒 提交于 2019-12-17 07:14:45
问题 UPDATE - Please look at my answer for a link and explanation of the solution to this problem Before we start, I know this is a very common question and I've been using Ninject for many moons without issues, but now it's come up and I can't figure out a fix. Also, no, none of the results on Google and SO so far have helped me. So, consider the following bit of code running on a very, very, very simple prototype ASP.NET MVC 4 project from Visual Studio 2012 on Windows Server 2008 R2: public

Using jQuery with Windows 8 Metro JavaScript App causes security error

风格不统一 提交于 2019-12-17 07:08:14
问题 Since it sounded like jQuery was an option for Metro JavaScript apps, I was starting to look forward to Windows 8 dev. I installed Visual Studio 2012 Express RC and started a new project (both empty and grid templates have the same problem). I made a local copy of jQuery 1.7.2 and added it as a script reference. <!-- SomeTestApp references --> <link href="/css/default.css" rel="stylesheet" /> <script src="/js/jquery-1.7.2.js"></script> <script src="/js/default.js"></script> Unfortunately, as

How can I get the position and draw rectangle using opencv?

谁说我不能喝 提交于 2019-12-17 06:18:17
问题 I want to get a position when move and click mouse in picturebox. I want to create rectangle in the image window when and where a mouse is clicked. I have a simple code from document #include "stdafx.h" #include "opencv2/highgui/highgui.hpp" #include <iostream> using namespace std; using namespace cv; void CallBackFunc(int event, int x, int y, int flags, void* userdata) { if ( event == EVENT_LBUTTONDOWN ) { cout << "Left button of the mouse is clicked - position (" << x << ", " << y << ")" <<