|
I would like to take this code:
Dim wsrv As New SEOWS.Service1
And substitute the SEOWS with a string variable.
The result I am looking for would be similar to ASP and HTML where the ASP would resolve the string variable to a value and the HTML would use that value in the statement as if it were typed in that way.
Am I being clear? And is this even possible?
|
|
|
|
|
btoyer wrote:
And substitute the SEOWS with a string variable.
You mean you want to create a variable of indeterminate type ? So it could be anything, or a subset of things ? How would you use this variable ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Example: I would have a variable xString.
I would set the value of xString to SEOWS.
I would then have the code Dim wsrv As New xString.Service1 so that it would make a variable wsrv As New SEOWS.Service1
Is this more clear?
|
|
|
|
|
I was not confused as much as incredulous.
I doubt you can do this. I also don't see why you'd want to. Your code, to compile, would have to cast wsrv to a specific object (defeating the point), or only call the methods that exist on object with this class instance. One other option would be a ton of reflection code, but to what end ?
If you could explain why you'd consider doing this, perhaps we can suggest a sensible solution.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian is right. You can't just have a string value interpreted as code. Your ONLY option is using Reflection, but what you want to do is a huge pain in the a$$ because you want to use it with a web service.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am making a simple media player app using DirectX but i cannot figure out how to
get any control over the actual window the video plays in. help...?
|
|
|
|
|
What are you using to play your media?
|
|
|
|
|
In Visual Basic 6. I am working on a project where people get information from a website.
I have two WebBrowsers. WebBrowser1 and WebBrowser2. WebBrowser1 links to a website and as it links to the website, all the links in WebBrowser1 should open in WebBrowser2. Is this possible to do?
|
|
|
|
|
Here is the example of what I made:
Private Sub Form_Load()
If WebBrowser1.Navigate ("http://www.google.com/") Then
WebBrowser2.Naigate = (WebBrowser1.Navigate)
End IF
End Sub
|
|
|
|
|
What you are trying to do is very difficult. The WebBrowser control does not allow you to detect in-page events like clicking on a hyperlink.
There is a BeforeNavigate event that you can use to get a URL from the first browser after a hyperlink is clicked to pass to the second. It also has a Cancel parameter that you can use to prevent the first window from navigating to the new link, in order to keep it on the original page.
The problem with using that is how do you know when the person clicked on a link in the first browser that should open in the second, versus when the person clicked on a link that should cause navigation in the first window, like moving to the second page of a set of search results?
It's pretty much an impossible problem to solve.
Robert
|
|
|
|
|
I have a combobox with several items. I want each item to open a different avi clip and play it in
the multi media player i have created. how do i point each seperate combobox item to a file on my computer???
Thank you for your help
|
|
|
|
|
if all the files are within the same path then make strPath variable to hold that path name. Then each item in the combo box should be the actual filename (without the extension) so append this item name onto strPath's value and pass it to ur media player.
Example:
' path where avi files are stored
Dim strPath = "C:\Document and Settings\admin\My Documents\"
Dim sFile = strPath & Combo1.Text & ".avi"
' now pass sfile as the file parameter to the media player
|
|
|
|
|
that is exactly what i needed, thank you
|
|
|
|
|
The following code looks for the text "Evan" in MyTable and returns that row to foundRow.
Dim foundRow As DataRow
foundRow = MyDataSet.MyTable.Rows.Find("Evan")
How can you find out what row number foundRow is?
|
|
|
|
|
you would want to write an IndexOf function:
Private Function IndexOf(dRow as DataRow) As Integer
Dim i As Integer
Dim colDRow As DataRowCollection
colDataRows = MyDataSet.MyTable.Rows
For i = 0 To colDataRows.Count - 1
if colDataRows(i) = dRow Then Return i
Next
End Function
|
|
|
|
|
Thanks. That's what I'm doing now. But how well would this work when there are 1000s of records? Can you utilize the table index when searching through records?
|
|
|
|
|
Is anyone here familiar with Remote Desktop Protocol? Terminal Services Client Library?
I need my program to programmatically connect to a server via remote desktop (or any other means if available). I feel like the solution lies in the MsRdpClient class from the MSTSCLib library. If anyone could help me use this class/library correctly, I'd be very grateful.
|
|
|
|
|
I don't know what the heck you would need to do this for other than attempting to compromise remote computers. I'm not sure if there is a way to programmatically do this (for good reason too). Perhaps you should think of a different approach rather then hijaking someone's computer.
|
|
|
|
|
Hi,
I have a string thats something like this:
Dim lblJM As String
lblJM = "Onbekend"
and i want to display it somewhere in a HTML Table .
I tryed to use a asp:label that wont work. Any sugestions
|
|
|
|
|
How about asking this in the ASP.NET Forum[^]. Even though your using VB.NET, your question is about ASP.NET technology, not VB.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
When i run the SDK it eventually asks me where i want to put the extracted files.
Uhhhh, anyone?????
|
|
|
|
|
where you like... the desktop if that tells you (not a good idea however). you then will have to exécute a setup extracted to the place you provided there... after the install, the extracted files won't be needed anymore.
ps: next time, choose the right forum to ask this... here, it is Visual Basic / VB .NET forum.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
if you dont feel you should answer the question i ask then dont. There is no need
for smart ass comments. And fyi, i was installing the SDK for use in VB.NET
|
|
|
|
|
Smartass or not, his answer was essentially correct. The package wants to know where you want it to unpack itself. This will be a temporary folder from which the actually SDK installation will run.
This temporary location will NOT be deleted when the install completes. This is giving you the opportunity to unpack the install to somwhere like a network installation point so you can install the SDK on multiple machines from one sharepoint on the network.
And there is no forum here for DirectX questions, although I wish there was...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
absolutely not (one time again), but i leef obliged to say it again as you seem to be a bit too more nervous...
installing SDK for whatever language you use don't let you use that forum to ask "HOW TO INSTALL" one or one install...
this is a general question until you didn't start coding and ask a specific VB CODE question
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|