Click here to Skip to main content
15,925,206 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Reading application .config file Pin
Dave Kreskowiak9-Jun-09 6:28
mveDave Kreskowiak9-Jun-09 6:28 
GeneralRe: Reading application .config file Pin
WorkingAcc10-Jun-09 20:18
WorkingAcc10-Jun-09 20:18 
GeneralRe: Reading application .config file Pin
Dave Kreskowiak11-Jun-09 1:44
mveDave Kreskowiak11-Jun-09 1:44 
GeneralRe: Reading application .config file Pin
WorkingAcc11-Jun-09 1:52
WorkingAcc11-Jun-09 1:52 
QuestionHow can I bring a rare picture format to a picture box? Pin
Sonhospa9-Jun-09 2:16
Sonhospa9-Jun-09 2:16 
AnswerRe: How can I bring a rare picture format to a picture box? Pin
Nagy Vilmos9-Jun-09 2:29
professionalNagy Vilmos9-Jun-09 2:29 
QuestionRe: How can I bring a rare picture format to a picture box? Pin
Sonhospa9-Jun-09 3:03
Sonhospa9-Jun-09 3:03 
AnswerRe: How can I bring a rare picture format to a picture box? Pin
Nagy Vilmos9-Jun-09 3:34
professionalNagy Vilmos9-Jun-09 3:34 
NewsRe: How can I bring a rare picture format to a picture box? Pin
Sonhospa9-Jun-09 5:08
Sonhospa9-Jun-09 5:08 
QuestionFind URL's of Mozila Firefox,Opera or etc Pin
Anubhava Dimri9-Jun-09 2:11
Anubhava Dimri9-Jun-09 2:11 
AnswerRe: Find URL's of Mozila Firefox,Opera or etc Pin
Dave Kreskowiak9-Jun-09 6:24
mveDave Kreskowiak9-Jun-09 6:24 
QuestionCombobox SelectedIndexChanged Infinite Loop Pin
Hypermommy9-Jun-09 2:09
Hypermommy9-Jun-09 2:09 
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 

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.