Click here to Skip to main content
15,902,447 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioninteraction between two datagridview Pin
helelark12322-Oct-09 1:06
helelark12322-Oct-09 1:06 
AnswerRe: interaction between two datagridview Pin
Steve Westbrook22-Oct-09 2:21
Steve Westbrook22-Oct-09 2:21 
GeneralRe: interaction between two datagridview Pin
helelark12322-Oct-09 4:17
helelark12322-Oct-09 4:17 
QuestionSaving Integer Array Pin
O.G.I.22-Oct-09 0:39
O.G.I.22-Oct-09 0:39 
AnswerRe: Saving Integer Array Pin
dan!sh 22-Oct-09 0:49
professional dan!sh 22-Oct-09 0:49 
GeneralRe: Saving Integer Array Pin
O.G.I.22-Oct-09 4:57
O.G.I.22-Oct-09 4:57 
GeneralRe: Saving Integer Array Pin
dan!sh 22-Oct-09 5:17
professional dan!sh 22-Oct-09 5:17 
QuestionHandle changes in the system control panel in application program Pin
gilchinger22-Oct-09 0:12
gilchinger22-Oct-09 0:12 
Hi all,

using vb.net, i like to handle changes done by the user in the system control panel.

Example: In case user changes Date / Time settings i like to use the new settings i a running vb.net application.

What I have done is:

    Public Sub New()<br />
        MyBase.New()<br />
<br />
        'This call is required by the Windows Form Designer.<br />
        InitializeComponent()<br />
<br />
        'Set the SystemEvents class to receive event notification <br />
        'when a user preference changes, the palette changes, or <br />
        'when display settings change.<br />
        AddHandler SystemEvents.UserPreferenceChanging, AddressOf SystemEvents_UserPreferenceChanging<br />
<br />
    End Sub<br />
<br />
<br />
    Private Sub SystemEvents_UserPreferenceChanging(ByVal sender As Object, ByVal e As UserPreferenceChangingEventArgs)<br />
        MessageBox.Show("UserPreferenceChanging: " & e.Category.ToString())<br />
    End Sub<br />



So i get a event in case of changes in the system control panel. This works.

Using the new settings from the control panel i can adjust the frontend and/or change the current culture settings.

But how is it now possible to read the current system settings for date and time ??????

Any comments pls.?!

regards,
bauer
AnswerRe: Handle changes in the system control panel in application program Pin
dan!sh 22-Oct-09 0:50
professional dan!sh 22-Oct-09 0:50 
GeneralRe: Handle changes in the system control panel in application program Pin
gilchinger22-Oct-09 1:25
gilchinger22-Oct-09 1:25 
GeneralRe: Handle changes in the system control panel in application program Pin
dan!sh 22-Oct-09 1:45
professional dan!sh 22-Oct-09 1:45 
GeneralRe: Handle changes in the system control panel in application program Pin
gilchinger22-Oct-09 2:14
gilchinger22-Oct-09 2:14 
GeneralRe: Handle changes in the system control panel in application program Pin
dan!sh 22-Oct-09 3:51
professional dan!sh 22-Oct-09 3:51 
GeneralRe: Handle changes in the system control panel in application program Pin
gilchinger22-Oct-09 9:23
gilchinger22-Oct-09 9:23 
GeneralRe: Handle changes in the system control panel in application program Pin
Eddy Vluggen22-Oct-09 7:21
professionalEddy Vluggen22-Oct-09 7:21 
GeneralRe: Handle changes in the system control panel in application program Pin
gilchinger22-Oct-09 10:23
gilchinger22-Oct-09 10:23 
GeneralRe: Handle changes in the system control panel in application program Pin
Eddy Vluggen22-Oct-09 10:51
professionalEddy Vluggen22-Oct-09 10:51 
QuestionA very simple question with a twist Pin
offroaderdan22-Oct-09 0:04
offroaderdan22-Oct-09 0:04 
AnswerRe: A very simple question with a twist Pin
dan!sh 22-Oct-09 0:07
professional dan!sh 22-Oct-09 0:07 
GeneralRe: A very simple question with a twist Pin
offroaderdan22-Oct-09 0:10
offroaderdan22-Oct-09 0:10 
GeneralRe: A very simple question with a twist Pin
dan!sh 22-Oct-09 0:12
professional dan!sh 22-Oct-09 0:12 
GeneralRe: A very simple question with a twist Pin
offroaderdan22-Oct-09 0:22
offroaderdan22-Oct-09 0:22 
GeneralRe: A very simple question with a twist Pin
dan!sh 22-Oct-09 0:46
professional dan!sh 22-Oct-09 0:46 
GeneralRe: A very simple question with a twist Pin
Dave Kreskowiak22-Oct-09 1:46
mveDave Kreskowiak22-Oct-09 1:46 
GeneralRe: A very simple question with a twist Pin
offroaderdan22-Oct-09 0:13
offroaderdan22-Oct-09 0:13 

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.