Domenii
  Top Expert
1 djbrain 44355
2 subofferul 5220
3 robica 4610
4 krystyana84 3980
5 elena2008 2690
  Top Statistici
Membri inscrisi 96840
Intrebari 35993
Raspunsuri 164903
  Contact
nume
email
Introduceti textul din imagine
(pentru evitarea spam-ului):
Numar random
 
introduceti mesajul
email admin: adip.at.myexpert.ro
Consultanta ISO, Audituri Interne - Business Advising Team
Vizualizare intrebare
Intrebare
bullet Visual Basic de toxic-cercetari
Care e codul in visual basic care daca da click pe un button intra pe un site setat??
Tags:
5
puncte
2668
vizualizari
15-07-2010 15:01:41
Data intrebarii:
(0.00 - 0 voturi)
Ratings: 
Pentru a putea bifa optiunea de notificare in email in cazul adaugarii de comentarii la aceasta intrebare trebuie sa fiti logat.
Daca nu aveti cont, click Aici
Raspunsuri
Comentariul lui:
15-07-2010 15:06:00
Data:
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

    Sub GreetingBtn_Click(ByVal sender As Object, _
                          ByVal e As EventArgs)

        ' When the button is clicked,
        ' change the button text, and disable it.

        Dim clickedButton As Button = sender
        clickedButton.Text = "...button clicked..."
        clickedButton.Enabled = False

        ' Display the greeting label text.
        GreetingLabel.Visible = True
    End Sub

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Button Example</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <h3>Simple Button Example</h3>

      <asp:Button id="Button1"
           Text="Click here for greeting..."
           OnClick="GreetingBtn_Click"
           runat="server"/>
      <br />
      <br />
      <asp:Label ID="GreetingLabel" runat="server"
                 Visible="false" Text="Hello World!" />
    </div>
    </form>
</body>
</html>
 
* ComentariuVoturi: 14 Voteaza


Link sponsorizat

Comentariul lui:
15-07-2010 15:07:39
Data:
Pui asta in form, la inceput:

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

Apoi asta la buton:

ShellExecute  0, "open", "http://www.adresa.com", vbNullString, vbNullString, 1

Si va lansa browserul default la adresa respectiva 
* ComentariuVoturi: 14 Voteaza

Comentariul lui:
15-07-2010 15:10:22
Data:
Sau si asta:
System.Diagnostics.Process.Start("http://www.website.com") 
* ComentariuVoturi: 14 Voteaza


Link sponsorizat

Comentariul lui:
15-07-2010 15:12:31
Data:
Exemplul meu este pentru VB6, celelalte pentru VB.Net 
* ComentariuVoturi: 17 Voteaza

Comentariul lui:
15-07-2010 15:31:18
Data:
[link in curs de aprobare]
[link in curs de aprobare]
[link in curs de aprobare]
[link in curs de aprobare] 
* Raspuns acceptatVoturi: 14 Voteaza

Link sponsorizat
Raspunde / Comenteaza
Adauga un comentariu / raspuns:
Va rugam sa selectati unul din campuri: Utilizator nou Utilizator inregistrat
Ataseaza fisiere» (Max 200KB)