Click here to Skip to main content
15,919,121 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Combobox SelectedIndexChanged Infinite Loop Pin
Tom Deketelaere9-Jun-09 2:22
professionalTom Deketelaere9-Jun-09 2:22 
AnswerRe: Combobox SelectedIndexChanged Infinite Loop Pin
binjafar9-Jun-09 2:25
binjafar9-Jun-09 2:25 
GeneralRe: Combobox SelectedIndexChanged Infinite Loop Pin
Hypermommy9-Jun-09 5:14
Hypermommy9-Jun-09 5:14 
GeneralRe: Combobox SelectedIndexChanged Infinite Loop Pin
binjafar9-Jun-09 8:14
binjafar9-Jun-09 8:14 
GeneralRe: Combobox SelectedIndexChanged Infinite Loop Pin
Henry Minute9-Jun-09 8:25
Henry Minute9-Jun-09 8:25 
QuestionHow to check Application is run by Administrator Pin
Anubhava Dimri9-Jun-09 2:05
Anubhava Dimri9-Jun-09 2:05 
AnswerRe: How to check Application is run by Administrator Pin
Eddy Vluggen9-Jun-09 7:05
professionalEddy Vluggen9-Jun-09 7:05 
QuestionImpossible to access to the properties of Usercontrol, since a HTML page with javascript [modified] Pin
tdc_david9-Jun-09 1:25
tdc_david9-Jun-09 1:25 
Hi,first say that if the place for this post isn't correct, sorry but I don't if the correct place is within Java,Vb o Winform xD

Create a usercontrol with a single textbox and one property that set the textbox and get the value of the textbox. This usercontrol is embedded in HTML page. I can change the value of the textbox perfectly but isn't possible access to usercontrol with javascript.

When I create the instance to the usercontrol can get access but out the object tag is impossible .... my code is this ...

VB CODE:
<pre>
Public Class SerialPort

      Inherits System.Windows.Forms.UserControl

      Public Property Age() As String

            Get

                  Return Me.Age.Text

            End Get

            Set(ByVal Value As String)

                  Me.Age.Text = Value

            End Set

      End Property

End Class
</pre>

HTML CODE:
<pre>
<html>
<body>
<form name="form1">
<object id="SerialPort" classid="UserSerialPort.dll#UserSerialPort.SerialPort" height="399" width="651">
<param name="age" value="48">
</object>
</body>
<br/>
<input type="button" name="btage" value="Age" onClick="getage();">
script language="javascript">

     var objserial;
    
     objserial = document.getElementById("Serialport");
    
     function getage()
     {
          var quedevuelve;
          quedevuelve = objserial.age;
          alert(quedevuelve);
         
     }
</script>
</form>
</html>
</pre>

The first part, work correctly, send the value "age" with value 48 and this is reflected in the usercontrol, but the next call to function javascript return undefined, I haven't found any solution for it ...


If anyone can help I would greatly appreciate it, a greeting.

modified on Tuesday, June 9, 2009 7:35 AM

AnswerRe: Impossible to access to the properties of Usercontrol, since a HTML page with javascript Pin
Christian Graus9-Jun-09 1:53
protectorChristian Graus9-Jun-09 1:53 
GeneralRe: Impossible to access to the properties of Usercontrol, since a HTML page with javascript Pin
tdc_david9-Jun-09 2:14
tdc_david9-Jun-09 2:14 
GeneralRe: Impossible to access to the properties of Usercontrol, since a HTML page with javascript Pin
Dave Kreskowiak9-Jun-09 3:15
mveDave Kreskowiak9-Jun-09 3:15 
GeneralRe: Impossible to access to the properties of Usercontrol, since a HTML page with javascript Pin
tdc_david9-Jun-09 4:18
tdc_david9-Jun-09 4:18 
GeneralRe: Impossible to access to the properties of Usercontrol, since a HTML page with javascript Pin
Dave Kreskowiak9-Jun-09 6:22
mveDave Kreskowiak9-Jun-09 6:22 
Question[Help]VB6 + Webbrowser + Iframes + Different Domains] Pin
Lord Engel9-Jun-09 1:02
Lord Engel9-Jun-09 1:02 
AnswerRe: [Help]VB6 + Webbrowser + Iframes + Different Domains] Pin
DaveAuld9-Jun-09 1:37
professionalDaveAuld9-Jun-09 1:37 
GeneralRe: [Help]VB6 + Webbrowser + Iframes + Different Domains] Pin
Lord Engel9-Jun-09 1:48
Lord Engel9-Jun-09 1:48 
GeneralRe: [Help]VB6 + Webbrowser + Iframes + Different Domains] [modified] Pin
DaveAuld9-Jun-09 3:52
professionalDaveAuld9-Jun-09 3:52 
GeneralRe: [Help]VB6 + Webbrowser + Iframes + Different Domains] Pin
Lord Engel9-Jun-09 4:20
Lord Engel9-Jun-09 4:20 
QuestionMaintain whitespace between strings Pin
Member 45142188-Jun-09 23:33
Member 45142188-Jun-09 23:33 
AnswerRe: Maintain whitespace between strings Pin
Christian Graus8-Jun-09 23:59
protectorChristian Graus8-Jun-09 23:59 
AnswerRe: Maintain whitespace between strings Pin
binjafar9-Jun-09 0:01
binjafar9-Jun-09 0:01 
GeneralRe: Maintain whitespace between strings Pin
Member 45142189-Jun-09 6:22
Member 45142189-Jun-09 6:22 
GeneralRe: Maintain whitespace between strings Pin
binjafar9-Jun-09 8:15
binjafar9-Jun-09 8:15 
AnswerRe: Maintain whitespace between strings Pin
Johan Hakkesteegt9-Jun-09 2:45
Johan Hakkesteegt9-Jun-09 2:45 
AnswerRe: Maintain whitespace between strings Pin
Luc Pattyn9-Jun-09 2:45
sitebuilderLuc Pattyn9-Jun-09 2:45 

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.