I have a pretty simple question, I have a form with a text box and was hoping if it would be possible to get my program to run a command and to use value in the textbox in the command? and if possible then to pipe the output to a text file
ie if my text box has ip address 192.168.1.1 and I click on the run button I want to run the following command
when the user clicks on the add button another form launches, which enables the user to add student info such as name, address, course, start date and end date, this information is then written to class when the ok button on that form is clicked, and then displays the data on the initial form in data grid. the user can add multiple entries and they are all displayed on the intial form and a the data grid is populatedwhen any of the rows in the displayed grid is selected, and the update button is clicked then the same form launches as the previous one and but this time its in the update mode and pre populates the form with the inital values.
I have seen alot of references to WPF on the web while surfing Vs tutorials. I am using Visual Studios 2005 and was wondering if there is a way to use the WPF with 2005 version.
I've been browsing and I noticed that there are addons you can install for your visual studios environment. What would some of these be? What are some addons you guys use that would be beneficial to a student? I have heard that certain addons block out default components, which I would like to avoid.
when I try to install it, after it extracts all of the needed temp files, it throws this error, and stops there..."windows cannot find 'C:users*my username*appdatalocal empSIT19120.tmpsetup.exe' make sure you typed the name correctly and then try again."anyone know what the heck I need to do to get this fixed...nothing has changed, not even the file location of the installation files...nothing..also, I just found out, the temp file's name is changed each time I try to run the setup application...
hi allim trying to develope a website in vb.net using visual studios web develpoer 2008.i was wondering do any of ye know of any good tutorials on how to connect to a database. where i can update text boxes etc.
I can't seem to find the shape tool in the toolbox? When I used VB6 there was one, so why isn't there one now? I just want to set up rows of circles so I can change the color from inside instead of using images and saying
To send serial data from Arduino Mega 2560 to a VB.Net PGM, then the VB.NET pgm will read data then send to via FSUIPC (an Addin DLL) to ms flight simm 2004.OK that said here is the question: how can I write or phrase or construct the proper syntex needed to 1-limit the data sent,or in reading the data-limit the data read?I have enclosed the VB.NET code and the Arduino code. Please take a look. I am very new to both,but I try hard. all the code works but I get strange all most random data in VB. The FSUIPC end works OK, I can send to and receive from Ok.It's the VB pgm that gets the data wrong some of the time. say 8 out of 10 it is OK then button x will also turn on or off another check box then do what was aked. It seems that I am not clearing the receive buffer so I get a last chr sent before.I have tryed readline, readexisting,readbyte but I don't know how to phrase or construct any but the readline. I have tryed to flush the buffer in both codes but, well I am stuck. [code]
still working on my game, but a college classmate said that I need to use databases instead of text files...so I'm wanting to know, what databases does visual studios 2010 provide for you to use...what code line should I use to create/write to/read from a databasew, and how do/should I create a database table/refer to it??
I would love to provide code, but I'm both using my cell, and don't have access to my computer right now due to it not being accessale due to not having the ability to have it hooked up right now...got new floors and don't have it plugged in yet/set up again...
I'm trying to make a rs232 serial data logging program, that accepts a 12 bit hex RFID tagID from an RFID module. My end objective is to save this RFID tagID into a database and assigned to a person for a personnel management system.I had to use button3 to add the value of the variable 'msg' into textbox1 because I was getting the following error "Cross-thread operation not valid: Control 'TextBox1' accessed from a thread other than the thread it was created on". It is a temporary workaround.When I do press button3, I get the incomplete hex number, instead of "4C00A2C82A0C", I get "A2C82A0C", and sometimes I get random digits like 1,A,C etc etc.
Public Sub OpenPort() Try If SerialPort1.IsOpen Then SerialPort1.Close()
I am using sub main and no application framework. This gets rid of the single instance option for the program. I want to be able to have my app handle mailto but it needs to be single instance.
I have: Public Sub Main(ByVal cmdArgs() As String) Dim tempProcess As Process
I have a console application and I have figured out how to type in the command window with Console.WriteLine() but i need to run a command (ex. net user) then wait for a response and type another command, for some reason I cant figure out how to type the command and automatically press enter without closing the window. I tried Console.WriteLine("net user") but all it does is write "net user" in the command window so I used My.Computer.Keyboard.SendKeys("{ENTER}", True) after Console.Writeline and it just wrote "net user" then exited the window. Is there any way to run a command through a console application? if so how would i do this?
I understand running the command shell as a process, How would i run multiple arguments in that one process? For example, here's a process to do a netstat.[code]How would I do that with the following commands? I'd like to click one button and have these all run one after the other.[code]
netsh winsock reset netsh winsock reset catalog netsh int ip reset netsh firewall reset
used to reset winsock etc etc if having internet problems or after virus infection etc Any way to do this from a button within a VB app? either using these commands or the VB equivalent (if any) - and preferably so I can show result of the commands Darren Rose
I'm having trouble opening and running DOS commands through VB Express.I'm trying to have VB open a command console and enter path to a batch file. So far I have not been able to get VB to open a console and enter any text.[URL} Here is the code I am using right now (without success)
Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal longPath As String, ByVal shortPath As String, ByVal shortBufferSize As Int32) As Int32 Private Sub des_date_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles des_date.Click
i have been looking everywhere for the method used when you click the [X] Button so like that i can run some commands on form exit. I found Form_Unload method replacing Form with the name of my form and no luck. I'm sure there has been some talk on the subject but searching forum shows nothing that seems to work.
I'm trying to call several columms from 2 different tabels... But I don't kow how it's not working and every time i debug it instead of loading the context it generates this error: "ERROR: parser:parse at or near "g" at character 119".[code]My doubt is why i can load "pqSqlSelectCommand2" and not "pqSqlSelectCommand1"??
I'm using VirtualBox to attach a usb device. This usb device only works under 32 bit. My host os is Windows 7 64 bit, my Guest Windows 7 32 bit. I found code to write to the command prompt and read it back out, this has been tested and works very well. But now after I have read and want to write again the command prompt just freezes. I have no idea why it does that... I also tried the command without VB and the driver attach fine.
We have config files that are created in the Program FilesCommon folder at installationWhen debugging code, I want to look at the config files in the development folder instead.hat is the best way to determine if my code is running from within Visual Studio or from the installed appliation?
I create a window application using visual studio vb.net which including some textboxes and a button. But my boss wants me to create an executable file which can be run using other tools not just visual studio.
I followed Ziannb article on involking powershell from visual basic. It works great but it doesnt allow me to run scripts with [URL]
- how can i run powershell scripts with arguments from VB
- how can i run one powershell command line at a time from VB. When i use below two command, it pipes the first command to the second one..instead of running them individually :
I'm running Visual Studio 2010 with the Dot Net 4.0 Framework. I've been running around everywhere looking for the answer and haven't found anything. All I want to do is be able to access the Tags and Comments of an image file through my code. I've tried a bunch of different things but to no avail.
Dim dra As IO.FileInfo My.Settings.Properties.ToString()'didn't work dra.Attributes.ToString()'didn't work IO.File.GetAttributes(fullPathFile)'didn't work
[code].....
And a bunch of others that I don't feel like undoing to.
I get this error message when I try to run an applocation that I upgrade from VB6 to Visual Studio saying :
System.IO.FileNotFoundException: File or assembly name Microsoft.VisualBasic.Compatibility, or one of its dependencies, was not found.File name: "Microsoft.VisualBasic.Compatibility"
I am new to Visual Basic and i started to write a console application. I it working fine by now, but I tried to execute a command like shutdown -s I tried that by writing
console.writeline("shutdown -s")
but all it dows it displays the text and does not shutdown the computer. How do I code that correctly???
i am trying to run a .vbs script that is not in the same directory as the program is in
Dim CustomInstalaionPath As String = "C:UsersuserDesktopTest" Process.Start(CustomInstalationPath + "/run.vbs") the program is running in the normal directory for de-bugging C:UsersuserDocumentsVisual Studio 2010Projects...
i have tried loads of ways but nothing is successfully running it
In Visual Studio 2010 express (using vb.net) I've somehow set two forms to use the same class.
Basicly I have two designer files with 1 implementation each. For some reason both designer files are calling the same implementation file, and I can't find any settings to correct the problem.
I hope someone can help with a very frustrating problem I'm trying to solve in one of our Windows Forms apps written in Visual Basic 2005 and running on Windows XP SP3.
The app is essentially quite simple in concept but there is lots of code and data, however, the problem does show itself consistently. The app does the following:
1) Startup
2) Choose Access database to load data from
3) Load the data into memory as a series of collections of objects
4) Do lots of number crunching
5) Fails when entering a particular sub for the first time with an Access Violation Exception
The most difficult aspect of this problem is it only shows itself when compiled in Release mode. It doesn't show itself when running in Debug mode either within Visual Studio or running outside Visual Studio. I assume this is due to the extra 'padding' in a debug exe which is masking the effect of bad code causing the error. The problem is made worse in that the 'standard' build target machine where the problem shows itself only has a copy of Visual Basic 2005 Express so as a result I have been debugging the app at runtime using WinDbg which is tricky but sort of fun (for a nerd!).
I have read / researched extensively on the internet for solutions and as a result have tried the following but all without success:
a) checked for any badly declared DLLs (p/invoke) but the app doesn't use a single one.
b) checked for any COM references / interop. There were two references which were rarely used so I removed them and commented out the code that referenced them but the exception was still raised.
c) I've tried adding my own trace code in the problem area and the line prior to calling the Sub runs but the first line of the Sub never executes due to the Access Violation exception being raised.
d) I have used WinDbg to set breakpoints around the problem area at runtime which has confirmed 'c' above that the sub never executes.
e) I have used WinDbg to double check the addresses of the parameters passed into the Sub are correct as they seem to correctly point to the same address as the local / module level variable that was passed in.
f) I have checked all of the extensive data loading is not eg leaving DataReader objects open etc.
g) I have tried compiling the code in VS 2008 on a different machine targeting the 2.0 framework but the bug still showed itself.