Search:

Type: Posts; User: AirlineSim

Page 1 of 13 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    15
    Views
    4,591

    Re: Get Variable from another form

    i wouldn't ask if I wasn't serious.
  2. Replies
    15
    Views
    4,591

    Re: Get Variable from another form

    what is the proper way? can you please give a code example?
  3. Replies
    15
    Views
    4,591

    Re: Get Variable from another form

    Also, what is wrong with this?


    Dim MW As MainWindow = App.Current.MainWindow
    MsgBox(MW.GameDate.ToString)
  4. Replies
    15
    Views
    4,591

    Re: Get Variable from another form

    That alone did not work.
    In form 2 I still can't call MainWindow.GameDate



    Like this?


    Dim FPW As New FleetPurchase()
    FPW.GameDate = _GameDate
  5. Replies
    15
    Views
    4,591

    Re: Get Variable from another form

    Anyone else have any ideas?
  6. Replies
    15
    Views
    4,591

    Re: Get Variable from another form

    Thanks for the advice, I might just do that.

    I still need to fix the problem because there are other variables I will need to carry over multiple forms though.
  7. Replies
    15
    Views
    4,591

    Re: Get Variable from another form

    Correct, when I type

    Dim GDate as DateTime = MainWindow.

    After the dot I get all of MainWindows properties such as ActualHight, BackgroundProperty etc etc

    I would assume


    Dim GDate as...
  8. Replies
    15
    Views
    4,591

    Re: Get Variable from another form

    it does not


    Public Class MainWindow



    The itellesence on this just brings up the MainWindow properties and not the variables or controls declared in it.
  9. Replies
    15
    Views
    4,591

    Get Variable from another form

    I have this on my main window

    Public GameDate As New DateTime(1970, 1, 1)


    And upon a button click I create a new instance of another form in my project.


    Dim FPW As New...
  10. Replies
    9
    Views
    1,279

    VS 2010 Re: Grab names from WebBrowser1

    What?

    I think that can be done but it involves reading the HTML and it'll be complicated.

    Can you get the names provided to you via an XML feed?
  11. Replies
    0
    Views
    456

    SQLite Adding dll

    I'm trying to add my sqlite.dll to my wpf project (i'm not sure if this is WPF specific or not) but I get this error.

    what can I do?
  12. Replies
    12
    Views
    3,646

    VS 2010 Re: Great Circle Mapper

    You need to enter way points on the sheet
  13. Replies
    25
    Views
    1,620

    VS 2008 Re: My Game Data

    Any idea why this does not load in a WPF project?
  14. Replies
    12
    Views
    3,646

    VS 2010 Re: Great Circle Mapper

    Yes, the line here is there shortest distance between two points in real life, maybe not on our screen and I didn't make that clear.

    http://en.wikipedia.org/wiki/Great-circle_distance...
  15. Replies
    12
    Views
    3,646

    VS 2010 Great Circle Mapper

    I know how to calculate a city's location on the world map by using its geographical coordinates as a pixel on the map but how in .net can I draw a link with a cuve? Once I have the curve does anyone...
  16. Thread: BGW Array

    by AirlineSim
    Replies
    1
    Views
    634

    VS 2010 BGW Array

    I have a background work reading an XML file. I want it to return an array of results which happen to be values.

    I want to be able to place all the values as a point on a panel as an X asis which...
  17. Replies
    1
    Views
    529

    VS 2010 Re: DateTime

    Too late at night for me.


    GameDate = GameDate.AddMonths(1)
  18. Replies
    1
    Views
    529

    VS 2010 [RESOLVED] DateTime

    I'm declaring this in my main class.


    Public GameDate As New DateTime(1970, 1, 1)



    ON a timer event I'm doing this

    GameDate.AddMonths(1)
  19. Replies
    2
    Views
    520

    VS 2008 Re: Get AM or PM from a string

    Thanks. I'm trying to determine from yahoo weather RSS feeds if it's day or night.

    If it's day i'll show a day image if it's night ill show a night image. I can't use system time as some feeds are...
  20. Replies
    2
    Views
    520

    VS 2008 Get AM or PM from a string

    I have a datetime string which will show either a AM or PM time. The strings will be of different lengths so i can get a set character number.

    I need to know though if it's AM or PM

    how can I...
  21. Replies
    2
    Views
    1,634

    VS 2010 Re: XML Weather Yahoo

    Dim reader As XmlReader = New XmlTextReader("http://weather.yahooapis.com/forecastrss?p=NZXX0003&u=C")
    While reader.Read

    Dim type = reader.NodeType

    ...
  22. Replies
    2
    Views
    1,634

    VS 2010 XML Weather Yahoo

    I want to build an APP which reads Yahoo XML weather.

    Can someone point me in the right direction of a tutorial on reading XML nodes. and only the nodes i'm interested in.
  23. Thread: Threading

    by AirlineSim
    Replies
    16
    Views
    1,429

    Re: Threading

    okay; yip you have a point but I jumped to conclutions based on other replies from you. Don't help if you don't want. If you do keep an open mind and so will I.
  24. Thread: Threading

    by AirlineSim
    Replies
    16
    Views
    1,429

    Re: Threading

    jmcilhinney the WPF may work. I never said it didn't. I thought it didn't and that was a very very small factor to why I didn't go there in the first place. The main reason why I don't want to use it...
  25. Thread: Threading

    by AirlineSim
    Replies
    16
    Views
    1,429

    Re: Threading

    I provided you with a question.

    HOw can I use multi threading and take vairbale over from 1 thread to another.

    I would almost prefer to never hear from you again, you never actually help me.
  26. Thread: Threading

    by AirlineSim
    Replies
    16
    Views
    1,429

    Re: Threading

    No because my systems are not using .NET 4.0 yet.
  27. Thread: Threading

    by AirlineSim
    Replies
    16
    Views
    1,429

    Re: Threading

    What I asked for was how to use multi threading. if it's in WPF or WinForms it does not matter. You assuemed that the background worker would work for me.

    Perhaps YOU should have said would a...
  28. Thread: Threading

    by AirlineSim
    Replies
    16
    Views
    1,429

    Re: Threading

    Hmmm likewise I've not asked about the background worker. I've asked about mutli threading so i can learn more for bigger prodjects.
  29. Thread: Threading

    by AirlineSim
    Replies
    16
    Views
    1,429

    Re: Threading

    I will be doing this in WPF probably so don't want to rely on the background worker.
  30. Thread: Threading

    by AirlineSim
    Replies
    16
    Views
    1,429

    Threading

    I have a textbox which will accept a user input for a email address or phone number.

    I want to using a new thread do a search for various results and populate a listbox.


    I know i need to do...
  31. Replies
    18
    Views
    1,698

    VS 2008 Re: reading a text file

    Well when you are going line by line trim will not work :wave:

    Re the amount of posts I've had, maybe I don't get things. sorry for being dumb :cry:
  32. Replies
    18
    Views
    1,698

    VS 2008 Re: reading a text file

    If Not line = "" Then
    If Not line = " " Then
    sb.AppendLine(line)
    End If
    End If
  33. Replies
    18
    Views
    1,698

    VS 2008 Re: reading a text file

    sb is a stringbuilder
  34. Replies
    18
    Views
    1,698

    VS 2008 Re: reading a text file

    Ignore it i guuess - this does not work



    If line.Contains(" ") Then
    sb.AppendLine(line)
    End If
  35. Replies
    18
    Views
    1,698

    VS 2008 reading a text file

    i'm reading a text file and there are loads of blank lines in there.
    how can I remove these?

    when i do this

    Dim line As String = sr.ReadLine

    line is = to " "
  36. Replies
    1
    Views
    3,179

    can someone put this simply?

    what is a dependency property?
  37. Replies
    1
    Views
    485

    VS 2008 networked to communicate

    I have an application whereby several people in my office will use it for a number of duties we are all on the same network but everyone will not be logged in at one time.

    I want to enable the...
  38. Replies
    7
    Views
    884

    Re: Can this be done

    A collection of objects http://msdn.microsoft.com/en-us/library/system.collections.aspx
  39. Thread: Ilist

    by AirlineSim
    Replies
    16
    Views
    1,933

    VS 2008 Re: Ilist

    Arr so all I needed to do was do this??? - is this right?


    Private Function Add_Ilist_Listbox(ByVal sblist As IList(Of FInfo)) As Boolean

    For Each item In sblist
    ...
  40. Thread: Ilist

    by AirlineSim
    Replies
    16
    Views
    1,933

    VS 2008 Re: Ilist

    Gee thanks for the support again. I didn't know about ArrayList or that it was even possible to have an array in a arraylist item :( - I did some research and IList came up so I worked with that.
    ...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width