Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ASP.NET (VB.NET) - cwui.ocx "errors loading control" error

How are you determining what are available values for params? If you defined a Value property, you should be able to do something like this:





- Elton
0 Kudos
Message 11 of 15
(2,275 Views)
This is how I set the value: In VB.NET, for example, I created a winform with the simple 'MyKnob' user control and a button. The button has this code:

Private Sub Button1_Click(...) Handles Button1.Click
MsgBox(ucMyControl.get_Value)
ucMyControl.set_Value(20)
End Sub

This works fine.

In my webform I place the control, but I don't see any PARAMs other than "_ExtentY" and "_ExtentX", so I MANUALLY tried to add both "Value" and (on another attempt) "set_Value" with values of "60". For example:




"60">


When I run the webform I see the knob fine, but the value is still set to the default.

I feel like I'm getting closer. Thanks for your help!
0 Kudos
Message 12 of 15
(2,275 Views)
Elton, I actually made some GREAT headway. Thanks.

One of the KEYS to using these controls in ASP.NET is to add the CWUIControlsLib REFERENCE to my project. (Then I can access the custom property pages of the control, etc...)

Now, if I want to dynamically set the PARAM "Value_21" (actual pointer value) via CODE how do I do this? (I seem to remember using InnerHtml, but don't recall exactly.) I'd like to avoid scripting if at all possible!

Thanks for your help!
0 Kudos
Message 13 of 15
(2,275 Views)
I'm not sure what you're asking since you said you want to set the value via code but want to avoid scripting. If you're not going to use scripting, what code are you referring to? Do you mean set the value via code on the server? If so, this will be a little tricky since the ActiveX controls are activated on the client. You'll have to do something like what I mentioned in #2 in my last post in one of our previous threads.

Just out of curiosity, why the aversion to scripting? It's probably the easiest solution to what you wer
e asking and scripting should be supported on any browser that supports hosting ActiveX controls.

- Elton
0 Kudos
Message 14 of 15
(2,275 Views)
I'll script if it's the best solution. (This project needs to be done quickly and I didn't know if I had time to learn javascript. But, maybe it's worth the effort.)

Once again, thanks for all of your help. You've been a valuable resource.
0 Kudos
Message 15 of 15
(2,275 Views)