🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9295

NumericUpDown1 form fails

#9295
From: Ervin_Gegprifti
Date: Fri, 25 Aug 2006 14:04
53 lines
2000 bytes
Hello all!

Does any one know what is happening?
I�m coding in Visual Basic 2005 Expres Edition

I had this before:

�------------------------------------------------------------------
Private Sub NumericUpDown1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown1.ValueChanged

myFunctions.myNumberOfPagesFunction() 'Calculate number of pages

End Sub

�--------

Module myFunctions

Function myNumberOfPagesFunction() As Integer 'Calculate number of pages

Dim groups As Integer

		�---

groups = Form1.NumericUpDown1.Value

�---

End Function

End Module
�-------------------------------------------------------------------------------------------------------------------------

The project comliles fine, but when I run it, the form fails.

I changed the code to this:

�------------------------------------------------------------------------------

Private Sub NumericUpDown1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown1.ValueChanged

If NumericUpDown1.Value = 1 Then
            NumericUpDown1.Value = 1
      Else
            myFunctions.myNumberOfPagesFunction() 'Calculate number of pages
      End If

End Sub
�------------------------------------------------------------------------------

After that it works perfect.

Does any one know what is happening?
Technical Details
Message-ID: <3bc16545.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d7b82318f591d812,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII
From: Ervin_Gegprifti@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: NumericUpDown1 form fails
Message-ID: <3bc16545.-1@webcrossing.la2eafNXanI>
Date: Fri, 25 Aug 2006 07:04:34 -0700
Lines: 61
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing