Skip to content
  • Please help make UI design decision

    The Lounge design csharp winforms help question
    15
    0 Votes
    15 Posts
    0 Views
    R
    I would disable the tab and display an informational icon with a tooltip that explains why the option isn't available, and hide the icon when the tab is enabled.  #DontLeaveYourUsersGuessing :) /ravi My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
  • Migration from VB6

    Windows Development csharp database tools winforms
    4
    0 Votes
    4 Posts
    15 Views
    J
    Googling suggests some convert from vb6 to C# Based on my experience long ago of using a tool to convert from MS Basic (not VB) to C++ I wouldn't expect anything but some poor code. If it even run expect there to be problems and that it runs slower.
  • 0 Votes
    3 Posts
    3 Views
    M
    That is not the problem here. I am having it do one page from one form. Yes, of course, I review and revise. I don't expect AI to produce complete, bullet-proof code. I don't have that much experience writing HTML and the byzantine world of CSS. Compared to WinForms (with a designer) and C# code, HTML/CSS (with no designer) is so backwards and unnecessarily convoluted, it saves me time. I have written HTML/CSS by hand like the cavemen did, but it takes less time to design the page in WinForms, then export it via AI (all within Visual Studio) than hand coding the HTML/CSS. I've known many web front end coders, and they all think they can write a fairly complex page quicker than a designer, but in real world projects, the WinForms folks have always finished well ahead of the hand coders. The trick is to realize I just want the WinForms to have the UI components and validation code (events in WinForms, things like onclick or mouseover), and let Copilot in Visual Studio generate the Blazor page file(s). From there, almost all of it is just C#. In short, just have AI do whatever takes me more time by hand. I keep it as simple as possible.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    D
    History repeats itself. Any new GUI framework has been abandoned, is not complete or is a fustercluck with no viable documentation. WinForms always had our back, we all learnt how to work with its "features" and it requires very little surrounding architecture. It's time we have its back as well! GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X The shortest horror story: On Error Resume Next
  • 0 Votes
    2 Posts
    0 Views
    D
    It now crashes much faster GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X The shortest horror story: On Error Resume Next
  • 0 Votes
    6 Posts
    6 Views
    M
    Restart Visual Studio and Your Computer - Sometimes, simply restarting Visual Studio or your computer can clear up temporary issues. Run Visual Studio as Administrator - Right-click on the Visual Studio shortcut and select "Run as administrator." This can help if there are permission issues. Check for Updates - Ensure that you are using the latest version of Visual Studio 2022. Go to **Help > Check for Updates**. Disable Extensions - Some Visual Studio extensions can interfere with functionality. Try disabling any non-essential extensions: - Go to **Extensions > Manage Extensions** and disable them temporarily. Repair Visual Studio - If nothing else works, consider repairing your Visual Studio installation: - Go to **Control Panel > Programs and Features**, find Visual Studio, and select the **Repair** option. Check Windows Services - Ensure that the required Windows services are running: - Press `Win + R`, type `services.msc`, and press Enter. - Look for "Visual Studio Hosting Process" and make sure it's running. Restart it if necessary. Clear User Data - Clear Visual Studio user data: - Close Visual Studio. - Open a command prompt and run: ```bash devenv /resetuserdata ``` - Note that this will reset your settings and preferences. Check Anti-Virus or Security Software - Sometimes, security software can block certain processes. Try temporarily disabling your anti-virus software to see if it resolves the issue. Check for .NET SDK Issues - Ensure that the correct .NET SDKs are installed. You can verify this in the Visual Studio Installer under the "Individual components" tab. Try a Different User Profile - Create a new Windows user profile and see if the issue persists there. Sometimes user profile issues can cause unexpected behavior in applications. navicosoft.com navicosoft.com.au navicosoft.co.uk
  • 0 Votes
    23 Posts
    0 Views
    E
    I like ye olde sed for this. It lets you batch as many search and replace operations as desired in a single pass. Read every character once and only once!
  • A place out of view

    The Lounge question winforms
    5
    0 Votes
    5 Posts
    0 Views
    A
    That is about the time you realize you need glasses - to view what seems to ne out of scope to what is really visible - me being an old grump wearing glasses :) :laugh:
  • 0 Votes
    2 Posts
    0 Views
    N
    Kent Sharkey wrote: Now with a higher version number! No new icon? :sigh: :sigh: M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • Old Articles

    Article Writing c++ question winforms com graphics
    6
    0 Votes
    6 Posts
    0 Views
    N
    In 2019 I found that one of the best articles I read about a concrete Topic was in the MSDN Archive written in 2007. I even shared the page where I found "almost" the whole collection and there were a lot of people saying thanks for that. At the end... old != wrong And as Pete said above... We still have some XP computers running old industrial software that wasn't updated to 64 bit architechture and we couldn't make it work in a win7 32-bit edition, I only hope that those places get deprecated and out of production before the PCs get broken... if not, we will have a problem. And no, sadly porting it to a VM is not an option. additionally My only article is MFC VC++ 6 too and it still gets some downloads of the code or even bookmarking from time to time. Have you checked your article stats? M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • 0 Votes
    2 Posts
    0 Views
    N
    With the 32 bit Framwork? With the people working hard for it? or with all of them? :rolleyes: M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    3 Posts
    4 Views
    pkfoxP
    So you want someone else to pass the exam for you ? In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Okay I'm actually annoyed now.

    The Lounge design question csharp wpf winforms
    38
    0 Votes
    38 Posts
    0 Views
    C
    instead they will spend millions on some other solution .... I'm working it. Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.
  • 0 Votes
    2 Posts
    0 Views
    Richard Andrew x64R
    Don't forget MFC! The difficult we do right away... ...the impossible takes slightly longer.
  • 0 Votes
    3 Posts
    4 Views
    J
    Lots of problems here. Kudzanai Victor wrote: Select * from ABRASIVE_CUT_OFF_SAW Problem 1 (most serious): The name of the tool should be kept IN a database column. It should NOT be a table. Design you are looking for is likely like this Table: Tool Columns: Id, Name, Description Table: Tool_Attribute Columns: Tool_Id, Name, Description If you need more detail for Attribute you might add one or two more columns. If more detail than that is added then you might need an additional third table. Once you do the above then getting a list of all tools consists of querying the first table. This includes name, description AND the id. Then detail for a single tool is gotten by using the id from the above list. ------------------------------------------ Kudzanai Victor wrote: Select * from ABRASIVE_CUT_OFF_SAW Problem 2: Don't use the asterisk. Rather explicitly name the columns that you want to retrieve.
  • C#, Winforms, Coding

    C# csharp winforms help
    3
    0 Votes
    3 Posts
    0 Views
    A
    Your error seems to be excel related, you did however posted a one liner and expected the world to mind read what you meant. I googled the error and it popped up with multiple solutions - Save me from this error[^] and by selecting the first solution on SO, easy to fix - My error is fixed![^]
  • 0 Votes
    3 Posts
    0 Views
    D
    First, you're return type is a Task, not what you're really returning, so you have to fix that. Next, the return statement just needs the "object" part removed. Lastly, the other answer is correct. You're jumping in the deep end without knowing how to swim. This is NOT tested, so don't go expecting this to work immediately: public async TVShow GetTvShowData() { HttpClient client = new HttpClient(); var content = await client.GetStringAsync("https://api.themoviedb.org/3/tv/136311?api\_key=XXXXXXX&language=en-US"); TVShow myDeserializedClass = JsonConvert.DeserializeObject(content); return myDeserializedClass; } Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak