Skip to content

Visual Studio

Discussions on the Visual Studio .NET IDE

This category can be followed from the open social web via the handle visual-studio@forum.codeproject.com

3.1k Topics 7.8k Posts
  • 0 Votes
    1 Posts
    10 Views
    No one has replied
  • How to Close SQL Database Connection

    csharp database help visual-studio winforms
    2
    0 Votes
    2 Posts
    15 Views
    Richard DeemingR
    If the adapter opens the connection, it should automatically close it for you as well. I suspect the connection is being "closed", but is kept alive by connection pooling: Connection Pooling - ADO.NET | Microsoft Docs[^] When you open another connection to the same database, it should reuse the pooled connection rather than opening a new connection. If you want to disable connection pooling for a connection, add Pooling=false; to the connection string. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • Create Textmate extension problem

    visual-studio csharp com json help
    2
    0 Votes
    2 Posts
    14 Views
    Richard DeemingR
    You seem to be missing the fileTypes element in your JSON file: { "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", "name": "CpcdosC+", "fileTypes": [ "cpc" ], Without that, I suspect Visual Studio doesn't know to associate your grammar with the file. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • VB.NET

    csharp help
    2
    0 Votes
    2 Posts
    15 Views
    L
    Please stop posting the same question everywhere in the forums. You are getting dangerously close to be being thrown off this site for abuse.
  • 0 Votes
    4 Posts
    22 Views
    L
    Member 12974235 wrote: sometimes that black console windows shows. "Sometimes"? So, not every time it runs? Are you executing other applications from your project? Also check if there's anything executed in the post-build (also part of the projects' properties, see build-tab). Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
  • 0 Votes
    16 Posts
    44 Views
    J
    IMHO they found it without my post, as the forum still shows 'under investigation'. However, glad that it's fixed now. ...but some suspiciousness remains.
  • 0 Votes
    2 Posts
    7 Views
    L
    Just make a list of objects with the details and bind to the datagridview, or add the items manually.
  • 0 Votes
    2 Posts
    7 Views
    Richard DeemingR
    As I understand it, you don't have a current subscription, so you'd have to go with the "new" option. The old version of VS wasn't a subscription product, so it doesn't count in this case. But you'd obviously have to check with Microsoft for an official answer. :) NB: If you're just after a copy of Visual Studio, and you fit within the restrictions*, you might be able to use Community Edition[^]. It's essentially the same as Pro, but it's free. * Less than 250 PCs, less than $1M annual revenue, no more than 5 developers using community edition. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • crystal report vb.net

    csharp help tutorial question
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Difficulty with Visual Studio

    question c++ announcement csharp delphi
    10
    0 Votes
    10 Posts
    24 Views
    A
    I found that I had an array of characters char[1024][256]. I have now changed it to char[256][256], and the bug seems to have gone away. Thanks. I am very sorry to take up your time. When I am developing a program, once in a while I make a backup copy of its source form files.
  • Windows Community Toolkit

    visual-studio winforms hosting help question
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • 0 Votes
    5 Posts
    16 Views
    OriginalGriffO
    Please don't repost if your comment does not appear immediately: both of these went to moderation and required a human being to review them for publication. In order to prevent you being kicked off as a spammer, both had to be accepted, and then I have to clean up the spares. Have a little patience, please! I've deleted the spare version. "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony AntiTwitter: @DalekDave is now a follower!
  • Simple Array passing

    c++ data-structures help
    3
    0 Votes
    3 Posts
    10 Views
    V
    ccodebase wrote: i have a list of numbers that are like the following 01,-0.84415,0.35416 02,-0.64350,0.29412 03,-0.35877,0.25129 04,0.00000,0.23529 05,0.35877,0.25129 06,0.64350,0.29412 07,0.84415,0.35416 08,-0.68573,0.41802 09,-0.49935,0.36853 10,-0.26625,0.33535 And what is your question concerning the Forum: Visual Studio?
  • Explanation of function

    csharp
    3
    0 Votes
    3 Posts
    11 Views
    C
    oh yes i understand the rigors of this code, i agree with you , but some simple c++ with those numbers hard coded into the array would work in c++ just don't know exactly were to start to get the outcome. even if i start with a small Array i can add to it later, [1] - Index [2]-Angle [3]-Hypot 01,-0.84415,0.35416 02,-0.64350,0.29412 03,-0.35877,0.25129 04,0.00000,0.23529 05,0.35877,0.25129 06,0.64350,0.29412 07,0.84415,0.35416 08,-0.68573,0.41802 09,-0.49935,0.36853 10,-0.26625,0.33535
  • insert data into firebird from c# in details

    csharp
    5
    0 Votes
    5 Posts
    16 Views
    M
    Install [Firebird .net provider](https://firebirdsql.org/en/net-provider/), then read [Firebird: Drivers Documentation](https://firebirdsql.org/en/drivers-documentation/).
  • 0 Votes
    2 Posts
    3 Views
    L
    This is the Visual Studio forum. We do not have a forum specifically for Python yet, so please use Quick Answers[^]
  • How do i write a code for recursive golden phi on VSC?

    question python
    3
    0 Votes
    3 Posts
    11 Views
    M
    If I want to code it all it one function how would you recommend me to do it? SHould i use another method?
  • 0 Votes
    3 Posts
    9 Views
    L
    [windows 7 - How do I migrate Web sites from IIS 7.5 on one machine to IIS 8.5 on a different machine? - Stack Overflow](https://stackoverflow.com/questions/43209933/how-do-i-migrate-web-sites-from-iis-7-5-on-one-machine-to-iis-8-5-on-a-different) It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food
  • 0 Votes
    5 Posts
    15 Views
    F
    F.Y.I... In VS2017 there is something called Shared Projects and a Reference Manager... where a common piece of code can be used in multiple projects. ETA: It appears that these: Reference Manager / Shared Projects are two different things, which work similarly. I'm still researching how this all works, but it sounds promising... ref1: How to: Add or remove references by using the Reference Manager Add references in the Reference Manager - Visual Studio | Microsoft Docs[^] ref2: Shared Projects code sharing Use Shared Projects to Share Code - Xamarin | Microsoft Docs[^] Take Care God Bless... Feedscrn +------------------------------+ | The screen is hungry, Feed It! | +------------------------------+
  • attendance entry in vb.net source code

    csharp tutorial
    3
    0 Votes
    3 Posts
    10 Views
    O
    Though this question is wide. This link might be helpful