Make A Program Save In A Perticular Place?
Mar 21, 2010I want to make a button that will save, but save in on a perticular line in a .txt file.[code]...
View 1 RepliesI want to make a button that will save, but save in on a perticular line in a .txt file.[code]...
View 1 Repliesselected a sentence from database to textbox or rich text bo in vb.net but i need to put a specific word underline in this textbox not all the sentence
View 4 RepliesIs there a simple way to make a save button in a program that saves it. MY program has text in it, pictures in it, and both can be remotely changed and there drag able.
View 10 RepliesFrom the below thread i could able to communicate to other system and send messages and play a default sound on receiving the message.[URl]..But i want to play the sound by receiving even the sound file as argument.
if i have below sound files on all the systems after installation in application folder...
sound1.wav
sound2.wav
sound3.wav
As of now i am playing for instance only "sound1.wav" if i send "sound2.wav" along with the message then the receiving system should play "sound2.wav"
I am currently working on a small vb.net project which consists of several windows. These windows consist of buttons and so on and if I click on one of these buttons, another window opens up and the previous window just closes up or hides itself.
The problem is as follows; when the new window opens up, it goes to another place (coordinate) on the screen(though its just a slight displacement).
hat can I do to make all the windows open at the same place??
I am making another program. An Enrollment System.This is the screenshot of the recently started program. I added a child form.And I want to add the portion with the red box of this program. I don't know what they call it nor how to do it.I want to place it under the Menu Bar of my program.
View 5 RepliesHow to place units and their men on the form but I cant seem to get this array to work. It has multiple errors in it.
Dim pic(calctroops()) As New PictureBox
Dim z As Integer = 15
For i = 0 To Form3.orcunits
For x = 1 To Form3.orc(orcunits)
z = z + 15
pic(i).Location = New Point(Orc1.x + z, Orc1.y)
pic(i).BackColor = Color.Green
Me.Controls.Add(pic(i))
Next x
Next i
I am using Visual Basic Express. Here is my code but my number is always a whole number when I divide I want it to be two decimal places. For example 367/12 should equal 30.42 not just 30.
[Code]...
Just wanna know if its possible to place gridlines on the VS2005 IDE?
View 3 RepliesI'm trying to make a Form pop up at an random place (given in a textbox). Here is my code so far:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Form2.Location = Textbox1.text
Form2.Visible = True End Sub
Yes i know it doesn't work. What I really need to know is how to make the txt understandable for the system.drawing.point.
I'm trying to complete a time program for a class that I am currently taking in which it's supposed to utilize a Tick Method. Essentially, the Tick should be incrementing the time by one second. The problem is that I don't know where to place it. The book I have doesn't go much into this, just the code. I have also placed the timer in the Designer, set enable to True and set the interval to 1000 milliseconds. This is the code I found for the Tick Method
[Code]....
I have an .avi video (500 MB-50 minutes) that I embedded using the following code in VB.NET:
<OBJECT width="360px" height="360px" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT>
<PARAM name="autoStart" value="False">
[Code]....
Worked fine except that it took approx 5 minutes to load. Converted it to a wmv file (cutting it down to 300 MB) and it started playing instantly while it download. Unfortunately there are some computers that will not play it for some reason. It will load and the timer starts up as if the video is playing but there is just a black screen. I ran some tests and determined that it's not a browser issue.
How can I upload a video that instantly plays on all computers?
how to write a program to get the Sunrise & sunset Times?
I know only VB 2005 or 2008.
I am assuming there is a way to have this sub in? I am assuming Do Until Loop is the way to go[cod]e...
View 1 RepliesI have an app that gets info from the internet into a label, the progam then decides which event will hapen depending on the info obtained, either load next form and continue or Application.Exit
My problem is that the speed that the info is returned from the net, varies and because the info is late sometimes the program exits when it should not.
I have been searching for the past hour to try and find a solution, but I have been unsuccessful. Also, I use VB 2008, so the Common Dialog Suggestion would not work.
View 23 RepliesLike I imagine everyone, I often have problems navigating my code because the flow can jump from place to place. For example, if my code calls routine1, and I then want to go to routine1's code, I know that I can click in the dropdown menu and it will take me to that sub. But wouldn't it be easier if I could somehow right click on the call to routine way and select something like 'take me there' which would transport me from the function making the call to the code for the function being called? Then it would be easy to hop from place to place.
View 1 RepliesJust want to know how to get the path of a text file when i open it then put it on a textbox in vb.net
View 6 Replies1. Place a PDF file in the resources and open it in my program using 'AxAcroPDF1.src'
2. Place a txt file in the resources, open and change it.
I want to make a save button to save to a new text file with the data in the text box if modified. Currently the program just opens Data.txt and displays a sentence in the text box.
Public Class frmAddress
Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
[Code]....
is it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 RepliesI'm creating a program and i want it to secretly save when the user clicks on save.
In other words, i have made it so that it saves twice. Once for the user to read (like a fancy copy) and another that the program uses to open up the form.
Currently when pushed, 2 save dialog boxes come up after each other. I don't want this to happen. I want 1 to come up (the user friendly, fancy version) which is the easy part, but i also want the other 1 to save automatically and secretly without asking the user to set the destination.
How copy folder with its content from place to another place. example from C: to D:
View 15 RepliesI almost have this text editor/Stopwatch/Calculator program done. I am having mojor difficulties to get this code for Save and for Save As to work properly. I do not have code for save yet. When I click on Save I want it to save without popping up the dialog box. I do not have code for Save yet. When I click on Save As I want the popup box to show. Here is the code I have for Save As:
[Code]...
My form cant move i set none to formborderstyle and made my form transparent using
CODE:
So now i cant move my form from place to place.
I am learning Visual Basic 2010 and I am working on a space combat program for my own education and amusement (a simulation of the Honorverse space combat system). I have a routine to add ships to the enemy ship roster and then place them randomly on the viewscreen. When I step through the sub with the debugger, it works fine, but when I run it without stopping, it wants to place all the objects in the same place on the screen. It's actually assigning 2 random numbers pertaining to the size of the viewscreen and assigning those numbers to GameObjectScreenLocation through GameObjectWorldLocation.X and GameObjectWorldLocation.Y. The objects are fully initialized to 0 in their constructor, FYI. Code is below:
[Code]....
Ok major problem with a paint program i am making. When i have a window overlap or anything and move to side of screen and minimize and maximize i lose whats in the picturebox...Here is an example of the code I use to draw a line after click a button:
Private Sub btndraw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlinedraw.Click
lxs = txtslinelocationx.Text
lxe = txtelinelocationx.Text[code].....
Here is a picture of my program running: How do I stop everything being deleted when things pass it...? how can i add a save feature to this program?
Looking for an idea of where the best place to keep files for a program. I use them frequently and they interact with the program directly. I want to place them in a place where they won't be easy to find if someone is just cruising thru the directories. Any ideas?
View 7 RepliesI am currently using vb 2008 and want it so when a user registers it will unlock all the extra features and stay that way even after the user quits and restarts the program... I already have everything set exept for the save feature. I don;t know exactly what to do. I just want to save the settings of my program so that they are the same every time somebody uses the program. I heard that you need to go into Project , then properties and then settings... But I don't understand what to do there...
View 2 RepliesI cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?
View 5 Replies