❔ Moving from consoleapp to wpf?
hi im fairly new to programming and I want to take this code https://pastebin.com/F2cZ5Anb and place it in a program that has windows windows as in log in screen sign up screen and a system that holds username and passwords so i assume WPF would be the right choice but how would i go about placing this code in the correct areas? Whats a good source of info?
Pastebin
using System;using System.IO;namespace MyApp{ class Program {...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
13 Replies
@Alien Jexs
Hi
( just pinged you to make it appear xD)
oh
how do i keep track of this?
it should stay here
https://youtu.be/SfTdUNuApYc
it would be maybe different with .net 6/7 but similar
SingletonSean
YouTube
Setting up Logging (w/ .NET Host, Serilog, and File Logging) - EASY...
Learn how to setup logging in a WPF application. In WPF, the best destination to write logs is to a file. However, Microsoft does not provide a mechanism to write logs to a file. That said, I also demonstrate how to leverage third-party logging providers, in this case Serilog, to write logs to a file. I go over a few useful configuration options...
what does this video have to do with my question?
just curious
Logging with wpf ?
Just click this
Logging in, as in, an account
To answer your question though... you'd need to run this code on some event, a button click for example
Lol i was really tired
Any input from the console would be replaced by input from textboxes
And any output to the console would be replaced by whatever else you need, like displaying a textblock with an error, or navigating to a new page
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.