How To Link Forms Together
Apr 21, 2009I recently made a few programs, I would like to take one form and link them to the others.
View 6 RepliesI recently made a few programs, I would like to take one form and link them to the others.
View 6 RepliesVB and I am assigned to make some modifications in a simple game developed using VB...for the desired changes, i have to create a new windows form , put some buttons on it and link them to the main and other subroutines in existing windows form
View 1 RepliesFirst I dont know how to "link" forms easily. For example: Form1 is like a calculator and I get value X (label.text). How can I "sent" that X to form2? I mean like: Form2.label1.text = form1.label1.text but it doesnt work like that. And I know why it doesnt work.. I dont know how to save that X. Every time I close and open again Form1 I had to start over. So how to save and link forms? Then another: what's wrong with this? Or how I could make it another way? Textbox2 should be numeral (should I code something for it?) and user can set it's value. Now it doesnt show anything in label5. [code]
View 6 RepliesIs it possible to build and event procedure and link two form together? What I am doing on one form is listing all incomplete records with a list box... and when someone clicks on the name they want to see... I want the next form to pop up so they can complete all the data.
View 2 Repliespossible to display a link in ballonTipText?
View 2 RepliesSo, tittle says it all, whats the code?
I mean how do I link loading bar.
I have multiple tabs opened in 'any browser' and one of it is titled 'LAME', how can i make links open(by buttons) in that tab? I have a simple form with two buttons,
Button one:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("http://www.google.nl/sub1")
End Sub
[code]....
i have 2 forms and i want buttons on form1 to tell a label on form2 different numbers. ( if button 1 is hit then label.text = 15, if button 2 then .text = 20 ect)
and i also want a variable to make it so that every time i click the number goes down by one.
ive been reading on google and in vb6 you would use a module but ive read mixed things on google that i could use a class or a module. So i started testing with a module saying
Public a As Integer
For a = 1 To 30
a = a - 1
[Code]....
how to start a module and link it to other forms?
I am tring to make a price check calculator and in order for me to do that i need my users to choose their price level.
Right now i have a small web form created and its quite simple but i need my button for onclick to do link to corresponding forms that it goes to...Right now i have it as:
Public
Partial Class WebForm1
Inherits System.Web.UI.Page
[Code].....
i have html page like this
</span></font><a href="../../../../../../../<#PostArchiveFile#>#<#postid#>"><font color="#737373" size="1"> <span style="text-decoration: none">
<A onclick="window.open('http://commenting.iranblog.com/services/commenting/commenting.aspx?
[code].....
when i create an outlook task, i want to insert a link with a custom string... e.g. see screenshot:
instead of the left screen, i would like to come up with the right screen.
Imports xOutlook = Microsoft.Office.Interop.Outlook
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code].....
richtextbox and linklabel properties, please answer my question (following, in points) with a lot of detail because i'm really new to VB.NET...
[code].....
is its possible to have a link/button inside a textbox or label... or other term for that...for example.. i am populating some chapters in a book... then i would only display 250 chars from each chapter... then i would end it and add a "Read More" text in each chapter.. and when they click it.. i would populate the whole chapter of selected chapter in the textbox...
View 8 RepliesI am working with buttons I have A treeview that when you click on a node it changes the text in textboxes and I need it to change the command the button does. So when a user clicks a node it changes text in 3 text boxes and changes the download link for the button. As you can see from the code all works fine but I need to use a button to download stuff and I dont know how the download code is
My.Computer.Network.DownloadFile _
("[URL]", _
cookiepack)
MsgBox("done")
That's what I need the button to do
Private Sub TreeView1_NodeMouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
Dim filePath As String
filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
[Code] .....
I have a 3 questions that I would like to ask....
I have made a kiosk type software (for my 7 year old daughter so she can only do what I want her to do on one of our computers)
1. I have a toolstripcombobox that will be where she puts in the url's. I need information on keeping the history of where she goes? So when she clicks the arrow to the right it lists all the sites she has been to.
2. Right now, the webbrowser navigates to where the url is (www. vbdotnetforums.com), but when you click a link it dosn't update the textbox with the new url [URL]. It just stays at the first url.... Anyone know how to fix this?
3. Any help being able to add tabs and load the tab with the url like internet explorer?
I have a form with a webbrowser control on it, and I load up a local file in it with some code for a rotating banner (so I can support my app with advertising).The problem I'm having is, it is for example, a banner ad in the small banner sized control, when the user click's it, it loads the new page within the same control, which is way too small.I'd like for any click in the control to load up the link in IE itself, outside of my app. Putting target=_blank so far hasn't helped. Below is the code that I am loading up in my control.
<!--/* OpenX Javascript Tag v2.8.2 */-->
<center>
<script type='text/javascript'><!--//<![CDATA[
[code]....
I'm using visual basic 2010 express..I'm building my own web browser and want to add a download manager.I have been able to build one that will download a file if I type the file location into a text box.What I'm trying to figure out is how to have the download manager open when I click on a download link on a web page.How to make the download manager know it is a link to a downloadable file as opposed to something like a link to another webpage?
View 3 RepliesI have a link here that works perfect for calling the postback close that I need to happen:
<a href="javascript:parent.__doPostBack('Close','')"><asp:Label ID="Label5" runat="server" Text="Close Me"></asp:Label></a>
However, I would like to be able to call the *javascript:parent.__doPostBack('Close','')* method from the code-behind file rather than the user clicking the link. I.e., when I have completed my tasks in the application code, call parent.doPostBack as my last function call, which closes the window in question.
When a button is clicked i am creating HTML that will be displayed in the WebBrowser1 control. With this HTML are several links to other pages. Is it possible that when one of these links is clicked, that WebBrowser2 navigates to the page instead of WebBrowser1?
View 5 RepliesI have a project that I would like to add a URL link and an email link to in the Help/About dialog. How can I do this? Is it possible to add HTML code to a VB project? This is not a Web application.
View 6 RepliesIm trying to create a webbrowser in VB 08;
I was wondering how i would create new tab with the Link the clicked.
*EG* They Right-Click Link > Open In New Window/Tab > Makes New Tab In My Program > Navigates To The Linked Clicked.
so I'm using Visual Studio 2010 and I'm trying to make a program where I would have a textbox where the user would type,then a "Go" button. In the textbox, the user would type a number, lets go with 1 for an example. A user would type 1 in the textbox, then it would automatically add the 1 to the end of this .swf link: "http:[url]... after they enter the 1 in the textbox and press the "Go" button, it would add the 1 to the end of that link, then that link would open a new shockwaveflash form with the link being the Movie. Is this possible?
View 5 Repliesi am using this function to get link of page which refered current page (in Back Button)
[Code]...
How would I simply link, say a command button, to a URL in my browser?
View 3 RepliesI have the following code which should go to a particular company page from the request page. In the website folder Company page is under a folder called Companies and the request page is under Requests folder.
Dim strUrl As String = "/Companies/Details.aspx?Company_ID=" & .Company_id
litlCompany.Text = "<a href=" & strUrl & ">" & .Company.Name & "</a>"
[URL]
how can I add a link to DataGridViewLinkColumn?Here is my code:
Dim linkColumn As New DataGridViewLinkColumn
linkColumn.Name = "Links"
dgv.Columns.Add(linkColumn)
dgv.Rows.Add("URL", "TEXT")
What is the code for "URL" and "LINKTEXT"?
I thought I had this figured out but now im stuck again. I need to have a clickable link in a cell in my datagrid that will open a pdf file on my desktop. I made 2 programs. The first used an access database and put in this
[Code]...
So I am making a gambling game to better learn VB, and I am wanting to know the best way to link a players name with his pot.Currently I have a My.Setting's setup with a String var that holds the players names.Names = John, Greg, Bob..That is how the My.Setting.Names is setup. So I split them with a , and parsed them with a For statement. I then added them to a ListBox to allow the user to select the profile.[code]And then at anytime I can pull "John" in my var (ProfileToLoad) and then "100" in a separate var that I setup.
View 10 RepliesPrivate Sub Accounting_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim conStr1 As String = "Provider=Microsoft.JET.OLEDB.4.0;data source=C:\Users\angel\Desktop\access\University of MAkati.mdb;"
Dim SqlStr1 As String = "SELECT * FROM accounting"
[Code]...
I am trying to be ablle to click on the following
<a
onclick="displayLoginForm();" href="Javascript: void(0);">Login</a>
I'm not sure how to do this.
is there a way to get an element by innertext then invoke a click