From my main form, in a combo box, I call a second form like this:
dim NewForm as form2
NewForm = new form2
NewForm.show
After the user completes their work in form2, I need to get back to form1. How can I do this? If I do this from form2...
dim OrigForm as form1
OrigForm = form1
form1.show...
You can do something like this
From form1
dim frm as form2
frm = new form2
frm.textbox1.text = "Your Value" 'control on form2
then from form2, the same thing
dim frm as form1
frm = new frm1
frm.textbox1.text = "Your Value" 'control on form1
If memory serves, this will NOT 'close' form1...
When I run this code on my PC, it works fine - I send the email to myself and it works. But when I deploy it to another PC, it gives me some Microsoft.Office.Interop.Outlook dll error. I'm assuming I need to make a setup project for deployment purposes; but what dll/files do I need to add...
Hey, thanks for the quick response.
After studying that post/code, it looks as though the application will "pause" if it loses focus. Is that true? Is there a way to keep it running?
Thoughts...
Ben
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer = 1
For i = 1 To 100000
Me.Label1.Text = Str(i) & " of 100000"
Me.Refresh()
Next
End Sub
When I click my Button1 and then...
Well I figured out how to capture the Web Browser, scroll down a page, capture again, and continue until I'm at the end. Then I just concatenate all the images together into one. It's "flashy" and a "tad too early 90s", but it works.
Anyone have a method of capturing the Web Browser in one...
I'm sending data to the mainframe using a CICS buffer in VB.NET and I need to figure out how to send it COMP-3 fields (packed data).
Does anyone know how this might be done?
Thanks in advance,
Ben
I'm looking for source code in VB.NET on how to concatenate two bitmaps together, top and bottom.
I've tried using the BitBlt function but can't quite seem to get it.
Thanks in advance,
Ben
I'm programatically adding items to my listbox in vb.net and would like to change the color of a line to red if its an 'important' item. Does anyone have any code snippets on how to change the color of a particular line in a listbox; or upon adding it if there is a way to set the color?
Any...
I’m looking for some code snippets on how to identify and change the value of a text box within a webpage in VB.NET and Internet Explorer. I’m using the axWebBrowser control on my form to display the web page and then do a directcast of my axWebBrowser to get my HTML doc.
Dim doc As...
I'm actually replying to my own post in hopes of generating a possible solution. Here is the code I have thus far...
Dim doc As mshtml.HTMLDocument = DirectCast(Me.AxWebBrowser1.Document, mshtml.HTMLDocument)
Dim bodyElement As mshtml.IHTMLElement
Dim render2 As IHTMLElementRender...
I need to convert an html web page to a document, preferably a tiff. I am able to get a 'screen capture', capture specific images, and capture the raw text on an html page. But I would like to capture the whole HTML page, even if there is more to see upon scrolling down. HTML capture to BMP...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.