473,569 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Invalid Property Value

I have the following code in a mult-form project:

Private Sub Form_Load()
sldPackets.Min = frmStartBfv.ret urn_first()
sldPackets.Max = frmStartBfv.ret urn_last()
End Sub

I wish to connect the slider control to values determined on a different
form. When I try this I get an "Invalid Property Value" error.

Alternatively I've tried:

Private Sub Form_Load()
sldPackets.Min = frmStartBfr.cbo FirstSecond
sldPackets.Max = frmStartBfv.cbo LastSecond
End Sub

What am I doing wrong and how can I correct it?

David Gerstman

Jul 17 '05 #1
1 10119
"David Gerstman" <dh********@yah oo.com> wrote in message news:<Hs******* *@arl.army.mil> ...
I have the following code in a mult-form project:

Private Sub Form_Load()
sldPackets.Min = frmStartBfv.ret urn_first()
sldPackets.Max = frmStartBfv.ret urn_last()
End Sub

I wish to connect the slider control to values determined on a different
form. When I try this I get an "Invalid Property Value" error.

Alternatively I've tried:

Private Sub Form_Load()
sldPackets.Min = frmStartBfr.cbo FirstSecond
sldPackets.Max = frmStartBfv.cbo LastSecond
End Sub

What am I doing wrong and how can I correct it?


what are the current values of Min and Max and what are you trying to
change them to? You can't create an invalid situation. for example,
if Min=0 and Max=10 you can't set Min to 100 because the range would
be invalid; you have to first set Max to something larger. The
problem is reversed if you want to set the range lower than it
currently is.
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1300
by: Robert Hooker | last post by:
I know that this question has been batted around here for a while - and I know that sample code, using reflection and poking around inside the propertygrid class, has been posted by a kind soul.... but I'm really hoping that someone on the Forms team, or C# team at Microsoft can have a go at answering this. Q: When inside a property grid,...
3
2712
by: Twanger | last post by:
I'm getting a compiler error on my ASP.NET page and I can't see the cause. I have a simple C# class compiled into a DLL and placed in my bin directory which has a public property QuestionText. When I try and set the property the compiler throws up Compiler Error Message: CS1519: Invalid token '=' in class, struct, or interface member...
1
8419
by: Andy G | last post by:
I've been getting this error all day. Could someone please look at my stored procedure and the code. I have a form that grabs and email address the user types in, calls a stored procedure with an input parameter and an output parameter, compared the email to a table and matches an ID in another table to grab the Username. thanks for any...
5
2130
by: Lance | last post by:
Is there any way to have a custom property display the window that appears when an invalid property value is entered in a PropertyGrid control? I'm refering to the window that has the title "Properties Window" and displays the message "Invalid property value." The window also has the "Details" button Thanks Lance
15
1347
by: Bernard Bourée | last post by:
Hello I have the following code: Public Groupes As New Hashtable Dim Entry As DictionaryEntry For Each Entry In Groupes Dim Gr As Groupe = DirectCast(Entry.Value, Groupe) ===> THIS LINE GIVE ME AN ERROR DIRECTCAST IS NOT VALID
10
2756
by: Chet Cromer | last post by:
I am creating a set of base classes and sub classes to use throughout a program I'm developing. The base class represents a generic "lookup table" from my database that contains lists of things like manufacturers, makes, modes, etc. of cars. I have created a generic "datacollection" class and a generic "dataobject" class to represent the...
5
2745
by: Mark Ingram | last post by:
Hi, ive written a custom control and i would like to display the "invalid property value" dialog box for certain properties on my form if the user enters a value outside the allowed range (in the visual studio designer). e.g. If i had a percentage property, i would want the user only to be able to enter Int32 values between 0&100. How can...
4
27480
by: daz_oldham | last post by:
Hi All I am trying to execute a stored procedure that does a very simple lookup and returns a text field. However, when I try to execute it, I am getting a rather strange error that I can't seem to fix! There is defiantely information coming back as I have tested this in Query Analyzer. The error actuall comes on my...
1
2794
by: eBob.com | last post by:
I have some code which is trying to determine where text will wrap in a custom text box (which Inherits from Control). It determines the number of characters which will fit in the first line, but then encounters an exception when it calls MeasureCharacterRanges to see if the next character, i.e. the one destined to become the first character...
0
7921
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6278
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2107
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.