VS 2008 Combine Two Forms In VB?

Aug 26, 2009

I would like to know if it is possible to combine two forms in Visual Basic (with or without code written already in them) into one form. So that they are side by side. These are the forms that you start out with in Visual Basic to make your program (Not forums LOL).

View 2 Replies


ADVERTISEMENT

VS 2008 - Combine Forms - Open The Main App And Click On Notes

Apr 18, 2009

What I need to know is if there is a way to combine forms. What I mean is, that when the program is open there is only 1 item on the toolbar instead of multiple shown on the toolbar. For example, I open the main app. and click on notes. The notes would open another form, but I wouldn't want another item on the toolbar, just the main 1, and if the X is pressed on the second form, it should just close that form, not the whole program. I mainly want this so that all the forms will minimize at once... and won't have the extra clutter of all the forms having a separate item added to the toolbar. So simply, I want 1 main form shown on the toolbar and when multiple forms are opened from the same project, it doesn't add to the toolbar and just keeps the one main tool bar.

View 2 Replies

VS 2008 Combine Multiple Files Into 1

Sep 2, 2009

writing a script to allow the user form to browse to a directory and combine multiple files to one text file. In DOS it would be copy *.* to Text.txt.

I am using Visual Basic 2008 express...

I can use the OpenFileDialog to browse and open a single file but I am unable to use the multiselect option to open multiple files.

all files are parsed in the same place.

I have attached what I have managed so far which included converting the opened file to .txt

View 16 Replies

VS 2008 Combine Duplicate Listview Subitems?

May 17, 2011

I have this code to delete the duplicates but i am stuck on how to firstly combine the subitems before deleting the duplicates.

vb.net
Dim DuplicatesList As New List(Of String)
For Each item As ListViewItem In Me.lstTakeoffList.Items

[code].....

View 3 Replies

VS 2008 Combine Listbox And Richtextbox To File?

Mar 10, 2010

I have a Listbox with some data, and this can be saved to a rtf file. However I want to combine that list of data with data in a richtextbox, line by line.The code that saves the listbox:

Using SW As New IO.StreamWriter("c:Test10Hz.rtf", True)
For Each itm As String In lstTraceTime.Items
SW.WriteLine(itm)

[code]....

View 4 Replies

VS 2008 Combine Setup And Application Projects?

Jun 9, 2010

I need to deploy an application that I have created. I have done this by creating a new setup and deployment project in VS 2008.

My question is- do I need to have these two separate projects or can I somehow combine them into one?

View 3 Replies

VS 2008 Sounds - Combine Many Wave Files Into One?

May 11, 2010

How could I...

- Increase the frequency of every part of a wave file by a specified amount of Hz

- Increase/decrease the length of a wave file without reading it faster = changing the pitch

- Combine many wave files into one

View 9 Replies

VS 2008 Adding A Method To All Forms Existing Forms Without Changing Their Code?

Jul 28, 2009

just wondering if it is possible to add a method to all forms in my project without having to do it on one form and Inherit all my other forms from that one

View 3 Replies

VS 2008 : Get 2 Forms To Close At Different Times Using A Timer On Each Of The 2 Forms?

Apr 21, 2010

i have a problem with trying to get 2 forms to close at different times using a timer on each of the 2 forms.

This is my form layout:

Quote:
frmMain
Frm1
Frm2



Frm1 and Frm2 are identical to each other. FrmMain has 2 buttons on it. One button to call Frm1 and the other to call Frm2.Frm1 and Frm2 each has a timer. It counts down to 0 and then does a .close(). However, if i pause between clicking the second button they both seem to always disappears at the same time.I would do something like this...

Click on the first button (showing the Frm1 form)

wait about 10 secs...Click on the second button (showing the Frm2 form)they both are shown on screen...hen they both disappear at the same time.... which shouldn't happen since i clicked the Frm2 box 10 seconds AFTER Frm1... So Frm1 should hide before Frm2 does...but it does not.

[code]....

View 6 Replies

Combine A Last Name To A First Name?

Apr 27, 2010

How do I combine a last name to a first name to create a list of names in a table from a form? I have tried to use the technique of creating a 5 uppercase letter record identifier, but I can't get the name to allow for different length names without truncating.

View 3 Replies

Combine C# And .net?

May 29, 2009

I have a friend who is very good at c#, but i am using vb.net and not clearly experinced with c#. i want work with my friend together.how can we do ?

View 11 Replies

Combine VB And CPP

Apr 8, 2012

I was wondering if there is a way to include / 'run' C++ code within VB.net I think I read somewhere about turning the C++ Code into a library and can access it that way, but not 100% sure if I did in fact read that right or if I'm dreaming things up. Basically, I want to design a basic UI, ie just a button or 2, and when the button is clicked I'd like it to use the C++ Code.

View 3 Replies

.net - Combine Vb With Excel?

Mar 12, 2011

how can i get cell text value from excell sheet in visual basic and then after changing its text send it to back excell. when i open excel file i should get the changed value in file.

View 1 Replies

Any Way To Combine Two Queries?

Jun 8, 2011

I am trying to UNION the two queries below without success.
Dim
ds1
As
New
DataSet
Dim
MyConnection1 As
New
OleDb.OleDbConnection(GetPOWERConnectionString())
[Code] .....

View 2 Replies

Combine 2 Statements

Oct 31, 2011

how to combine this 2 statment..

IsConnected("Select * from manager_table", False)
Call Loader()
IsConnected("Select * from Clerk_table", False)
Call Loader()

i hve 2 listview, 2 table from accessdatabase..i put listview in tabcontrol..1 in tab 1 & second in tab 2...

View 1 Replies

Combine 3 Functions Into 1?

Nov 22, 2011

I'v got 3 functions that I'd like to combine into 1. There is only one line in each function that changes. can think of a few ways off the top of my head, but not sure which is "the best", or "proper way" to accomplish this.

Private Function CheckQuads(ByVal QuadNumber As Integer) As Boolean
Dim intArray(3) As Integer
Dim x As Integer = 0

[code].....

View 8 Replies

Combine An If/then/else With A Try/catch?

Apr 7, 2011

I need to combine an if/then/else with a try/catch and I can't seem to make it work. Basically I need this:

Try
code that might bomb
Catch ex As Exception

[code]....

I thought I could check Err.Number once I was out of the Try/Catch block but that doesn't work because apparently Err.Number exists within the Catch block after an exception is caught, but outside of the Catch block Err.Number is zero again. How can I do what im trying to do? Im about to NOT use try/catch and resort to On Error Resume Next (aaahhhh the days when things were simple and just worked)

View 2 Replies

Combine C# And .NET In A Solution?

Mar 2, 2012

I have a solution, Winforms, mainly composed from VB.NET projects (Wiforms, Constrols and business classes).

How, I added to it a WPF project, but wrote it in C#. Actually, every time I make a modification in the WPF C# project, I need to (re)build the C#WPF project. Is there a option to make it work like other (VB.NET) projects (accept and "see" the changes without rebuilding the C# project)?

An example:When I reference project "R.VB" in project "M.VB", I add a method "DoTest" in the "R.VB" and use that method in "M.VB" without compile errors.

If I add "DoTest" in the C# WPF Control and try to use it in "M.VB" project, I recieve a compile error "DoTest" is not a member od "R.C#Class".

View 5 Replies

Combine Program With C#?

Jul 9, 2010

I have two projects, one written with vb.net and one with c#,I would like to use the vb.net one more as a Class and make the c# project the 'main' one.I have already read that In order to do that I need to compile the vb.net project as a dll and import that dll into the C# project.I am having hard times making it work.Does anyone know how do I import the dll and use the functions that are implemented in the dll?

View 4 Replies

Combine Shift With Another Key?

Feb 9, 2011

I don't know how to get shift modifier key as when I pressed shift and another key, it show message box "Modifier shift key"

View 1 Replies

How To Combine 2 Statments

Jun 8, 2011

how to combine this 2 statment.. [code] i hve 2 listview, 2 table from accessdatabase..i put listview in tabcontrol..1 in tab 1 & second in tab 2...

View 4 Replies

How To Combine Files

Jun 7, 2009

I am wondering how to combine files (exe, dll, jpg etc.) into a single standalone executable. Can this be done?And when i open it, it will automatically launch the included files. However The joined files should be fully encrypted

View 3 Replies

How To Combine Richtextboxes

Oct 27, 2009

How do I combine richtextboxes? Currently, I am directly saving rich text to a RTB with ".rtf" and I would like to append the rich text information to that box from another RTB. Something like: RTB.rtf &= newrichbox.rtf do not throw any flags but also does not work. What I am ultimately trying to do is save multiple richtextboxes to a single RTF file. I was trying to do it by combining them all into one RTB and using ".savefile()" or is there a better way? Maybe appending them to the file one RTB at a time?

What I'm doing is generating a report, so I have built generic rich text templates that go into multiple RTBs that will create the form sections and I have left placeholders for the data I am adding, so I do replaces on the placeholders to insert the data. However, there are a couple dozen different possible formats for the report based on user options, so I built each section into its own RTB so I can just write out the relevant sections when it comes time to generate the file.

View 2 Replies

How To Combine Two DataSets

Oct 8, 2010

I'm trying to combine two datasets, each with 1 datatable and each having the same schemas. Datatable 1 would have a list of records. Datatable two may, or may no, have some or all of the records from table 1 plus more records. I would like to remove all the records from table 2 that are present in table 1.

This is what I got so far:
For Each table1 As DataTable In ds.Tables
For Each row1 As DataRow In ds.Tables(0).Rows
ds.Tables(0).PrimaryKey = New DataColumn() {ds.Tables(0).Columns(0)} 'Where 0 is the index of the column that's your key
row2 = ds2.Tables(0).Rows.Find(row1("ID"))
'if its found, delete it
Next
Next

View 2 Replies

.net - How To Combine Multiple Lines Into One

Nov 4, 2010

I am trying to figure out a way of combining the below Dim statements into one line and maybe also combining Return dblResult into there. currently it is three lines and I have been told that it is possible but kind of lost of how to do it

[Code]...

View 3 Replies

Combine 2 .exe Files Into 1 .exe File?

Oct 21, 2009

i would like to ask how can i combine 2 .exe files into 1 .exe file. for example,

1) a.exe
2) b.exe
combine into ab.exe

a.exe must install first, after that b.exe will continue.

View 13 Replies

Combine 2 Byte Arrays?

Aug 7, 2009

I'm trying to combine 2 byte arrays and then create a new byte array that contains the contents of both but running into a problem. The error says 'Source Array was not long enough.' I'm trying to combine HeaderByteArray and bytBuffer into newByteArray. I don't understand what Source Array is not long enough means and how to correct this.[code]...

View 9 Replies

Combine 2 Items With A Split?

Mar 29, 2010

Im trying to combine 2 items in a listbox and in between them theres a split[code]...

View 7 Replies

Combine 2 Text Files

May 22, 2012

How can I combine 2 or more text files into one? I prefer to use vb script but other ways is ok too.

View 6 Replies

Combine 2 VB Scripts To Run On-Click?

Jun 30, 2011

I have a webform that users put in details and this goes to a database - this all works fine.The form is a FormView (Expression Web) and as I have added to other stuff to the page I can't use the standard "insert" button on the form view some I have add an asp-button to run the insert - this also works fine.What I am trying to do is to get the page to send me an e mail when a user has completed the form - this is the problem ,The insert works fine when I click a button,The send e mail works fine when I click a button BUT I need to combine them so the user only has to click once.At the moment I have two functions running on 2 buttons

InsertButton_Click and SubmitForm_Click

How can I combine this to both run on InsertButton_Click[code]......

View 28 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved