Click here to Skip to main content
15,902,276 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: I need a coder Pin
Colin Angus Mackay22-Jun-04 12:59
Colin Angus Mackay22-Jun-04 12:59 
GeneralTransfer data from one form to another Pin
Brad Fackrell22-Jun-04 12:48
Brad Fackrell22-Jun-04 12:48 
GeneralRe: Transfer data from one form to another Pin
Dave Kreskowiak22-Jun-04 13:00
mveDave Kreskowiak22-Jun-04 13:00 
GeneralRe: Transfer data from one form to another Pin
Brad Fackrell22-Jun-04 13:11
Brad Fackrell22-Jun-04 13:11 
GeneralDrag file and folders to listview Pin
vancouver77722-Jun-04 10:47
vancouver77722-Jun-04 10:47 
GeneralDirectory path to text box Pin
Brad Fackrell22-Jun-04 9:54
Brad Fackrell22-Jun-04 9:54 
GeneralRe: Directory path to text box Pin
Brad Fackrell22-Jun-04 10:21
Brad Fackrell22-Jun-04 10:21 
QuestionWhat am i doing wrong? Pin
MarcMicalizzi22-Jun-04 7:28
MarcMicalizzi22-Jun-04 7:28 
Ok, so im writing a routine to save a coordinate set to a file, and its not working, and i dont get any error messages, so i dont know why. Could anyone please tell me what im doing wrong?

-
Sub InstPT(ByVal r As Double, ByVal theta As Double)
Dim XDomain As String, YDomain As String
Dim x As Double
Dim y As Double
x = r * System.Math.Cos(theta)
y = r * System.Math.Sin(theta)
txtXCart.Text = x
txtYCart.Text = y
Dim Filename As String
Filename = "workfile.pnt"
'Dim FS As FileStream
'Try
'FS = New FileStream(Filename, FileMode.Append, FileAccess.Write)
'Catch ex As Exception
'End Try

If x >= 0 Then
XDomain = "+"
Else
XDomain = "-"
End If
If y >= 0 Then
YDomain = "+"
Else
YDomain = "-"
End If
If File.Exists(Filename) = False Then
Dim SR As StreamWriter = File.CreateText(Filename)
SR.Write("X" & XDomain & x.ToString & "Y" & YDomain & y.ToString)
SR.Close()
Else
Console.WriteLine("File exists, appending")
Dim SR As StreamWriter = File.AppendText(Filename)
SR.WriteLine("X" & XDomain & x.ToString & "Y" & YDomain & y.ToString)
SR.Close()
End If
'FS.Close()
If x > PlottingBounds.Right Or x < PlottingBounds.Left Or y > PlottingBounds.Top Or y < PlottingBounds.Bottom Then
OpenAndPlot(Filename)
Else
pton(x, y, Color.Black, PlottingBounds, 0, 0)
End If

End Sub
-

all variables are declared, and all functions exist. Thanks!

Marc Micalizzi
AnswerRe: What am i doing wrong? Pin
Steven Campbell22-Jun-04 8:59
Steven Campbell22-Jun-04 8:59 
GeneralRe: What am i doing wrong? Pin
MarcMicalizzi22-Jun-04 9:31
MarcMicalizzi22-Jun-04 9:31 
GeneralRe: What am i doing wrong? Pin
Dave Kreskowiak22-Jun-04 12:54
mveDave Kreskowiak22-Jun-04 12:54 
GeneralRe: What am i doing wrong? Pin
MarcMicalizzi23-Jun-04 3:59
MarcMicalizzi23-Jun-04 3:59 
GeneralWake PC Pin
Timotei_Younge22-Jun-04 4:03
Timotei_Younge22-Jun-04 4:03 
GeneralRe: Wake PC Pin
Dave Kreskowiak22-Jun-04 12:52
mveDave Kreskowiak22-Jun-04 12:52 
QuestionReading/Writing to an Access database??? Pin
Britnt722-Jun-04 3:33
Britnt722-Jun-04 3:33 
AnswerRe: Reading/Writing to an Access database??? Pin
Dave Kreskowiak23-Jun-04 5:26
mveDave Kreskowiak23-Jun-04 5:26 
GeneralRe: Reading/Writing to an Access database??? Pin
Britnt723-Jun-04 5:46
Britnt723-Jun-04 5:46 
GeneralRe: Reading/Writing to an Access database??? Pin
Dave Kreskowiak24-Jun-04 6:43
mveDave Kreskowiak24-Jun-04 6:43 
GeneralRe: Reading/Writing to an Access database??? Pin
Britnt724-Jun-04 7:22
Britnt724-Jun-04 7:22 
GeneralOutlook - Add Option Page with VB.NET Pin
joseph_rich_tx22-Jun-04 2:45
joseph_rich_tx22-Jun-04 2:45 
Generalsending mail Pin
sondos22-Jun-04 2:18
sondos22-Jun-04 2:18 
GeneralRe: sending mail Pin
Dave Kreskowiak22-Jun-04 3:05
mveDave Kreskowiak22-Jun-04 3:05 
QuestionHow i can run application into system tray? Pin
syed saba22-Jun-04 0:51
syed saba22-Jun-04 0:51 
AnswerRe: How i can run application into system tray? Pin
Dave Kreskowiak22-Jun-04 2:46
mveDave Kreskowiak22-Jun-04 2:46 
GeneralRe: How i can run application into system tray? Pin
Dave Kreskowiak23-Jun-04 11:14
mveDave Kreskowiak23-Jun-04 11:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.