Microsoft Visual Studio

271

Solutions

344

Contributors

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce both native code and managed code.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,

I have just started trying to learn Visual Basic 2015 and the book I am using has in the code instructed me to use the following code :

"Val" to convert a text string; and
"Me" to reference the current form

Neither of which are recognisied by Visual Basic 2015.

    private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Sum.Text = Val(Num1.Text) + (Val(Num2.Text));
        }
    }
}



  public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Me.Text = InputBox("Enter a Caption...")
        }

    }
}
0
NFR key for Veeam Agent for Linux
LVL 1
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

I recently procured Visual Studio 2017 professional and trying to hands on with R tools.
I created a new R project and created a custom (user defined) function.  The function generates
4 sub-graphs with the function par(mfrow=c(2,2)) in one main graph
My function is working well with regular R software version 3.4.
When I trying the same function in R tools in Visual Studio 2017, I am getting an error
Error in plot.new() : figure margins too large
What could be the problem. Any solutions for rectification?
0
I have an MS SQL database that I created using Microsoft SQL Server Management Studio 17. I went ahead and uploaded it to my webhost provider and even made an aspx.net bv.net page to read back one of the tables just to be sure I had the right connection to the database. All that works but now to save me coding time I wanted to create a GridView to display, delete and update specific records to the database.

I start the process of dragging a GridView to the aspx page in Microsoft Visual Studio 2017 then it asks for me to choose a datasource so I choose SQL and the data source defaults to SqlDataSource1 which I modify to be SqlDataSource2018 because I already have another 7 year old database that uses the name SqlDataSource1

The next step is to to specify the Data Connection which is available to me on the drop down menu.
This then makes the "Next" button at the bottom of the dialog box be available for clicking.

This where I run into a brick wall with the same message everytime.
I've embedded an image that displays the error message and I've also attached the file in case you cant see the embedded file (im new at this...)
error message
From what I can decipher the computer I think is stuck in trying to find the database locally within my computer but it needs to go to the database server's i.p. address!
Any suggestions to get me and my computer out of this rut?
Thank you for your help!
0
today when i want to start to dubug ms asp.net website program the dianostic tools say it starting but does not do anythin. I triad anoter project and it still will not start. any ideas
0
I am trying to automate printing in foxpro.My requirement is When I clicked on print button It should start printing without asking for the destination folder dialogue box. printing is working fine..But it always asks for destination folder dialogue box

i tried with set printer to funtion..But it is for pointing the .exe file of the default printer

set printer on

odoc.printout()

Is there any option in foxpro to set destination folder programatically?

 in my system I have adobe pdf and pdf995.

Thanks in Advance
0
Typically when I use any version of visual studio my source code is on the left part of my screen and takes up a majority of the screen. On the right side is my "Solution Explorer" tabbed window which I can conveniently click on a file and it will be displayed on the left of my screen.

Somehow something is screwed up because when I double click on a file in the Solution Explorer view, the file is opened, however it is not opened to the left of my screen as usual, but in a new tab that sits over solution explorer. So solution explorer is covered up? How can I reset Visual Studio editor so that when I click on a file in solution explorer it will open to the left of my screen?

I am using Visual Studio 2015
0
Hi there,

thank you for reading this ,  i have a light SSIS package . It runs without any errors in the visual studio 2012 in  dev environment.  but once it gets deployed to test environment   using proxy account with full permission access ran the package in SSMS 2012 . it shows error below .  Does anyone have any ideas ?  Thank you .

DataFlowTaskError: there were errors during  validations
DataFlowTaskError: Failed validation and return status "VS_ISBROKEN"
DataFlowTaskError:  one or more component failed validation
DataFlowTaskError: Microsoft SQL server Client 11.0  hresult:0x80004005
Description :Syntax error, permission violation , or other non specific error
0
howshow.png
How to show columns?
0
I got this dumped in my lamp. They need a timer for their Excel vba application. I create a COM class in Visual studio, register for COM Interop, serialization is on AUTO, and XML documentation is checked. Builds fine. I build and import into Excel fine. But when it encounters the new variable it says it can't create the ActiveX component. What they want is the timer to run until it reaches a certain count and then notifys the vba code it is done and displays that value in the spreadsheet - without locking out any other activity going on. Below is the code for the dll in vb.net. I don't get beyond the import reference in Excel and instantiating the object before the ActiveX error. Going nuts here any help appreciated.

 ' A creatable COM class must have a Public Sub New() 
    ' with no parameters, otherwise, the class will not be 
    ' registered in the COM registry and cannot be created 
    ' via CreateObject.
    Public tmrUpdate As New System.Timers.Timer
    Private TimeLeft As String
    Public timeUpDate As Integer

    Public Sub New()
        MyBase.New()
        AddHandler tmrUpdate.Elapsed, AddressOf Tick
        DoStuff()
    End Sub
    '<DllExport("add")>
    'Public Function TestExport(left As Int32, right As Int32) As Int32
    '    Return left + right
    'End Function
    '<DllExport("TimeLeft")>
    Private Async Sub DoStuff()

        'Doing stuff

        timeUpDate = 599
        tmrUpdate.Start()
        'Application.DoEvents()
        Await 

Open in new window

0
I Need some help with Visual Studio, I have a project file that was made in VS2008 and I need it to work in a newer version (2012
0
Get your Conversational Ransomware Defense e‑book
LVL 1
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Dear sir,
i have published windows forms application using visual studio 2013 and for reporting used SAP product cristal report 2013 for visual studio  when i run on client machine it installed perfect  but when i click on report form it shows an error:
ERROR: ''crystaldecisions.shared.sharedutils;threw an exception''
cr.png
0
language : c++
(tools : visual studio , acrobat reader)
thanks a lot
0
Hi,
we have a website developed in Visual Studio 2013 using ASP.Net, C# and Javascript. Also we have used SQL Server 2008 R2 but we are expecting to migrate to a newer version.

We have seen in Office365 that they integrated some kind of Office web version to use it online, someway similar to Google Docs.

In our website we, sometimes, upload files and we would like to be able to Edit/Open our excel and word documents with Office,same way we do in Office365 online.
Is it possible and where can I get development documentation/samples about it?
0
I realize this might sound strange, but I've built several forms that contain both a single record with multiple text boxes, etc. AND a DataGridView. In fact, they share the same BindingNavigator. What's really odd is that the DataSource for everything on the form comes from an Access Query (thus a VIEW in VS2013).

It doesn't take a genius to see that the TableAdapter for the View simply doesn't support Inserts, Update and Deletes, but I am hoping to find a way to keep my beautiful forms, and learn how to write some code to manually do the inserts, updates and deletes on the corresponding TABLE.

For example, let's say that I have a VIEW called RosterView, and it has columns for everything in the TABLE Roster, plus some additional columns compliments of the joined tables (for example, the Teams table so I can show the player's Team Name next to the Team ID). All the fields on RosterView can be added to the top half of the form using the Designer, and a simple DataGridView added to the bottom half. Both share the same BindingNavigator and everything points to RosterView as the Data Source.

The obvious drawback here is that I am not able to do any inserts, deletes or updates since the TableAdapterManager won't invite Views to the party. A previous version of my form used the Roster TABLE for the top half and the RosterView for the DGV at the bottom. That worked okay, but I had to write a lot of code to keep everything in sync, so I went back to toying with this idea.
0
Hi all

How can i find quickly the class invoqued

 <a href="Prevención.html" class="more">Más información</a>

Open in new window


In this case i need to find the clase "more"
im prety lost please help me out!!
regards
0
I'm using Visual Studio Team Services for my source code respository.

I have a project AA that has it's own visualstudio.com location, but when I went to add another project BB on the same PC with a different location, it said it was already loaded under the other project AA's TFS location. Of course, I have never published my other project BB to that project AA, that would really mess things up.

I tried using Team > Disconnect from TFS to remove this project BB, but it says that will close all solutions that use TFS. So I said no.

I am able to go to Team Explorer > Manage Connections and add my other project BB's visualstudio.com repository,  I added the path to this project BB's directory and it shows on the HOME.

If I go to visualstudio.com  for BB there is no code there, just a BuildProcessTemplates folder.

When I go to Connect, it shows a Local Git Respository with my other project AA. When I try to ADD and use the Path to this Websolution BB,  it has "No new repositories were found."

When I go to NEW and try to create one with this path to BB it says:
The folder *** already exists and is not empty. Choose a new folder or an empty folder for the cloned repository.

How do I take an existing project BB, and add it to TFS? It's the one that contains existing source code.

thanks!
0
My current problem is that I'm trying to push new files to our project's dev server and each time I make a commit with SVN, this error is popping up: " error MSB3541: Files has invalid value "<<<<<<< .mine". Illegal characters in path. ".

I did a little bit of research and found that this is a warning that SVN gives when it tries to merge two disparate files. The ".mine" is added to the data of the file along with a ".yours" section to show the changes and allow the user to manually edit out the conflicts on the file.

However, whenever I try to edit the .dll file in question TortoiseSVN gives me an error message saying that this type of file can not be edited. I've tried recompiling the project's dll's, deleting the obj and bin folders to force the project to rebuild the offending directory, used old .dll files from an earlier version, recompiled the dll's on the other computer that has access to this repository, unloading and reloading the project that contains the dll file in question, and building the entire project. So far nothing has returned a solution. Each time I push the newly built files the same error pops up.


Is there a way to edit out a conflict of this nature on a .dll file or am I missing something very obvious?
0
We are trying to migrate from 2010 to o-365 and we have SSRS reports in 2010, so we to have establish the connection between  Visual Studio and o-365,  so that we put the output of the report in O-365.
0
Hi Experts
Attached is an image of an RLDC report Right Mouse click and select open with
The Default is Report Designer, how do I find what its connected/Pointing to so I can setup
in a new Laptop with Visual Studio 2008

Report Viewer
0
[eBook] Windows Nano Server
LVL 1
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

I am working on visual studio 2012. i want to know how to attach fingerprint scanner with windows form application that it scan image from the the scanner and show that impression in the window form moreover that image compare with the image stored in the database against that information that the user entered in the window form .Please reply me as urgent as you can I need the code badly
0
I am wondering what i can do to avoid long startup times for my Development environments as both 2015 and 2017
of Microsoft visual Studio seem to search for all installed Assembly's and as i have several tool kits installed this takes
a very long time. I have Telrik as well as Infragistics and some other smaller tools. I googled but could not find any specific hint.
0
After clicking the type, it still shows all the items!
source code
   <asp:DataList ID ="dd" runat="server">
                                                <ItemTemplate>
                                                <li><a href="#Events.aspx?type=<%#Eval("EventTypeName") %>"><%#Eval("EventTypeName") %></a></li>
                                               </ItemTemplate>
                                            </asp:DataList>

code behind
 con.Open();
        SqlCommand cmd = con.CreateCommand();
        cmd.CommandType = CommandType.Text;

        if (Request.QueryString["type"] == null)
        {
            cmd.CommandText = "select * from EventDetail";
        }
        else
        {
            cmd.CommandText = "select * from EventDetail where EventTypeID= '"+ Request.QueryString["type"].ToString()  + "' ";
        }

        cmd.CommandText = "select * from EventType";
        cmd.ExecuteNonQuery();
        DataTable dt = new DataTable();
        SqlDataAdapter da = new SqlDataAdapter(cmd);
        da.Fill(dt);
        dd.DataSource = dt;
        dd.DataBind();
        con.Close();

my two tables
1. EventDetail (EventDetail_ID, EventTypeID, eventDetailName, eventDate......)
2. EventType (EventType_ID, EventTypeName)
0
Hi,
I have a problem with custom templates not creating solutions correctly. It works fine on my Home computer but not on my office computer. I have reinstalled VS 2015 several times but problem remains. The issue is the "Location" and "Solution Name" dialog are not visible nor are the "Create directory for solution" or "add source to control" checkboxes and browse button.

Below is an example of what happens and below is one of the template files (this effects several new project templates under c++).

If I select New -> Visual C++ -> Empty Project, I get the following dialog at bottom of window (You can see that "Location Field" is Enabled and yet it does not show when I create a new project)



Name: Project 1
Location: C;\users\david\visual studio 2015\projects
Solution Name : Project 1
Also a "Browse" button, "Create directory for solution" checkbox and "add to source control" checkbox.

If I select New -> Visual C++ -> Particle Project (which is one of the custom projects) I get

Name : Sketch1

All the other dialogs and checkboxes are missing.

BUT, When I am on my computer at HOME, I see all the correct solution name, location and checkboxes ok, but NOT on my OFFICE computer.

I am sure it is related to some setting in a file somewhere that is overriding the parameters for the VM template but don't know which file will be controlling this behavior.

<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" …
0
I have created an application using Visual Studio Professional 2015 (Version 14.0.25431.01 Update 3) that utilizes Visio Viewer (Version 16.0.4339.1001).
When I install my application, I get "Error 1904. Module C:\Program Files (x86)\...\VVIEWER.DLL failed to register. HRESULT -2147220473. Contact your support personnel."
I have researched and not found a solution. I have done all the basics .. windows is up to date, etc.
In my application I reference AxVisioViewer.
The application does run / work correctly - but I am concerned that the end users will not have a good install experience as they see this error during install.
(I also get the similar error when uninstalling - the failed to deregister error 1905).

Visio Viewer must be installed first. In Visual Studio, AxVisioViewer copy local set to yes (it will not work if set to no). Embed Interop Types - False. Specific version - False.
I have tried uninstalling Visio Viewer and installing my app, it will not run without Visio Viewer installed. I have re-installed visio viewer then re-installed my app - same error during installation. As stated, it works - but the user sees this error.
I am using InstallShield LE, and I am digitally signing my app / setup programs
.
0
Hello,

Cannot break and debug stored procedure while debugging .NET application using Visual Studio 2017.
i followed the same steps as i would do in visual studio 2015 but no good .

Cheers
0

Microsoft Visual Studio

271

Solutions

344

Contributors

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce both native code and managed code.