|
Just to let you know, I figure out how to use the SendKeys method! Who would have thought that SendKeys would be case sensitive! All I had to do was replace my "^F" with "^f" and now it works!
Private Sub mnuEditFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles mnuEditFind.Click<br />
'AxWebBrowser1.Select()<br />
SendKeys.Send("^f")<br />
End Sub
There is however a bug with this. For some reason, the AxWebBrowser does not activate properly in code (AxWebBrowser.Select() ). Therefore, forcing you to click on the control before allowing you to use the menu option! At times, if you do not click on the AxWebBrowser to activate it...the SendKeys method will hang your application and you won't even be able to move your mouse! I still have not found a way around this. But at least I know that send keys works now
Also, for anyone interested in an alternative method which I found (and works) but what I was trying to avoid using since it is dependent on Microsoft.mshtml:
HOW TO: Invoke the Find, View Source, and Options Dialog Boxes for the WebBrowser Control from Visual Basic .NET
|
|
|
|
|
Hey there,
I have an application which has a "ThunderRT6UserControlDC". There are various control within this container such as
1. A drop down box
2. Label box
3. Gifs
4. a List View
For some reason 1 and 2 are not visible as having handles when viewed from Spy++.
I need to get the handle to the Label box (2) to retrieve its text. I'm trying to access this from a different program so I have to use handles and cannot use properties withing my application.
Any suggestions!!
Abhishek
|
|
|
|
|
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
|
|
|
|