[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Microsoft Visual Studio

809

Solutions

826

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

I'm running a solution in visual studio in debug mode.  Is it possible to step back to or at least find whatever called the function that is currently running?
0
Powerful Yet Easy-to-Use Network Monitoring
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

Hello,
How do I add my vb.net desktop project to git.
I am using visual studio 2017 .

Thanks
0
Hey All, Need some advise:

What’s the correct way of licensing Visual Studio and other licensed development tools when running on an EC2 instance and cloning them for any new instances? Right now, there are 5 developers with a Visual Studio 2017 licence and they login to their respective Ec2 instance where each developer has a Visual studio license. Now the scenario is:

If new VM’s need to be created, current process is basically creating an Instance from a Base AMI which has got all of these development tools installed with a generic license and then manually entering new license info.

Is there a way that any new VM created can de-associate previous license and enter new license or does it have to be done manually. terraform is being used to spin up these instances.
0
Hello Experts.

I am experiencing a small problem when creating custom user controls from within a given project. Note that this is not a problem when creating a dedicated project for the user control, but sometimes I really don't need the user control to be available for other future projects, and just need it to be available from the specific project.

In searching the web, I find two main "schools" on how to create user controls. Some have you do right from within the project, and others have you create it as a separate project. I'm wondering if perhaps I am missing an important step with the procedure for creating a user control from within the project.

So, in my case, I have an existing project and right-click the project name, and choose Add > User Control. After designing it, I click Build Solution. My current expectation is to find a .DLL file in my bin/debug directory, but it is not there.

I have seen some posts on other forums that reference changing the user control from private to public, but don't really see a way to do this.

Any insights would be appreciated!
0
Error      1      Unexpected end of file looking for </form> tag.       The </form> is on the form.  The web developer is Microsoft Visual Studio 2012. Usually when there is an error (missing end tag) and you put the end tag in there; the error goes away. Not this time. Thank you for any help.

Here is the code on the page:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Graphics.aspx.vb" Inherits="Graphics" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   
    <link rel="stylesheet" type="text/css" href="Site_Styles.css" />
    <title>Screen Printing, Embroidery, Heat Press, Dye Sublimation</title>
    <style>

       
          body {
    background-color: #C0C0C0;
    color: #000000;
    height: 1500px;
    width: 85%;
    margin: 25px 0px 7px auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2em;
    font-weight: normal;
    font-style: italic;
    border-bottom: 10px solid gold;
    }

            a.LinkButton {
     
    font-family: Georgia, "Times New Roman", serif;
    font-size: small;
    text-align: center;
    position: absolute;
    z-index: 1;
    width: 80px;
    right: 1054px;
    border: medium ridge #66CCFF;
    background-color: #4682B4;
    color: #FFFFFF;
    top: 135px;
    left: 210px;
    height: 20px;
 
    }


  .p {

    top: 325px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    background: #CD5C5C;
    …
0
Hello,
What is the Test option in visual studio 2017 used for.

Regards
0
CRM 2013, Dynamics 365 online

I am looking for a method to test plugins converted for D365 from CRM 2013.  With a Dev environment, how can this be done using Visual Studio and the PRT?

Ideas are: on Dev, if we register the plug-in assembly, ,register a plug-in step for an event and test its execution by doing whatever is shown in the code.  For example, step through the code as a plugin and test that it performs the actions in the CRM 2013.

Questions: can Visual Studio be used in Debug mode to step through the code and provide an adequate test?  Can the PRT be used to view the registered plugin and verify that the plugin ran as expected?

Thanks
0
I am using visual studio 2015.  Asp.net site using VB.net

I am retrieving an amount from a database and I need to have that amount appear on the page with commas.  For example the number is showing as (example) 26012  I need it to show as 26,012

I guess I first need to convert the amount to a string then format the string, but I am not having any luck.  

Thank you
0
I am still trying to rotate an image in MS Visual Studio.

CSS code is:

.auto-style1 {
    border: 10px solid rgb(44,45,140);
    height: 390px;
    width: 467px;
    transform: rotate(270deg);
}

The target in a web form is:

<div>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <img src="Images/Anatol_Pilot.JPG"" class="auto-style1" />
           
        </div>

The result is that the  border: 10px solid rgb(44,45,140);
    height: 390px;
    width: 467px;
information all works; but the last one  transform: rotate(270deg);
is lost in translation.  
Webform---CSS.docx
0
I have an asp.net application built using vb.net on visual studio 2015.  I want the user to be able to print an asp page to either a printer or Adobe PDF without headers or footers.  I don't want the user to have to adjust the print settings in their browser.  Is there a way I can create a print button that will send the page to a printer and change their header and footer settings to be blank.
0
Creating Active Directory Users from a Text File
LVL 8
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Asp.net c# code for Dynamic Custom Data Point on Multi-line Chart

I created a multi-line chart using visual studio 2010 with c# coding for a web application for a report .
The chart is depicted in the attached image file.
There is a need for me to insert a custom data point where a vertical line from a particular point x axis intersects a horizontal line from a particular point on y axis meet.  For example, in the attached image chart, I wish to have a data point depicted by a colored filled circle or square a point where vertical line from 34 on  x axis intersects with horizontal line from 700 on y axis.  This should be done by coding as points on x and y axes change in different situations for which report will be generated.  Even the filled color of circle or square should change dynamically as per the data driving the chart
Multi-line chart
0
Hi,
Any suggestions for VB.Net interview questions.

Thanks
0
Hi,
How do you explain a approach for a vb.net desktop project.
If asked to explain a project and a methodology, any suggestions on how to explain.
Example: I have used classes etc.

Regards
0
I have a stored procedure ( spgetabsecode_all )  in postgresql  that returns values when executed  
from the query  analyser

When I execute same from a  C#  application  it returns no values

What is wrong with my output statement  and why is the output reporting   zero records

Please note that  I have confirmed separately  that my connection string
to postgresql  using Npgsql  provider  is correct.


see the 2 screens attached

1.  The select executed locally from query analyser  with the result

2. error screen from the debugger within visual studio
storedprocedure261118.PNG
debugscreen261118.PNG
0
First let me say I am a newbie teaching myself Visual Basic out of necessity.
I am using Visual Studio Professional 2017 and a visual basic Windows form

I have a form with a Datagridview .
The Datagridview is bound with a connection string.

I would like to be able to copy a row from the DataGridView table, then paste to the same Datagridview table as a new record, and update one or two fields of the copied row.

This is what I have so far.

Private Sub DataGridView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyDown
        If e.Control Then

            If e.KeyCode = Keys.C Then
                CopyRows()
                e.Handled = True
            End If
            If e.KeyCode = Keys.V Then
                pasterows()
                e.Handled = True
            End If
        End If
    End Sub

    Private Sub Pasterows()
        If Clipboard.ContainsText Then
            Dim CopyText As String
            CopyText = Clipboard.GetText
            Dim Items() As String
            Items = CopyText.Split(ChrW(Keys.Tab))
            DataGridView1.Rows.Add(Items)


        End If
    End Sub
    Private Sub CopyRows()
        If DataGridView1.SelectedRows.Count > 0 Then
            Dim row As DataGridViewRow
            row = DataGridView1.SelectedRows(0)
            Clipboard.SetDataObject(Me.DataGridView1.GetClipboardContent())
        End If

I am getting an error in …
0
Hi Experts,

I'm using the Visual Studio 2013 Ultimate.

My project has been happily connected to TFS for many months.

But today I made some changes to my source code, but I cannot check these changes in.
The "Check in" button is greyed out.

Below "Pending Changes", the "Included Changes" section says "There are no pending changes".

Looking at "Source Control Explorer", the files I have changed do not have anything in the "Pending change" column.
But looking at the History / Compare shows the local files have changed relative to the server versions.

Regards,
Leigh
0
Running Visual Studio 2015 on a SharePoint 2016 dev server.  I want to create an event receiver.  I create a SharePoint 2016 empty project (Farm) and then click add new item.  I select event receiver and the drop down to select the event source does not show any of my lists or libraries.

I have run as on the Visual Studio 2015 IDE as farm admin and still not luck.

Is this a broken VS or is there a rights issue or...?

Please advise.
0
Visual Studio.NET 2017

I'm new to javascript, and am looking for help understanding this block of code.
It seems to be filtering an entire table, based on user input in SearchBox, character by character as the user types.

Does the search criteria get built by some built-in functionality, or should I be searching the code for some user-defined function outside of this block of code building a criteria string?

If the functionality is built in, can I restrict it to a particular column of the table, and if so, how?

    function FilterTable() {
        $(document).ready(function () {
            $("#MainContent_SearchBox").on("keyup", function () {
                var value = $(this).val().toLowerCase();
                $("#SubmitterTable tr").filter(function () {
                    $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1);

                });

            });

        });

    }

Open in new window

1
Visual Studio 2015 using vb.net I have a label that is displaying a date field from a database.  On the form the date shows up as Nov 20 2018 and I need it to show up as November 20, 2018

Is there a way to format the field to show the correct date format?
0
Determine the Perfect Price for Your IT Services
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Hello,
I am  vb.net desktop developer and need to learn Asp.NET CORE (MVC)  , where do I start? Any suggestions on Books, Training (even paid is fine) will be appreciated.
Thanks
0
Unable to install SSDT for 2017, SSMS for 2017 or SSRS for  2017 due to language mismatch.  I have a W10 Professional with SQL2017 and VS Community 2017 installed. In the log files there are messages about language mismatch and on the screen there are messages about unknown registry key. The language is English and I have been using the English version of the OS and the tools. Does anyone have any ideas on how to get past this? The few notes I have been able to find say it cannot be done.
0
Teaching myself Visual Studio C#
Creating a program born of necessity.

I have a form with a webBrowser control which opens a webpage.

On the webpage is a form which has 4 radio buttons
when  i open the webpage with the webbrowser i want it to automatically select this radio button(see below)

<input type="radio" name="SearchBy" onclick="SwitchCaseSearch(this.value, true)" value="0" id="Case" labelname="Search By:" labelvalue="Case">

I can make it work with a button with this code webBrowser1.Document.GetElementById("Case").InvokeMember("Click");
How do I make it work without a button after webpage is loaded.

Please be explain in detail.

Thank you in advance.
1
Hello all!

I have a programs with 15 combo boxes that are populated with the following code:

public void Form1_Load(object sender, EventArgs e)
        {
            //Create OleDB connection
            try
            {
                OleDbConnection connection = new OleDbConnection();
                connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\sccalla\Desktop\accessdb.accdb;
                Persist Security Info=False;";
                connection.Open();
                
                //Select all information from TaskNames Table
                OleDbCommand command = new OleDbCommand();
                command.Connection = connection;
                string query = "Select * From TaskNames";
                command.CommandText = query;

                //Display Tasks in Comboboxes
                OleDbDataReader reader = command.ExecuteReader();
                while (reader.Read())
                {
                    taskcombobox1.Items.Add(reader["Tasknames"].ToString());
                    taskcombobox2.Items.Add(reader["Tasknames"].ToString());
                    taskcombobox3.Items.Add(reader["Tasknames"].ToString());
                    taskcombobox4.Items.Add(reader["Tasknames"].ToString());
                    taskcombobox5.Items.Add(reader["Tasknames"].ToString());
                    taskcombobox6.Items.Add(reader["Tasknames"].ToString());
                    

Open in new window

0
Hi all.

We have Visual Studio 2013 and I'm trying to load the results of a query into a multiline textbox, with the newest record on top and then each record after under it separated by ============

I have attached a sample of what I want it to look like.

It's basically pulling all the service ticket history of an account and letting our customer service reps be able to read all the history in one multiline textbox where they can scroll up and down. They say it's easier for them to read than viewing the records in a datagridview control.

My code below doesn't show any records just the ========================
Any help is appreciated.
txtServiceTicketReadHistory.Clear()

        Dim con As New SqlConnection
        Dim cmd As New SqlCommand

        con.ConnectionString = "Data Source=myServer;Initial Catalog=myDB;Integrated Security=True"

        con.Open()

        cmd.Connection = con

        cmd.CommandText = "SELECT Subject, Notes, CreateDate, CreateUser FROM CRMServiceTicket WHERE AccountID = @AccountID ORDER BY CreateDate DESC"
        cmd.Parameters.AddWithValue("@AccountID", accountID)

        Dim sqlReader As SqlDataReader = cmd.ExecuteReader()

 While sqlReader.Read()
 txtServiceTicketReadHistory.Text = "Subject: " & sqlReader("Subject")
            txtServiceTicketReadHistory.Text = txtServiceTicketReadHistory.Text & vbNewLine & vbNewLine & "Date/Time:" & sqlReader("CreateDate")
            txtServiceTicketReadHistory.Text = 

Open in new window

0
Hi, in my Visual studio I have very annoyed property to highlight everything I type after I used search tool. Please see the attached screen shot.
How do I remove this.Capture.PNG
0

Microsoft Visual Studio

809

Solutions

826

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.