Make Sure A File Is Where It Is Supposed To Be?
Jan 17, 2012I am making a program, but I need to make sure a file is at a certain place on a computer other then my own. How do I do this?
View 5 RepliesI am making a program, but I need to make sure a file is at a certain place on a computer other then my own. How do I do this?
View 5 RepliesI am writing a program in VB.net (vs 2008) that requires that only one instance of the executable be running at a time. Naturally I went for the simple solution by selecting the "Make single instance application" checkbox in the Project properties. Unfortunately, this option does not seem to work across multiple users that are logged into a single XP machine, thereby causing the same issues for my program as if I were able to run multiple instances on one single user. Granted this is a corner case, that someone would switch users while my program is running, but I'd like to understand the limitations. So my question is whether the "Make single instance application" property is supposed to work across multiple users? or is it limited to only one-instance-per-user.
Here are the steps the recreate the issue (prereqs: computer with XP pro installed, 2 user accounts (not on a Windows Domain), and a dummy "single instance" program created using the property mentioned above):
1) Log in with user1, start up the single instance program
2) Switch to user2 (StartMenu -> LogOff -> Switch User)
3) Start up the single instance program using user2
*After step 3, the program launches without complaint even though another instance is running on user1. Is this a glitch? or by design?
I have thios code that will load a php file (text file) into a sting via streamreader then its supposed to find and replace a portion of the text and write the changes back out to the file via streamwriter. I put my code together and after running it look at the file and it's unchanged. After looking closer it appears the problem is the find & replace operation I am doing on the string. Here is my code:
[Code]...
So, I'm making my program which let's people auto-update other programs. Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim path As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "UpdateFiles"
Label1.Text = "Finding updates..."'To do: Find all files in the folder, and let em update one at a time. Write names of Plugins to label2.text ProgressBar1.Maximum = 10000
[Code]...
I have a VB.Net project that I haven't worked on in awhile. I got into this morning and started to run it. I got some errors so I decided to step thru the code. I enter the Page_Load event of a Form module and execute a function call and it takes me to a "End Function" statement. Totally bypasses the function that was called. I continued to step thru it and it just took me randomly thru code. No order whatsoever. I believe I've had this happen before but don't recall how I fixed it.
View 5 RepliesI have a method where I am making a trial period. When the date has exceded its trialperiod the program will not close.
The code looks like this:
Public Sub DemoRestrict()
If My.Settings.dteStartDate = Nothing Then
My.Settings.dteStartDate = Now
[CODE]...
Why does the form not close? is just runs to the next method in the load sequence
I'm having lots of trouble understanding how repeaters are supposed to work and how I'm supposed to use them. Basically, I have a label, a set of image buttons, and a div within a repeater. When you click on the button, I want to populate the div that was created with these repeaters (so a different div for each iteration of the repeater).[code]I can't get the repeater to iterate. It's only firing off once and then stops. I can't get a label with the repeater data source's Subject (a field in my database) to appear.
View 1 RepliesUsing 2 objects of the same type, I'm trying to implement < and >, but I can't seem to find any authoritative source on what to do with either or both being Nothing. In other words what the accepted practice or MSDN suggestions are.[code]Accessors is my canonical method for centralizing an enumeration of the properties (all are decimal)return false for both if either is Nothing?I found a comment, but can't seem to verify or validate it that A null object is always less than a non-null object..
View 2 RepliesI was playing around with designing a custom interface for a test application and I am using a custom image for a close button. I am using the FlatStyle properties to define it's look'n'feel. I've set the border to 0 but when the application loses focus, the border of the button shows up.I have tried to force the property to go 0 again when the application's "LostFocus" event is captured but doesn't work.I am also using a "rollover" method using MouseHover and MouseLeave events to change the image of the button.Using Visual Basic 2008 Express Edition.
View 1 RepliesMy code seems to behave a way I don't understand. Sometimes it returns null as expected and sometimes it returns a value when its supposed to be null. How can someone explain this? Here is the code that selects from access and displays the result in a messagebox:
cmd5.Connection = cnn
cmd5.CommandText = "SELECT receipt_num " & _
"FROM brought_coffee, farmer where crop_year= " & yr & " and " & _
"brought_date=#" & dtt & "# and farmer_centre='" & ctr & _
[code]....
I am trying to learn how to use the modulus operator.this excersise is a change calculator and is supposed to calculate the number of dollars , qtrs, dimes, nickels and pennies from the change that is calculated.
in the form if i put a value in for owed = 30.00 and paid 34.25 my dollars returned = 4 and that is correct but the number of qtrs = 0 and should be 1. I am not sure how to correctly use this - any assistance you can provide is great - this is purely educational
Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
Dim owed As Decimal
Dim paid As Decimal
Dim change As Decimal
[Code]...
creating an internet filter that is supposed to interface with web browsers, eg. Explorer, Chrome (not a web browser I made) and then block specific websites on the browser. I'm kind of lost on where I need to start with the interface. Could someone please just point me in the direction I need to go for 1) the program to work with any browser 2) For blocking specific sites.
View 2 RepliesMy question is, the SelectedItem property of the Combobox is supposed to return a integer value, is it not? Because I am getting back integers, sometimes, then the next time through I get back a String. Has anyone else had a problem like this with the Combobox?
View 4 RepliesHTML
Public Partial Class WebForm1
Inherits System.Web.UI.Page
Public num1 As Double[code]...
This is a part of a calculator code. When you press the button "BtnAdd" the text in TxtRes is held by the global variable "num1" and the operation number (whether add or subtract) by "oper". My problem is : OUTPUT 1: prints num1 = 25 (for example)While OUTPUT 2: prints num1=0
Why is this happening ? Isn't the value of num1 supposed to be equal everywhere in the form at a given moment ?
I am writing a GUI application to run on a touchscreen device using VB.NET and WPF--it must be full screen at all times, like a kiosk app; the window must not be able to resize or move in any way. The window contains a ListBox that users can currently scroll through by dragging across the list. The problem I'm seeing is that when the user drags across the list, the whole window moves a bit, exposing the desktop underneath, then springs back into place once the user stops dragging. I have not been able to figure out how to keep the window stationary while still allowing users to drag across the ListBox to view all list items. Here is a somewhat simplified version of my code:
[Code]...
heres the script basically it sets (supposed to) Local area connection ipv4 static ip address to 10.XX.XX.2 but it dosent work it works fine if you run cmd as addy and put the script in netsh interface ip set address "Local Area Connection" static 10.XX.XX.2
Dim txtlen As Integer = Len(TextBox2.Text)
Dim IPAddy As String = ""
Dim asciiSplit(4) As Char
[CODE]...
can we make code which can make copying a file in a particular drive invalid/access denied?
View 3 RepliesI wish to add refrence with a dll file.But it fail,it show message 'Make sure dll file is valid assembly or COM component '.I also try use regsvr32 to register it,but also fail.
View 7 Repliesi want make a program like a login tool game..in login tool program..i put a button and WebBrowser page..then i want make a my button and WebBrowser read link or target in ini file or inf file...how to make it?
View 2 RepliesHow can i make a button that download a file using http show a progress bar about the downloading file state?
View 10 RepliesI am making trying to make a program that can read the file information directly from a specified file, but I am having a lot of difficulty reading things like file comments.An example of this can be found in windows XP when you alternate / right click on any file and click on properties. You'll get a lot of extra information.Now I have a few questions about this.
1.Can this information even be read in VB.NET
2.If so how
3.If not do I need to create some kind of data file to store the file information
Here is what I did so far
[Code]...
What im trying to make is too make a file much easyer to understand
--
Normal ull have to go in and fine all these stuff but im tryn make it so that if u press a button it make it true to false
--
example
(THIS HAS NOTHING TO DO WITH VB2008)
me.maxgametime = 600;
NTConfig_LifeChicken = 30;
NTConfig_ManaChicken = -1;
NTConfig_UseMerc = true;
NTConfig_ResetWeapon = true;
( and i want it like this)
me.maxgametime = Numberic1.value;
NTConfig_LifeChicken = Numberic2.value;
NTConfig_ManaChicken = Numberic3.value;
NTConfig_UseMerc = Clicked Label1;
[CODE]...
heey guys, befoure I explain the problem. I know some vb coding so you can just give me some codes and I can add it to the program. ok,
I want to make a html file with "tags" to make a music database,
<html>
<Song_Database>
<Song Number="1" Name="Memories" Artist="David guetta" Category="Pop">
</Song>
</Song_Database>
</html>
I create a project using query sql ( Select, Update,Delete,Insert ) in many various way. example by Select with condition ..etc someone work in programing field. tell me that you are not profession in using vb.net , because you have to use OOP instead all of these Sql query. because if you want to make any update on your program after start to work on the Pc you will open your project on design and change the code. but in OOP you will make update on class and then put it as DLL file in the file of program.
View 5 RepliesI have this pretty simple application, it uses a webService to transfer data to my servers DataBase. Now it is very important for me to keep this application as one single file, and not having some XML files needed for it to work, but this is the case. I think the XML file holds the information to this webService, so without it the application crashes. Is there a way to get the application to work without this XML file, or a way to put the XML inside the exe archive?
View 1 RepliesHow to make DLL file that returns File Path which is selected in the Dll while creating, using openfiledialog, Button, Textbox.
View 1 Replieshow do i make this open a file with the name of .mxp and any text file how do i add that in. and how do i open the file mxp to Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveToolStripMenuItem.Click
[Code]...
I have an .exe file which is using a .dll file.I want to make an .exe file which will do the work. The reason I want to do this is to hide that dll file from the user.
View 3 RepliesI have made an app and I want to add it to " open with menu" sub menu which appears when user make right click on any file ie I made photo viewer app and I want to add it to "open with menu" so user when make right click on any photo and go to "open with menu" sub menu will find my app name to chose it to open the photo with it
View 7 Repliesi have my code until now,like a set-up file.First when i click on my button it sends me to the form with the setup steps,when in setups it is copying a identical file into the startup menu.I want my button to check if i have that file into the startup folder,if i dont have it to send me to the setup if i have it to send me to the form with the program.I must mention that there are 2 forms,the setup form and the form with the program.Until now i tried this,but it dosent work so well...
Public Class Form1
Dim OS() As String
Dim UserName() As String[code]....
Checks,if i dont have the copy-cat of this file it sends me to the setup where it is copying the file.And if i have the copy-cat in the startup folder then send me to the other form:).