Microsoft Visual Studio

303

Solutions

379

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

Hello experts

Its been a while since ive played in visual studio as ive been more a powershell person and looking for a bit of guidance. I was mainly writing this as a vb app instead of powershell for performance reasons in terms of faster launching but you might indicate this is incorrect. Amongst other things the app I was writing needs to work with the windows 7/10 credential manager to check if a credential already exists or not and if it doesn't preadd the username and target name to minimise confusion amongst endusers who are typing the incorrect credential and causing problems. So basically the command line I need to encapsulate into vb is

Cmdkey /list:ourtarget.provider.local

which will either return the credential details or say * NONE*. In powershell its relatively simple to pipe it with | foreach-object and check if the credential is there and im just wanting advice on how to do similar in VB or is there a better inbuilt way for vb to work with the windows credential manager ? I'll be adding the credential if it doesn't exist using info pulled from our AD which ive already got sorted in the code just a bit stuck on executing the external cmdkey program from within vb and parsing it
0
NFR key for Veeam Backup for Microsoft Office 365
LVL 1
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

i need to put the logo team next to the team name in a datagrid , i have a table with the team name and a field named logo, how to retrive the logo who is stored in folder images directly from the path that is stored in a field in a table, I share a image of my table in order for you experts give me an orientation of how achive that!

regards
Retrive-image.png
0
We have an ASP.NET application which uses multiple web services. It's an old project in Visual Studio 2010 that included the web services using dynamic discovery.

The project was initially published to a development machine running Windows Server 2003, but was changed to a 2008 R2 server some time ago. I'd now like to update the web references but trying to do that from within VS2010 results in the error -

There was an error downloading 'http://server.address/WS/WS.vsdisco'. The request failed with HTTP status 404: Not Found.

If I try to open the vsdisco from a browser on the server it returns -

HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.


I've added the HttpHandler entry for vsdisco files to both the machine.config and web.config files on the server. The vsdisco file opens fine from a server running IIS6.

Is there a fundamental difference between IIS6 and IIS7.x that means this simply won't work, or can I just add a MIME record for vsdisco files? If so, does anyone know what the MIME type should be? I've tried 'text/xml' but that just returns a schema error.

I know this has been superseded by WCF services, but for the time being I'd rather not have to make a more major change to the code to implement that. The web services have been built using the .NET 2.0 framework.

Many thanks,…
0
visual studios express latest edition

I tried to run javacript or html code but there is no "run" button

I know I can find file on a browser but that takes too long
0
Hi all
how to center a datagrid in a screen independent the screen size

regards you experts
0
https://mva.microsoft.com/en-us/training-courses/preparing-for-exam-mta-98375-html5-app-development-fundamentals-academic-edition-12434?l=lPZgNs8OB_9405192806

microsoft html 5 certification

in this lesson
code editor: microsoft web matrix was used
but this code editor does not exist any more

I think visual studios is next but this code editor may be too big and confusing
what code editor replaced microsoft web matrix
0
Hi guys.

I'm using this code to read a text file locally and do the word search as needed but the problem is that the file which this app will be reading will be online on a web server and the problem is that the code I have now to read this text online I don't seem to figure out how I can split data so that I can still do word search just like how I do to a local file. Here is the code I use to read local file:

while(!in.eof() && getline(in, line, ','))
							 {
								if((offset = line.find(ID, 0)) == string::npos)
								{
									id = atoi(line.c_str());
									in >> dat;
									getline(in, NUMBER, ',');
									getline(in, line, '\n');
									
									KEY = (int)atof(line.c_str());
									
									if(ID ==id)
									{
										ID = id;
										//dst = dvs;
										va = KEY;
										
									}

Open in new window


Now this code part is the essential part of code as its what I want to be able to do in the following code which is the code that reads a file from the web.

    #include "stdafx.h"
    using namespace System;
    using namespace System::IO;
    using namespace System::Net;
    using namespace System::Text::RegularExpressions;
    int main(void)
    {
        Regex^ rxSubTitles = gcnew Regex("\\d.*>(?<subtitle>.*)<");
        String^ strFileIn = L"http://textfiles.com/adventure/221baker.txt";
        WebClient^ wc = gcnew WebClient();
        StreamReader^ fileWebIn = gcnew StreamReader(wc->OpenRead(strFileIn));
        String^ strData = "";
        while(!fileWebIn->EndOfStream)
        {
            strData = fileWebIn->ReadLine();
            if(rxSubTitles->IsMatch(strData))
            {
                // take ONLY the subtitle without additional decoration
                Console::WriteLine(rxSubTitles->Match(strData)->Groups["subtitle"]->Value->ToString());
            }
        }
        fileWebIn->Close();
        return 0;
    }

Open in new window

This code simply gets all the Titles.

Here is my text file structure:

111,7643876,2
324,254935,
730,021738248,1

Open in new window


As you can see each line has 3 data fields and
,

Open in new window

is the data separator and as you can also see that the 3rd field can sometimes be empty. I think if you can look at the structure and also look at my first code even though I didn't post the complete code on the first code but I think that s the main part which you may need as its also the main part I'm having problem with when trying to apply it to the second code.
0
Hi.

I have 2 forms Form1 and Form2. Form1 is the core form or the main application first form which runs first then at some point it hide it self and show Form2, the problem now is that I want to also reshow back Form1 when Form2 closes.

Anyone know how I can have that. Currently the forms do hide form1 and show form2 but I can't include form1 on form2 because form1 has already had form2 included in it. I'm using Microsoft Visual Studio 2010 CLI application.
0
Hi,

I need to sort my data in a particular sequence in visual studio and not in A-Z or Z-A format. Suppose i have a table in visual studio with two columns Product and quantity:

Product      Quantity
Copy      5
Pencil      6
Eraser      1
Marker      10

and I want the result as:

Product      Quantity
Pencil      6
Eraser      1
Copy      5
Marker      10

Thanks
Aakriti
0
Hello forum

My developing environment is  Visual Studio  2015 enterprise , with Windows Driver installed.

I just started  going  going browsing through the  documentation at  https://github.com/basil00/Divert.

My  project description is this  :  My Project description : DNS RESOLVER IMPLEMENTED AS A WINDOWS SERVICE
 (MAIN FEATURE INTERCEPTION AND REDIRECTION TO ANOTHER HOSTED DNS SERVER) The scenario of my laboratory research
 work is this : My research laboratory has one hundred work stations, with users on each system. My research work is
 centered on making users Web browsers (opera and Firefox and e.t.c) queries i.e web surfing , to be intercepted and
 redirected to a local hosted DNS SERVER which will communicate with top level domain name servers around the world
 and return the request back to the users. The solution is to be design as a WINDOWS SERVICE (not a GUI).
 
 
 I want to know can i write a DNS RESOLVER IMPLEMENTED AS A WINDOWS SERVICE
 (MAIN FEATURE INTERCEPTION AND REDIRECTION TO ANOTHER HOSTED DNS SERVER) with   WinDivert



My questions :

Is there any documentation for writting the WinDivert.dll in windows service to serve as matching packet (Conditiosn for INTERCEPTION AND REDIRECTION)


(2) The WinDivert.sys do i need to manipulate it for packet intercettion and redirection


(3) The rerouted packet is going to a DNS server on 189.200.200.4  in my network, how do i achieve the packet  modification for rerouting to the  …
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

Good day  expert exchange.

Am writing a Driver service which is a type of kernel-level filter driver implemented as a Windows service that enables applications to work with devices .


My development environment is  Visual Studio  2015, Windows 10, template Windows Driver (KMDF)

What i want to achieve is  DNS queries Redirection


Am working with the FWPS_LAYER_ALE_CONNECT_REDIRECT_V6 and FWPS_LAYER_ALE_CONNECT_REDIRECT_V4  being that tey are both kernel based


From https://docs.microsoft.com/en-us/windows-hardware/drivers/network/using-bind-or-connect-redirection

What is confusing me is this : How do i write a kernel-level filter driver implemented as a Windows service in Visual studio. I mean the
step i should take.

I dont know how to start the project templates adding in visual studio, whether the windows service (C#) template then
click on the File menu on the Visual studio 2015 to add the windows driver to the Windows Service or  vice versa.

Would  really appreciates someone help in sorting this issue out.


Thank you expert exchange
0
How to change to visual studio 2017 use to define column names in datasource when using mySql database. By default square brackets determine column name, but mysql use backticks. Any way change this staf?
0
i been trying to get the upsi to work with visual studio. could i use another language to use there web service and viusal studio the choiese are

axis2
jax ws
perl
php
0
I am getting the following error report when i try to upload my custom template.

i have found out that the eroor most likely is in this xml file

<?xml version="1.0" encoding="utf-8"?>
<ProjectProcessConfiguration>
  <TypeFields>
    <TypeField refname="System.AreaPath" type="Team" />
    <TypeField refname="Microsoft.VSTS.Scheduling.RemainingWork" type="RemainingWork" format="{0} h" />
    <TypeField refname="Microsoft.VSTS.Common.BacklogPriority" type="Order" />
    <TypeField refname="Microsoft.VSTS.Scheduling.Effort" type="Effort" />
    <TypeField refname="Microsoft.VSTS.Common.Activity" type="Activity" />
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationStartInformation" type="ApplicationStartInformation" />
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationLaunchInstructions" type="ApplicationLaunchInstructions" />
    <TypeField refname="Microsoft.VSTS.Feedback.ApplicationType" type="ApplicationType">
      <TypeFieldValues>
        <TypeFieldValue value="Web application" type="WebApp" />
        <TypeFieldValue value="Remote machine" type="RemoteMachine" />
        <TypeFieldValue value="Client application" type="ClientApp" />
      </TypeFieldValues>
    </TypeField>
  </TypeFields>
  <PortfolioBacklogs>
    <PortfolioBacklog category="Microsoft.EpicCategory" pluralName="Epics" singularName="Epic" workItemCountLimit="1000">
      <States>
        <State value="New" type="Proposed" />
       <State value="Approved" …
0
Hi all,
i need to lock some columns and rows of a datagrid
please could you have some examples?
regards!
edo
0
Hi,
I'm using Visual Studio Community 2017. In my case, I have text box named: txtSEARCH, Button named: cmdSEARCH and a Datagridview named: DataGridView1.

Datagridview populated from a text file named: "D:\esdcheck\.BAK.dll" and manualy put column in properties.
This is how I make columnsand this is my DataGridView (This is my form)
Sample For
What I want to do is to search User ID and display it in DataGridView

ex:
I type "1504579" in the text box (txtSEARCH) and when I click the button, datagridview will display all "1504579" in the list 'ONLY' from Rowel Virgo

I'm searching all day in the internet but no codes for like that, any help please and Thank you

This is How I populate my DatagridView:

Public Class Form1


    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

        Dim lines = (From line In IO.File.ReadAllLines("D:esdcheck\BAK.dll")
                     Select line.Split(CChar(","c))).ToArray
        For x As Integer = 0 To lines.GetUpperBound(0)
            DataGridView1.Rows.Add(lines(x))
        Next

    End Sub

End Class

Open in new window


this is my first post Listview and Datagridview  and thank you for the reply sir
Scott McDaniel (Microsoft Access MVP - EE MVE )
Account
Ryan Chong
Account
0
Hi all
can i

<asp:BoundField HeaderImageUrl="~/Images/<%=Session("uno")%>.png" 

Open in new window


need a session value inthere is that posible?
regards
0
I have a table with the following columns
Ticket Number
Assignee

There is a separate table listing all assignees - something like a list of all the staff.  Each ticket can have multiple assignees.  Assignees can work on multiple tickets.

When the user selects a ticket I want a list box to show total staff with the assignees on that ticket highlighted.  The user should be able to add and remove assignees from a given ticket.  The list of selected assignees need to be passed to an SQL stored procedure.
I'm using C# in Visual Studio 2010.
0
Need to prevent google developer tools explore my page, is any way to achive that,
dont want to see my html page code and nothing
regards dear experts
0
Get your Disaster Recovery as a Service basics
LVL 1
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Oh Dear experts,
I need to atach a file that is in my hard drive in code behind
what is the propper sintax for

mm.Attachments.Add()

regards
0
Is there a way to force a file that is locked by another process to be moved/copied in C#?
0
Hi All


I have the following issue below with VS2015 ,it will not allow me to connect to TFS however in other versions i can, see below.

Page '312e8a59-2712-48a1-863e-0ef4e67961fc' not found.
0
I need to stop the user register if the username is contained in the password
this work for me

password.Contains(username)

Open in new window


But i need it to stop the registration if is

Ernesto or ernesto

at this moment just if is  ernesto or ernesto  quits

i mean, how to do it no mater the  CASE!

regards
0
Everything was going well... playing around with Visual Studio 2017 for the first time...

Had a weird problem (#1, but not really what the question is about where even though I set the Assembly Name and Root Namespace names, ApplicationName was still returning "WindowsApp1" when referenced... so I thought maybe it's building using that temp name when run from VS IDE.  So I compiled it into an app and deployed it.  Same result...

So I try re-opening the project - I can't open forms!  I can a new form, but when I try to open the main form, the only "main" reference I have is main.vb.  And when I open that, I don't have any code either!  I have one other form in the app and I can't open that either (but the code is visible).

I'd really like to continue this project but I need to see the forms!  HELP PLEASE!?!

(Classic Windows Forms app).
0
Hello everyone.
 
 Am  writting a Windows Driver application (Packet modification) for DNS interception and redirection, making use of  https://github.com/Microsoft/Windows-driver-samples/tree/master/network
 
 My question is this am i supposed  to use Callout Driver  or Windows Driver Kit
 
 Secondly, am developing  a Windows service in Visual Studio how  do i use either the Callout Driver  or Windows Driver Kit in VISUAL STUDIO 2017 application
0

Microsoft Visual Studio

303

Solutions

379

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.