error double post
please delete
User Profile
Collapse
-
Solved this myself in the end.
For future users: the solution:
Code:Dim myElement As HtmlElement myElement = webbrs.Document.GetElementById("attack_alert") Dim value2 As String = myElement.Style
Leave a comment:
-
Im just getting back to coding after 2 years (less than 1 hour atm) so forgive me if this is wrong and im rusty.
drag a listbox onto your form.
Or add the code:
Code:Dim listbox1 As ListBox
Leave a comment:
-
Detecting the value of an element on a web page
Apologies if this is not clear, I'm not 100% sure how to ask the question to start with.
On a web page there is a line that reads:
Code:<div id="attack_alert" style="visibility:hidden;">
How do I then detect whether the "attack_ale rt" is:
Code:1, <div id="attack_alert"
-
No your right... i did just jump in without reading.
ill do a little more reading :) thanks for the help...Leave a comment:
-
Static LOF As DateTime = "15:27:06"
Static RT As DateTime = "1:05:27"
MsgBox(RT.Subtr act(LOF).ToStri ng)
answer = "-14:19:38"
RUBBISH :(
----------------------
if its "1:05:27" and u go back "15:27:06" i should get "09:38:31"
so im really confused?Leave a comment:
-
Time calculations
Ok i have bashed my head against a wall trying to work out how this is done... please help.
i have 2 text boxes with the values:
txt1.text = "15:27:06"
txt2.text = "1:05:27"
Now if txt2.text = the current time and i want the time when it was txt1.text (15hours,27mins ,6seconds) ago how do i do it...
for example current time is "01:05:27" and if i subtract... -
Imports System.Data.Ole Db
[code=vbnet]
Try
Dim StrConn As String = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=c:\Users \Users.mdb"
Dim oConn As New System.Data.Ole Db.OleDbConnect ion(StrConn)
Dim con As New System.Data.Ole Db.OleDbCommand
con.Connection = oConn
con.CommandType = CommandType.Tex t
con.CommandText...Leave a comment:
-
Just forget trying to use the API to change the display mode. Instead:
1. Add a COM reference to 'DirectX 7 for Visual Basic Type library'
2. At the top of your code for your main form, before the class declaration, add 'Imports DxVbLib'
3. After the class declaration, add:
Dim dx as New DirectX7
Dim dd as DirectDraw7
4. Add the following code to your...Leave a comment:
-
-
Here's another example from vb2005
[code=vb]
Dim a As Rectangle = Screen.PrimaryS creen.WorkingAr ea
'Size form
Me.Width = a.Width
Me.Height = a.Height
'Position form
Me.Top = 0
Me.Left = 0
[/code]Leave a comment:
-
This should work, i created it in vb2005.
[code=vb]
Private Sub DBConn(ByVal strSource As String, ByVal strQuery As String, ByVal dataset As System.Data.Dat aSet, ByVal DGV As DataGridView, ByVal tablename As String)
Try
'---- Imports System.Data.Ole Db - At top! ----
'---Usage---
'Dim oDS As New System.Data.Dat aSet
'DBConn("c:\use rs\users.mdb",...Leave a comment:
-
This works in vb2005:
[code=vb]
Function FileExists(ByVa l FilePath)
If System.IO.File. Exists(FilePath ) = True Then
Return True
Else
Return False
End If
End Function
[/code]
There are many options with the 'system.io.'
check them out
JamesLeave a comment:
-
-
Take a look at the mid() function... I think this might solve your queryLeave a comment:
-
Its messy but here what i did for something simular...
to move a label:
1. add a timer to your form (intervals 10)
2. on the label mouse down event, start timer
3. on the mouse up event stop timer.
Timer code: (something like):
label1.top = mouse position x
label1.left = mouse position y
I can remember exaclty how the code went, but im sure you get my idea?
...Leave a comment:
-
Sounds to me like you have a some sort of never ending loop/process runningLeave a comment:
-
-
File Write protect
vb.net (vb2005)
Does anyone know how to change the write protect property of a file through code?
is this possible?
James -
fixed it thanks...
changed line 15 above to:
[code=vbnet]
Dim thumb As New Bitmap(myX, myY, Imaging.PixelFo rmat.Format16bp pRgb555) '----
[/code]Leave a comment:
No activity results to display
Show More
Leave a comment: