Take A Half Done Web Application That Has Been Started Using .NET And Continue Using C#?
Jun 16, 2010
web app that has been created using VB.NET, nothing major, just a normal site. His original programmer couldn't continue so he wants me to finish it. Problem is I don't program using VB.NET nor have I any intention of learning it for a project this small. Usually I would run from something like this but I need the cash.Should I take the project and continue it using C# or just leave it. Has anyone had a similar experience and how did it turn out.
View 10 Replies
ADVERTISEMENT
May 23, 2012
I have 2 Richtextboxws on the form. I need for each textbox to take up half the form width and full height. also, I need those textboxes to keep the above mentioned proportions even when then the form size is changed on the screen.
View 1 Replies
Apr 9, 2011
Let's say 10 desktop shortcuts, all with different names/icons, point to and can start the same exe application from the same directory. Is there any means for the application to know the distinct name of the shortcut that was doubled_clicked. Also is there any means for a running application to know if it was started by command line, by a double_click on the exe, by a double_click on a shortcut that points to it, or by another process' call?
View 4 Replies
Feb 28, 2010
how to copy the left half of an image, in my case its the let half of a .jpg of a whale, and "paste" it over the right half of the image. Any help would be great, here is some code that might have something to do with it, i would prefer that i could get an answer that accomplishes this by modifying this code but if not that's cool. picture should go from looking like [] to [[
Dim mb, rb As Bitmap
Dim x, y As Integer
Dim r, g, b As Integer
[code]....
View 3 Replies
Nov 8, 2011
What my program does is load a file (password list), then progressively reads each line of text in the file whilst writing each line to a new file. After X amount of lines have been written, it should start writing the lines of text to a new document until the initial password list has been split into X amount of password lists. The problem I have is that after hours of tweaking, all I can get it to do is write either blank ocuments, or write all of the lines to only one file. I really need it to be able to split into multiple files, preferably at runtime rather than loading a whole text document into the program in a textbox or array then writing it to new files.Below is the source:
Imports System
Imports System.Windows.Forms
Imports System.IO
[code].....
View 11 Replies
Dec 4, 2009
I'm having troubles finding a way to retrieve informations about which program started my own application. The situation is this: I have a VB .net application which launch another VB .net application (both made with the .net framework 2.0) using process.start(), the second application need to know which software or process started it, if it was started by another software and not directly by the user, and I can't access to the source code of the first application so there's no way I can send a specific command line to the second application.
View 2 Replies
Sep 14, 2007
There is another closed post about this problem but it didn't solve the problem for me...Error occurs trying to run a ClickOnce app. In my case the app previously works and just stopped working with the error"the application cannot be started please contact the vendor"Add/Remove didn't remove the app and Re-installing didn't work either.To solve the problem:-Create a new user with Admin rightsLog in as new userGoto directory C:Documents and SettingsoriginaluserLocal SettingsApps2.0Delete any 'strange' folders, i.e. 9JN9HTAJ.Q0WLog offLogin as original userRe-installThis worked for me.
View 4 Replies
Jan 29, 2010
So I need everything from declarations of variable to the actual code.When you answer it in high level that destroys the chance of others answering the same.I would like to get the drive letter of where my application is started in VB2008.
View 2 Replies
Apr 13, 2012
I have this For Next Loop with a Delay that runs but it stops running till I hit OK on the MsgBox. what is the best way to do a task x times with x delay but not wait for MsgBox. [code]...
View 9 Replies
May 22, 2009
This is my first post..and it is a question. Hope some day I will be able to provide also answers... I started a third-party external application using Process.Start function. Does anybody know how I can code a click of a certain button in that application (the name of which I know)?
View 2 Replies
May 18, 2011
I have been investigating this for several hours. I have found numerous links, including several here on SO which claim to show how to find the startup path, or the application directory. All of the solutions suggested return a location:
C:Users<my user name>AppDataLocalApps2.0XO8PWL8B.5HH1GZX7M0H.N1J<temp location>
When my WPF xbap is run from a remote location. I need to determine the actual folder of the remote location. I am deploying this to an internal server ABCDEF, so in order to run this application I am entering:
\ABCDEFmyApp.xbap
I want to programmatically determine the server and folder. My reason for this is that each time you publish a WPF with "automatically increment revision with each publish" turned on. The folder where additional DLL's are located changes, additional programs that this program depends on. I want to be able to dynamically determine the correct folder to look at.
I have tried:
'Dim path As String = Reflection.Assembly.GetEntryAssembly().Location
'Dim Path As String = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location)
'System.IO.Path.GetDirectoryName(System.Reflection. Assembly.GetExecutingAssembly.Location)
'application.StartupPath
All of which did not work.These links suggested many of the methods I have tried:
Link1
Link2
Link3
Link4
Link5
View 1 Replies
Jul 13, 2006
I have an application that is distributed with click-once. One of my users already makes use of it for quite some time without any problems. Only recently, he is not able to launch the application anymore. During the check that is made to see if there is a new version of the software, he gets the message: "Application cannot be started, contact vendor" If I copy my application manually, he is able to launch it without any problem.I included the detailled log below.
PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200)
[code]....
View 1 Replies
Sep 4, 2009
how to use Visual Basic to pass arguments to an application after said application was started. Example, "myapp.exe -d" enables debug mode, I want to be able to start myapp.exe then have a checkbox labeled "Debug mode" in Visual Basic. Upon "Debug Mode" being checked, it passes the argument -d to myapp.exe. Upon it being unchecked, it withdraws that argument from myapp.exe.
View 4 Replies
Jun 5, 2011
I was thinking I could make a console application that would have a FileSystemWatcher - watching for a .BAT file being created in a folder - and when it sees that file it does a PROCESS.START on it.
View 3 Replies
Oct 21, 2011
Okay, so a program I've been working isn't running correctly. The application freezes and doesn't continue onto the next command (SetCursorPos(999, 999))
Here's my code:
[Code]...
View 9 Replies
Apr 1, 2012
I was thinking I could make a console application that would have a FileSystemWatcher - watching for a .BAT file being created in a folder - and when it sees that file it does a PROCESS.START on it. But I'm seeing that a console app doesn't continue running.
Imports System.IO
Module awcWatcher
Sub Main()
Dim fsw As New FileSystemWatcher("D:ACS DesktopAWCeportingstaging")
fsw.NotifyFilter = NotifyFilters.FileName Or NotifyFilters.LastWrite
[Code] .....
How would I go about making this wait and then wait again and again and again?
View 9 Replies
Jul 26, 2010
Basically i am trying to make a form which is in essence a switchboard. Just some buttons to launch some executables. Here is my
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[code].....
View 17 Replies
Aug 19, 2010
When running a console application, the dos window disappears without asking for a "press any key to continue", why? What setting in 2010 is not set correctly?
View 3 Replies
Nov 5, 2008
I have a VB application and I want to allow the user to choose an option between "OK" and "Cancel" buttons when he want to exit the VB application. So far, I cannot figure how to allow the user to click "Cancel" to allow the VB application to continue running. [code] So how do I allow user to click "cancel" button to prevent from exiting?
View 3 Replies
Feb 15, 2011
I'm writing a command-line application in .Net. The app itself is fairly simple, but it has to connect synchronously to a web-service, which in turn has to connect to a Oracle database, and those pieces are fond of taking their time.
Is there a straightforward way (without dividing my app exe in two) to continue executing but nonetheless yield execution to the command prompt?
It's Windows, so no "&". Also, I cannot use cmd.exe's "start" cmdlet.
View 4 Replies
Jul 28, 2010
I have a solution with two projects. The main project connects to the second project via a reference, and the reference path is local to my machine. It looks like it references the .exe file.So when I publish the main project (ClickOnce), i get the following error:
Application validation did not succeed. Unable to continue.In the log file, under Error Details, it says
System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
- Reference in the manifest does not match the identity of the download assembly Project2.exe
- Source: System.Deployment
How can I include this second project? Should I publish it, then reference the published files? What do i reference? The .application file?Is there a way to just include this second project, so when I do publish the main project, the second one just goes along with it?
View 3 Replies
Jan 25, 2010
I publish my project normally to a folder in my computer. When I run the setup the following message appears:
"application validation did not succeed. unable to continue"
I am using a SQL Server database in my project, I don't know if it has anything to do with that..
View 1 Replies
Feb 28, 2010
how to mirror the top half of an image of the bottom half, i already mirrored the left half of an image over the right half, as shown in the 2nd block, but i need to modify the 3rd block correctly to get the top half to mirror over the bottom half, how do i do this, - visual basic express 2008
Dim mb, rb, cb, db As Bitmap
mb = Bitmap.FromFile(tbFileName.Text)
cb = Bitmap.FromFile(tbFileName.Text)[code].....
View 2 Replies
Jan 9, 2012
I am having trouble getting the path of my application's executable file at runtime. This application is being started by another executable and whenever I try to use Application.ExecutablePath I get the path to that application instead of mine.
[code]...
Neither of these give me the path of the program in which those two lines are exectured, they only tell what program started this program.
View 3 Replies
Dec 4, 2009
Welp, I got half way there, I can convert and add 6 hours to the text in the textbox for CET_Hours.Text. The trouble is, what about when the CET part of the program is supposed to say that it's the next day...?
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If DateAndTime.Now.Hour > 11 Then[code]....
Like I said up top, it was easy to figure out how to add an additional 6 to the text in the textbox for CET_Hr.Text, and even display if it's AM or PM, ... So okay, that's that, now when it goes over 12PM and goes into Am, meaning, when I'm adding 6 to the text, If I didn't correct it, it would say... Say for example if it were 11PM now, EST, and I added 6, it would read, CET_ Hr.Text = 16 right, ... So how do I tell the program or the text in the textbox, that it't the next day... or better yet, when we get to the end of this month, 12.31.2009, and it becomes 01.01.2010 in CET, how do I do that, because I'm just so freakin perplexed about that it's crazy... Should I just give up, and just have a clock that tells me that it's 6 more hours then the bottom text boxes...?
View 4 Replies
Nov 15, 2011
I have a textfile with timestamps and the amount of minutes my machine has run.
To keep the size of the file in check, I would like to delete the first half of the text file, once the textfile exceeds 1 MB... I have a check in place to determine the file size.
What is the best way to go about deleting the first half of my textfile log?
Do you recommend storing the second half in a temp file, and transfering it to the original log?
Is there a simple way to remove the first few lines of a textfile?
View 1 Replies
Oct 18, 2011
I have two pictureboxes with images in them inside a panel. The two pictureboxes have the background color transparent. One half of one of the picturebox is over the other and that half gets the panel backgroundcolor. How can I make the pictureboxes to not get that behavior.
View 3 Replies
Sep 21, 2011
I have a scroll bar that I need to have increase / decrease by half a percentage and then display it in a text box.Min is 5Max is 15rt Display Value is 10So far all I have been able to come up with is this, but it only increases / decreases the number by 1% instead of .5%.Private Sub RateHScrollBar_Scroll(sender As System.Object, e As ystem.Windows.Forms.ScrollEventArgs) Handles RateHScrollBar.Scroll
View 7 Replies
Aug 8, 2003
I need to display the first c.200 characters of a longer string, for the homepage of a news website. I am using VB.NET. Obviously, cutting exactly 200 chars quite often cuts a word in half, e.g.: "The last five years have seen a radical increase in the volume and complexity of company legislation. The Bahamas has established a Stock Exchange, passed legislation aimed at regu" I need a function that will produce: "The last five years have seen a radical increase in the volume and complexity of company legislation. The Bahamas has established a Stock Exchange, passed legislation aimed at" I can then add "... [More]" or whatever to the end of this string and voila! Is there any way of using regular expressions (regex), substr or something similar to produce this output?
View 2 Replies
Aug 25, 2011
How do I achieve the below rounding?
0.012608376 > 0.015
2.1 > 2.5
2.4 > 2.5
[code].....
View 3 Replies