Miren tengo este codigo en visual basic...
Código vb:
Ver originalOption Explicit On
Public Class Form1
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim server As String
server = "foro"
End Sub
Private Sub OpenFile(ByVal sURL As String)
Dim nRetVal As Long
ShellExecute(nRetVal, "open", sURL, "", "", 1)
End Sub
Private Sub sFile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles sFile.Click
OpenFile("http://" + server + ".com")
End Sub
End Class
lo que pasa es en la linea "OpenFile("http://" + server + ".com")" no se como hacer para poder meter la variable dentro de ese parentesis x.x ya he intentado con [server] y $server
gracias!