VS 2010 Diagonal Line On Program?

Aug 27, 2011

I am making a Tic-Tac-Toe prgram on VB and I have run into a problem. I need a diagonal line on the design that goes over some of the labels if a player wins. I have researched this and cannot find an answer. A picture box does not work because it covers everything up, and when you make a line in the forms it shows up in the background.

View 27 Replies


ADVERTISEMENT

Finding A Point On A Diagonal Line When Have The Start Point And End Point Of The Line?

Feb 14, 2011

I have a Diagonal line drawn on a picture box on my forum and i need to know if the user has clicked the line I have the Start point and End Point of the Line and the mouse x,y location So i basically need to find out if the x,y of the mouse is on the line.

View 2 Replies

Only Allow Diagonal Resize?

Jan 24, 2010

is there a way to only allow diagonal resize for a Form (main form)? in other words the width/height ratio should always be kept constant

View 1 Replies

Only Allow Diagonal Resize For Main Form?

Jan 25, 2010

Is there an "official" way to only allow diagonal resize for a Form (main form)? In other words the width/height ratio should always be kept constant always, no matter how the user tries to resize it

View 2 Replies

VS 2010 - Developing An Automated Command Line Program - Attach The Timer ?

Feb 15, 2012

The code in question is in place, and it works. The project is all but wrapping up. That being said, I would love to find a better way to run this section of code in an x64 system so I have the solution ready for future projects. What I currently have in place is as follows:

Function TimeDelay(vDelay)
Dim vTimmer, vTargetTime

vTimmer = TimeValue(Now)

[CODE]...

Now I know the easy way to achieve my goal would be to use the timer object in Visual Studio. The problem I ran into is I was developing an automated command line program. As such there was nothing I could attach the timer to (that I'm aware of). I just needed to pause the program for a few seconds to allow the DTSX package (SSIS file if you're not familiar) to load the file before I remove it from the staging folder.

While I was doing research for this issue I came across the old Sleep() function (referenced to a library in kernel32 as I understand it...never used this before either). When I tried to use this on my current system (64-bit system) I received stack overflow errors. Additional research lead to something called wow64, but I did not have enough time to fully research what this is / how to use it.

View 4 Replies

VS 2010 Can't Access Files Below Root When Using Process To Run A Command Line Program

Feb 4, 2011

I am trying to create a program that downloads audio files via FTP, converts the audio to mp2 if necessary and copies them to a certain directory for consumption by our automation system. (I am a radio station engineer.)I am using the open source converter FFMpeg to convert audio files to mp2. This is a command line exectuted program. Here is the command line that I use to execute the external program with the input and output audio files at the root level: cmd.exe /k ""C:New Folderffmpeg.exe" -i "C:Test.mp3" -y "C:Test.mp2"" This command line works correctly whether I am using Shell() or System.Diagnostics.Process (Process) to execute the external program. I am going the Process route so I can know when the conversion has finished.Now, I really don't want to use the root directory for this but when I go below root with this line using Process the external program will not execute:[code]Can anyone tell me why that line will not work with Process though it works as expected with Shell()? I can't figure out how to stop the external program to get some feedback as to what its problem is.

View 7 Replies

VS 2010 Read Through A Textfile Line By Line Checking For And Removing Duplicate Values?

May 16, 2012

How do i read through a textfile line by line checking for and removing duplicate values?

View 1 Replies

VS 2010 - Draw A Straight Line Between Two Points And Calculate The Length Of That Line?

Jan 3, 2012

I have a picture in my picturebox. In that picture, I need to draw a straight line between two points and calculate the length of that line (probably in pixels). Is there any suggestion how to do it?

View 2 Replies

VS 2010 : RichTextBox Edit Line By Line, Keeping The Formatting?

Jul 7, 2011

I want to loop the lines of my RTB and add a vbTab on each line.How do i do this?

View 1 Replies

VS 2010 Multi Line String - 1 Line = New Entry To Combobox?

Oct 16, 2010

Ok, So I have a string that has its formats like this:

Line 1
Line 2
Line 3

[code].....

View 6 Replies

VS 2010 Read Line By Line And Send To Check List Box

Jul 9, 2011

I have a text file with an unknown number of lines. I want to read this file line by line and send each line's text in a check list box. But how am i gonna do that when i don't know how many lines exist in text the file? [code]The code above reads only the first line. I tried to do it as in vb6 using while not eof(but here i don't know what to write cause my file isn't opened in a certain channel).

View 4 Replies

VS 2010 : Reading Line By Line From A Text File?

Feb 13, 2012

the following code was to be entered to read each line of the file "line by line" It did not work for me as instructed and I am trying to understand why?

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim FILE_NAME As String = "C:UsersOwnerDocuments est.txt"
Dim objReader As New System.IO.StreamReader(FILE_NAME)
Dim TextLine As String

[code]....

View 9 Replies

VS 2010 Adding New Line & Writing Text On That Line

May 20, 2012

I want to modify a text file. It has a lot of lines of text in it. I want to add a line after a specific line (in the middle on other lines) and write strings there.

The code i have, writes to a specific line but it also overwrites the text on that line:

[Code].....

View 5 Replies

VS 2010 Read A File Line By Line?

Aug 21, 2011

how to read a simple text file line by line like when you're writing to a file with System.IO.StreamWriter where you write to the file line by line.

View 5 Replies

Command Line Strings - Make The Program Close If The -1 String Is Sent With The Program

Feb 25, 2010

If e.CommandLine.Count > 0 Then

Dim IncomingCommand As String = e.CommandLine.Item(0).ToString

If IncomingCommand.Substring(0, 2) = "-1" Then

form1.close()

End If

End If

I am trying to make the program close if the -1 string is sent with the program. See my installer allows for me to run certain programs before it actually installs, but it doesn't shut down copies of the program itself. So I have a next startup instance set to shut the program down if the -1 is received. But if the program is not running it starts up instead. This is not desired. form1.close doesn't work. e.cancel = true doesn't work, etc etc. What can I do to make the program not start during this instance.

View 1 Replies

Convert Old GW-BASIC Program To A Command Line Program With Arguments?

Mar 1, 2012

This is going to be a lot to ask, but I'd like to convert my old GW-BASIC program to a command line program with arguments. I'd like it to operate as follows:

elapse [drive:][path]filename This is my old code.

5 CLS
10 OPEN "G:Calc.txt" FOR INPUT AS #1
20 WHILE NOT EOF(1): INPUT #1, A$, B$
30 IF MID$(A$,3,1)=":" THEN C$="DOUBLE DIGIT":GOTO 50
40 IF MID$(A$,2,1)=":" THEN C$="SINGLE DIGIT":GOTO 120

[Code]...

View 3 Replies

VS 2010 - Take A Line From A Text File And Get The Second Half Of The Line "my.settings.useqs = True"?

Nov 23, 2010

I am trying to take a line from a text file and get the second half of the line "my.settings.useqs = true" is my example and i want to get true out of the line and then make a textbox contain the text aftter the = sign basicly.

http:[url].......

View 9 Replies

VS 2010 : Program To Save Settings To Another Program Without Running The Program That Is Being Edited?

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

VS 2008 Open A Txt File, Read Line By Line, Decode Each Line Into An Array And Display?

Oct 14, 2011

what i need to do is open a txt file, read line by line, decode each line into an array and display. Now all works ok apart from one line.

sTextLine = objReader.ReadLine() <-- Value of string cannot be converted.

full code here
-------------
Dim objReader As New System.IO.StreamReader(sOpenFile.Text)
Dim sTextLine As New ArrayList()
Dim sText As String = ""
Dim i As Integer = 0

[code]....

View 3 Replies

Add A Double Line In Program?

Nov 17, 2009

I am trying to add a double line in my program on its own line to separate a heading and the data contained underneath the heading. Im sure the code is easy, but im sick of trying to figure it out. I want it to look like this "============" but without the spaces between.

View 5 Replies

Program To Calculate Best Fit Line?

May 17, 2010

I have a DataGridView with two columns, X and Y, which are the X and Y coordinates. What I am trying to do is to let the user input some X and Y coordinates, and it will calculate the best fit line.

View 5 Replies

Program To Know Line In Listview?

Feb 24, 2010

How will the program know which line in a listview is selected?

View 6 Replies

Run A Command Line Program?

Mar 25, 2011

I'm a bioinformaticist, I'm trying to teach myself how to develop programs that are easy for everyday users to automate programs used in biological research. I thought VB would be great for helping people be more familiar with bioinformatics. Unfortunately, I'm brand new to VB and am stuck with my first program.

All I want to do is have a window pop up where the user then selects a file from an OpenFileDialog box, and pass the filename to a bioinformatics program names msconvert. What I've been doing keeps giving me a message that seems to says, "Unhandled exception has occurreed in your application. . . . File not found."

However, as you can see in my code (below) I have a MsgBox that shows that the correct file HAS been selected, and I can get the whole thing to run from command line.[code]....

View 8 Replies

Run A Program With Command Line?

Oct 23, 2011

how can i make my own program must run with command line? if the program run without command line, it show some error msgbox..

View 4 Replies

Read Text From A Listbox Line By Line And Put Current Line In A Label?

Jan 16, 2011

how to read text from a listbox line by line and put current line in a label?

View 3 Replies

Reading A File Line By Line That Within The Line The Values Are Delimited By "?

Dec 1, 2011

How would i go about reading a file Line by Line that within that line The values are delimited by " Example of the data:

"bob" "cat" "1243"
"steve" dog" "6789"

I've started this with this code but not sure how to go about the next stage:

Using MyReader As New _
Microsoft.VisualBasic.FileIO.TextFieldParser(My.Application.Info.DirectoryPath & "Records28112011.jd")
MyReader.TextFieldType = FileIO.FieldType.Delimited

[code]....

View 9 Replies

Encrypt A Line Of Code In The Program

Apr 4, 2011

I'm trying to make a updater for my program at first i tried putting a password on the files folder then users can download the new zip file when its updated but when they first time install it wont have the password on it so i then decided not to use a password and am wondering how would i encrypt a line of code in the program? its the line that contains the database info so obviously i don't want my users to see that.

View 9 Replies

How To Get Command Line Arguements In .NET Program

Feb 22, 2007

i want to know how to get the command line arguements inside the vb program aka parameters that you specify while running a vb program through a shortcut by specifying a parameter ??for ex: "c:myfile.exe -parameter1 -parameter2 -etc".

View 5 Replies

Make A Command Line Program

Sep 24, 2010

I want to make a command line program BUT I really want to have a call function. I have tried this:

[Code]....

View 2 Replies

Make A Line Chart For Program?

Jan 14, 2011

I want to make a line chart for my program.I will be sending values through serial COM and i would like to present these values to a line chart. So the chart is going to be 'live' and refreshing every few seconds.Could you provide any tutorial cause i dont know where to begin.

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved