IsDayLightSavingTime Changed

Jun 10, 2010

Console.WriteLine("D2: " & System.TimeZone.CurrentTimeZone.IsDaylightSavingTime(d2))We parse files and put the data into a database, if I parse the exact same file with the same code (it was never changed) I get different results.

View 1 Replies


ADVERTISEMENT

IsDaylightSavingTime To The Hour?

Mar 14, 2011

I thought i had coded correctly to catch the Daylight savings time change, apperantly not.

Here is the code that I used:

If Today.IsDaylightSavingTime() Then
Day = DateTime.Now.AddHours(-1)
Else
Day = DateTime.Now()
End If

View 11 Replies

VB 2008 .suo File Needs To Be Changed/recreated Because A Path Has Changed. All Other Files Are OK

May 5, 2012

I changed my Username on my computer from i.e. "xxxxxx x xxxxx" to "Dennis"

VB 2008 during a compile gave me the following error: Error reading icon 'C:Usersxxxxxx x xxxxxAppDataRoamingMicrosoftVBExpress9.0VSProjectApplication.ico' -- The system cannot find the path specified.

The file "VSProjectApplication.ico" is in 'C:UsersDennisAppDataRoamingMicrosoftVBExpress9.0'

Somewhere in the VB2008 "configuration" files I believe that I need to manually change the old path to the new path.

I found the old path in the ".suo" file. The ".suo" file is not a text file. How can I edit the .suo file, save it so that it will work?

View 4 Replies

Saving Changed Data Before DataViewGrid Selection (Row) Changed?

Jan 20, 2010

on my Form I have a DataViewGrid and some textboxes with a save button (they are filled with additional data of the selected row).Save is disabled first, when I change something in the textboxes the save button is enabled.When the user changes a gow in the grid, I want to ask before changing the grid row, if he wants to save (if the button is enabled).I am using RowEnter but this is too late, then the selected row already changed (and my textboxes already got new data)...What event can I use to ask if I should save stuff before the user changes a row?Something like BeforeRowChanging with a chance to cancel changing the row?

View 2 Replies

Get Ddl Id On DDL Changed

Feb 22, 2010

To make this more simple,(as I have gone further through this project I have learned a bit more)...

[Code]...

How would I execute the above statement? When multiple dropdownlist's are handled in the same sub, how do you tell which one is actually calling the sub? The post by atconway was helpful in guiding me in a direction, but I dont understand the whole concept enough to dive into the msdn library... I would probably spend all my next 7 hours today reviewing it and still not get much further :-P

[Code]...

View 5 Replies

.net - DataRow Is Not Changed

Oct 4, 2011

Can anyone explain exactly why Method 1 in the following code does not alter the DataTable where the other 2 methods do? It's obviously some kind of referencing issue, but why exactly?

[Code]...

View 1 Replies

.net - How To Tell When A Web Page Has Changed By X%

Jul 26, 2011

I'm trying to write a little utility which will check periodically and tell me if/when a web page's (could be any URL) content has changed. I've read the other postings but they don't really answer my question (as far as I can tell).I know for static pages there is a last-modified header. However, what about dynamic pages? I got Oli's comment that storing a hash of the contents works but that's not really idea because the page might simply have a time stamp on it (the date-time that the page was produced). Clearly, in this case, the content would be different on every single request even though nothing significant has changed.So, now I'm thinking to tie it to a percentage of 'changedness.' Something like, more than 5% changed will cause the 'changed' logic to run.

View 3 Replies

Add An Event For When A Value Is Changed?

Aug 6, 2009

Is there a way I can add an event for when a value is changed, because, I need to add an OnDisconnected() event that detects when the mobjlistener.Connected value has changed...would I have to do a timer, is there a way I can do an event for getting disonnected?

mobjClient = New TcpClient("IP", 5000)

I would rather not add a timer, I would rather have an event that fires when mobjlistener.Connected changes, but if I can't I will go ahead and use the timer instead.The problem I have that I need to detect when this changes is because sometimes I get disconnected for an unknown reason using the TCP Multi-User Chat, it has handlers for disconnected, but whatever is causing the disconnect, it is just not detecting it, so if I could make it so that it will trigger when this is changed, then I can stop the problem I have once and for all.

View 9 Replies

C# - Mdi Children Changed In .Net?

Apr 15, 2010

Is there a simple way of tracking the change of an Mdi's children i.e. when they are created and closed, something like an event OnMdiChildListChanged (I realise this doesn't actually exist).

I am also aware that I could have a method within my Mdi that handles the creation of child forms and logs the state of them or even create an Interface that defines that a child form has a "NotifyParent" method that is then called on close of the form, but i was wondering if there was any built in events that i could plumb into?

View 3 Replies

Code Keeps Getting Changed

Apr 19, 2010

I have been re-writing an old personal application after not coding for a long time, I have a class for a custom progress bar.

I compile it then add the progress bar to the form. Then I modify the properties of the progress bar on the form. I then compile and run it .[code]...

View 5 Replies

Know When The Checkbox Has Changed?

Dec 24, 2009

Using vb.net and DataGridView in Winforms. What even should I use to know when the checkbox has changed?

View 3 Replies

Why Does The Selected Row Gets Changed

Jun 13, 2011

I am developing a Windows application using VB.NET. I have a datagrid control bound to a dataset which is populated from an Access database. When a user using my application clicks on a row in the grid, a triangle appears in a column on the left of the grid indicating the selected row. However, if the user does nothing, after several minutes, the selected row changes to the first row in the grid and the triangle indicating the selected row moves to the first row.

View 1 Replies

.NET Connection, Server Can't Be Changed

Sep 18, 2011

I've been trying to make a login system for my application. Which seems to work, but when I try to connect to the database itself, it won't work. I used this code to check the exception:

Catch myex As MySqlException
MsgBox(myex.Message)

That gives this exception:

"Acces denied for user '[my db user]'@'[My IP-Address]' (Using Password: YES)"

The code I use for the connection is:

Dim Connection As New MySqlConnection("server=[The SERVER IP]; user id=[DATABASE USER]; password=[DB USER PW]; port=3306; database=[DB NAME]; pooling=false")
Connection.Open()
MsgBox("Connected")

As you can see, I've tried to change the 'server' part, but it won't affect anything. It will just say my ip address (localhost, I assume) in the exception. Telling me that it couldn't connect to it. Which is not even what I'm wanting to do.

View 7 Replies

Asp.net - .NET 4.0 DataContractJsonSerializer With Changed Properties?

Sep 15, 2011

i have some Objects serialized with the System.Runtime.Serialization.Json.DataContractJsonSerializer and written to my Database:

[Code]...

View 1 Replies

Asp.net - Data Not Being Changed In TextBox?

Dec 16, 2011

Ok, I have been going around and around with this for hours (Searching, etc). This is what I want to do, I want to load data into a Text Box and if the user changes the text in the Text Box I want to be able to save the new text.

My problem in the TxtBox_TextChanged event the data contained in the txtNarrative Text box is the new data that the user typed in (<>ABCD) but in the btnSubmit_Click event the data contained in txtNarrative is the original value ABCD.

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WorkBench_VBNet._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

[Code]....

View 2 Replies

Asp.net - Keep Changed Status Of CheckBoxList?

Feb 29, 2012

So, I'm running VB.net 3.5. I have a dynamic list of server names, and I want to put them in a CheckBoxList. The list is populated and, using that same list, I make a graph of the performance for each server listed. I want to be able to check and uncheck the checkboxes representing servers and, when I lick an update button, it'll create a new graph and graph only the servers that are still checked. I noticed that the page still loads before the button click is handled, so the CheckBoxList will repopulate itself before being able to read the current CheckBoxList. This is my load. And I populate my checkboxlist inside ShowView()

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Me.IsPostBack Then

[Code]....

And I wanna try to preserve the checkboxlist values when I do an event handler for an update button.

Private Sub btnUpdateGraph_Click(sender As Object, e As System.EventArgs) Handles btnUpdateGraph.Click
'insert code
End Sub

View 2 Replies

C# - Checkbox In Datagridview Cannot Be Changed?

Dec 30, 2009

I've created a Datagridview bound to a Datatable. This Datatable is updated by a event to reflect statistical information as it changes (sub second resolution). I have a checkbox to determine if a row is available for other functions and can be toggled on and off normally if my eventhandler is not receiving my updates.

If my bound Datatable is changed, the checkbox returns to its previous state as soon as the cursor or focus leaves the checkbox glyph (not the cell).

How do I toggle the checkboxes without them reseting without disconnecting my eventhandler?

View 1 Replies

Catching Property Changed?

Feb 18, 2012

Private _pages As New List(Of Panel)
Public ReadOnly Property pages() As List(Of Panel)
Get

[code].....

View 4 Replies

Changed Resource But Exe Is Still Showing Old?

Sep 24, 2009

I changed a resource image and in my design view I see the changed image. I build it but when I run the exe I see the old image.

What do I have to do to refresh the exe? I though building refreshed it.

View 1 Replies

Check If Data Has Been Changed?

Aug 4, 2011

On my form with my detailed layout of my database in textboxes i can change my data or add new record.

how can i verify if there was any changes to a record when the form is being closed or when my cancel button is pressed.

i want to create a message box that warns tha there hav been changes made should it be saved yes or no

View 5 Replies

Doing Something Only If Percentage Of Number Has Changed

Feb 12, 2011

I have data coming in to my serial port, which is just a 6 digit number.
textbox1.text = serialport1.readline()
In the textbox_text_changed sub. I need to do something with this number, but only if it has changed by more than 2%. I need the 2% as the number coming in is fluctuating a little bit so I don't want anything triggered if it's less than 2%.

View 1 Replies

Form Window Cut-off When DPI Is Changed?

Sep 29, 2011

I created an application to allow users to delay a package from running. I just discovered today that if a user changes their Windows 7 Display property to greater than 100%, the bottom of the window is cut-off and you can't read the buttons. Is there some way to prevent this?

[Code]......

View 9 Replies

Get Original Value Of Field Before It Was Changed?

May 11, 2012

I'm from a Visual Basic 6/VBA background and I'm moving to VB.Net. I've got a field on a form and I want to look at the value of the field BEFORE it was changed by the user. In VBA/VB6 I simply sais Me.FieldName.OldValue to get the original value. How do i do this in VB.net?

View 6 Replies

Get The Last Changed Date Of A Xml-file With .NET?

Jan 15, 2010

Is it possible to geht the date, when a xml-file last time was changed. I mean the date, which you can see, if you right-click the file and click properties.

View 1 Replies

Highlight The Row Once The Value Of The Cell Is Changed?

Dec 15, 2011

]Is that possible to highlight the row when the cell value is change ?

Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click
Dim update As New dboperation

[Code]....

View 2 Replies

How To Get DataBindings To Be Two Way When Property Changed

Nov 11, 2010

I'm having trouble using DataBindings in a Windows Form / User Control. For example: Create a windows form, place a single text-box on it & place two buttons on it. The code behind the form is:

Imports System.ComponentModel
Public Class Form1
Implements System.ComponentModel.INotifyPropertyChanged
Public Event PropertyChanged(ByVal sender As Object, ByVal e As System.ComponentModel.PropertyChangedEventArgs) Implements System.ComponentModel.INotifyPropertyChanged.PropertyChanged
[Code] .....

If you type something into the text box & press Button1, you'll get a message box with the text of the property in it. If, however, you press Button2 (which sets the property in code) and then press Button1 again, you'll see that while the property was indeed set in the code, the text box doesn't reflect the change.

Updated the code to provide the implementation of INotifyPropertyChanged. This now works as desired.

View 1 Replies

How To Report Progress Changed

Mar 31, 2009

I need to report progress changed. Consider the following code:

Public Class Calculator
Public Event CalculationProgress (ByVal sender As Object, ByVal e As MyCalculationProgressEventArgs)
Public Function Calculate(..)..
' Perform calculation here ...

[code]....

How and where should I subscribe to CalculationProgress event to call

calculationWorker.ReportProgress(MyCalculationProgressEventArgs.Percent)

View 2 Replies

Keep Two-way Binding When Whole Object Has Changed

Aug 24, 2010

I have a class:

[Code]...

Now I can change the TextBoxes or the object: MyObject.Two = 3 ..the object and TextBoxes are updated in two ways. Now I want to update the whole object: MyObject = New TestClass(3, 4) ...but this doesn't update the TextBoxes.

View 1 Replies

MsgBox When TextBox Is Changed

Apr 8, 2009

I have the following save function shown below, when called some tables get updated. Before fields are updated specifically to TblOracleNos what I want to do is when the text in TxtOracleNo has been changed and the save function called a MsgBox pops saying "Oracle number has been changed".

Public Sub Save()
Dim conn As SqlConnection = GetDbConnection()
Dim query As String

[Code]......

View 3 Replies

MsgBox When TextBox Is Changed?

Dec 14, 2010

I have the following save function shown below, when called some tables get updated. Before fields are updated specifically to TblOracleNos what I want to do is when the text in TxtOracleNo has been changed and the save function called a MsgBox pops saying"Oracle number has been changed".

Public Sub Save()
Dim conn As SqlConnection = GetDbConnection()
Dim query As String
Dim cmd As New SqlCommand

[code]....

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved