Two Separate Programmes - Messgae Passing?
Mar 6, 2012
I am currently have two independent VB programs running. How is the easiest way of passing messes from one programme to another.
I am unsure, but I assume that you have to use some memory addressing of some kind but I am unsure if this is the correct approach ?
View 7 Replies
ADVERTISEMENT
Mar 25, 2009
I have been converting my VB6 programmes to VB 2008. many of the problems that came up I have been able to solve; mostly by trial and error. However, I have one problem that was easy to handle in VB6, but I don�t see how to do it in VB 2008. I have checked Google, but didn�t find anything exactly similar to what I want to do.
On my form in VB6 I added two text boxes, each with it�s own name. I then copied these two and pasted them back onto the form, under the original textboxes, 5 times. Each time I was asked whether I was creating an array; I confirmed that I was.
I could then code as follows:
For x = 1 To 6
BidderName(x) = txtBidderName(x)
BidderCommunity(x) = txtBidderCommunity(x)
[Code]....
I tried to do the same thing on my VB 2008 form, but it does not ask whether I was creating an array, and in fact the array of textboxes on the form, is not an array!
how I get around this. The form has to show an array of textboxes, which are entered in order.
View 10 Replies
Oct 13, 2009
how do vb.net programmes execute ?
View 1 Replies
May 12, 2009
I wanted to do somthing like this. I want to create a set up file using vb.net that running 5 setups.Here is the procedure that has to do
1. User install the 1 set up file
2. then all that 5 setups should be installed
3. then 1 icon should come to the desktop
4. after click on that icon user will get 1 window that seperated into 5 and above mentioned all 5 programmes should running in that window
View 6 Replies
Feb 23, 2012
I created a telephone number form where the user enters the telephone number in a text box as (nnn) nnn-nnnn. The first 3 digits in parenthesis are the ISD code, the next three are the area code and the last four are the local number. I need to separate out these three fields of the phone number and display in three separate text boxes labeled appropriately. Now, suppose the user enters the phone number in a text box as a continuous string of 10 digits, where the first three represent the ISD code, the next three represent the area code and the last four represent the local number. I'm lost as how to change this string into the form (nnn) nnn-nnnn. This is what I have
[code]...
View 3 Replies
Sep 17, 2010
I have a TabControl object on my form with many tabs created in code (TabPages) and my problem is that the same objects that are in the initial TabPage needs to be in the other TabPages created in code, I have this done in code when the user clicks the 'New Tab' menu option, however the same code is used for any new tabs created. The problem created here is that I have an event against one of the objects that appear in the other TabPages, but because the same code is used to create any new tab pages, the event will only work on the newest tab page, if that makes sense? By the way these objects that appear on the other TabPages are properties at the top so events can be handled against them in the respective subroutine.
[Code]...
View 5 Replies
Apr 30, 2010
I'll get straight to my problem - I'm currently coding in Visual Studio.I have a table (countries) with the columns ID | Name. The table is filled with around 28 records.I also have a form with 4 combo boxes (set up as 1,2,3 & 4) that I want the user to select. These combo boxes will display the names from the table countries. I then want to use the selected names in the combo boxes to Insert into their corresponding ID into another table. For example England would have the ID 1, USA the ID 2 etc.So, is it possible to have separate combo boxes that will give separate ID values but using the same table? At the moment I can't seem to find a solution.Eventually the form will have more than 4 combo boxes so I don't want to use separate bindingsources for each combo box.
View 5 Replies
Oct 27, 2011
I have a few forms that have a lot of really intensive updating along with a great deal of user interface (text boxes, button clicking etc) Is it possible to open a separate form as a separate UI thread from the start up form that called it to "show" or open or whatever the new method might be?
View 6 Replies
Jul 25, 2009
i want to separate bellow lines by ; using vb.net
Name=203596:0
sigTs=16
CIC=100,7FFF7FFF
LinkSet=001
userID=01
View 1 Replies
Aug 15, 2011
i have variable in web page and i want to do:
copy two things X and Y
x:Name
y:code
i have make to file ini one for x and one for y
in the page , the information like this
x
y
x
y
.....
first line x and next line y >>>
I want to compile a file in the X and Y in another file
View 1 Replies
Sep 29, 2009
There are two forms. For the form1, the view is 1 textbox and the button. For the button in the form1, when it is click, it will go to the form2 which consists of the datagridview. After select the numbers from the datagridview, it will go back to form1 and display it in the form1 textbox. But I want to separate it with a comma. Here is the code in form2: Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
[Code]...
View 2 Replies
Jul 16, 2009
We have an access database that contains Version table. the same file is stored in 2 separate locations, how would i pull the information from both c:db1.mdb and \servernamedb1.mdb's table so i could compare the two?
View 14 Replies
Oct 19, 2010
At the moment I am trying to generate buttons, where the mouse position is.I have a timer which gets the mouse position as 2 string variables:[code]what I want to know is how do I access each separate button, I mean if I went nodebtn.hide() then all of the buttons will disappear. However I would like to select a button to chose from the present.
View 2 Replies
Nov 22, 2009
Good evening folks, I'm building a program that is threaded. While I can get the thread to work no problem, I can not seem to add pages to my tabcontrol from the class I'm using. Any idea's on what I'm doing wrong?frmMain is loaded first. Then the idea is to load the other tabpages using a separate thread as they take awhile.[code]
View 1 Replies
Oct 4, 2009
i'm working on project that backup SQL daily and archive into ZIP file but i got an error cause i was trying to save the archive with today date and time so i think the problem that i need to change separate from
View 6 Replies
Apr 21, 2010
DataGridView, add unique gradient to each Row I like to add a gradient brush to each row of my datagridview. I like to change the gradient colors for each row independently depending of some cell values in the row. I know how to add a solid background color to each, cell, row, column etc. but I do not know how to add a gradient brush to each row individualy.
I need to fill the datagridview with values, the datagridview is disconnected from any database or other data source. After filling the datagridview, I want to step trough each row, find my key values, decide the gradient colors and then add the gradient to the row.I like to do something similar to what I now do with a background color:
For Each R As DataGridViewRow In DGV.Rows
Dim CS As New DataGridViewCellStyle
Select Case i
[code].....
I am using VB.NET and VS 2008 and 2010.
View 2 Replies
Oct 16, 2011
DO NOT REDIRECT THIS TO ANOTHER THREAD BECAUSE THERE ISN'T A ONE I'm developing a project in VS2010 - WPF - VB.NET (4.0)The solution contains 11 projects; one executable and others are User Controls, Custom Controls and Classes.Now when I build my solution this happens in the output (Debug) folder:
Images/(images used buy MainProg.exe)
[Code]...
View 11 Replies
Jun 14, 2011
some advise or links, where I can find, how to seperate Code and Design 100%?
View 5 Replies
Mar 5, 2010
I need to take this string of words and separate them by each " " encountered. Then I need to place them into my list. How can I accomplish this? here's the code I have so far:
Dim txtLine as string = "Easter never homage entrance"
Dim spaces, subStart As Integer
spaces = txtLine.IndexOf(" ")
[code].....
View 2 Replies
Dec 5, 2010
I've experimented a bit with async TCP socket messages between two programs, for passing data, numbers and/or text. What I've done is to use a keyword in the start of each message,and then seperate the values with the "|" character. So a message may look like this: "DATA|490|40517.9328222222|1|6|11345|11347|11344|11345|106|40517.8494212963"I set the read buffer size to 1024, as most of the messages will be within that lengthHowever sometimes I may send rapidly many short messages where several together are less than 1024 characters, and it seems then it will be read in one go. And if I send a message longer than 1024 characters, it will be split. So I'm looking for some advice on how to handle this. Should I use some special characters to start and/or end each message?
View 6 Replies
Feb 23, 2010
this is my code on how to get the time from the device but i dont know how to get the time in such a manner that the first log in is the time in and the second log in will be the time out..
Dim _data As New System.Text.StringBuilder
Dim _errorCode As Integer = 0
Dim _machineNumber As Integer = 0
Dim _enrollNumber As Integer = 0
[Code]...
View 4 Replies
Jan 20, 2009
ok i figured out how to call a different program but i have like 7 things here and i dont know what one to use.....i want to click a button and another program shows up.
first off is this right.
system.diagnostics.process.start()
then my folder path thing is
[code].....
View 2 Replies
Jan 20, 2011
I am having following Projects
ClassLibrary1
Public Class Class1
Public Sub MyMethod()
[code].....
View 12 Replies
Apr 1, 2012
I want to create SETUP for vb.net window application. My application uses multiple dll.so I want to keep dll in separate folder and exe in separate folder. When I create setup, dll and exe are in same (Application Folder of setup), then it works, but when I create 2 different folder in Application Folder of setup, one for dll and one for exe, then it desn't work. Please suggest how can I ?when I create set up then all goes to applciaton folder. when i installed then all are installed in same folder.but I need all dll goes to sperate and exe goes to sperate folder.
View 1 Replies
Jun 16, 2007
the forum,this is my first message, and I hope that my English is understandable (I'm Italian)....I've developed a WIndows Service using VB.net 2.0; this service executes a routine every 4 hours... I would like load a dll (without entry point) at run time and when the operation is terminated, I would like unload that. I think that I've to create a new AppDomain and to load my DLL into this, but I don't know the good way to do it.
View 9 Replies
Jan 15, 2012
After creating a project in vb.net how to make a separate file so that by clicking on the file the project should directly execute
View 4 Replies
Feb 11, 2011
I don't want my application's main form to be displayed when it opens; I just want the notifyicon control in it to show in the taskbar.This is the code I have been using:
Module:
Code:
Module mdlStartup
Public Sub Main()
[Code]...
The NotifyIcon control is in my frmMain. However, when I run my program I get mulitple instances of the Notify Icon being displayed. I even get two frmMains getting launched if I try clicking the other tray icon that has been made. I'm guessing this has to do with the New instance.If that's the problem, is there a way I can move the notifyicon control to some completely separate class?
View 3 Replies
Sep 24, 2010
Is there a way I can run a loop in a seperate thread and increment a progress bar each time the loop iterates? I am trying to run a loop that will take a long time to complete and I dont want the form to be completely crashed out while the loop is running. There are only two ways I can think to solve the problem. The first way is to run the loop on a timer. This is extremely slow. The other way is to use a thread.
View 1 Replies
Jun 2, 2012
I just finished up my space invaders movement and with all the other timers running it really bogs it down. So I think the best solution would be to make the timers run on separate threads. I know roughly how to do this from a old example I read a long time ago. So I just need a simple sample code to refresh my memory please. Maybe something with message boxes or something to demonstrate the process.
View 1 Replies
Mar 23, 2009
I need to be able separate a string after each character like so:
FP1TS1TP3IT1
varA = FP1
varB = TS1
varC = TP3
varD = IT1
I also need to 'Re-truncate' it afterwards.
View 15 Replies