Click here to Skip to main content
15,749,019 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Hardly any .onnx modules. But plenty of .pt Modules included. Pin
Member 1594023810-May-23 2:43
Member 1594023810-May-23 2:43 
QuestionQuestion about Dependency Injection Pin
Fred283428-Apr-23 2:28
Fred283428-Apr-23 2:28 
AnswerRe: Question about Dependency Injection Pin
Gerry Schmitz28-Apr-23 4:39
mveGerry Schmitz28-Apr-23 4:39 
AnswerRe: Question about Dependency Injection Pin
jschell28-Apr-23 11:21
jschell28-Apr-23 11:21 
AnswerRe: Question about Dependency Injection Pin
Bohdan Stupak29-Apr-23 3:43
professionalBohdan Stupak29-Apr-23 3:43 
AnswerRe: Question about Dependency Injection Pin
Rob Philpott18-Jul-23 4:18
Rob Philpott18-Jul-23 4:18 
QuestionExe File encoding - http via vb.net Pin
Bart van Tuijl31-Mar-23 21:20
Bart van Tuijl31-Mar-23 21:20 
AnswerRe: Exe File encoding - http via vb.net Pin
Dave Kreskowiak1-Apr-23 5:18
mveDave Kreskowiak1-Apr-23 5:18 
AnswerRe: Exe File encoding - http via vb.net Pin
Richard MacCutchan1-Apr-23 5:42
mveRichard MacCutchan1-Apr-23 5:42 
AnswerRe: Exe File encoding - http via vb.net Pin
Eddy Vluggen1-Apr-23 6:28
professionalEddy Vluggen1-Apr-23 6:28 
GeneralRe: Exe File encoding - http via vb.net Pin
Bart van Tuijl2-Apr-23 5:13
Bart van Tuijl2-Apr-23 5:13 
GeneralRe: Exe File encoding - http via vb.net Pin
Richard Deeming2-Apr-23 22:05
mveRichard Deeming2-Apr-23 22:05 
GeneralRe: Exe File encoding - http via vb.net Pin
Bart van Tuijl3-Apr-23 5:49
Bart van Tuijl3-Apr-23 5:49 
GeneralRe: Exe File encoding - http via vb.net Pin
Richard MacCutchan3-Apr-23 6:13
mveRichard MacCutchan3-Apr-23 6:13 
GeneralRe: Exe File encoding - http via vb.net Pin
Richard Deeming3-Apr-23 6:44
mveRichard Deeming3-Apr-23 6:44 
GeneralRe: Exe File encoding - http via vb.net Pin
Bart van Tuijl3-Apr-23 7:33
Bart van Tuijl3-Apr-23 7:33 
GeneralRe: Exe File encoding - http via vb.net Pin
jschell4-Apr-23 6:19
jschell4-Apr-23 6:19 
AnswerRe: Exe File encoding - http via vb.net Pin
jschell3-Apr-23 6:09
jschell3-Apr-23 6:09 
QuestionBad Programming??... Pin
FreakNeck71631-Mar-23 4:09
FreakNeck71631-Mar-23 4:09 
AnswerRe: Bad Programming??... Pin
Richard Deeming31-Mar-23 4:59
mveRichard Deeming31-Mar-23 4:59 
AnswerRe: Bad Programming??... Pin
Gerry Schmitz31-Mar-23 6:49
mveGerry Schmitz31-Mar-23 6:49 
AnswerRe: Bad Programming??... Pin
Dave Kreskowiak31-Mar-23 12:08
mveDave Kreskowiak31-Mar-23 12:08 
AnswerRe: Bad Programming??... Pin
jschell3-Apr-23 6:42
jschell3-Apr-23 6:42 
AnswerRe: Bad Programming??... Pin
Valley Kid31-Aug-23 19:37
Valley Kid31-Aug-23 19:37 
QuestionUpdate Settings in Winows Forms project Pin
Ron Mittelman27-Mar-23 8:06
Ron Mittelman27-Mar-23 8:06 
I haven't done a c# project in some time, and trying to remember all the things I've forgotten.

I have an application with various application & user settings. I want the user to be able to set those preferences. I figured out how to use a property grid to show settings on the appropriate form:

Properties.Settings mySettings = new Properties.Settings();

private void SettingsForm_Load(object sender, EventArgs e)
{
    this.propertyGrid1.SelectedObject = mySettings;
}

It seems I can't bind the Settings directly to the property grid, I had to create an object from the settings and bind to that. I put the object assignment at form level in case I needed it to update later, but it could also be assigned in the form load event if I don't need to refer to it later.

This shows application settings as disabled and user settings enabled in the property grid, as expected.
Now I want to change a setting and save that back to the actual settings file. I can't seem to find any recent article on how to do that. I found an article from 2009 but it was quite complex, and I feel like that should be simpler in .Net 5.

Did I properly load the property grid?

Is there a way to update all changed user settings in 1 go, or do I need to iterate each property grid item, verify if it was changed, then update the actual setting?

How do I iterate the grid items, skipping categories & disabled items, and put them back into the settings?

Thanks so much for any help....

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.