VS 2008 With Releasing The Program?
Jul 15, 2009
I've been trying to send a test-version of my program to the person who has instructed me to create it.Now, the problem is, every method I try seems to fail, either by crashing on start-up or saying it requires Visual Studio to be installed.I've tried giving him the '.exe' from Debug, Release and it just crashed the moment you start it up. (And Windows automatically starts looking for a solution but of course finds none.)
And if I use the "Publish" function and put it in an install, that's when it says it requires Visual Studio to be installed.Is it so difficult to distribute something made in Visual Studio? :< I'm probably overlooking the obvious here..
View 5 Replies
ADVERTISEMENT
Dec 22, 2009
I have a program written in VB.NET which stops a service that uses file x, modifies x, and restarts the service.
I have modified my code for testing so that it just reads in the file as a string and immediately writes it back out.
Shell("net stop " & SERVICE_NAME, , True)
Dim myReader As System.IO.StreamReader
myReader = My.Computer.FileSystem.OpenTextFileReader(x)
fileString = myReader.ReadToEnd()
[Code]....
The stopping of the service is no problem, and modifying the file is no problem, but when the service starts it stops immediately because, as best I can guess, the file is in use. Even when I try to start the service manually, it stops immediately. However, I found that I can open file x, click save without modifying anything, close the file, and start the service and everything works correctly.
If I comment out the writing part, everything works fine.
Also, the file I'm modifying has a .conf file extension. I don't know if this is relevant.
View 4 Replies
Jun 1, 2010
Trying to use a str = Replace, but having issue. Seems that after it does the first string replace it will not let go of the file or the Dim or something???
'Make first file
Private Sub MakePwdFile()
Dim fso, inputFile, outputFile
Dim str As String
fso = CreateObject("Scripting.FileSystemObject")
'1 means for reading
[Code] .....
View 10 Replies
Jun 20, 2011
I made a program that depends on mysql.data.dll, do I have to distribute the DLL along with my .exe file? or is there a way to make it to where I dont need to include it so the user only needs the .exe
View 5 Replies
Jan 26, 2010
im currently developing a program, and i have run into some trouble: you see i have 24 pictures shown in 6 pictureforms (timer) the problem is i wanna delete the pictures in an undo function (after taking them from a webcam), but the system tells me that the pictures is currently in use. i have tried disposing them and everything but i cant seem to get them released and then deleted?
View 2 Replies
Dec 11, 2009
Im using a keyboard hook in an application to capture 'hotkeys' pressed.The idéa is that if the user of the computer presses ctrl + alt + 1 then Sendkeys.Send("string of text") should execute and the string is sent to the focused window.
However - the user still is physically pressing ctrl + alt which disturbs the string being sent in sendkeys.
Is there a way to programatically release/disable ctrl and alt keys in the code just before sendkeys, and enable it again after sendkeys.Or - is there a better way of sending the string of text without having to disturb the keyboard?
View 2 Replies
Jan 31, 2012
The complexity of the newer express editions. when i debug it seems to output to another filder not debug. but now i build a final release. I run the program and want to find it as though a new user woudl find it. i.e with all original settings etc...but when i run it it has all the prvious settings. how do i know im not releasing the software on the net with my settigns?
View 2 Replies
Sep 23, 2011
Well, I've searched numerous threads and I'm stumped. Though my VB.net experience is newb status.I'm interacting with Excel Workbooks/worksheets with:
Imports Excel = Microsoft.Office.Interop.Excel
Now I'm fairly adept with getting data from the excel sheet with no problem.But each and every time I quit my widows form, or execute a new command_button click to repeat an operation, in the task manager, excel.exe then opens up a new instance.Releasing the the Excel COM object seems to offer a bit of head scratching.I realize that you can get your form to activate and retrieve data from whatever spreadsheet has been directed to be opened, but I can't seem to put it back and close it correctly.I have read about the Marshal. release object methods and garbage collection with no luck so far.Do I need to import another liberary that completes this operation? I would asssume this would be taken care of as apart of the:
Imports Excel = Microsoft.Office.Interop.Excel
close excel instances opened up by my windows form? Somethig like this:
Dim xlApp As Excel.Application
Dim xlWorkBook As Excel.Workbook
Dim xlWorkSheet As Excel.Worksheet
[code]....
(so that it is no longer looked at as "read only" when the spread sheet is opened up from directly from excel)As A minor work around, I've teminated it from the task Bar with proc.kill() but this does not help because my ultimate goal is to just simply realease the excel sheet when my windows form is finished getting its data.This following code does not seem to work.
releaseObject(xlApp)
releaseObject(xlWorkBook)
releaseObject(xlWorkSheet)
View 1 Replies
Mar 11, 2009
I wrote an application in my free time that helps people create certain files when they want to create a custom level for some game. The application of course is completely free, I made it for fun and to help the community. That community has now requested that I also release the source code of my application, in case I stop being interested and they ever want to fix some bugs (this has happened loads of times in the past in the same community, there are loads of good applications out there with some small annoying bugs where the creator has gone missing and the source is unavailable).
Therefore I would like to release my full source code, but not before consulting here how exactly I should do it..I could of course just zip up the entire Project folder and upload it, but I feel that is probably not the best way to go about it..
[Code]...
View 4 Replies
Aug 12, 2011
Im opening an excel document with vb.net and i dont want vb.net to close it but to release excel so that when the user closes excel it does not remain as a running process... which it currently is doing here is the code i was using
[Code]....
View 5 Replies
Oct 31, 2010
I need to capture when a user keydowns the ALT key and then by code, releasing the key.
I have sent keys before with the help of keybd_event but I need to know if there is another (easier) way of releasing a key by code...
View 4 Replies
Apr 9, 2011
I have a problem with releasing locks on a thread. [Code] If Me.IsStarted Then 'checks if my service is started and ready of service requests 'code here to enqueue my job and objRxResult with the service so it can populate it with the result before Pulsing back 'the service has its own thread that it dequeues jobs off of and processes them on it own time 'during this key enqueue phase we block attempts to stop the service, thus the _objIsStarted lock [Code].
View 4 Replies
May 28, 2010
I have some questions about mysql database; I have set up columns and rows on mysql database and I would like to make mysql connection for a test before I would release the project in the near future, but my doubts is that how would I be able to keep mysql admin username and password details secure in the project without anyone could find out??Secondly, I don't want anyone to crack my project to get the details, which it will put me and other clients at risks.
View 22 Replies
Apr 10, 2010
I would like to know if there is some simple code to release a child control from it's parent control, without having to name the parent control. In pseudocode, I'm looking for something like this:
[Code]...
View 2 Replies
Apr 25, 2009
Is there a way i can execute a CLI program and have it output or return what the CLI program sais, such as ping etc.
View 3 Replies
Jun 15, 2009
how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.
View 20 Replies
Apr 3, 2010
I want to make a program that searches for a RGB color and clicks on it, WITHIN the program.
View 2 Replies
May 26, 2009
I have a program in vb express 2008 which I would like to publish in a little more professional manner than provided in the standard vb express package. I would at least like to include a "Terms of Use" document the user must agree to before installing the program. I have dovnloaded and installed web developer, c# and vs 2008. Do any of these include a professional installer? If not are there any free installer packages available? I am 72 and live on a limited budget so I cannot aford an expensive package for one program.
View 3 Replies
Mar 29, 2010
I'm making a program that will patch a program with a new Exe. Its all working with this code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles patch.Click
patching = True
[CODE]..........
I get an "Could not find file 'System.Byte[]'." error.
View 2 Replies
Jan 5, 2010
I am trying to launch a program using System.Diagnostics.Process.Start("C:Program FilesFrets on FireFretsOnFire.exe") but the program always fails - the program generates an error log - so its obviously trying to start - ive included the log text but i doubt it will be useful.
Traceback (most recent call last):
File "FretsOnFire.py", line 45, in <module>
File "GameEngine.pyo", line 23, in <module>
Yet it runs fine when double clicked? why i can launch it from explorer but not from my code
View 3 Replies
Apr 5, 2009
Im trying to see if you can make a GUI that can edit the Source code of your progam and then building it as an .exe..Say you have a login program and you wanted to change the password, All you do is go to the "Edit My Account" and go to password and then enter your old password and in the next textbox your new password.Then you would click save and it will ask for a directory and save it as .exe. And when you would start your newly compiled program you can used the program you just entered in.
View 4 Replies
Dec 31, 2009
Lets say I have a program that has a textbox and a button. I want the button to create another program that will show a messagebox, inside the messagebox will be the textbox from the 1st program. How would I do this?
View 7 Replies
Aug 9, 2009
Where in Visual Basic 2008 Express Edition Software program do you specify a specific installation directory for a program?
c:Program Filesfinished program
I want to publish my program to try it out on another system and I want to ensure its installed in the directory structure I want.
View 3 Replies
Nov 25, 2011
How to convert this vb 6 codes to vb 2008 or 2010, this program is IO 18F2550, please find attached file.
View 1 Replies
May 5, 2012
is it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 Replies
Jan 30, 2011
my program can't debug, what is the error?
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim Interest As Integer
Dim Amount As Integer
[code]....
View 5 Replies
Jul 28, 2009
Using a C dll in VS2008 vb.net
View 16 Replies
May 25, 2010
im trying to make a gmail program and its giving me error why ? this is my script
[Code]...
View 35 Replies
Dec 19, 2009
I have a program that takes Command-Line Arguments and loads an appropriate form based on the arguments:
vb.net
Partial Friend Class MyApplication
Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
If e.CommandLine.Count > 0 Then
Dim x As String = e.CommandLine(0)
[Code]...
VB.net doesn't agree often with Relative File Paths. I made this thread for others opinions on why VB.net does this, and if there's a different solution rather than using Application.StartupPath(), because this is not the first time it's plagued me, and I go every time it happens.
View 5 Replies
Feb 17, 2010
i am very new to VB i do not know a lot about it. Ok my problem is i have made a simple rot13 program in c# which took me a while but it works, and now i need to make a rot 13 program in VB, i have started and i have made it work until i get to the letter z, if someone types this in then they get the wrong character back, i do remember this in c# i had to add extra value to something, but this was a while ago, and i cant seem to fix it in VB,
[Code]...
View 5 Replies