Text1.text=inet1.openurl("http://google.com")
Dim ff As Integer
ff = FreeFile 'Sets FF=to the next open free file
Open App.Path & "\someFile.txt" For Output As #ff 'Creates a new file
Print #ff, Text1.Text 'Populates the text file with the text from Text1
Close #ff 'Closes the text file
Text1.Text = Inet1.OpenURL ("http://www.sythe.org")
Text1.Text = Form1.WebBrowser1.Document.documentElement.innerHTML
Assuming you have the controls Text1 and Text2 (TextBoxes), and a button called Command1.Question 10:
How would i make it so, when i put some text in a textbox and click a button, it outputs a chosen word/number (from the first textbox) into another textbox.
Private Sub Command1_Click()
Text2.Text = Text1.Text
End Sub
Private Sub Command1_Click()
Select Case LCase(Text1.Text) 'Looking at a lowercase string of what is in your first textbox
Case "jagex"
Text2.Text = "Fags..."
Case "nullware"
Text2.Text = "Pretty Cool."
Case "wow sucks"
Text2.Text = "He's learning fast :)"
Case Else
Text2.Text = "That is not a person!!"
End Select
End Sub
dim strdata as string
strdata = inet1.openurl("theurlhere" & textbox1.text)
If Pic1.Visible = True Then
MsgBox "It's Already Visible"
End If
else
MsgBox "It's Not Visible"
else
MsgBox "It's Not Visible"
Well if his dick fails then you just don't have one. In nice big print we have:Your mom and her dick fails... All i did was answer his question he didn't say that if it was already answered, don't answer it again did he?
Green = Need answering
Red = Answered.
Question 3:
How would i make it so, when a picturebox is set to visible already, and i click the 'make visible' button, i get a message box saying that it's already set to visible?
If picture1.picture = "images\0.jpg" then
msgbox "The picture is visible"
End if
Question 13:
What do i do to make a peice of code that gets looked at ever few seconds?
for example, im playing tic tac toe, and when i get 3 'X' in a row, it gives me a messagebox saying ive won. How would i make the program keep looking back to that section of code to see if i had won or not.
Sub SubTest1 ()
End Sub
Sub SubTest2 (Input1 as [I]VARIABLE[/I])
End Sub
Function FunctionTest1 () as [I]VARIABLE[/I]
End Function
Function FunctionTest2 (Input1 as [I]VARIABLE[/I]) as [I]VARIABLE[/I]
End Function
Call SubTest1
Call SubTest2("String")
Call SubTest2(1) 'Integer
Call SubTest2(Array())
Output = FunctionTest1
Output = FunctionTest1("String")
Output = FunctionTest1(1)
Output = FunctionTest1(Array())
If Picture1.Picture = 0 Then MsgBox "No pic loaded"
'or
If Picture1.Picture <> 0 Then MsgBox "Pic loaded"
'or using NOT
If Not Picture1.Picture = 0 Then MsgBox "Pic loaded"
dim lol as string
private sub command1_click()
image1.picture = loadpicture(app.path & "\dog.jpg")
lol = "dog"
end sub
private sub DisplayMsgBox(strMsg as string)
msgbox strmsg
end sub
displaymsgbox "hello"
private function IsFormVisible(frmForm as form) as boolean
isformvisible = false
if frmform.visible = true then
isformvisible = true
end if
end function
if isformvisible(form1) = true then
msgbox "form1 is visible"
end if
On a side note; Why do you ask for complicated things (or things you can't do) and not use them?
Also, what is this for? I somehow see us building a project for you, or doing some schoolwork for you....

