Getting Information From Other Programs ?
Mar 3, 2010
I have a few questions regarding getting information from other programs.
For instance, once i launch a console application i want my other program to read it's output. If my build.exe reads whats printed in cmd.exe and then outputs it live on a textbox <--- How do i do that?/Is it possible? Im sure it is. And then i want to know how much % of CPU is used by the program and how much memory are used.
View 2 Replies
ADVERTISEMENT
Sep 2, 2010
I'm wanting to transfer data between two programs. Basically, I have one program which is the "monitor" program. It opens another program and will fill a textbox in said program and then click a button on the program. When everything is done after clicking the button, the program will need to send something back to the monitor to tell it to close the program and open up another one to start the process over again.
View 4 Replies
Aug 27, 2009
I currently have two programs that need to comunicate one with another. It doesn't have to be something complicated, it's just passing data from one to another, all very simple. I was thinking of using .net remoting, but I've heard there's a new thing WCF. Should I go for the .net remoting or try WCF? Or is there something simpler to use?
edit: Both applications are simple, I don't want to have anything to do with IIS, services and such.
View 6 Replies
Apr 13, 2011
I have created a program that takes a users input of a bunch of fields. Now what i want to do is create a word document using the information that was entered so users can print a page with the information and save it as well.
View 1 Replies
May 27, 2011
I am sure this can be done, as Visual Studio is basically built this way. What I want to do is simply make a class that my other workmates can use. But rather than have it in a code form, I want to build it (partially), and then my workmate can add it into their programs (sort of, like the add reference for the .NET stuff).
View 4 Replies
Feb 2, 2010
I started with VB 6.0 back when i was 14, I was mostly into coding programs that interacted with other programs. Recently I installed VB.net 2005 pro i got from school, and i grabbed few source codes that teach show interaction, I feel so dumb, i dont remember anything lol. It be great if you guys can share some source codes and other stuff in this field. also other day i was in dream spark and i am able to get copy of VS.net 2010 ultimate edition, are there a lot of major changes, cause i got 2 thick book for VB.net 2005..
View 1 Replies
Feb 23, 2009
When you've finished a program and you're trying to distribute it to the mass public. How is the best way to go about doing this? What sites would you post your program on and getting the word out that there is a new program on the block and it does xyz. This is directed to freeware so there wouldn't be any advertising.
Sorry for not explaining it very well the first time.
View 2 Replies
Jun 9, 2011
The program is currently trying to pull information from three different database tables and compiling the information onto one screen, to do this i am using three different connections and a function to handle the data at each stage. The issue is as my code hits PageLoadStage of "2" and runs the QueryDatabase() Function i am encountering an error of: "OleDB exception unhandled: No value given for one or more of the required parameters." This occurs on line 15 of the first code snippet. Can anyone explain this and/or identify any code issues if that is the cause.
[Code]...
View 8 Replies
Feb 2, 2011
I was looking for some stuff online, and i was looking through my reference sheets for vb.net, but it seems in the code i have found, there is declare in methods. Below is an example i am talking about. The thing is, that i dont recognize it and believe that it is an earlier version of Visual Basic ( 6 or earlier) which used it. Should i just keep looking for different code?
Public Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal _
lpSubKey As String, phkResult As Long) As Long
Goal: Find information on how to implement a method which will check if a certain DSN exists, and then if it does, extract the information and use the information for connection purposes.
View 2 Replies
May 24, 2012
I have a text box where i am entering numbers of double datatype andon the Keytdown event of the textbox some checks take pace and in certain circumstances I want to be able to stop the user from entering other information until they enter the right information in the textbox (where it says right here) . now when I say exit sub the textbox somehow loses focus . but this is not how I want it to be I want the textbox to remain with the focus so the user can change the information . How can i go about this. And the other thing is why is my txtDestPayRate1.Focus() just befor the exit sub not working?
Private Sub txtDestPayRate1_KeyDown1(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles txtDestPayRate1.KeyDown
If e.KeyCode = Keys.Enter Then
[CODE]...
View 2 Replies
Dec 3, 2009
I am designing a backup/restore utility for work.atm i have been able to populate field for PC name, IP address, MAC address, number of printers installed on the PC but i am wondering is it possble to get all the printer information 'with the click of a button' to print all information like the prnmngr.vbs script down.I am able to run a batch file but i wanna get it to go from that app or even embed to batch file to the app and run it form there .
View 4 Replies
Aug 27, 2009
I am using VB2005 and trying to put an application together.What it needs to do is retrieve information from a binary file, possibly alter that information, and put it back into a new file.The file is a .wav file with data appened to the end. There is an additional section at the end of the .wav file which stores xml data.I have found that if I open this in a hex editor and make a 1:1 swap on any of the bytes that the application that the file is for can still read the XML.If I tried to add or remove characters from the XML then it would not read. I located a header byte and incremented it to resolve this.
This worked as an excellent bandage to do conversions where the data always needed to be changed to the same thing.What I have been asked to do is build logic that allows for different things to happen depending upon what data is contained within the file.The method that I am currently trying to impliment is:
Read through the file with a system.io.binaryreader
Searche for a bytestream that will signal data is coming
For example:
If System.IO.File.Exists("C: est estread.wav") Then
Dim findit() As Integer = New Integer() {&H3C, &H55, &H73, &H72, &H44, &H65, &H66, &H30, &H31, &H30}
Dim i As Integer[code].....
And then extract all the data till the end of element marker "<" It seemed like there should be a better way and I was looking for some insight. If I proceed with this method, I will have to read the file one time to gather the information and then a second time to write it all out with the header modified for length.This is my first experiene with working with binary files in this way.Also,I've been experiementing with building a string and slapping it back in at the end using the binarywriter.write(string) method.I noticed that it was putting in header characters before the string.These seem to change if I change the length of the string.At one point it was d0 07. Later it became e7 07. Does anyone know of a way to prevent this header from being inserted?
I tried a for each loop to grab all of the characters from the string, convert them to a byte array and deposit the byte array into the file, but the header remained the same. When I write the byte array generated from a system.io.binaryreader I do not get this header.
View 1 Replies
Oct 8, 2009
I have a fair bit of experience with VB.NET and C# (In this case I chose VB.NET, blame my laziness), but I do most of my professional work using PHP. I have no experience what so ever in using any database with VB.NET let alone MySQL.Just FYI, at the moment I am only trying to Query the database to gather the information required to activate. The Activation wizard and algorithm building (which is finished anyway), and everything else will come soon. I chose the MySQL database because I have experience with it, and it seems the best option for remote usage.The whole idea already works in PHP, I'm just have major issues moving it accross into VB.NET (Using the MySQL Connector.NET);I understand the basics, and all I need to know how to do is Count Rows and gain access to the other information in a row based on provoided information (in PHP, through mysql_ result)
So, here goes nothing, this is the Query code I am using in PHP to complete the job I want to do in VB.NET. [code] As you can see, I basically need to get the PHP code into VB.NET to fit into the 'btnQueryDB.Click' Command in VB.NET. By Equivalent, the Product ID in VB.NET will come from 'txtPID' and similar, Serial Number will come from txtSNUM. Once counted to be 1, the Activation Code and Status will be fed into 2 other text boxes in the form. (acCode, and acStatus).
View 3 Replies
Aug 21, 2009
Im building a OS and i need ideas for programs to put in it.
View 3 Replies
Oct 8, 2009
I've spent the best part of the week learning about TCP/IP and sockets but it's really draining my enthusiasm for my project. The basics are simple enough and the MSDN examples are fine and I can put together a simple server/client easily now, but once I start getting into asynchronous connections, threading and all the other stuff, I'm getting bogged down and frustrated. I've followed a dozen tutorials and examples now and they're all too confusing and half of them simply don't work.
I think what's most frustrating is that I really don't wish to become an expert on sockets or TCP, which seems to be the advice on most forum replies. I really want to be getting on with my project which has ground to a halt since I started looking into this. Yes, I know the world isn't always that simple.
So, what I'm looking for is a 3rd party app or some working code that will let me set up a server and multiple clients. All I really want them to be able to do is to send strings to each other, without blocking the application. Really, that's it, just the ability to pass strings back and forth between server and client, preferably in as simple a format as possible - e.g SendMessage(Client,String).
View 10 Replies
Jun 4, 2011
I am relatively new to Visual Basic so this may seem like a simple question. I was wondering I anybody knew how to add music to a visual basic program. Just one want a song to start playing upon the loading
View 8 Replies
Jul 10, 2010
I searched around the web for some tutorials and code examples, but couldn't find anything up to date. For example if i wanted to hit the "+" button on the windows calculator using an application i made what would be the best route to do so?
View 3 Replies
Jul 10, 2011
I am making a 2.5D rendering engine. I assume (with the knowledge that I've gotten from reading online) that doing the rendering work using the GPU will be faster than using the CPU.
Is this possible with .net? If so, is this a correct situation to utilize the GPU?
I'm also using VB.net, however all .net examples will apply.
View 2 Replies
Jun 24, 2010
how to get all programms autorun in vb.net?
C:Program FilesQuickTimeqttask.exe
C:Program FilesESETESET NOD32 Antivirusegui.exe
...
View 4 Replies
Aug 28, 2009
am new to programming just finishes reading book step by step by microsoft, it doesnt teach me how to link 2 programs together, at work we have program made by an outsider company in it spreadsheet with over 500,000+ names, each day we have to pick random names from the list and print them out to make files for them(i work at social security), picking the names is daunting task and the program they made is pretty slow when you scroll around, am assuming they saved all the number in string variables, so i want to make program to sort and let the user type the number they need to pick from the large spreadsheet, then my program would choose all those number from other program
View 1 Replies
Oct 10, 2011
i have made some apps text bomber a couple games i am a pretty good programmer but now i want to put it online and i am running in to some problems its says it dose not have ever thing and can install or it is not formatted right it works on my pc but not on others pc. i am trying to put it on my web site rangercomputers.webs.com you can try.
View 3 Replies
Jan 12, 2012
I currently have one VB 2010 express program that runs on my machine,It tracks machine run-times so I can't shut it down. The problem is now I have a new project to write and when I go to debug it, the currently running program pops up and I cannot debug the new project. Is there something I am doing wrong, or does the VB express environment prevent more than one instance of the runtimes from running?
View 2 Replies
Mar 24, 2010
There is a program I puchased from out side for Data Entry purpose, I have to enter Postal code to one field (Textbox), This program do not have the list of postal codes to select.I develop vb.net program to find postal code by giving the area name or part of it, I have to copy the generated postal code and paste it into the other programs text box or type as it is.I want to know a method to do this as follows.1.Press some key combination and activate my program (Eg. Ctrl+Alt+A)
View 1 Replies
Sep 24, 2010
I was wondering if someone could help. I have a little vb.net program, an exe, a pdf and a pps all burned on a DVD.My vb.net program will autorun and I have command buttons to open each of the other items from the DVD.I can open all items if I use the proper path but not all rom drives are the same. I have searched for this a lot and there are a lot of inguiries regarding the same but none of the solutions seem to work.I have a work around for D:\ and E:\ drives:
Try
Process.Start("D:\MyPresentation\BHW.pps")
Catch
Process.Start("E:\MyPresentation\BHW.pps")
End Try
I use this for each command button.I have tried Process.Start(Application.Startuppath & "\MyPresentation\BHW.pps") to no avail.
View 9 Replies
May 28, 2010
Is it possible to link two programs with each other. Like one that can control the other one. Because Ive got a cousin and he is living too far away. I created an application that should do his work on his computer, but the application needs to be controlled by someone,.. and he kinda cant do it. So I want to make a second application to control the application that is on his computer.
For example. If I click on button1. The application on his computer clicks on button1 too.
View 1 Replies
Apr 1, 2010
how i would run a program from my application that is in the same folder as my application. E.g C:\install.exe path would not work as each user would have to have this in there c:\ drive for it to run. Rather i want them to be able to click my exe from a network folder, which installs the programs which reside in the same folder.
Dim ExecutablePath As String
ExecutablePath = Path.Combine(Application.StartupPath, (c:\Install\Programs\setup.exe")
[Code].....
Basically i want to run my exe, once install is clicked the program finds the install directories in the same folder rather than C
View 3 Replies
Apr 9, 2010
i'm hoping to use a propertygrid in one of my programs.
1/ i'm having difficulty writing a (text) property that will open a multiline editor like the textbox text property in the vb properties window. how would i do that?
2/ i need a way to make either selected properties or preferably entire categories disabled or enabled at runtime.
3/ how can i turn off automatic sorting so my categories + the items they contain are displayed in the order they are in my class?
Imports System.ComponentModel
Imports System.Drawing.Design
Imports System.Text.RegularExpressions
[code]....
View 23 Replies
Aug 30, 2010
I am wondering how to use flash in my programs. I have both VB 2008 and 2010 express. Does any one have tips for how I should get started?
View 3 Replies
Oct 3, 2011
I'm using Windows 7 Pro (32bit) and have .NET 3.5 and 4 installed.I have written a .NET screensaver and have enabled it to run on the Windows logon screen.[code]BUT when I'm logged in the screensaver works.So it isn't a faulty installation of the .NET framework, or else it wouldn't work fullstop.
View 1 Replies
Dec 21, 2011
I'm working on a program, just to learn a bit more about programming. The program's function (if I manage to do it) will be to accept drag/drop files and create a link to them within the program itself. For example: I drag and drop the .exe to a game I have installed; the program then creates a shortcut within itself; the shortcut is displayed in the program with the name/icon; if I click the icon within the program, game launches.I've already manually coded something to this same effect, but it doesn't automatically add new shortcuts/buttons so I have to keep going back in and reprogramming another button every time I install a new game/program. I'd like to be able to just drag/drop and be ready to go. Any ideas on how I can get this function? I'm using Microsoft Visual Studio 2010.
View 9 Replies